diff options
Implemented basic generation summary
* "summarize.xsl" processes the result-tree of "process.xsl" and outputs a basic plain-text summary
** the plain-text summary is returned as the sole result of calling "make.xsl"
* this approach should be easily extensible into i.e. a verbose version in the future
* unraveled "make.xsl" structure into separate variables
Diffstat (limited to 'make.xsl')
-rw-r--r-- | make.xsl | 63 |
1 files changed, 35 insertions, 28 deletions
@@ -11,11 +11,9 @@ method="xml" omit-xml-declaration="yes" encoding="UTF-8" - indent="yes" + indent="no" /> -<xsl:include href="utility/helper.xsl"/> - <xsl:template name="generate"> <xsl:param name="input"/> <xsl:param name="transformation"/> @@ -30,33 +28,42 @@ <xsl:variable name="source">source</xsl:variable> <xsl:variable name="target">target</xsl:variable> - <xsl:call-template name="generate"> - <xsl:with-param name="input"> + <xsl:variable name="list_source"> + <datasource> + <xsl:value-of select="$source"/> + </datasource> + </xsl:variable> + + <xsl:variable name="plan_source"> + <datasource> <xsl:call-template name="generate"> - <xsl:with-param name="input"> - <xsl:call-template name="merge_datasource"> - <xsl:with-param name="main"> - <xsl:call-template name="generate"> - <xsl:with-param name="input"> - <datasource> - <xsl:value-of select="$source"/> - </datasource> - </xsl:with-param> - <xsl:with-param name="transformation">list.xsl</xsl:with-param> - </xsl:call-template> - </xsl:with-param> - <xsl:with-param name="support"> - <meta> - <source><xsl:value-of select="$source"/></source> - <target><xsl:value-of select="$target"/></target> - </meta> - </xsl:with-param> - </xsl:call-template> - </xsl:with-param> - <xsl:with-param name="transformation">plan.xsl</xsl:with-param> + <xsl:with-param name="input" select="$list_source"/> + <xsl:with-param name="transformation">list.xsl</xsl:with-param> </xsl:call-template> - </xsl:with-param> - <xsl:with-param name="transformation">process.xsl</xsl:with-param> + <meta> + <source><xsl:value-of select="$source"/></source> + <target><xsl:value-of select="$target"/></target> + </meta> + </datasource> + </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">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">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">summarize.xsl</xsl:with-param> </xsl:call-template> </xsl:template> |