Hi Martin,
On Wed, Dec 3, 2025 at 6:35 PM Martin Honnen <[email protected]> wrote:
> <?xml version="1.0" encoding="utf-8"?>
> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
> version="3.0"
> xmlns:xs="http://www.w3.org/2001/XMLSchema"
> exclude-result-prefixes="#all"
> expand-text="yes">
>
> <xsl:template match="/*">
> <xsl:copy>
> <xsl:sequence select="fold-left(1 to 5,
> random-number-generator(current-dateTime()), function($a, $i) { let $rng
> := head($a) return ($rng?next(), $rng?number, tail($a)) }) => tail()"/>
> </xsl:copy>
> </xsl:template>
>
> </xsl:stylesheet>
Xalan-J's XSLT 3.0 development code, is able to run following XSL
stylesheet fine,
<xsl:template match="/*">
<xsl:copy>
<xsl:variable name="seq1" select="fold-left(1 to 5,
random-number-generator(current-dateTime()), function($a, $i) { let
$rng := head($a) return ($rng?next(), $rng?number, tail($a)) })"/>
<xsl:sequence select="tail($seq1)"/>
</xsl:copy>
</xsl:template>
But, not the XPath expression that you've written.
I hope that, these issues may be fixed within Xalan-J's XSLT 3.0
development code.
--
Regards,
Mukul Gandhi