[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Accessing Variable within a Variable

Subject: Accessing Variable within a Variable
From: Leena Kulkarni <mulberrylist@xxxxxxxxxxx>
Date: Mon, 7 Apr 2003 12:14:31 +0100 (BST)
variable within a variable xsl
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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.