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.
|