aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/steps/plan.xsl3
-rw-r--r--src/steps/process.xsl16
2 files changed, 15 insertions, 4 deletions
diff --git a/src/steps/plan.xsl b/src/steps/plan.xsl
index 9ad773b..acc25ec 100644
--- a/src/steps/plan.xsl
+++ b/src/steps/plan.xsl
@@ -2,10 +2,9 @@
<xsl:stylesheet
version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:dyn="http://exslt.org/dynamic"
xmlns:xalan="http://xml.apache.org/xalan"
xmlns:InputXSLT="function.inputxslt.application"
- exclude-result-prefixes="dyn xalan InputXSLT"
+ exclude-result-prefixes="xalan InputXSLT"
>
<xsl:output
diff --git a/src/steps/process.xsl b/src/steps/process.xsl
index 51e810e..8bdffca 100644
--- a/src/steps/process.xsl
+++ b/src/steps/process.xsl
@@ -39,9 +39,21 @@
<xsl:template name="clean">
<xsl:param name="path"/>
- <xsl:value-of select="InputXSLT:external-command(
- concat('rm -r ./', $path, '; mkdir ./', $path)
+ <xsl:variable name="remove_status" select="InputXSLT:external-command(
+ concat('rm -r ./', $path)
+ )/self::command/@result"/>
+ <xsl:variable name="create_status" select="InputXSLT:external-command(
+ concat('mkdir ./', $path)
)/self::command/@result"/>
+
+ <xsl:choose>
+ <xsl:when test="( $remove_status = 'success' ) and ( $create_status = 'success' )">
+ <xsl:text>success</xsl:text>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:text>error</xsl:text>
+ </xsl:otherwise>
+ </xsl:choose>
</xsl:template>
<xsl:template name="generate">