mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 05:00:20 +00:00
Check that cylinder start and end pressures exist
Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
This commit is contained in:
parent
38cc8bdc40
commit
2b484316e4
1 changed files with 10 additions and 6 deletions
|
@ -285,12 +285,16 @@
|
|||
<xsl:attribute name="he">
|
||||
<xsl:value-of select="//gas_mix[@id=$gas]/he"/>
|
||||
</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>
|
||||
|
|
Loading…
Reference in a new issue