|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Passing a parameter from one matched template to a
> <xsl:variable name="input"><ARE><YOU><NUTS></xsl:variable>
Is it <ARE/><YOU/><NUTS/> (example 1) or <ARE><YOU><NUTS/></YOU></ARE> (example 2)? Example 1: <xsl:apply-templates select="vendor:node-set($input)/*[1]" /> <xsl:template match="ARE">
<xsl:param name="x" select="''"/>
<xsl:apply-templates select="following-sibling::*[1]">
<xsl:with-param name="x" select="anything-passed-to-template-YOU"/>
</xsl:apply-templates>
</xsl:template><xsl:template match="YOU">
<xsl:param name="x" select="''"/>
<xsl:apply-templates select="following-sibling::*[1]">
<xsl:with-param name="x" select="anything-passed-to-template-NUTS"/>
</xsl:apply-templates>
</xsl:template><xsl:template match="NUTS"> <xsl:param name="x" select="''"/> </xsl:template> Example 2: <xsl:apply-templates select="vendor:node-set($input)" /> <xsl:template match="ARE">
<xsl:param name="x" select="''"/>
<xsl:apply-templates>
<xsl:with-param name="x" select="anything-passed-to-template-YOU"/>
</xsl:apply-templates>
</xsl:template><xsl:template match="YOU">
<xsl:param name="x" select="''"/>
<xsl:apply-templates>
<xsl:with-param name="x" select="anything-passed-to-template-NUTS"/>
</xsl:apply-templates>
</xsl:template><xsl:template match="NUTS"> <xsl:param name="x" select="''"/> </xsl:template> paul morgan schrieb: Is it possible to pass a parameter from one matched template to another? 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








