aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrian Kummerlaender2014-10-12 13:14:35 +0200
committerAdrian Kummerlaender2014-10-12 13:14:35 +0200
commitce5c887d3f8d7f72396bae5b20166d6af1c76445 (patch)
treea9024c66e61dda76c4f67d5648aeb65b86b3f662
parentc8bf8044eed7df60bfc645097df90dd111554f2f (diff)
downloadBuildXSLT-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.md23
-rw-r--r--build.xsl2
2 files changed, 16 insertions, 9 deletions
diff --git a/README.md b/README.md
index afcc8f6..5f4790a 100644
--- a/README.md
+++ b/README.md
@@ -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>
+```
diff --git a/build.xsl b/build.xsl
index 585cb12..501c129 100644
--- a/build.xsl
+++ b/build.xsl
@@ -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>