Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: using xsl variable to retrieve node values

From: "Dimitre Novatchev [MVP XML]" <dnovatchev@-----.--->
To: NULL
Date: 3/2/2004 6:54:00 AM
"Jiho Han" <jiho.han@i...> wrote in message
news:%23nw0eY9$DHA.2316@T......
> Thanks for your response.
> I figured out kind of..
>
> instead of:
>
> <xsl:value-of select="$idfield"/>
>
> I am now doing:
>
> <xsl:value-of select="*[name() = $idfield]"/>
>
> which returns the child element named , eval($idfield), i.e.
> <contact><contactid>c0001</contactid></contact>, return c0001 where
$idfield
> is 'contactid'.

Yes, such technique is widely used -- e.g. in sorting based on parameters -- 
see e.g.:

http://dpawson.co.uk/xsl/sect2/N6461.html#d7476e950


Cheers,

Dimitre Novatchev [XML MVP],
FXSL developer, XML Insider,

http://fxsl.sourceforge.net/ -- the home of FXSL
Resume: http://fxsl.sf.net/DNovatchev/Resume/Res.html




transparent
Print
Mail
Digg
delicious
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent