Name

p:split-sequence — The standard p:split-sequence step.

Synopsis

The p:split-sequence step accepts a sequence of documents and divides it into two sequences.

Input portPrimarySequenceContent types
source✔ ✔ any 
Output portPrimarySequenceContent types
matched✔ ✔ any 
not-matched ✔ any 
Option nameTypeDefault valueRequired
testXPathExpression ✔ 
initial-onlyxs:booleanfalse() 
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
CodeDescription
err:XC0150It is a dynamic error (err:XC0150) if evaluating the XPath expression in option test on a context document results in an error.

Description

The p:split-sequence step is defined in the XProc 3.0: Standard Step Library. It is also described on XProcRef.org.