xsl-list
[Top] [All Lists]

Re: xsl:value-of problem

2004-04-27 02:59:17

If $name is a string then you can't do

..../$name

as you can't do

..../"foo"

you want

.../*[name()=$name]

as you can have strings in that position, as in


.../*[name()="foo"]


On the other hand, are you sure you want to pass in the name of an
element rather than the element itself.

David

________________________________________________________________________
This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________


<Prev in Thread] Current Thread [Next in Thread>