Hi Martin,
Thanks for reporting this issue.
The fix for this has been committed to Xalan-J's xslt 3.0 development branch.
On Wed, Dec 3, 2025 at 6:25 PM Martin Honnen <[email protected]> wrote:
> Hi Mukul,
>
> thanks for the speedy fixes; great improvements.
>
> I have still some issues, though, somehow expand-text works with e.g.
> current-dateTime() but not with an expression using
> random-number-generator e.g. the code
>
>
> <?xml version="1.0" encoding="utf-8"?>
> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
> version="3.0"
> expand-text="yes">
>
> <xsl:template match="/*">
> <test>{random-number-generator(current-dateTime())?number}</test>
> <test2>{current-dateTime()}</test2>
> </xsl:template>
>
> </xsl:stylesheet>
>
> gives e.g.
>
> <?xml version="1.0"
> encoding="UTF-8"?><test>{random-number-generator(current-dateTime())?number}</test><test2>2025-12-03T12:50:28.465Z</test2>
>
> with Xalan while with Saxon the "test" element contains a random number.
>
--
Regards,
Mukul Gandhi