![]() |
![]() | ![]() | ![]() | Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries >Thread Prev - Re: using xsl variable to retrieve node values [Thread Next] Re: using xsl variable to retrieve node valuesTo: 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 | ![]() | ![]() | ![]() |
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | |||||
|
