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 portPrimarySequenceContent types
source✔  any 
Output portPrimarySequenceContent types
result✔  any 
result-uri  application/xml 
Option nameTypeDefault valueRequired
hrefxs:anyURI ✔ 
serializationmap(xs:QName,item()*)?() 
Declaration
1 |<p:declare-step xmlns:p="http://www.w3.org/ns/xproc">
  |   <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
CodeDescription
err:XC0050It 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 defined in the XProc 3.0: Standard Step Library. It is also described on XProcRef.org.