On 01/30/2013 10:09 AM, Brian Millett
wrote:
Hello,
I'm trying to get started with making the latest clone from
the git repository and I get the following error:
xsltproc -o output/unlinked-noprofiles-rhel6-xccdf.xml
transforms/shorthand2xccdf.xslt output/rhel6-shorthand.xml
compilation error: file transforms/shorthand2xccdf.xslt line 19
element attribute
xsl:attribute: The attribute name 'xmlns' is not allowed.
The construct it's complaining about is
12 <xsl:template match="Benchmark">
13 <xsl:copy>
14 <xsl:attribute name="xmlns">
15 <xsl:text>http://checklists.nist.gov/xccdf/1.1</xsl:text>
16 </xsl:attribute>
17 <xsl:apply-templates select="@*|node()" />
18 </xsl:copy>
19 </xsl:template>
That is a valid (use of) attribute.
I can't produce this error using current repo on Ubuntu 12.10 and
xsltproc 1.1.26-14. Ditto using <oXygen/> XML Editor 14.1
and its inbuilt xsltproc.