Subject: Re: Variable Scope and xsl:if From: David Carlisle <davidc@xxxxxxxxx> Date: Tue, 18 Apr 2000 10:56:54 +0100 (BST) |
It's clear I can't query this variable from outside the <xsl:if> because of the variable scope, so, what's the solution? you don't want to define foo just if some condition holds, you want to define foo to a value that depends on a condition, so the natural way of encoding this is <xsl:variable name="foo"> <xsl:choose> <xsl:when test="something=false"> .... </xsl:choose> </xsl:variable> <xsl:value-of select="$foo"/> <!-- NOW There's A foo var!!--> David XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Variable Scope and xsl:if, Omar López Ruiz | Thread | RE: Variable Scope and xsl:if, Kay Michael |
Re: position() problem with // axis, Warren Hedley | Date | Re: position() problem with // axis, David Carlisle |
Month |