Name
p:store — The standard p:store step.
Synopsis
The p:store step stores (a possibly serialized
version of) its input to a URI. It outputs a reference to the location
of the stored document on the result-uri port.
Aside from these side-effects, it behaves like a p:identity
step, copying its input to the result port.
| Input port | Primary | Sequence | Content types |
|---|---|---|---|
| source | ✔ | any |
| Output port | Primary | Sequence | Content types |
|---|---|---|---|
| result | ✔ | any | |
| result-uri | application/xml |
| Option name | Type | Default value | Required |
|---|---|---|---|
| href | xs:anyURI | ✔ | |
| serialization | map(xs:QName,item()*)? | () |
Declaration
1 |<p:declare-step xmlns:p="http://www.w3.org/ns/xproc" type="p:store">
| <p:input port="source" content-types="any"/>
| <p:output port="result" content-types="any" primary="true"/>
| <p:output port="result-uri" content-types="application/xml"/>
5 | <p:option name="href" required="true" as="xs:anyURI"/>
| <p:option name="serialization" as="map(xs:QName,item()*)?"/>
|</p:declare-step>Errors
| Code | Description |
|---|---|
err:XC0050 | It is a dynamic error (err:XC0050)
if the URI scheme is not supported or the step cannot store to the
specified location. |
Description
The p:store step is a
standard XProc 3.0 step.
It is also described on XProcRef.org.
Additional examples
The XProc test suite contains examples of the p:store step.