aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrian Kummerlaender2014-09-06 14:30:01 +0200
committerAdrian Kummerlaender2014-09-06 14:30:01 +0200
commit5ab0f971e767f190aceea48cc6aab6a2bfa42bea (patch)
tree99edee91becebd9fca450142cc054044804d9513
parentd6bd9dee26072f833f9263f04616b80887f08ce6 (diff)
downloadblog.kummerlaender.eu-5ab0f971e767f190aceea48cc6aab6a2bfa42bea.tar
blog.kummerlaender.eu-5ab0f971e767f190aceea48cc6aab6a2bfa42bea.tar.gz
blog.kummerlaender.eu-5ab0f971e767f190aceea48cc6aab6a2bfa42bea.tar.bz2
blog.kummerlaender.eu-5ab0f971e767f190aceea48cc6aab6a2bfa42bea.tar.lz
blog.kummerlaender.eu-5ab0f971e767f190aceea48cc6aab6a2bfa42bea.tar.xz
blog.kummerlaender.eu-5ab0f971e767f190aceea48cc6aab6a2bfa42bea.tar.zst
blog.kummerlaender.eu-5ab0f971e767f190aceea48cc6aab6a2bfa42bea.zip
Replaced custom build system with BuildXSLT
* the bootstrapping transformation is not specific to this project and may be used as a starting point for all kinds of projects making use of InputXSLT ** this is why it was extracted into the separate BuildXSLT repository * the new "make.xml" _Makefile_ has to be passed as input to "build.xsl" ** e.g. "ixslt --input make.xml --transformation ../BuildXSLT/build.xsl" * "make.xml" defines the basic transformation chain and its input
-rw-r--r--make.xml16
-rw-r--r--make.xsl67
2 files changed, 16 insertions, 67 deletions
diff --git a/make.xml b/make.xml
new file mode 100644
index 0000000..177189b
--- /dev/null
+++ b/make.xml
@@ -0,0 +1,16 @@
+<task type="generate">
+ <input mode="embedded">
+ <datasource>
+ <meta>
+ <source>source</source>
+ <target>target</target>
+ </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>
+</task>
diff --git a/make.xsl b/make.xsl
deleted file mode 100644
index 7f52475..0000000
--- a/make.xsl
+++ /dev/null
@@ -1,67 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<xsl:stylesheet
- version="1.0"
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:xalan="http://xml.apache.org/xalan"
- xmlns:InputXSLT="function.inputxslt.application"
- exclude-result-prefixes="xalan InputXSLT"
->
-
-<xsl:output
- method="text"
- omit-xml-declaration="yes"
- encoding="UTF-8"
- indent="no"
-/>
-
-<xsl:variable name="source">source</xsl:variable>
-<xsl:variable name="target">target</xsl:variable>
-
-<xsl:template name="generate">
- <xsl:param name="input"/>
- <xsl:param name="transformation"/>
-
- <xsl:copy-of select="InputXSLT:generate(
- $input,
- InputXSLT:read-file(string($transformation))/self::file/node()
- )/self::generation/node()"/>
-</xsl:template>
-
-<xsl:template match="/">
- <xsl:variable name="list_source">
- <datasource>
- <meta>
- <source><xsl:value-of select="$source"/></source>
- <target><xsl:value-of select="$target"/></target>
- </meta>
- </datasource>
- </xsl:variable>
-
- <xsl:variable name="plan_source">
- <xsl:call-template name="generate">
- <xsl:with-param name="input" select="$list_source"/>
- <xsl:with-param name="transformation">detail/list.xsl</xsl:with-param>
- </xsl:call-template>
- </xsl:variable>
-
- <xsl:variable name="process_source">
- <xsl:call-template name="generate">
- <xsl:with-param name="input" select="$plan_source"/>
- <xsl:with-param name="transformation">detail/plan.xsl</xsl:with-param>
- </xsl:call-template>
- </xsl:variable>
-
- <xsl:variable name="summarize_source">
- <xsl:call-template name="generate">
- <xsl:with-param name="input" select="$process_source"/>
- <xsl:with-param name="transformation">detail/process.xsl</xsl:with-param>
- </xsl:call-template>
- </xsl:variable>
-
- <xsl:call-template name="generate">
- <xsl:with-param name="input" select="$summarize_source"/>
- <xsl:with-param name="transformation">detail/summarize.xsl</xsl:with-param>
- </xsl:call-template>
-</xsl:template>
-
-</xsl:stylesheet>