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
________________________________________________________________________