|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Accessing Variable within a Variable
Hi!
I am doing the following -
<xsl:template name="Process">
<xsl:param name="X1" ></xsl:param>
<xsl:param name="X2" ></xsl:param>
<xsl:variable name="merger">
<xsl:value-of select="$X1"/>
<xsl:value-of select="$X2"/>
</xsl:variable>
<xsl:for-each select="$merger/item">
<xsl:choose>
<xsl:when test="$X1/item = 'someValue'">do should
check in X1</xsl:when>
<xsl:when test="some condition">this should check
condition in merger</xsl:when>
</xsl:choose>
</xsl:for-each>
</xsl:template>
When I try this, I am getting the TRUE to the
condition $X1/item = 'someValue' condition even if
'someValue' is in $merger and not in $X1.
Can't I access $X1 like this while traversing $merger
with for-each?
Thanks in advance.
________________________________________________________________________
Missed your favourite TV serial last night? Try the new, Yahoo! TV.
visit http://in.tv.yahoo.com
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








