aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrian Kummerlaender2014-12-09 19:17:42 +0100
committerAdrian Kummerlaender2014-12-09 19:17:42 +0100
commit072250e4c022f8011df14f8bf7ad79086431a779 (patch)
tree87894424412b2ca7c92e7acf39ff31815e240fab
parent299b5a6d694101be3e053d2a6a680a5ad2d5744b (diff)
downloadStaticXSLT-072250e4c022f8011df14f8bf7ad79086431a779.tar
StaticXSLT-072250e4c022f8011df14f8bf7ad79086431a779.tar.gz
StaticXSLT-072250e4c022f8011df14f8bf7ad79086431a779.tar.bz2
StaticXSLT-072250e4c022f8011df14f8bf7ad79086431a779.tar.xz
StaticXSLT-072250e4c022f8011df14f8bf7ad79086431a779.zip
Removed unnecessary selector negation
* it's the order of templates that decides which specialization gets evaluated
-rw-r--r--src/steps/plan.xsl26
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) &gt; 0]">
<task type="directory">
<path>