Name

p:uuid — The standard p:uuid step.

Synopsis

The p:uuid step generates a UUID and injects it into the source document.

Input portPrimarySequenceContent types
source✔  xml html 
Output portPrimarySequenceContent types
result✔  text xml html 
Option nameTypeDefault value
matchXSLTSelectionPattern'/*'
versionxs:integer?()
Declaration
 1 |<p:declare-step xmlns:p="http://www.w3.org/ns/xproc">
   |   <p:input port="source" primary="true" content-types="xml html"/>
   |   <p:output port="result" content-types="text xml html"/>
   |   <p:option xmlns:e="http://www.w3.org/1999/XSL/Spec/ElementSyntax"
 5 |             name="match"
   |             as="xs:string"
   |             select="'/*'"
   |             e:type="XSLTSelectionPattern"/>
   |   <p:option name="version" as="xs:integer?"/>
10 |</p:declare-step>
Errors
CodeDescription
err:XC0060It is a dynamic error (err:XC0060) if the processor does not support the specified version of the UUID algorithm.
Implementation defined features

Description

The p:uuid step is defined in the XProc 3.0: Standard Step Library. It is also described on XProcRef.org.

Supported versions

If no version is provided, version 4 is assumed.

Only version 4 UUIDs are supported and no parameters are used.

See also

The cx:unique-id step can generate version 1 through 7 UUIDs and other forms of unique identifier.