|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Wish List: Allow <xsl:choose> within <xsl:call-template>
Nikita Ogievetski wrote:
><xsl:choose>
> <xsl:when test="$one">
> <xsl:variable name="par_one" select="$one"/>
> </xsl:when>
> <xsl:when test="$done" >
> <xsl:variable name="par_one" select="$done"/>
> </xsl:when>
></xsl:choose>
I'm afraid that your variable definitions won't be visible outside
their correspondent <xsl:when> clauses. I'd rather say:
<xsl:variable name="par_one">
<xsl:choose>
<xsl:when test="$one">
<xsl:value-of select="$one"/>
</xsl:when>
<xsl:when test="$done" >
<xsl:value-of select="$done"/>
</xsl:when>
</xsl:choose>
</xsl:variable>
Regards,
Nikolai
P.S. MFTI'90 422?
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








