|
[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
Ragulf Pickaxe wrote:
> Hi Ferdinand,
> >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"/>
Or, if the dictionary language is not fixed:
<dico lang="de">
<entry>bla-bla</entry>
...
</dico>
<xsl:value-of select="../dico[@lang=$lang]/..."/>
BTW, I use something similar, but I use a top-level variable for the
dictionary, rather than (or in addition) to the language:
<xsl:variable name="lang" select="'fr'"/>
<xsl:variable name="dico"
select=".../dico[@lang=$lang]"/>
<xsl:value-of select="$dico/..."/>
--drkm
___________________________________________________________________________
Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger
Tilichargez cette version sur http://fr.messenger.yahoo.com
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








