p:xquery — The standard p:xquery step.
The p:xquery
step applies an
XQuery query to the sequence of documents
provided on the source port.
Input port | Primary | Sequence | Content types |
---|
source | ✔ | ✔ | any |
query | | | text xml |
Output port | Primary | Sequence | Content types |
---|
result | ✔ | ✔ | any |
Option name | Type | Default value |
---|
parameters | map(xs:QName,item()*)? | () |
version | xs:string? | () |
Declaration
1 |<p:declare-step xmlns:p="http://www.w3.org/ns/xproc">
| <p:input port="source"
| content-types="any"
| sequence="true"
5 | primary="true"/>
| <p:input port="query" content-types="text xml"/>
| <p:output port="result" sequence="true" content-types="any"/>
| <p:option name="parameters" as="map(xs:QName,item()*)?"/>
| <p:option name="version" as="xs:string?"/>
10 |</p:declare-step>
Errors
Code | Description |
---|
err:XC0009 | It is a
dynamic error (err:XC0009 ) if the specified XQuery version
is not available. |
err:XC0101 | It is a dynamic error (err:XC0101 ) if a document
appearing on port source cannot be represented in the XDM version associated with
the chosen XQuery version, e.g. when a JSON document contains a map and XDM 3.0 is used. |
err:XC0102 | It is a dynamic error (err:XC0102 ) if any key in option
parameters is associated to a value that cannot be represented in
the XDM version associated with the chosen XQuery version, e.g. with a map, an array,
or a function when XDM 3.0 is used. |
err:XC0103 | It is a dynamic error (err:XC0103 ) if any error occurs during
XQuery’s static analysis phase. |
err:XC0104 | It is a dynamic error (err:XC0104 )
if any error occurs during XQuery’s dynamic evaluation phase. |
Implementation defined features
Implementation dependent features