Altova Mailing List Archives>Archive Index >xsl-list Archive Home >Recent entries >Thread Prev - [xsl] xsl:value-of select after evaluating the variable [Thread Next] RE: [xsl] xsl:value-of select after evaluating the variableTo: Date: 5/3/2004 1:14:00 PM > 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 | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
