After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 544354 - libxslt parser error - Unexpected XSLT element
libxslt parser error - Unexpected XSLT element
Status: RESOLVED NOTABUG
Product: libxslt
Classification: Platform
Component: general
git master
Other All
: Normal normal
: ---
Assigned To: Daniel Veillard
libxml QA maintainers
Depends on:
Blocks:
 
 
Reported: 2008-07-23 14:17 UTC by Pavol Rusnak
Modified: 2008-07-23 15:24 UTC
See Also:
GNOME target: ---
GNOME version: Unversioned Enhancement



Description Pavol Rusnak 2008-07-23 14:17:10 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.
Comment 1 Pavol Rusnak 2008-07-23 14:17:54 UTC
downstream bugzilla: http://bugzilla.novell.com/show_bug.cgi?id=399549
Comment 2 Daniel Veillard 2008-07-23 15:24:45 UTC
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