Name
p:unwrap — The standard p:unwrap step.
Synopsis
The p:unwrap step replaces matched elements with their
children.
| 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 | '/*' |
Declaration
1 |<p:declare-step xmlns:p="http://www.w3.org/ns/xproc" type="p:unwrap">
| <p:input port="source" 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:declare-step>Errors
| Code | Description |
|---|---|
err:XC0023 | It is a dynamic
error (err:XC0023) if that pattern matches anything other than the document node
or element nodes. |
Description
The p:unwrap 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:unwrap step.