[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Accessing Variable within a Variable

Subject: Re: Accessing Variable within a Variable
From: David Carlisle <davidc@xxxxxxxxx>
Date: Tue, 8 Apr 2003 09:05:23 +0100
variable within a variable
> 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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.