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 346015 - Non-declared caller-parameters are accepted
Non-declared caller-parameters are accepted
Status: RESOLVED FIXED
Product: libxslt
Classification: Platform
Component: general
git master
Other All
: Normal normal
: ---
Assigned To: kbuchcik
libxml QA maintainers
Depends on:
Blocks:
 
 
Reported: 2006-06-27 10:27 UTC by kbuchcik
Modified: 2006-07-14 16:23 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description kbuchcik 2006-06-27 10:27:53 UTC
xsl:with-param is processed as a param in a xsl:template, although
a corresponding xsl:param was not declared.
The following example does not produce an error, but it should:

<?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

  <xsl:template match="/">
    <xsl:call-template name="foo">
      <xsl:with-param name="bar" select="'bar'"/>
    </xsl:call-template>
  </xsl:template>

  <xsl:template name="foo">
    <xsl:value-of select="$bar"/>
  </xsl:template>

</xsl:stylesheet>
Comment 1 kbuchcik 2006-07-14 16:23:25 UTC
Fixed in CVS HEAD.