xsl-list
[Top] [All Lists]

Re: [xsl] Random UUID in pure XSLT?

2020-11-11 13:16:33
On 11.11.2020 19:32, Dimitre Novatchev dnovatchev(_at_)gmail(_dot_)com wrote:
 > how can I go about producing random UUIDs, in dozens or hundreds,
inside an XSLT pipeline, without extension functions in Saxon.

This is actually very easy and doesn't require the use of any extension
functions:

*/unparsed-text("https://uuidgen.org/api/v/4
<https://uuidgen.org/api/v/4>")/*

Nice.

  json-doc('https://uuidgen.org/api/v/4')?1

is even way cooler, these days where APIs return JSON
--~----------------------------------------------------------------
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>