Re: [xsl] Accessing Variable within a Variable

Subject: Re: [xsl] Accessing Variable within a Variable
From: David Carlisle <davidc@xxxxxxxxx>
Date: Tue, 8 Apr 2003 09:05:23 +0100
> I want is, can I copy 2 variables into one.. and
> traverse the merged one, and during traversing,
> somewhere can I check for some value that appears in
> one variable.

You can only do thatby converting the result tree fragment containing
the merged set back into a node set using your processor's node-set
extension function, if it has such an extension.

But it depends whatyou mean by a merge, You only needed to use a result
tree fragment as you were constructing a wrapper element around the two
sets, if you don't need that you can go
<xsl:variable name="v3" select="$v1|$v2"/>

and then v3 is the union of v1 and v2.

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
________________________________________________________________________

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


Current Thread