Skip to content

Commit 5158c18

Browse files
authored
Merge pull request #1741 from michaelhkay/1739-drop-refs-to-ordering-mode
1739 drop references to ordering mode in the static context
2 parents 4940b62 + 086a993 commit 5158c18

File tree

1 file changed

+10
-31
lines changed

1 file changed

+10
-31
lines changed

specifications/xpath-functions-40/src/function-catalog.xml

Lines changed: 10 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -14409,25 +14409,16 @@ return exists($break)
1440914409
required.</p>
1441014410

1441114411

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

1441414414
<ulist>
1441514415
<item><p>For any set of values that compare equal, the one that is
1441614416
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>
1441914419
</ulist>
1442014420

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+
1443114422

1443214423

1443314424

@@ -14448,14 +14439,13 @@ return exists($break)
1444814439
dynamic context for the purpose of comparison. Note that <code>xs:dateTime</code>,
1444914440
<code>xs:date</code> or <code>xs:time</code> values can compare equal even if their
1445014441
timezones are different.</p>
14451-
<ednote><edtext>Ordering mode has been dropped.</edtext></ednote>
14442+
1445214443
</fos:notes>
1445314444
<fos:examples>
1445414445
<fos:example>
1445514446
<fos:test>
1445614447
<fos:expression>distinct-values((1, 2.0, 3, 2))</fos:expression>
1445714448
<fos:result>1, 2.0, 3</fos:result>
14458-
<fos:postamble>Assuming ordering mode is <code>ordered</code>.</fos:postamble>
1445914449
</fos:test>
1446014450
</fos:example>
1446114451
<fos:example>
@@ -14466,7 +14456,6 @@ return exists($break)
1446614456
xs:untypedAtomic("plum")
1446714457
))</eg></fos:expression>
1446814458
<fos:result>xs:untypedAtomic("cherry"), xs:untypedAtomic("plum")</fos:result>
14469-
<fos:postamble>Assuming ordering mode is <code>ordered</code>.</fos:postamble>
1447014459
</fos:test>
1447114460
</fos:example>
1447214461
</fos:examples>
@@ -14505,23 +14494,16 @@ return exists($break)
1450514494
selected according to the rules in <specref ref="choosing-a-collation"/>.</p>
1450614495
<p>From each resulting set of values that are considered equal, one value will be
1450714496
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>
1450914498

1451014499
<ulist>
1451114500
<item><p>For any set of values that compare equal, the one that is
1451214501
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>
1451514504
</ulist>
1451614505

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+
1452514507
</fos:rules>
1452614508

1452714509
<fos:notes>
@@ -14545,8 +14527,6 @@ return $value
1454514527
<fos:test>
1454614528
<fos:expression>duplicate-values((1, 2, 3, 1.0, 1e0))</fos:expression>
1454714529
<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>
1455014530
</fos:test>
1455114531
</fos:example>
1455214532
<fos:example>
@@ -20873,8 +20853,7 @@ return map:of-pairs($ann)
2087320853
<p>The function calls <code>$action($item, $pos)</code> for each item in <code>$input</code>,
2087420854
where <code>$item</code> is the item in question and <code>$pos</code> is its 1-based
2087520855
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.
2087820857
</p>
2087920858
</fos:rules>
2088020859
<fos:equivalent style="xpath-expression">

0 commit comments

Comments
 (0)