aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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>