Name
cx:markup-blitz — Invisible XML processing with Markup Blitz.
Synopsis
The cx:markup-blitz
step performs Invisible XML processing per
Invisible XML. It transforms a non-XML input into XML by applying
the specified Invisible XML grammar.
Input port | Primary | Sequence | Content types |
---|---|---|---|
grammar | ✔ | text xml | |
source | ✔ | any -xml -html |
Output port | Primary | Sequence | Content types |
---|---|---|---|
result | ✔ | ✔ | any |
Option name | Type | Default value |
---|---|---|
fail-on-error | xs:boolean | true() |
parameters | map(xs:QName, item()*)? | () |
This is an extension step; to use it, your pipeline must include its declaration.
For example, by including the extension library with an import at the top of your
pipeline:
<p:import href="https://xmlcalabash.com/ext/library/markup-blitz.xpl"/>
Declaration
1 |<p:declare-step xmlns:p="http://www.w3.org/ns/xproc">
| <p:input port="grammar" sequence="true" content-types="text xml"/>
| <p:input port="source" primary="true" content-types="any -xml -html"/>
| <p:output port="result" sequence="true" content-types="any"/>
5 | <p:option name="parameters" as="map(xs:QName, item()*)?"/>
| <p:option name="fail-on-error" as="xs:boolean" select="true()"/>
|</p:declare-step>
Description
The cx:markup-blitz
step performs Invisible XML parsing with
Gunther Rademacher’s
Markup Blitz.
This step is the same as the p:invisible-xml
step, but it always uses
the Markup Blitz processor. It is also possible to configure XML Calabash to use
Markup Blitz for the p:invisible-xml
step.
Dependencies
This step is included in the XML Calabash application. If you are getting XML Calabash from Maven, you will also need to include the extension dependency:
com.xmlcalabash:markup-blitz:3.0.0-alpha23
The following third-party dependencies will also be included transitively:
de.bottlecaps:markup-blitz:1.6