Exselt commandline options

This page describes the commandline options and syntax that Exselt supports. They are ordered by importance, not alphabetically.

Commandline options are typically followed by a colon and a value, unless otherwise noted. The value can be an XPath expression or just a string. When you need to use spaces inside a value you can use quotation marks around the value.

  • -xsl defines the XSL source document
  • -xml defines the XML Source documentit`
  • -o defines the output document if serialization is requested. If absent, the output, if any, is typically serialized to the stdout. If you don't want that, you can use > nul on a Windows commandline shell, which must be the last thing on the line.
  • -it defines the initial template, if present, -if and -im must be absent. If this argument is absent, and -if and -im are also absent, the default named template used is xsl:initial-template which is an implementation-independent way of defining the entry point of an XSLT stylesheet or package.
  • -im defines the initial mode, if present, the -it and -if must be absent. If this parameter is absent and -if and -it are also absent then whether or not the entry point (a named template with the name attribute set to xsl:initial-template) is triggered, or the default initial mode is triggered depends on whether the -xml parameter is present. If present, the initial mode is set to the empty mode.
  • -if defines the initial function, if present,-it and -im must be absent. If this parameter is present, the default for the result tree is build-tree="no" and item-separator=" ". By default, Exselt will serialize the result using these parameters and it will honor the default xsl:output declaration, if present (this is not a requirement from the XSLT 3.0 standard, but it isn't disallowed either, we provide this as a convenience to users).