xs:decimal
are compared
+ as decimals, without first converting to xs:double
.
+ It is possible to force the system to compare
- If any The set of <xsl:sort
@@ -22966,30 +22975,64 @@ return if ($i le count($S))
the
text
or
number
, the effect is implementation-defined.
data-type
- attribute, is a sequence containing more than one item, then the effect
- depends on whether the
In general the
If both S1 and S2 are empty sequences, + then they compare equal.
A sequence that is empty is considered to be less than + a sequence that is not empty.
If neither sequence is empty, then
+ head(S1)
and
+ head(S2)
are compared
+ according to the rules below.
If they compare equal, the result is obtained
+ by comparing tail(S1)
to
+ tail(S2)
.
Otherwise, the result of comparing these two + items is used as the result of the sequence comparison.
For example:
+(1, 2, 3)
precedes (1, 2, 4)
.
(1, 2)
precedes (1, 2, 3)
()
precedes (1, 2)
Individual atomic items are compared as follows:
+If both values are instances of xs:string
, xs:anyURI
,
+ or xs:untypedAtomic
, they are compared using the appropriate collation,
+ as described in the next section.
If both values are instances of xs:numeric
, they are compared
+ using the
This is a change from earlier versions, since xs:decimal
values are now compared
+ as decimals, rather than being first converted to xs:double
.
In all other cases, values are compared according to the rules
+ of the XPath lt
operator. This will raise an error if the values are
+ not comparable (for example, if one is an xs:integer
and the other is
+ an xs:date
).
It is a Individual values are compared as follows: If both values are instances of If both values are instances of This is a change from earlier versions, since In all other cases, values are compared according to the rules
- of the XPath lt
+ of atomic items for which the result of the XPath lt
operator is an error. If the processor is
able to detect the error statically, it xs:string
, xs:anyURI
,
- or xs:untypedAtomic
, they are compared using the appropriate collation,
- as described in the next section.xs:numeric
, they are compared
- using the xs:decimal
values are now compared
- as decimals, rather than being first converted to xs:double
.lt
operator. This will raise an error if the values are
- not comparable (for example, if one is an xs:integer
and the other is
- an xs:date
).