Project

Profile

Help

Bug #5625

closed

DoubleValue cannot be cast to class net.sf.saxon.value.BigDecimalValue with Saxon PE

Added by Octavian Nadolu almost 2 years ago. Updated about 1 year ago.

Status:
Closed
Priority:
Low
Assignee:
Category:
Internals
Sprint/Milestone:
-
Start date:
2022-07-29
Due date:
% Done:

0%

Estimated time:
Legacy ID:
Applies to branch:
11, trunk
Fix Committed on Branch:
11, trunk
Fixed in Maintenance Release:
Platforms:
Java

Description

If I transform the following XML with the XSL, with Saxon PE 11.3, I get an error: "DoubleValue cannot be cast to class net.sf.saxon.value.BigDecimalValue"

With Saxon EE 11.3 works fine.

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0">
    <xsl:template match="root">
        <xsl:if test="number(@level) = (1 to 7)"> test </xsl:if>
    </xsl:template>
</xsl:stylesheet>
<root level="3"></root>

Please register to edit this issue

Also available in: Atom PDF