summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--xslt/uddf.xslt16
1 files changed, 10 insertions, 6 deletions
diff --git a/xslt/uddf.xslt b/xslt/uddf.xslt
index 912b0f4d3..a052eeba3 100644
--- a/xslt/uddf.xslt
+++ b/xslt/uddf.xslt
@@ -285,12 +285,16 @@
<xsl:attribute name="he">
<xsl:value-of select="//gas_mix[@id=$gas]/he"/>
</xsl:attribute>
- <xsl:attribute name="start">
- <xsl:value-of select="concat(substring-before(./pressure_start, '.') div 100000, ' bar')"/>
- </xsl:attribute>
- <xsl:attribute name="end">
- <xsl:value-of select="concat(substring-before(./pressure_end, '.') div 100000, ' bar')"/>
- </xsl:attribute>
+ <xsl:if test="./pressure_start != ''">
+ <xsl:attribute name="start">
+ <xsl:value-of select="concat(substring-before(./pressure_start, '.') div 100000, ' bar')"/>
+ </xsl:attribute>
+ </xsl:if>
+ <xsl:if test="./pressure_end != ''">
+ <xsl:attribute name="end">
+ <xsl:value-of select="concat(substring-before(./pressure_end, '.') div 100000, ' bar')"/>
+ </xsl:attribute>
+ </xsl:if>
</cylinder>
</xsl:for-each>
</xsl:if>