summaryrefslogtreecommitdiffstats
path: root/xslt/xml2manualcsv.xslt
diff options
context:
space:
mode:
Diffstat (limited to 'xslt/xml2manualcsv.xslt')
-rw-r--r--xslt/xml2manualcsv.xslt16
1 files changed, 16 insertions, 0 deletions
diff --git a/xslt/xml2manualcsv.xslt b/xslt/xml2manualcsv.xslt
index aab66af7c..b549e953a 100644
--- a/xslt/xml2manualcsv.xslt
+++ b/xslt/xml2manualcsv.xslt
@@ -60,8 +60,20 @@
<xsl:text>&quot;&quot;</xsl:text>
</xsl:if>
<xsl:apply-templates select="divemaster"/>
+ <xsl:if test="string-length(divemaster) = 0">
+ <xsl:value-of select="$fs"/>
+ <xsl:text>&quot;&quot;</xsl:text>
+ </xsl:if>
<xsl:apply-templates select="buddy"/>
+ <xsl:if test="string-length(buddy) = 0">
+ <xsl:value-of select="$fs"/>
+ <xsl:text>&quot;&quot;</xsl:text>
+ </xsl:if>
<xsl:apply-templates select="suit"/>
+ <xsl:if test="string-length(suit) = 0">
+ <xsl:value-of select="$fs"/>
+ <xsl:text>&quot;&quot;</xsl:text>
+ </xsl:if>
<xsl:value-of select="$fs"/>
<xsl:text>&quot;</xsl:text>
<xsl:value-of select="@rating"/>
@@ -71,6 +83,10 @@
<xsl:value-of select="@visibility"/>
<xsl:text>&quot;</xsl:text>
<xsl:apply-templates select="notes"/>
+ <xsl:if test="string-length(notes) = 0">
+ <xsl:value-of select="$fs"/>
+ <xsl:text>&quot;&quot;</xsl:text>
+ </xsl:if>
<xsl:text>
</xsl:text>
</xsl:template>