|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: how to pass parameters (msxml/xt/Saxon)
> <xsl:template match="/"> > <!-- ... --> > <xsl:apply-templates mode="Xrevised"> > <xsl:with-param name="xyz" select="1234"/> > </xsl:apply-templates> > <!-- ... --> > </xsl:template> > > <xsl:template match="text()" mode="Xrevised"> > <xsl:param name="xyz"/><!--<xsl:param name="xyz" select="678"/>--> > <xsl:text>template output:</xsl:text><br /> > <xsl:value-of select="$xyz"/> <br /> > </xsl:template> > Unless the root node has text children, which it won't if the input is a well-formed tree, the first template doesn't call the second directly, it does so via a built-in template for element nodes. The built-in template does not pass the parameters through. Mike Kay XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








