|
Subject: [xsl] Accessing Variable within a Variable From: Leena Kulkarni <mulberrylist@xxxxxxxxxxx> Date: Mon, 7 Apr 2003 12:14:31 +0100 (BST) |
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
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| RE: [xsl] Identity transform of sty, Andrew Welch | Thread | Re: [xsl] Accessing Variable within, David Carlisle |
| [xsl] Identity transform of stylesh, Andrew Welch | Date | [xsl] Fw: xsl parse, David Pacheco |
| Month |