@@ -14409,25 +14409,16 @@ return exists($break)
14409
14409
required.</p>
14410
14410
14411
14411
14412
- <p>If ordering mode (in the static context) is <code>ordered</code> then :</p>
14412
+ <p>The ordering of the result is as follows :</p>
14413
14413
14414
14414
<ulist>
14415
14415
<item><p>For any set of values that compare equal, the one that is
14416
14416
returned is the one that appears first in <code>$values</code>.</p></item>
14417
- <item><p>The items that are returned appear in the order in which they
14418
- occur within <code>$values</code>.</p></item>
14417
+ <item><p>The items that are returned appear in the order of their first
14418
+ appearance within <code>$values</code>.</p></item>
14419
14419
</ulist>
14420
14420
14421
- <p>By contrast, if ordering mode is <code>unordered</code> then:</p>
14422
-
14423
- <ulist>
14424
- <item><p>For any set of values that compare equal, the one that is
14425
- returned is <termref def="implementation-dependent"/>.</p></item>
14426
- <item><p>The order in which the sequence of values is returned is <termref
14427
- def="implementation-dependent"/>.</p></item>
14428
- </ulist>
14429
-
14430
-
14421
+
14431
14422
14432
14423
14433
14424
@@ -14448,14 +14439,13 @@ return exists($break)
14448
14439
dynamic context for the purpose of comparison. Note that <code>xs:dateTime</code>,
14449
14440
<code>xs:date</code> or <code>xs:time</code> values can compare equal even if their
14450
14441
timezones are different.</p>
14451
- <ednote><edtext>Ordering mode has been dropped.</edtext></ednote>
14442
+
14452
14443
</fos:notes>
14453
14444
<fos:examples>
14454
14445
<fos:example>
14455
14446
<fos:test>
14456
14447
<fos:expression>distinct-values((1, 2.0, 3, 2))</fos:expression>
14457
14448
<fos:result>1, 2.0, 3</fos:result>
14458
- <fos:postamble>Assuming ordering mode is <code>ordered</code>.</fos:postamble>
14459
14449
</fos:test>
14460
14450
</fos:example>
14461
14451
<fos:example>
@@ -14466,7 +14456,6 @@ return exists($break)
14466
14456
xs:untypedAtomic("plum")
14467
14457
))</eg></fos:expression>
14468
14458
<fos:result>xs:untypedAtomic("cherry"), xs:untypedAtomic("plum")</fos:result>
14469
- <fos:postamble>Assuming ordering mode is <code>ordered</code>.</fos:postamble>
14470
14459
</fos:test>
14471
14460
</fos:example>
14472
14461
</fos:examples>
@@ -14505,23 +14494,16 @@ return exists($break)
14505
14494
selected according to the rules in <specref ref="choosing-a-collation"/>.</p>
14506
14495
<p>From each resulting set of values that are considered equal, one value will be
14507
14496
returned if the set contains more than one value.</p>
14508
- <p>If ordering mode (in the static context) is <code>ordered</code> then :</p>
14497
+ <p>The ordering of the result is as follows :</p>
14509
14498
14510
14499
<ulist>
14511
14500
<item><p>For any set of values that compare equal, the one that is
14512
14501
returned is the one that appears first in <code>$values</code>.</p></item>
14513
- <item><p>The items that are returned appear in the order in which they
14514
- occur within <code>$values</code>.</p></item>
14502
+ <item><p>The items that are returned appear in the order of their first
14503
+ appearance within <code>$values</code>.</p></item>
14515
14504
</ulist>
14516
14505
14517
- <p>By contrast, if ordering mode is <code>unordered</code> then:</p>
14518
-
14519
- <ulist>
14520
- <item><p>For any set of values that compare equal, the one that is
14521
- returned is <termref def="implementation-dependent"/>.</p></item>
14522
- <item><p>The order in which the sequence of values is returned is <termref
14523
- def="implementation-dependent"/>.</p></item>
14524
- </ulist>
14506
+
14525
14507
</fos:rules>
14526
14508
14527
14509
<fos:notes>
@@ -14545,8 +14527,6 @@ return $value
14545
14527
<fos:test>
14546
14528
<fos:expression>duplicate-values((1, 2, 3, 1.0, 1e0))</fos:expression>
14547
14529
<fos:result>1</fos:result>
14548
- <fos:postamble>If ordering mode is <code>ordered</code> the result will be
14549
- the <code>xs:integer</code> value 1.</fos:postamble>
14550
14530
</fos:test>
14551
14531
</fos:example>
14552
14532
<fos:example>
@@ -20873,8 +20853,7 @@ return map:of-pairs($ann)
20873
20853
<p>The function calls <code>$action($item, $pos)</code> for each item in <code>$input</code>,
20874
20854
where <code>$item</code> is the item in question and <code>$pos</code> is its 1-based
20875
20855
ordinal position in <code>$input</code>. The final result is the sequence concatenation
20876
- of the result of these calls, preserving order
20877
- (provided that ordering mode is <code>ordered</code>).
20856
+ of the result of these calls, preserving order.
20878
20857
</p>
20879
20858
</fos:rules>
20880
20859
<fos:equivalent style="xpath-expression">
0 commit comments