p:filter — The standard p:filter step.
The p:filter
step selects portions of the source document
based on a (possibly dynamically constructed) XPath select expression.
Input port | Primary | Sequence | Content types |
---|
source | ✔ | | xml html |
Output port | Primary | Sequence | Content types |
---|
result | ✔ | ✔ | text xml html json |
Option name | Type | Required |
---|
select | XPathExpression | ✔ |
Declaration
1 |<p:declare-step xmlns:p="http://www.w3.org/ns/xproc">
| <p:input port="source" content-types="xml html"/>
| <p:output port="result" sequence="true" content-types="text xml html json"/>
| <p:option xmlns:e="http://www.w3.org/1999/XSL/Spec/ElementSyntax"
5 | name="select"
| required="true"
| as="xs:string"
| e:type="XPathExpression"/>
|</p:declare-step>
Errors