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

Re: set union? xslt 2.0

Subject: Re: set union? xslt 2.0
From: Andrew Welch <andrew.j.welch@xxxxxxxxx>
Date: Thu, 8 Apr 2010 11:08:45 +0100
Re:  set union? xslt 2.0
On 8 April 2010 10:43, Dave Pawson <davep@xxxxxxxxxxxxx> wrote:
> On Thu, 8 Apr 2010 10:33:38 +0100
> Andrew Welch <andrew.j.welch@xxxxxxxxx> wrote:
>> > xml source of the form
>> >
>> > <skillarea targets="data|general">
>> That ought to be changed to:
>> <skillarea>
>>   <targets>
>>     <target>data</target>
>>     <target>general</target>
> Can't do that on the command line for the params though Andrew?
> Still leaves one side with a string...

Sure, but that's "the right way" to represent that in XML, then you
can just pass in your delimited parameter and do:

select="skillarea[targets/target = $targets]"

where $targets is a top level variable created when you tokenize the
param into a sequence of items.

Andrew Welch
Kernow: http://kernowforsaxon.sf.net/

Current Thread


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.
First Name
Last Name
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.