diff options
-rw-r--r-- | README.md | 23 | ||||
-rw-r--r-- | build.xsl | 2 |
2 files changed, 16 insertions, 9 deletions
@@ -8,13 +8,14 @@ - generating single transformations - generating chained transformations - using files or embedded XML-trees as transformation input +- using external modules such as [StaticXSLT](https://github.com/KnairdA/StaticXSLT) ## Example: -BuildXSLT can for example be used to build a [static website](https://github.com/KnairdA/blog.kummerlaender.eu) using the following generation chain called via `ixslt --input make.xml --transformation build.xsl`: +BuildXSLT can for example be used to build a [static website](https://github.com/KnairdA/blog.kummerlaender.eu) using the following XML _Makefile_ called via `ixslt --input make.xml --transformation build.xsl --include ../StaticXSLT`: ``` -<task type="generate"> +<task type="module"> <input mode="embedded"> <datasource> <meta> @@ -23,11 +24,17 @@ BuildXSLT can for example be used to build a [static website](https://github.com </meta> </datasource> </input> - <transformation mode="chain"> - <link>detail/list.xsl</link> - <link>detail/plan.xsl</link> - <link>detail/process.xsl</link> - <link>detail/summarize.xsl</link> - </transformation> + <definition mode="file">[StaticXSLT.xml]</definition> </task> ``` + +Where the module definition of `StaticXSLT.xml` looks as follows: + +``` +<transformation mode="chain"> + <link>src/steps/list.xsl</link> + <link>src/steps/plan.xsl</link> + <link>src/steps/process.xsl</link> + <link>src/steps/summarize.xsl</link> +</transformation> +``` @@ -134,7 +134,7 @@ <xsl:call-template name="handle_generate"> <xsl:with-param name="input" select="$input"/> - <xsl:with-param name="transformation" select="xalan:nodeset($module)/transformation"/> + <xsl:with-param name="transformation" select="xalan:nodeset($module)/node()"/> </xsl:call-template> </xsl:when> <xsl:otherwise> |