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