xsl-list
[Top] [All Lists]

Re: [xsl] shuffling words in text content

2021-09-07 14:42:26
On 07.09.2021 21:31, Michael Kay mike(_at_)saxonica(_dot_)com wrote:
What's wrong with

tokenize(.) => random-number-generator()?permute() => string-join(" ")

Both Saxon Java and Saxon-JS want

tokenize(.) => (random-number-generator()?permute)() => string-join(' ')

to not complain. At least I am not the only one that sometimes thinks
the "=>" operator is rather simple and elegant but in the end needs some
parenthesis more than initially used.
--~----------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
EasyUnsubscribe: http://lists.mulberrytech.com/unsub/xsl-list/1167547
or by email: xsl-list-unsub(_at_)lists(_dot_)mulberrytech(_dot_)com
--~--


<Prev in Thread] Current Thread [Next in Thread>