Name

p:unwrap — The standard p:unwrap step.

Synopsis

The p:unwrap step replaces matched elements with their children.

Input portPrimarySequenceContent types
source✔  xml html 
Output portPrimarySequenceContent types
result✔  text xml html 
Option nameTypeDefault value
matchXSLTSelectionPattern'/*'
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
CodeDescription
err:XC0023It 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 defined in the XProc 3.0: Standard Step Library. It is also described on XProcRef.org.