If specific value is not available, we need to have an empty value instead.
Signed-off-by: Miika Turkia <[email protected]> --- xslt/xml2manualcsv.xslt | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/xslt/xml2manualcsv.xslt b/xslt/xml2manualcsv.xslt index aab66af..b549e95 100644 --- a/xslt/xml2manualcsv.xslt +++ b/xslt/xml2manualcsv.xslt @@ -60,8 +60,20 @@ <xsl:text>""</xsl:text> </xsl:if> <xsl:apply-templates select="divemaster"/> + <xsl:if test="string-length(divemaster) = 0"> + <xsl:value-of select="$fs"/> + <xsl:text>""</xsl:text> + </xsl:if> <xsl:apply-templates select="buddy"/> + <xsl:if test="string-length(buddy) = 0"> + <xsl:value-of select="$fs"/> + <xsl:text>""</xsl:text> + </xsl:if> <xsl:apply-templates select="suit"/> + <xsl:if test="string-length(suit) = 0"> + <xsl:value-of select="$fs"/> + <xsl:text>""</xsl:text> + </xsl:if> <xsl:value-of select="$fs"/> <xsl:text>"</xsl:text> <xsl:value-of select="@rating"/> @@ -71,6 +83,10 @@ <xsl:value-of select="@visibility"/> <xsl:text>"</xsl:text> <xsl:apply-templates select="notes"/> + <xsl:if test="string-length(notes) = 0"> + <xsl:value-of select="$fs"/> + <xsl:text>""</xsl:text> + </xsl:if> <xsl:text> </xsl:text> </xsl:template> -- 1.9.1 _______________________________________________ subsurface mailing list [email protected] http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface
