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 portPrimarySequenceContent types
source✔  xml html 
Output portPrimarySequenceContent types
result✔ ✔ text xml html json 
Option nameTypeRequired
selectXPathExpression✔ 
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
CodeDescription

Description

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