Re: [xsl] Filtering, xslt 2.0

Subject: Re: [xsl] Filtering, xslt 2.0
From: "Martin Honnen martin.honnen@xxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Tue, 1 Nov 2022 09:01:13 -0000
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