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 portPrimarySequenceContent types
grammar ✔ text xml 
source✔  any -xml -html 
Output portPrimarySequenceContent types
result✔ ✔ any 
Option nameTypeDefault value
fail-on-errorxs:booleantrue()
parametersmap(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:cx="http://xmlcalabash.com/ns/extensions"
  |                xmlns:p="http://www.w3.org/ns/xproc"
  |                type="cx:markup-blitz">
  |   <p:input port="grammar" sequence="true" content-types="text xml"/>
5 |   <p:input port="source" primary="true" content-types="any -xml -html"/>
  |   <p:output port="result" sequence="true" content-types="any"/>
  |   <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.

Extension attributes

cx:cache-grammar

If the cx:cache-grammar attribute is true, and the grammar has a base URI, then that grammar will be cached. The first time a cached grammar is encountered, it is compiled and saved. Subsequent uses of that cached grammar will reuse the previously compiled version.

See Caching compiled resources for more details.

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:

  • de.bottlecaps:markup-blitz:1.9