diff options
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.xsl | 26 |
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> |