W3C home > Mailing lists > Public > xsl-editors@w3.org > April to June 2000

xsl:with-param underspecified

From: Oliver Becker <obecker@informatik.hu-berlin.de>
Date: Thu, 29 Jun 2000 11:49:01 +0200 (MET DST)
Message-Id: <200006290949.LAA24006@mail.informatik.hu-berlin.de>
To: xsl-editors@w3.org
Hello,

I believe that xsl:with-param is underspecified.
It is not an error to use the same parameter more than once - but it
should.

Example code:
<xslt:transform version="1.0" 
                xmlns:xslt="http://www.w3.org/1999/XSL/Transform">

<xslt:template match="/">
   <xslt:call-template name="check">
      <xslt:with-param name="x" select="1" />
      <xslt:with-param name="x" select="2" />
   </xslt:call-template>
</xslt:template>

<xslt:template name="check">
   <xslt:param name="x" />
   <xslt:value-of select="$x" />
</xslt:template>

</xslt:transform>

What should a conformant XSLT processor output?
I tested the stylesheet with XT, Saxon 5.3.2 and LotusXSL/Xalan 1.0.1.
XT and Saxon output 1, LotusXSL outputs 2.

Best regards,
Oliver


/-------------------------------------------------------------------\
|  ob|do        Dipl.Inf. Oliver Becker                             |
|  --+--        E-Mail: obecker@informatik.hu-berlin.de             |
|  op|qo        WWW:    http://www.informatik.hu-berlin.de/~obecker |
\-------------------------------------------------------------------/
Received on Thursday, 29 June 2000 05:49:04 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 7 December 2009 10:59:50 GMT