aboutsummaryrefslogtreecommitdiff
path: root/utility
diff options
context:
space:
mode:
authorAdrian Kummerlaender2014-08-23 12:58:32 +0200
committerAdrian Kummerlaender2014-08-23 12:58:32 +0200
commitb942f8ed534e789495b74cc87fd155b0bd2dab0b (patch)
tree29e1cf7ebb10acb7c6708b926c811e06962d05a1 /utility
parent99b8d15f33ac71fe85bb2fa7001d080931bba7ba (diff)
downloadblog.kummerlaender.eu-b942f8ed534e789495b74cc87fd155b0bd2dab0b.tar
blog.kummerlaender.eu-b942f8ed534e789495b74cc87fd155b0bd2dab0b.tar.gz
blog.kummerlaender.eu-b942f8ed534e789495b74cc87fd155b0bd2dab0b.tar.bz2
blog.kummerlaender.eu-b942f8ed534e789495b74cc87fd155b0bd2dab0b.tar.lz
blog.kummerlaender.eu-b942f8ed534e789495b74cc87fd155b0bd2dab0b.tar.xz
blog.kummerlaender.eu-b942f8ed534e789495b74cc87fd155b0bd2dab0b.tar.zst
blog.kummerlaender.eu-b942f8ed534e789495b74cc87fd155b0bd2dab0b.zip
Revamped source tree traversion
* this was done to be able to implement directory symlinking * the generation process is now split into three transformations ** the actual work is performed by "list.xsl" and "traverse.xsl" respecitively ** "make.xsl" wraps these two transformations *** i.e. generation is now launched by executing "ixslt --transformation make.xsl" * checked background images into VCS
Diffstat (limited to 'utility')
-rw-r--r--utility/helper.xsl26
1 files changed, 10 insertions, 16 deletions
diff --git a/utility/helper.xsl b/utility/helper.xsl
index cf3d7ba..0ebc15d 100644
--- a/utility/helper.xsl
+++ b/utility/helper.xsl
@@ -7,6 +7,16 @@
exclude-result-prefixes="xalan InputXSLT"
>
+<xsl:template name="merge_datasource">
+ <xsl:param name="main"/>
+ <xsl:param name="support"/>
+
+ <datasource>
+ <xsl:copy-of select="$main"/>
+ <xsl:copy-of select="$support"/>
+ </datasource>
+</xsl:template>
+
<xsl:template name="formatter">
<xsl:param name="format"/>
<xsl:param name="source"/>
@@ -17,20 +27,4 @@
)/self::command/node()"/>
</xsl:template>
-<xsl:template name="cleaner">
- <xsl:param name="path"/>
-
- <cleaning path="./{$path}" result="{InputXSLT:external-command(
- concat('rm -r ./', $path, '/*')
- )/self::command/@result}"/>
-</xsl:template>
-
-<xsl:template name="linker">
- <xsl:param name="from"/>
- <xsl:param name="to"/>
-
- <linkage from="{$from}" to="{$to}" result="{InputXSLT:external-command(
- concat('ln -s ', $from, ' ./', $to)
- )/self::command/@result}"/>
-</xsl:template>
</xsl:stylesheet>