Re: [xsl] xsl:value-of problem

Subject: Re: [xsl] xsl:value-of problem
From: David Carlisle <davidc@xxxxxxxxx>
Date: Tue, 27 Apr 2004 10:59:17 +0100
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
________________________________________________________________________

Current Thread