Skip to content

Commit

Permalink
Merge pull request qt4cg#1664 from michaelhkay/1659-option-convention…
Browse files Browse the repository at this point in the history
…s-sequences-as-arrays

1659 option conventions sequences as arrays
  • Loading branch information
michaelhkay authored Dec 19, 2024
2 parents 88241c6 + b62ed65 commit 4eaeba1
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions specifications/xpath-functions-40/src/xpath-functions.xml
Original file line number Diff line number Diff line change
Expand Up @@ -817,12 +817,7 @@ for transition to Proposed Recommendation. </p>'>
for this error are defined in the specification of each function.</p>
<note><p>It is the responsibility of each function implementation to invoke this conversion; it
does not happen automatically as a consequence of the function-calling rules.</p></note></item>
<item><p>In cases where an option is list-valued, by convention the function should accept
either a sequence or an array: but this rule applies only if the specification
of the option explicitly accepts either. Accepting a sequence is convenient if the
value is generated programmatically using an XPath expression; while accepting an array
allows the options to be held in an external file in JSON format, to be read using
a call on the <function>fn:json-doc</function> function.</p></item>

<item><p>In cases where the value of an option is itself a map, the specification
of the particular function must indicate whether or not these rules apply recursively
to the contents of that map.</p></item>
Expand Down

0 comments on commit 4eaeba1

Please sign in to comment.