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