diff options
-rw-r--r-- | src/steps/plan.xsl | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/src/steps/plan.xsl b/src/steps/plan.xsl index ba54aba..9ad773b 100644 --- a/src/steps/plan.xsl +++ b/src/steps/plan.xsl @@ -65,6 +65,19 @@ </task> </xsl:template> +<xsl:template match="node/directory"> + <xsl:variable name="base_path" select="../../path"/> + + <task type="link"> + <from> + <xsl:value-of select="concat($target, '/', $base_path, '/', @name)"/> + </from> + <to> + <xsl:value-of select="concat($source, '/', $base_path, '/', @name)"/> + </to> + </task> +</xsl:template> + <xsl:template match="node/directory[.//file/@extension = '.xsl']"> <xsl:variable name="base_path" select="../../path"/> @@ -78,19 +91,6 @@ <xsl:apply-templates select="xalan:nodeset($new_level)/level"/> </xsl:template> -<xsl:template match="node/directory[not(.//file/@extension = '.xsl')]"> - <xsl:variable name="base_path" select="../../path"/> - - <task type="link"> - <from> - <xsl:value-of select="concat($target, '/', $base_path, '/', @name)"/> - </from> - <to> - <xsl:value-of select="concat($source, '/', $base_path, '/', @name)"/> - </to> - </task> -</xsl:template> - <xsl:template match="level[count(node/file | node/directory) > 0]"> <task type="directory"> <path> |