Name
p:set-properties — The standard p:set-properties step.
Synopsis
The p:set-properties step sets document
properties on the source document.
| Input port | Primary | Sequence | Content types |
|---|---|---|---|
| source | ✔ | any |
| Output port | Primary | Sequence | Content types |
|---|---|---|---|
| result | ✔ | any |
| Option name | Type | Default value | Required |
|---|---|---|---|
| properties | map(xs:QName,item()*) | ✔ | |
| merge | xs:boolean | true() |
Declaration
1 |<p:declare-step xmlns:p="http://www.w3.org/ns/xproc" type="p:set-properties">
| <p:input port="source" content-types="any"/>
| <p:output port="result" content-types="any"/>
| <p:option name="properties" required="true" as="map(xs:QName,item()*)"/>
5 | <p:option name="merge" select="true()" as="xs:boolean"/>
|</p:declare-step>Errors
| Code | Description |
|---|---|
err:XC0069 | It is a dynamic
error (err:XC0069) if the properties map contains
a key equal to the string “content-type”. |
err:XD0064 | It is a dynamic
error (err:XD0064) if the base URI is not both absolute and valid according
to RFC 3986. |
err:XD0070 | It is a dynamic error (err:XD0070) if a value is
assigned to the serialization document property that cannot be converted
into map(xs:QName, item()*) according
to the rules in section “QName handling” of XProc 3.1. |
Description
The p:set-properties 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:set-properties step.