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

Re: Filtering, xslt 2.0

Subject: Re: Filtering, xslt 2.0
From: "Dave Pawson dave.pawson@xxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Mon, 31 Oct 2022 17:27:16 -0000
Re:  Filtering
On Mon, 31 Oct 2022 at 16:56, Martin Honnen martin.honnen@xxxxxx
<xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote:

> I have literally tested now a
>
>    membership=a,b,c
>
> with Saxon HE 11 and the command line, both with Bash and with
> Powershell, and the parameter can be processed as said with e.g.
>
>    tokenize($membership, ',')


>
> and you get a sequence of three strings (e.g. a, b, c).
>
> > or "a b c"
> >
> > Saxon doesn't like that.

My bad Martin, syntax error.

> On the command line, you prefix the parameter name with a question mark
> to indicate you provide an XPath expression on the right side of the "=".

[A reason I dislike 3.0]

>
> I have tried now with Bash, you need an additional double quote wrapper e.g.
>
>    ?membership="'a','b','c'"
>
>
> then you have $membership in XSLT/XPath 2 and later as a sequence of
> three strings (e.g. a, b, c)

Thanks Martin, I'll play with that tonight.

regards


-- 
Dave Pawson
XSLT XSL-FO FAQ.
Docbook FAQ.

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.