On 1/30/13 10:45 AM, Gary Gapinski wrote:
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.

Unable to reproduce on RHEL6 through libxslt 1.1.26-2. Seems like a potential bug within fedora, I would report it within the Fedora BugZilla:
https://bugzilla.redhat.com/enter_bug.cgi?product=Fedora

(Also note that we make absolutely no promises the content will work with anything but RHEL6, to include the build system itself)