diff options
author | Adrian Kummerlaender | 2014-10-12 13:14:35 +0200 |
---|---|---|
committer | Adrian Kummerlaender | 2014-10-12 13:14:35 +0200 |
commit | ce5c887d3f8d7f72396bae5b20166d6af1c76445 (patch) | |
tree | a9024c66e61dda76c4f67d5648aeb65b86b3f662 | |
parent | c8bf8044eed7df60bfc645097df90dd111554f2f (diff) | |
download | BuildXSLT-ce5c887d3f8d7f72396bae5b20166d6af1c76445.tar BuildXSLT-ce5c887d3f8d7f72396bae5b20166d6af1c76445.tar.gz BuildXSLT-ce5c887d3f8d7f72396bae5b20166d6af1c76445.tar.bz2 BuildXSLT-ce5c887d3f8d7f72396bae5b20166d6af1c76445.tar.lz BuildXSLT-ce5c887d3f8d7f72396bae5b20166d6af1c76445.tar.xz BuildXSLT-ce5c887d3f8d7f72396bae5b20166d6af1c76445.tar.zst BuildXSLT-ce5c887d3f8d7f72396bae5b20166d6af1c76445.zip |
Updated README.md to mention module support
-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> |