Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1739 drop references to ordering mode in the static context #1741

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 10 additions & 31 deletions specifications/xpath-functions-40/src/function-catalog.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14409,25 +14409,16 @@ return exists($break)
required.</p>


<p>If ordering mode (in the static context) is <code>ordered</code> then:</p>
<p>The ordering of the result is as follows:</p>

<ulist>
<item><p>For any set of values that compare equal, the one that is
returned is the one that appears first in <code>$values</code>.</p></item>
<item><p>The items that are returned appear in the order in which they
occur within <code>$values</code>.</p></item>
<item><p>The items that are returned appear in the order of their first
appearance within <code>$values</code>.</p></item>
</ulist>

<p>By contrast, if ordering mode is <code>unordered</code> then:</p>

<ulist>
<item><p>For any set of values that compare equal, the one that is
returned is <termref def="implementation-dependent"/>.</p></item>
<item><p>The order in which the sequence of values is returned is <termref
def="implementation-dependent"/>.</p></item>
</ulist>






Expand All @@ -14448,14 +14439,13 @@ return exists($break)
dynamic context for the purpose of comparison. Note that <code>xs:dateTime</code>,
<code>xs:date</code> or <code>xs:time</code> values can compare equal even if their
timezones are different.</p>
<ednote><edtext>Ordering mode has been dropped.</edtext></ednote>

</fos:notes>
<fos:examples>
<fos:example>
<fos:test>
<fos:expression>distinct-values((1, 2.0, 3, 2))</fos:expression>
<fos:result>1, 2.0, 3</fos:result>
<fos:postamble>Assuming ordering mode is <code>ordered</code>.</fos:postamble>
</fos:test>
</fos:example>
<fos:example>
Expand All @@ -14466,7 +14456,6 @@ return exists($break)
xs:untypedAtomic("plum")
))</eg></fos:expression>
<fos:result>xs:untypedAtomic("cherry"), xs:untypedAtomic("plum")</fos:result>
<fos:postamble>Assuming ordering mode is <code>ordered</code>.</fos:postamble>
</fos:test>
</fos:example>
</fos:examples>
Expand Down Expand Up @@ -14505,23 +14494,16 @@ return exists($break)
selected according to the rules in <specref ref="choosing-a-collation"/>.</p>
<p>From each resulting set of values that are considered equal, one value will be
returned if the set contains more than one value.</p>
<p>If ordering mode (in the static context) is <code>ordered</code> then:</p>
<p>The ordering of the result is as follows:</p>

<ulist>
<item><p>For any set of values that compare equal, the one that is
returned is the one that appears first in <code>$values</code>.</p></item>
<item><p>The items that are returned appear in the order in which they
occur within <code>$values</code>.</p></item>
<item><p>The items that are returned appear in the order of their first
appearance within <code>$values</code>.</p></item>
</ulist>

<p>By contrast, if ordering mode is <code>unordered</code> then:</p>

<ulist>
<item><p>For any set of values that compare equal, the one that is
returned is <termref def="implementation-dependent"/>.</p></item>
<item><p>The order in which the sequence of values is returned is <termref
def="implementation-dependent"/>.</p></item>
</ulist>

</fos:rules>

<fos:notes>
Expand All @@ -14545,8 +14527,6 @@ return $value
<fos:test>
<fos:expression>duplicate-values((1, 2, 3, 1.0, 1e0))</fos:expression>
<fos:result>1</fos:result>
<fos:postamble>If ordering mode is <code>ordered</code> the result will be
the <code>xs:integer</code> value 1.</fos:postamble>
</fos:test>
</fos:example>
<fos:example>
Expand Down Expand Up @@ -20873,8 +20853,7 @@ return map:of-pairs($ann)
<p>The function calls <code>$action($item, $pos)</code> for each item in <code>$input</code>,
where <code>$item</code> is the item in question and <code>$pos</code> is its 1-based
ordinal position in <code>$input</code>. The final result is the sequence concatenation
of the result of these calls, preserving order
(provided that ordering mode is <code>ordered</code>).
of the result of these calls, preserving order.
</p>
</fos:rules>
<fos:equivalent style="xpath-expression">
Expand Down