Name
p:uuid — The standard p:uuid step.
Synopsis
The p:uuid step generates a
UUID and injects it into
the source document.
| Input port | Primary | Sequence | Content types |
|---|---|---|---|
| source | ✔ | xml html |
| Output port | Primary | Sequence | Content types |
|---|---|---|---|
| result | ✔ | text xml html |
| Option name | Type | Default value |
|---|---|---|
| match | XSLTSelectionPattern | '/*' |
| version | xs: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
| Code | Description |
|---|---|
err:XC0060 | It is a dynamic
error (err:XC0060) if the processor does not support the specified
version of the UUID algorithm. |
Implementation defined features
- If the
versionis not specified, the version of UUID computed is implementation-defined. - Support for other versions of UUID is implementation-defined.
- The names and values of
parameterstop:uuidare implementation-defined.
Description
The p:uuid step is a
standard XProc 3.0 step.
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.