[PATCH 4/6] Include empty location and gps if non is given
Miika Turkia
miika.turkia at gmail.com
Mon Dec 22 13:04:05 PST 2014
Signed-off-by: Miika Turkia <miika.turkia at gmail.com>
---
xslt/xml2manualcsv.xslt | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/xslt/xml2manualcsv.xslt b/xslt/xml2manualcsv.xslt
index 6239bfe..aab66af 100644
--- a/xslt/xml2manualcsv.xslt
+++ b/xslt/xml2manualcsv.xslt
@@ -53,6 +53,12 @@
</xsl:otherwise>
</xsl:choose>
<xsl:apply-templates select="location"/>
+ <xsl:if test="string-length(location) = 0">
+ <xsl:value-of select="$fs"/>
+ <xsl:text>""</xsl:text>
+ <xsl:value-of select="$fs"/>
+ <xsl:text>""</xsl:text>
+ </xsl:if>
<xsl:apply-templates select="divemaster"/>
<xsl:apply-templates select="buddy"/>
<xsl:apply-templates select="suit"/>
--
1.9.1
More information about the subsurface
mailing list