[PATCH 1/5] Save info only from first cylinder on CSV export
Miika Turkia
miika.turkia at gmail.com
Fri Dec 26 06:11:34 PST 2014
Signed-off-by: Miika Turkia <miika.turkia at gmail.com>
---
xslt/xml2manualcsv.xslt | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/xslt/xml2manualcsv.xslt b/xslt/xml2manualcsv.xslt
index b549e95..bf7fb30 100644
--- a/xslt/xml2manualcsv.xslt
+++ b/xslt/xml2manualcsv.xslt
@@ -38,8 +38,8 @@
</xsl:otherwise>
</xsl:choose>
<xsl:choose>
- <xsl:when test="cylinder/@start|cylinder/@end != ''">
- <xsl:apply-templates select="cylinder"/>
+ <xsl:when test="cylinder[1]/@start|cylinder[1]/@end != ''">
+ <xsl:apply-templates select="cylinder[1]"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$fs"/>
--
1.9.1
More information about the subsurface
mailing list