xsl-list
[Top] [All Lists]

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

2005-12-05 05:27:35
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 :-)

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


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--