GNOME Bugzilla – Bug 544354
libxslt parser error - Unexpected XSLT element
Last modified: 2008-07-23 15:24:45 UTC
Please describe the problem: The problem is the same as described in this bugreport: http://tracker.coreboot.org/trac/coreboot/ticket/75 The relevant part of the xsl script is the following: --------------8<--------------- <xsl:template match="webpage" priority="1"> <xsl:variable name="id"> <xsl:call-template name="object.id"/> </xsl:variable> <xsl:variable name="relpath"> <xsl:call-template name="root-rel-path"> <xsl:with-param name="webpage" select="."/> </xsl:call-template> </xsl:variable> <!-- Layout Grafiken --> <xsl:param name="layout.graphics.pillogo"> <!-- Line 33 --> <xsl:value-of select="$relpath"/> <xsl:value-of select="$layout.graphics.path"/> <xsl:text>pillogo.png</xsl:text> </xsl:param> -------------->8----------------- The error resulting in building this is: runtime error: file /home/Downloads/svn.pil-website.trunk/xsl/my-xsl/my-layout.xsl line 37 element param Unexpected XSLT element 'param'. Steps to reproduce: Actual results: Expected results: Does this happen every time? Other information: # xsltproc --version Using libxml 20632, libxslt 10124 and libexslt 813 xsltproc was compiled against libxml 20632, libxslt 10124 and libexslt 813 libxslt 10124 was compiled against libxml 20632 libexslt 813 was compiled against libxml 20632 With version 1.1.17 of libxslt this works fine.
downstream bugzilla: http://bugzilla.novell.com/show_bug.cgi?id=399549
http://www.w3.org/TR/xslt#section-Defining-Template-Rules http://www.w3.org/TR/xslt#local-variables Not a bug, you can't put a param there, just read the spec "xsl:param is allowed as a child at the beginning of an xsl:template element" Daniel