I have xml document like following...
==========
<de>German Text</de>
<en>English Text</en>
==========
I have an variable "$lang" which can be "de" or "en".
Now I want to extract /de or /en
depending on variable $lang.
I am trying something like
<xsl:value-of select="node($lang)"/>
But I cant get the result!!
Guessing the syntax of a programming language is not a particularly
productive strategy. Get yourself a book that introduces XSLT and XPath, and
follow the instructions.
You want select="*[name()=$lang]".
Michael Kay