Name
p:pack — The standard p:pack step.
Synopsis
The p:pack
step merges two document sequences in a pair-wise
fashion.
Input port | Primary | Sequence | Content types |
---|---|---|---|
source | ✔ | ✔ | text xml html |
alternate | ✔ | text xml html |
Output port | Primary | Sequence | Content types |
---|---|---|---|
result | ✔ | ✔ | application/xml |
Option name | Type | Default value | Required |
---|---|---|---|
wrapper | xs:QName | ✔ | |
attributes | map(xs:QName, xs:anyAtomicType)? | () |
Declaration
1 |<p:declare-step xmlns:p="http://www.w3.org/ns/xproc">
| <p:input port="source"
| content-types="text xml html"
| sequence="true"
5 | primary="true"/>
| <p:input port="alternate" sequence="true" content-types="text xml html"/>
| <p:output port="result" sequence="true" content-types="application/xml"/>
| <p:option name="wrapper" required="true" as="xs:QName"/>
| <p:option name="attributes" as="map(xs:QName, xs:anyAtomicType)?"/>
10 |</p:declare-step>
Description
The p:pack
step is a
standard XProc 3.0 step.
It is also described on XProcRef.org.