p:text-head — The standard p:text-head step.
The p:text-head
step returns lines from the beginning of a text document.
Input port | Primary | Sequence | Content types |
---|
source | ✔ | | text |
Output port | Primary | Sequence | Content types |
---|
result | ✔ | | text |
Option name | Type | Required |
---|
count | xs:integer | ✔ |
Declaration
1 |<p:declare-step xmlns:p="http://www.w3.org/ns/xproc">
| <p:input port="source"
| primary="true"
| sequence="false"
5 | content-types="text"/>
| <p:output port="result"
| primary="true"
| sequence="false"
| content-types="text"/>
10 | <p:option name="count" required="true" as="xs:integer"/>
|</p:declare-step>
Errors
The p:text-head
step is defined in the
XProc 3.0:
Standard Step Library. It is also described on
XProcRef.org.