Hi Martin,
     This issue as mentioned by you, has been resolved and Xalan's
XSLT 3.0 development branch now has the fixes for this.

On Sat, Dec 20, 2025 at 10:43 PM Martin Honnen <[email protected]> wrote:

> great work, thanks for the fixes.
>
> I have found another issue, sorting a simple integer sequence doesn't work:
>
> <?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";
>    xmlns:map="http://www.w3.org/2005/xpath-functions/map";
>    xmlns:array="http://www.w3.org/2005/xpath-functions/array";
>    exclude-result-prefixes="#all"
>    expand-text="yes">
>
>    <xsl:param name="seq1" as="xs:integer*" select="(3, 1, 2)"/>
>
>    <xsl:variable name="sorted-seq1" as="xs:integer*">
>      <xsl:perform-sort select="$seq1">
>        <xsl:sort select="."/>
>      </xsl:perform-sort>
>    </xsl:variable>
>
>    <xsl:output method="xml" indent="yes"/>
>
>    <xsl:template match="/*">
>      <xsl:copy>
>        <xsl:for-each select="$sorted-seq1">
>          <item>{.}</item>
>        </xsl:for-each>
>      </xsl:copy>
>    </xsl:template>
>
>    <xsl:template match="/">
>      <xsl:copy>
>        <xsl:apply-templates/>
>        <xsl:comment>Run with {system-property('xsl:vendor')} at
> {current-dateTime()}</xsl:comment>
>      </xsl:copy>
>    </xsl:template>
>
> </xsl:stylesheet>
>
>
> Fails with fatalError: java.lang.NumberFormatException; SystemID:
> file:///sheet.xsl; Line#: 29; Column#: 15


-- 
Regards,
Mukul Gandhi

Reply via email to