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

passing a node name as a param and then using it

Subject: passing a node name as a param and then using it
From: Mike Kellstrand <kellstrand@xxxxxxxxx>
Date: Wed, 16 Jun 2004 11:29:22 -0700 (PDT)
as a param
I want to be able to pass a node name into a named
template as a param and
then operate on it.  When I try to use the node name
param in the template, 
it gets interpreted as a string and not an actual
node.   i.e.
 
The snipett:
<xsl:variable name="x" select="choice"/>
<fo:block>a: <xsl:value-of
select="choice[1]"/></fo:block>
<fo:block>b: <xsl:value-of
select="concat($x,'[1]')"/></fo:block>
 
Will generate:
a: {the actual xml data in the 1st choice node}
b: choice[1]
 
How do I get this to work as intended?
 
Thanks,  Mike


		
__________________________________
Do you Yahoo!?
Take Yahoo! Mail with you! Get it on your mobile phone.
http://mobile.yahoo.com/maildemo 

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.