[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: problem with xsl:fork example

Subject: Re: problem with xsl:fork example
From: "Michael Kay mike@xxxxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Thu, 9 Oct 2014 17:33:30 -0000
Re:  problem with xsl:fork example
Thanks. Logged here for WG attention:

https://www.w3.org/Bugs/Public/show_bug.cgi?id=27011

Michael Kay
Saxonica
mike@xxxxxxxxxxxx
+44 (0) 118 946 5893




On 9 Oct 2014, at 18:24, Martin Honnen martin.honnen@xxxxxx
<xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote:

>
> 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.

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.