Hi Martin,

On Wed, Dec 17, 2025 at 1:53 PM Martin Honnen <[email protected]> wrote:

> I have seen that support for xsl:perform-sort has landed on the Apache
> Xalan XSLT 3.0 development branch.
>
> I have tried to write a test case that sorts a sequence of XPath 3.1/XDM
> 3.1 maps, it works fine with Saxon but gives an error with Xalan:
>
> warning: VariableReference given for variable out of context or without
> definition!  Name = sorted-map-sequence1; SystemID: file:///sheet.xsl;
> Line#: 22; Column#: 52
> fatalError: java.lang.NullPointerException; SystemID: file:///sheet.xsl;
> Line#: 32; Column#: 15

Xalan's XSLT 3.0 development branch as of now, has xsl:perform-sort
instruction's support to sort only XML element nodes and no other
types of XDM items.

We may hope that, we'll have those new XSLT features implemented
within Xalan in near future.


-- 
Regards,
Mukul Gandhi

Reply via email to