Appendix AXProc Functions

XML Calabash supports the standard XProc extension functions: p:document-properties, p:document-property, p:function-library-importable, p:iteration-position, p:iteration-size, p:lookup-uri, p:step-available, p:system-property, p:urify, p:version-available, and p:xpath-version-available.

Implementation specific details about selected functions follow.

A.1System Properties

XML Calabash supports the following property name:

p:episode

Returns a string of the form E-UUID. The string is unique for each pipeline.

p:locale

Returns the default JVM locale. Underscores in the JVM locale are replaced by hyphens for compatiblity with XML language identifiers.

p:product-name

Returns “XML Calabash”.

p:product-version

Returns “3.0.0-alpha14”.

p:vendor

Returns “Norm Tovey-Walsh”.

p:vendor-uri

Returns “https://xmlcalabash.com/”.

p:version

Returns “3.0 3.1”.

p:xpath-version

Returns “3.1”.

p:psvi-supported

Returns true if the processor was created using a Saxon configuration that supports schema validation.

XML Calabash also supports several additional properties:

cx:saxon-version

Returns the version of Saxon that XML Calabash is using.

cx:saxon-edition

Returns the edition of Saxon that XML Calabash is using.

cx:product-build

Returns the product build identifier, for example “d99cd48.191.08091a”.

A.2Function library importable

The p:function-library-importable function reports whether or not function libraries of a particular type can be imported.

XML Calabash can import XSLT and XQuery function libraries. Importing function libraries requires Saxon EE.