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

RE: How can I create a variable with a variable access

Subject: RE: How can I create a variable with a variable access path?
From: "Ragulf Pickaxe" <ragulf.pickaxe@xxxxxxxxxxx>
Date: Mon, 05 Dec 2005 13:27:35 +0100
messenger ikoner
Hi Ferdinand,

<xsl:param name="language">de</xsl:param>

and access the strings like this

<xsl:value-of select="$AllTexts/{$language}/searchButton"/>

This construct is not possible. The {....} syntax is for attributes.


Is there any easy way of making it work other than creating a complete
choose/when/ with static language selection?

Use: <xsl:value-of select="$AllTexts/*[name()=$language]/searchButton"/>

Regards,
Ragulf Pickaxe :-)

_________________________________________________________________
Fe alle de nye og sjove ikoner med MSN Messenger http://messenger.msn.dk/

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.