Name
p:make-absolute-uris — The standard p:make-absolute-uris step.
Synopsis
The p:make-absolute-uris step makes an element or
attribute's value in the source document an absolute IRI value in the
result document.
| Input port | Primary | Sequence | Content types |
|---|---|---|---|
| source | ✔ | xml html |
| Output port | Primary | Sequence | Content types |
|---|---|---|---|
| result | ✔ | xml html |
| Option name | Type | Default value | Required |
|---|---|---|---|
| match | XSLTSelectionPattern | ✔ | |
| base-uri | xs:anyURI? | () |
Declaration
1 |<p:declare-step xmlns:p="http://www.w3.org/ns/xproc" type="p:make-absolute-uris">
| <p:input port="source" content-types="xml html"/>
| <p:output port="result" content-types="xml html"/>
| <p:option xmlns:e="http://www.w3.org/1999/XSL/Spec/ElementSyntax"
5 | name="match"
| required="true"
| as="xs:string"
| e:type="XSLTSelectionPattern"/>
| <p:option name="base-uri" as="xs:anyURI?"/>
10 |</p:declare-step>Errors
| Code | Description |
|---|---|
err:XC0023 | It is a dynamic error (err:XC0023) if
the pattern matches anything other than element or attribute
nodes. |
err:XD0064 | It is a dynamic
error (err:XD0064) if the base URI is not both absolute and valid according to RFC 3986. |
Implementation dependent features
- If the IRI reference specified by the
base-urioption onp:make-absolute-urisis absent and the input document has no base URI, the results are implementation-dependent.
Description
The p:make-absolute-uris 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:make-absolute-uris step.