p:split-sequence — The standard p:split-sequence step.
The p:split-sequence
step accepts a sequence of
documents and divides it into two sequences.
Input port | Primary | Sequence | Content types |
---|
source | ✔ | ✔ | any |
Output port | Primary | Sequence | Content types |
---|
matched | ✔ | ✔ | any |
not-matched | | ✔ | any |
Option name | Type | Default value | Required |
---|
test | XPathExpression | | ✔ |
initial-only | xs:boolean | false() | |
Declaration
1 |<p:declare-step xmlns:p="http://www.w3.org/ns/xproc">
| <p:input port="source" content-types="any" sequence="true"/>
| <p:output port="matched"
| sequence="true"
5 | primary="true"
| content-types="any"/>
| <p:output port="not-matched" sequence="true" content-types="any"/>
| <p:option name="initial-only" as="xs:boolean" select="false()"/>
| <p:option xmlns:e="http://www.w3.org/1999/XSL/Spec/ElementSyntax"
10 | name="test"
| required="true"
| as="xs:string"
| e:type="XPathExpression"/>
|</p:declare-step>
Errors
Code | Description |
---|
err:XC0150 | It is a
dynamic error (err:XC0150 ) if evaluating the XPath expression
in option test on a context document results
in an error. |