This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 27011 - [xslt 3.0] Problems with xsl:fork example
Summary: [xslt 3.0] Problems with xsl:fork example
Status: CLOSED FIXED
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: XSLT 3.0 (show other bugs)
Version: Working drafts
Hardware: PC All
: P2 normal
Target Milestone: ---
Assignee: Michael Kay
QA Contact: Mailing list for public feedback on specs from XSL and XML Query WGs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-10-09 17:32 UTC by Michael Kay
Modified: 2014-10-24 10:46 UTC (History)
0 users

See Also:


Attachments

Description Michael Kay 2014-10-09 17:32:07 UTC
Reported by Martin Honnen on xsl-list:

The first example in http://www.w3.org/TR/xslt-30/#splitting-examples uses no schema as far as I can tell but then tries a comparison with the operators 'lt' and 'ge' of an attribute node value with an xs:integer:

transactions/transaction[@value lt 0]
transactions/transaction[@value ge 0]

That generates warnings "Comparison of xs:untypedAtomic? to xs:integer will fail unless the first operand is empty" with Saxon 9.6 EE so I think the comparisons need to be written as

transactions/transaction[number(@value) lt 0]
transactions/transaction[number(@value) ge 0]

or

transactions/transaction[xs:decimal(@value) lt 0]
transactions/transaction[xs:decimal(@value) ge 0]

to work as intended or the operators '<' and '>' need to be used.
Comment 1 Michael Kay 2014-10-16 16:54:22 UTC
The WG agreed that this error needs to be fixed.