[PATCH 2/6] Take depths from first DC on CSV export

Miika Turkia miika.turkia at gmail.com
Mon Dec 22 13:04:03 PST 2014


We need to limit the DCs from which we grab the depths. Otherwise, we
end up with too many depth values.

Signed-off-by: Miika Turkia <miika.turkia at gmail.com>
---
 xslt/xml2manualcsv.xslt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/xslt/xml2manualcsv.xslt b/xslt/xml2manualcsv.xslt
index 93894a7..03e4178 100644
--- a/xslt/xml2manualcsv.xslt
+++ b/xslt/xml2manualcsv.xslt
@@ -28,7 +28,7 @@
     <xsl:text>"</xsl:text>
     <xsl:value-of select="@duration"/>
     <xsl:text>"</xsl:text>
-    <xsl:apply-templates select="divecomputer/depth"/>
+    <xsl:apply-templates select="divecomputer[1]/depth"/>
     <xsl:choose>
       <xsl:when test="divetemperature/@air|divetemperature/@water != ''">
         <xsl:apply-templates select="divetemperature"/>
-- 
1.9.1



More information about the subsurface mailing list