Skip to content

Commit c142a76

Browse files
committed
Transformation from OVAL to XCCDF should also assume new url for RH Errata
1 parent e957c51 commit c142a76

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

xsl/oval-to-xccdf.xsl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,9 @@ Authors:
8686
</xsl:template>
8787

8888
<xsl:template match="oval-def:reference[@source='RHSA']">
89-
<xsl:if test="starts-with(@ref_url, 'https://rhn.redhat.com/errata')">
90-
<xccdf:ident system="https://rhn.redhat.com/errata">
91-
<xsl:copy-of select="substring-before(substring-after(@ref_url, 'https://rhn.redhat.com/errata/'), '.html')"/>
89+
<xsl:if test="starts-with(@ref_url, 'https://access.redhat.com/errata')">
90+
<xccdf:ident system="https://access.redhat.com/errata">
91+
<xsl:copy-of select="substring-after(@ref_url, 'https://access.redhat.com/errata/')"/>
9292
</xccdf:ident>
9393
</xsl:if>
9494
</xsl:template>

0 commit comments

Comments
 (0)