X-Git-Url: https://git.ladys.computer/Shushe/blobdiff_plain/587bd5a36e079e0509296ced479488a923663a8e..884130a52be6bfe21e524498385cb6486495b383:/README.markdown diff --git a/README.markdown b/README.markdown index 013e3ed..8ae0a04 100644 --- a/README.markdown +++ b/README.markdown @@ -307,6 +307,15 @@ The following additional variables can be used to control the behaviour The value of this variable is appended to `PARSERS` by default, to enable additional parsers without overriding the existing ones. +- **`PARSERLIBS`:** + A white·space‐separated list of parser dependencies (default: + `$(THISDIR)/lib/split.xslt`). + +- **`EXTRAPARSERLIBS`:** + The value of this variable is appended to `PARSERLIBS` by default, to + enable additional parser dependencies without overriding the + existing ones. + - **`TRANSFORMS`:** A white·space‐separated list of transforms to use (default: `$(THISDIR)/transforms/*.xslt`). @@ -315,6 +324,15 @@ The following additional variables can be used to control the behaviour The value of this variable is appended to `TRANSFORMS` by default, to enable additional transforms without overriding the existing ones. +- **`TRANSFORMLIBS`:** + A white·space‐separated list of transform dependencies (default: + `$(THISDIR)/lib/serialize.xslt`). + +- **`EXTRATRANSFORMLIBS`:** + The value of this variable is appended to `TRANSFORMLIBS` by default, + to enable additional transform dependencies without overriding the + existing ones. + - **`XMLTYPES`:** A white·space‐separated list of media types or media type suffixes to consider X·M·L (default: `application/xml text/xml +xml`). @@ -547,6 +565,8 @@ Transforms are used to convert X·M·L files into their final output, media types into the appropriate H·T·M·L elements, and deletes `` 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 `` metadata. @@ -618,11 +638,6 @@ The following params are made available globally in parsers and - **`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 @@ -651,9 +666,8 @@ As a part of this process, after performing the initial transform `` of the output. The document being matched will contain the full transform result - prior to wrapping as well as an `` 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 @@ -670,7 +684,7 @@ The latter elements can be matched to enable transforms to provide version="1.0" > <书社:id>example:add-stylesheet-links.xslt -