p:unwrap — The standard p:unwrap step.
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">
| <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. |