mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-19 06:15:26 +00:00
Include some empty fields if they are not available
If specific value is not available, we need to have an empty value instead. Signed-off-by: Miika Turkia <miika.turkia@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
663f6eef0b
commit
a950365b6f
1 changed files with 16 additions and 0 deletions
|
@ -60,8 +60,20 @@
|
||||||
<xsl:text>""</xsl:text>
|
<xsl:text>""</xsl:text>
|
||||||
</xsl:if>
|
</xsl:if>
|
||||||
<xsl:apply-templates select="divemaster"/>
|
<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: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: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:value-of select="$fs"/>
|
||||||
<xsl:text>"</xsl:text>
|
<xsl:text>"</xsl:text>
|
||||||
<xsl:value-of select="@rating"/>
|
<xsl:value-of select="@rating"/>
|
||||||
|
@ -71,6 +83,10 @@
|
||||||
<xsl:value-of select="@visibility"/>
|
<xsl:value-of select="@visibility"/>
|
||||||
<xsl:text>"</xsl:text>
|
<xsl:text>"</xsl:text>
|
||||||
<xsl:apply-templates select="notes"/>
|
<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:text>
|
</xsl:text>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
Loading…
Add table
Reference in a new issue