ext:pygmentize-available

ext:pygmentize-available — Returns true if pygmentize is available.

Function:
{http://docbook.org/extensions/xslt}pygmentize-available#0

Synopsis

ext:pygmentize-available() as xs:boolean

Description

In order to run Pygments on listings, the ext:pygmentize() extension function must be available and the pygmentize (pygmentize.exe on Windows) command must be available on the host system.

If it’s inconvenient to put pygmentize on the system path, you can specify an explicit location with the Java system property org.docbook.xsltng.extensions.pygmentize. The value of the property should be the fully qualified path name of the executable.

This function returns true if it successfully finds the pygmentize command on the system path.