p:sleep — The standard p:sleep step.
The p:sleep step introduces a delay.
| Input port | Primary | Sequence | Content types |
|---|
| source | ✔ | ✔ | any |
| Output port | Primary | Sequence | Content types |
|---|
| result | ✔ | ✔ | any |
| Option name | Type | Required |
|---|
| duration | xs:string | ✔ |
Declaration
1 |<p:declare-step xmlns:p="http://www.w3.org/ns/xproc" type="p:sleep">
| <p:input port="source" sequence="true" content-types="any"/>
| <p:output port="result" sequence="true" content-types="any"/>
| <p:option name="duration" as="xs:string" required="true"/>
5 |</p:declare-step>
Errors
| Code | Description |
|---|
err:XD0036 | It is a dynamic error (err:XD0036) if the
specified duration is not a positive number or a valid
xs:dayTimeDuration. |