media types into the appropriate H·T·M·L elements, and deletes
`<html:style>` elements from the body of the document and moves
them to the head.
+ This conversion happens during the application phase, after the main
+ transformation.
- **`transforms/metadata.xslt`:**
Provides basic `<html:head>` metadata.
- **`THISREV`:**
The value of the `THISREV` variable (if present).
-The following params are only available in transforms :—
-
-- **`PATH`:**
- The path of the output file (within `DESTDIR`).
-
## Output Wrapping
Provided at least one toplevel result element belongs to the H·T·M·L
`<html:head>` of the output.
The document being matched will contain the full transform result
- prior to wrapping as well as an `<xslt:include>` element (with an
- `@书社:id` attribute) for each transform which has a valid
- `<书社:id>`.
+ prior to wrapping as well as an `<书社:id>` element for each
+ transform.
The latter elements can be matched to enable transforms to provide
content _without_ matching any elements in the result; for example,
the following transform adds a link to a stylesheet to the
version="1.0"
>
<书社:id>example:add-stylesheet-links.xslt</书社:id>
- <template match="xslt:include[@书社:id='example:add-stylesheet-links.xslt']" mode="书社:metadata">
+ <template match="书社:id[string(.)='example:add-stylesheet-links.xslt']" mode="书社:metadata">
<html:link rel="stylesheet" type="text/css" href="/style.css"/>
</template>
</transform>