12. Extension

There are four ways to specify extensions:

Command line (long): --extension=extname
Command line (short): -Xextname
Java system properties: com.xmlcalabash.extname=value
XML configuration: <cc:extension name="extensions-name" value="value"/>
Ant task: <calabash allowTextResults="Ant boolean" generalValues="Ant boolean" xPointerOnText="Ant boolean" transparentJSON="Ant boolean" jsonFlavor="flavor" useXslt10="Ant boolean" />

Valid extension names are “allow-text-results”, “general-values”, “html-serializer”, “json-flavor”, “transparent-json”, “use-xslt-10”, and “xpointer-on-text”.

Note

The json-flavor extension uses a special command-line syntax: --extension=json-flavor=flavor or -Xjson-flavor=flavor.