|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: can't get variable content after call-template
Hi Georg, You need to use template parameters as below: <xsl:template match="//example" mode="multi">
<xsl:variable name="pmode">multi</xsl:variable>
<xsl:variable name="pmode" select="'multi'" /> <!-- or like this,
as David suggested -->
<xsl:call-template name="logfile">
<xsl:with-param name=pmode" select="$pmode" />
</xsl:call-template>
<xsl:apply-templates mode="multi"/>
</xsl:template><xsl:template name="logfile">
<xsl:param name="pmode" />
<xsl:choose>
<xsl:when test="$pmode='multi'">
<xsl:text>mode: multi</xsl:text>
</xsl:when>
<xsl:otherwise>
<xsl:text>mode: normal</xsl:text>
</xsl:otherwise>
</xsl:choose>
</xsl:template>Regards, Mukul On 6/26/06, Georg Hohmann <georg.hohmann@xxxxxxxxx> wrote: Hello,
|
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








