Skip to content

Commit

Permalink
Merge pull request #1502 from ChristianGruen/1458
Browse files Browse the repository at this point in the history
1458 Arguments that have a default value but don't accept ()
  • Loading branch information
ndw authored Oct 22, 2024
2 parents 420fb4e + 25ada83 commit d01936f
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions specifications/xpath-functions-40/src/function-catalog.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19376,7 +19376,7 @@ serialize(
<fos:signatures>
<fos:proto name="parse-html" return-type="document-node(element(*:html))?">
<fos:arg name="html" type="(xs:string | xs:hexBinary | xs:base64Binary)?"/>
<fos:arg name="options" type="map(*)"
<fos:arg name="options" type="map(*)?"
default="{
&quot;method&quot;: &quot;html&quot;,
&quot;html-version&quot;: 5
Expand Down Expand Up @@ -22420,7 +22420,7 @@ return fold-left($maps, {},
type="record(key as xs:anyAtomicType, value as item()*)*"
usage="inspection"
example="{ 'key':'n','value':false() }, { 'key':'y','value':true() }"/>
<fos:arg name="combine" type="fn(item()*, item()*) as item()*" usage="inspection" default="fn:op(',')"/>
<fos:arg name="combine" type="(fn(item()*, item()*) as item()*)?" usage="inspection" default="fn:op(',')"/>
</fos:proto>
</fos:signatures>
<fos:properties>
Expand Down Expand Up @@ -22934,7 +22934,7 @@ return map:keys-where($birthdays, fn($name, $date) {
<fos:proto name="get" return-type="item()*">
<fos:arg name="map" type="map(*)" usage="inspection"/>
<fos:arg name="key" type="xs:anyAtomicType"/>
<fos:arg name="fallback" type="fn(xs:anyAtomicType) as item()*" default="void#1"/>
<fos:arg name="fallback" type="(fn(xs:anyAtomicType) as item()*)?" default="void#1"/>
</fos:proto>
</fos:signatures>
<fos:properties>
Expand Down Expand Up @@ -23665,9 +23665,9 @@ else map:put($map, $key, $action(()))
<fos:signatures>
<fos:proto name="build" return-type="map(*)">
<fos:arg name="input" type="item()*"/>
<fos:arg name="keys" type="fn(item(), xs:integer) as xs:anyAtomicType*" default="fn:identity#1"/>
<fos:arg name="value" type="fn(item(), xs:integer) as item()*" default="fn:identity#1"/>
<fos:arg name="combine" type="fn(item()*, item()*) as item()*" default="fn:op(',')"/>
<fos:arg name="keys" type="(fn(item(), xs:integer) as xs:anyAtomicType*)?" default="fn:identity#1"/>
<fos:arg name="value" type="(fn(item(), xs:integer) as item()*)?" default="fn:identity#1"/>
<fos:arg name="combine" type="(fn(item()*, item()*) as item()*)?" default="fn:op(',')"/>
</fos:proto>
</fos:signatures>
<fos:properties>
Expand Down Expand Up @@ -26866,7 +26866,7 @@ return <csv xmlns="http://www.w3.org/2005/xpath-functions"> {
<fos:proto name="get" return-type="item()*">
<fos:arg name="array" type="array(*)" usage="inspection"/>
<fos:arg name="position" type="xs:integer"/>
<fos:arg name="fallback" type="fn(xs:integer) as item()*"
<fos:arg name="fallback" type="(fn(xs:integer) as item()*)?"
default="fn($i) { fn:error(fn:QName('', 'FOAY0001')) }"/>
</fos:proto>
</fos:signatures>
Expand Down Expand Up @@ -28277,7 +28277,7 @@ array:for-each-pair(
<fos:signatures>
<fos:proto name="build" return-type="array(*)">
<fos:arg name="input" type="item()*" usage="inspection"/>
<fos:arg name="action" type="fn(item(), xs:integer) as item()*" usage="inspection" default="fn:identity#1"/>
<fos:arg name="action" type="(fn(item(), xs:integer) as item()*)?" usage="inspection" default="fn:identity#1"/>
</fos:proto>
</fos:signatures>
<fos:properties>
Expand Down Expand Up @@ -30243,7 +30243,7 @@ return every($dl/*, fn($elem, $pos) {
<fos:proto name="highest" return-type="item()*">
<fos:arg name="input" type="item()*" usage="navigation"/>
<fos:arg name="collation" type="xs:string?" usage="absorption" default="fn:default-collation()"/>
<fos:arg name="key" type="fn(item()) as xs:anyAtomicType*" usage="inspection" default="fn:data#1"/>
<fos:arg name="key" type="(fn(item()) as xs:anyAtomicType*)?" usage="inspection" default="fn:data#1"/>
</fos:proto>
</fos:signatures>
<fos:properties>
Expand Down Expand Up @@ -30600,7 +30600,7 @@ return $it
<fos:proto name="lowest" return-type="item()*">
<fos:arg name="input" type="item()*" usage="navigation"/>
<fos:arg name="collation" type="xs:string?" usage="absorption" default="fn:default-collation()"/>
<fos:arg name="key" type="fn(item()) as xs:anyAtomicType*" usage="inspection" default="fn:data#1"/>
<fos:arg name="key" type="(fn(item()) as xs:anyAtomicType*)?" usage="inspection" default="fn:data#1"/>
</fos:proto>
</fos:signatures>
<fos:properties>
Expand Down

0 comments on commit d01936f

Please sign in to comment.