Transforms input XML document or file using an XSLT 1.0 stylesheet. The result of the this step is the save file containing the transformed document.
Unlike the load step, if the input XML file starts with a <!DOCTYPE>
pointing to a DTD, then the document loader created by a Transform step will silently skip this DTD.
For clarity, the “transform.
” or “transform2.
” parameter name prefix is omitted here.
However when you’ll pass any of the following parameters to w2x
, please do not forget this prefix. Example: -p transform.cals-tables yes
.
Parameters:
Name | Value | Description |
| An absolute URL or the path of an existing file. No default (required). | Specifies which XSLT 1.0 stylesheet should be used to transform the input XML document. A relative file path is relative to the current working directory. |
| A file path. No default (required). | Specifies the path of the save file. A relative file path is relative to the current working directory. |
Any other parameter is passed to the XSLT stylesheet as an XSLT stylesheet parameter. Which XSLT stylesheet parameters are supported depend on the XSLT stylesheet being used.
Name | Value | Description |
| DocBook version (“ Default: “ | Specifies the version of DocBook. This number is used to specify which Please remember that versions of DocBook older than “ |
| “ Default: “ | If “ If “ Note that |
| “ Default: “ | Specifies the root element name and type of sections of the DocBook document to be generated. |
| “ Default: “ | If “ If “ |
| An element local name. Default: “ | Specifies to which DocBook element, an HTML |
Name | Value | Description |
| “ Default: “ | Ignored if the input book document does not contain any index term. If “ If “ |
| An absolute or relative “ No default (required). | Specifies the URI of the directory which is to contain all generated files. A relative URI is relative to the current working directory. |
| “1”, “2”, “3”, “4”, “5”, “6”, “7”, “8”, “9”. Default: “1”. | Specifies the module structure of the assembly (always acting as a book) to be generated. Example 1: an assembly generated using Example 2: an assembly generated using Example 3: an assembly generated using |
| An absolute or relative “ No default: generate topic files in | Specifies the URI of the subdirectory directory which is to contain all generated DocBook V5.1 topic files. A relative URI is relative to |
Name | Value | Description |
| An XML ID. Default: automatically generated ID. | Specifies the ID of the root topic. |
| “ Default: “ | If “ If “ |
| “ Default: “ | Specifies the type of topics to be created by the XSLT stylesheet. |
| An element local name. Default: “ | Specifies to which DITA element, an HTML |
| A class name. Default: “”. Examples: | Specifies the class name of the XHTML When this parameter is not specified (or is specified as the empty string which is its default value), the following style mapping, created by the w2x-app wizard: -p edit.blocks.convert¬ "p-Shortdesc p class='p-Shortdesc'" ... <xsl:template match="h:p[@class='p-Shortdesc']"> <shortdesc> <xsl:call-template name="processCommonAttributes"/> <xsl:apply-templates/> </shortdesc> </xsl:template> causes DITA After specifying -p transform.shortdesc-class-name¬ p-Shortdesc this issue is fixed and DITA |
Name | Value | Description |
| “ Default: “ | If “ |
| “ Default: “ | If “ If “ |
| A valid XSLT number format (value of attribute Default: “ | When parameter |
| “ Default: “ | If “ If “ |
| “ Default: “ | If “ If “ |
| “ Default: “ | If “ If “ |
Name | Value | Description |
| “ Default: “ | Ignored if the input topic document does not contain any index term. If “ If “ |
| “ Default: “ |
If “ If “ |
| An absolute or relative “ No default (required). | Specifies the URI of the directory which is to contain all generated files. A relative URI is relative to the current working directory. |
| “1”, “2”, “3”, “4”, “5”, “6”, “7”, “8”, “9”. Default: “1”. | Specifies the Example 1: a bookmap generated using Example 2: a bookmap generated using Example 3: a bookmap generated using |
| An absolute or relative “ No default: generate topic files in | Specifies the URI of the subdirectory directory which is to contain all generated topic files. A relative URI is relative to |
| “ No default. See description. | Specifies the type of topics to be created by the This parameter is used to make a difference between a strict task and a general task. In all other cases, this parameter may be omitted. |