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

RE: Using a variable as part of the path in value-of

Subject: RE: Using a variable as part of the path in value-of select"..." ?
From: cknell@xxxxxxxxxx
Date: Tue, 30 Aug 2005 10:34:41 -0400
RE:  Using a variable as part of the path in value-of
<xsl:value-of select="WAAUXServiceData[@action=$test]/BTAccountNumber"/>

-- 
Charles Knell
cknell@xxxxxxxxxx - email



-----Original Message-----
From:     Khorasani, Houman <houman_khorasani@xxxxxxxxxxxxxx>
Sent:     Tue, 30 Aug 2005 15:27:19 +0100
To:       <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
Subject:   Using a variable as part of the path in value-of select"..." ?

Hi,

<xsl:variable name="test" select="WAAUXServiceData/@action"/>
<xsl:element name="BTAccountNumber">
	<xsl:value-of select="WAAUXServiceData/$test/BTAccountNumber"/>
</xsl:element>


The variable "test" is set to the value of the WAAXServiceData
attribute.
The "value-of select" should return the value with the value of $test in
its path.


I assume this won't be possible, since the parser can only go once
through the document and doesn't see the generated path in the first
roll. Correct?

But if it is possible that would save me a lot of time. 

Any ideas?

Many Thanks,
Houman

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.