[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
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:
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
or
to work as intended or the operators '<' and '>' need to be used.
[xsl] problem with xsl:fork example
Subject: [xsl] problem with xsl:fork example From: "Martin Honnen martin.honnen@xxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> Date: Thu, 9 Oct 2014 17:23:59 -0000 |
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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Applying Streaming To DIT, Eliot Kimber ekimber | Thread | Re: [xsl] problem with xsl:fork exa, Michael Kay mike@xxx |
Re: [xsl] Applying Streaming To DIT, Eliot Kimber ekimber | Date | Re: [xsl] problem with xsl:fork exa, Michael Kay mike@xxx |
Month |
Keywords