XML
Learn how Vale handles XML content.
XML is supported through the external program xsltproc. To install, see:
Chocolatey (Windows):
choco install xsltproc.Homebrew (macOS):
brew install libxslt.Debian/Ubuntu/apt-based systems:
apt-get install xsltproc.
You’ll need to ensure that the xsltproc executable is available in your $PATH.
The supported extensions are .xml and .xsd.
You also need to provide a version 1.0 XSL Transformation (XSLT) for converting to HTML:
[*.xml]
Transform = docbook-xsl-snapshot/html/docbook.xslA stylesheet is configuration that runs as a program, so Vale runs xsltproc with --nonet, --nowrite, and --nomkdir: the stylesheet can't fetch over the network, write a file, or create a directory, as a document under the AsciiDoc converter's safe mode can't include a file from outside the project. A stylesheet that tries is refused, and the run reports it as an error for that file.
Once converted, Vale will follow the same rules as it does for HTML.
Last updated