Subject: RE: [xsl] xsl:value-of select after evaluating the variable From: "Michael Kay" <mhk@xxxxxxxxx> Date: Mon, 3 May 2004 12:14:21 +0100 |
> 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
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] xsl:value-of select after eva, Sinha, Shashi | Thread | RE: [xsl] xsl:value-of select after, Jarno.Elovirta |
RE: [xsl] Inserting White Space (&n, Michael Kay | Date | Re: [xsl] Grouping problem - Duplic, Joseph Kesselman |
Month |