aboutsummaryrefslogtreecommitdiff
path: root/generate.xsl
diff options
context:
space:
mode:
Diffstat (limited to 'generate.xsl')
-rw-r--r--generate.xsl26
1 files changed, 20 insertions, 6 deletions
diff --git a/generate.xsl b/generate.xsl
index be7d7a3..bac0288 100644
--- a/generate.xsl
+++ b/generate.xsl
@@ -8,6 +8,8 @@
exclude-result-prefixes="dyn xalan InputXSLT"
>
+<xsl:import href="utility/helper.xsl"/>
+
<xsl:output
method="xml"
omit-xml-declaration="yes"
@@ -167,12 +169,20 @@
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
- <xsl:if test="./extension = '.xsl'">
- <xsl:call-template name="process">
- <xsl:with-param name="file" select="."/>
- <xsl:with-param name="target" select="concat($target, '/', $path)"/>
- </xsl:call-template>
- </xsl:if>
+ <xsl:choose>
+ <xsl:when test="./extension = '.xsl'">
+ <xsl:call-template name="process">
+ <xsl:with-param name="file" select="."/>
+ <xsl:with-param name="target" select="concat($target, '/', $path)"/>
+ </xsl:call-template>
+ </xsl:when>
+ <xsl:when test="./extension = '.css'">
+ <xsl:call-template name="linker">
+ <xsl:with-param name="from" select="./full"/>
+ <xsl:with-param name="to" select="concat($target, '/', $path, '/', ./name, ./extension)"/>
+ </xsl:call-template>
+ </xsl:when>
+ </xsl:choose>
</xsl:otherwise>
</xsl:choose>
</xsl:for-each>
@@ -182,6 +192,10 @@
<xsl:variable name="source">source</xsl:variable>
<xsl:variable name="target">target</xsl:variable>
+ <xsl:call-template name="cleaner">
+ <xsl:with-param name="path" select="$target"/>
+ </xsl:call-template>
+
<xsl:call-template name="traverse">
<xsl:with-param name="source" select="$source"/>
<xsl:with-param name="target" select="$target"/>