xsl-list
[Top] [All Lists]

Re: xsl:variable?

2003-11-26 10:07:36

I'm trying to put a node-set in a a variabl
If you use xsl:variable with content rather than select= you get a
result tree fragment not a node set. however that isn't your problem
here.


<xsl:value-of select="concat($t,...)...

concat is a string function so coerces its argument to a string.
so all your elements have gone at that point.
xsl:value-of also returns the string value, if you want to preserve
structure use copy-of.
So you want
<xsl:copy-of select="$t"/>....
David


-- 
http://www.dcarlisle.demon.co.uk/matthew

________________________________________________________________________
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
________________________________________________________________________

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



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