DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5505>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5505

xsl:with-param does not work in apply-templates

[EMAIL PROTECTED] changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|Other                       |High



------- Additional Comments From [EMAIL PROTECTED]  2001-12-19 11:43 -------
The example as shown allows a WORKAROUND, since "." works just as well as
"current()", but the bug is indeed present.
This can be simplified by leaving out the for-each.
  <!-- FileName: select79 -->
<xsl:template match="doc">
  <out>
    <xsl:apply-templates select="foo">
      <xsl:with-param name="node" select="current()"/><!-- the doc node -->
    </xsl:apply-templates>
  </out>
</xsl:template>

<xsl:template match="foo">
  <xsl:param name="node" select="'duh'"/>
  <xsl:text>&#10;</xsl:text>
  <content>
    <xsl:attribute name="from">
      <xsl:value-of select="@name"/>
    </xsl:attribute>
    <xsl:attribute name="size">
      <xsl:value-of select="count($node)"/>
    </xsl:attribute>
    <xsl:value-of select="normalize-space($node)"/>
      <!-- stringification of doc node -->
  </content>
</xsl:template>

Reply via email to