I am testing an upgrade of libxml/libxslt with the following
versions: -
XML_LIBS = /libxml/2.6.23/lib/libxml2.a +
XML_LIBS = /libxml/2.6.30/lib/libxml2.a C code that calls xsltParseStylesheetFile is spitting out
the following error: runtime error: file /………./upgrade.xsl
line 15 element copy Attribute nodes must be added before any child nodes to an
element. This appears to be complaining about the identity
transform. See below. That xsl file has the following lines at the start of the
file: <?xml version="1.0"
encoding="UTF-8"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0"> <xsl:variable
name="Modified">false</xsl:variable> <xsl:variable
name="no_button">NoButton</xsl:variable> <xsl:variable name="newline"> <xsl:text> </xsl:text> </xsl:variable> <xsl:template match="node()|@*"> <xsl:copy> <xsl:apply-templates
select="node()|@*" /> </xsl:copy> </xsl:template> . . . I also tried the following: <xsl:template match="@*|node()"> <xsl:copy> <xsl:apply-templates
select="@*|node()" /> </xsl:copy> </xsl:template> One example on the web stated that I should add the
following after <xsl:copy> <xsl:copy-of select="@*"/> Didn’t work. I’m assuming this must be some environment issue.
Any ideas? |