Name
p:filter — The standard p:filter step.
Synopsis
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>
Description
The p:filter
step is a
standard XProc 3.0 step.
It is also described on XProcRef.org.