Name

p:set-properties — The standard p:set-properties step.

Synopsis

The p:set-properties step sets document properties on the source document.

Input portPrimarySequenceContent types
source✔  any 
Output portPrimarySequenceContent types
result✔  any 
Option nameTypeDefault valueRequired
propertiesmap(xs:QName,item()*) ✔ 
mergexs:booleantrue() 
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"/>
  |   <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
CodeDescription
err:XC0069It is a dynamic error (err:XC0069) if the properties map contains a key equal to the string “content-type”.
err:XD0064It is a dynamic error (err:XD0064) if the base URI is not both absolute and valid according to RFC 3986.
err:XD0070It 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 defined in the XProc 3.0: Standard Step Library. It is also described on XProcRef.org.