Name
p:text-count — The standard p:text-count step.
Synopsis
The p:text-count
step counts the number of lines in a text document and returns a single XML
document containing that number.
Input port | Primary | Sequence | Content types |
---|---|---|---|
source | ✔ | text |
Output port | Primary | Sequence | Content types |
---|---|---|---|
result | ✔ | application/xml |
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="application/xml"/>
10 |</p:declare-step>
Errors
Code | Description |
---|
Description
The p:text-count
step is defined in the
XProc 3.0:
Standard Step Library. It is also described on
XProcRef.org.