p:insert — The standard p:insert step.
The p:insert
step inserts the
insertion
port's document into the source
port's document relative to the matching elements in the
source
port's document.
Input port | Primary | Sequence | Content types |
---|
source | ✔ | | xml html |
insertion | | ✔ | xml html |
Output port | Primary | Sequence | Content types |
---|
result | ✔ | | xml html |
Option name | Type | Values | Default value |
---|
match | XSLTSelectionPattern | | '/*' |
position | xs:string | ('first-child','last-child','before','after') | 'after' |
Declaration
1 |<p:declare-step xmlns:p="http://www.w3.org/ns/xproc">
| <p:input port="source" primary="true" content-types="xml html"/>
| <p:input port="insertion" sequence="true" content-types="xml html"/>
| <p:output port="result" content-types="xml html"/>
5 | <p:option xmlns:e="http://www.w3.org/1999/XSL/Spec/ElementSyntax"
| name="match"
| as="xs:string"
| select="'/*'"
| e:type="XSLTSelectionPattern"/>
10 | <p:option name="position"
| values="('first-child','last-child','before','after')"
| select="'after'"/>
|</p:declare-step>
Errors