Re: Random UUID in pure XSLT?

"Martin Honnen [email protected]" <[email protected]>
Newsgroups gmane.text.xml.xsl.general.mulberrytech
Organization Liberty Development
Message-ID <[email protected]>
On 10.11.2020 17:36, Piez, Wendell A. (Fed) [email protected] wrote:

> Today I write from the day job, where I am researching the question of
> how can I go about producing random UUIDs, in dozens or hundreds, inside
> an XSLT pipeline, without extension functions in Saxon. The Java
> randomUUID() function works nicely when it’s available, but I need to
> distribute the capability for SaxonHE and eventually SaxonJS.
>
> We do not have an available implementation of RFC 4122 v4 “random UUID”
> in pure XSLT do we, free to use (and study)? I know the functional
> nature of the language makes randomness, um, problematic (when isn’t
> it?),

HE 10 with higher-order function support (which is not available in HE
9.8 and 9.9) has at least support for fn:random-number-generator, Saxon
JS 2 also supports that function. I have no idea whether that helps with
generating random UUIDs.
--~----------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
EasyUnsubscribe: http://lists.mulberrytech.com/unsub/xsl-list/3329386
or by email: [email protected]
--~--
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.