ITADN

Add options record as second parameter to `fn:collection` and `fn:uri-collection`

#2600Openline-o 创建于 2026-04-29
L
line-ocommented
Add a new function signatures ```xquery fn:collection($source as xs:string := (), $options as map(*)? (:default-on-empty:) ) as item()* ``` ```xquery fn:uri-collection($source as xs:string := (), $options as map(*)? (:default-on-empty:) ) as xs:string* ``` similar to the newly added functions in XQuery 4.0 adding options parameters to existing functions like [`fn:doc#2`](https://qt4cg.org/specifications/xpath-functions-40/Overview.html#func-doc). For collection and uri-collection I see the following: - recurse: traverse collection trees down into its subcollections - stable: this is already vaguely mentioned in the spec and would benefit from a clearer specification - type: (aka media-type or content-type) while the allowed values will be implementation defined the key should be standardised This is a follow-up to https://github.com/qt4cg/qtspecs/issues/1021
5 条评论