[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: "Martin Honnen martin.honnen@xxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Tue, 1 Nov 2022 09:01:13 -0000
Re:  Filtering
Am 11/1/2022 um 9:57 AM schrieb Dave Pawson dave.pawson@xxxxxxxxx:
Thanks Martin. Nearly there


<xsl:param name="types" as="xs:string"/>
If you declare the type as a single string item, then it doesn't make
sense to attempt to use the "?param-name" syntax further below to pass
in an XPath expression evaluating to a sequence of strings.


as="xs:string"


and

types=A,B

and

test="type = tokenize($types, ',')"
Produces an earlier message (a weak one from Saxon!)
  No line number, just 'The context item is absent'

Closer...

I don't see how you would get that message by a plain parameter

B types=A,B

It sounds as if you tried

B ?types=A,B

where the XPath evaluation kicks in.

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.