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 Summary: xsl:with-param does not work in apply-templates Product: XalanJ2 Version: 2.2.x Platform: PC OS/Version: Linux Status: NEW Severity: Normal Priority: Other Component: Xalan AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] It seems that parameter values are not transfered correctly when using xsl:with-param in a xsl:apply-templates directive I tried to do the following: <xsl:template match="/"> <tree> <xsl:for-each select="//column"> <xsl:apply-templates select="/*"> <xsl:with-param name="node" select="current()"/> </xsl:apply-templates> </xsl:for-each> </tree> </xsl:template> <xsl:template match="*"> <xsl:param name="node" select="/.."/> PARAM VALUE <xsl:value-of select="$node"/> </xsl:template> I.e. for each node column node of the xml source the subnodes of the root node are reprocessed. Although the second template is called, the value of $node appears to be empty (I assume the default empty node set to which the param is bound is not overriden, although it should be). I tried this example with J. Clarcks XT processor and there it did write-out the value of the column node $node was bound to.
