summaryrefslogtreecommitdiffstats
path: root/xslt/uddf.xslt
diff options
context:
space:
mode:
authorGravatar Anton Lundin <glance@acc.umu.se>2014-08-20 23:42:19 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-08-20 19:25:36 -0500
commit754ed9f9fcd89b66b09329ef88d74960afe0b27e (patch)
tree1641ef4bc76afaee69f7ab991f091b479edf44ac /xslt/uddf.xslt
parente7922f6ca8be60ea293dc476e39cc6975de7c8a0 (diff)
downloadsubsurface-754ed9f9fcd89b66b09329ef88d74960afe0b27e.tar.gz
Import decostop information from UDDF files
Signed-off-by: Anton Lundin <glance@acc.umu.se> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'xslt/uddf.xslt')
-rw-r--r--xslt/uddf.xslt23
1 files changed, 23 insertions, 0 deletions
diff --git a/xslt/uddf.xslt b/xslt/uddf.xslt
index 1508fb3da..4f0c90071 100644
--- a/xslt/uddf.xslt
+++ b/xslt/uddf.xslt
@@ -477,6 +477,29 @@
</xsl:call-template>
</xsl:attribute>
</xsl:if>
+
+ <xsl:if test="decostop|u:decostop|u1:decostop">
+ <xsl:attribute name="stoptime">
+ <xsl:call-template name="timeConvert">
+ <xsl:with-param name="timeSec">
+ <xsl:value-of select="decostop/@duration|u:decostop/@duration|u1:decostop/@duration"/>
+ </xsl:with-param>
+ </xsl:call-template>
+ </xsl:attribute>
+ <xsl:attribute name="stopdepth">
+ <xsl:value-of select="decostop/@decodepth|u:decostop/@decodepth|u1:decostop/@decodepth"/>
+ </xsl:attribute>
+ <xsl:attribute name="in_deco">
+ <xsl:choose>
+ <xsl:when test="decostop/@kind|u:decostop/@kind|u1:decostop/@kind != 'mandatory'">
+ <xsl:value-of select="0"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:value-of select="1"/>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:attribute>
+ </xsl:if>
</sample>
</xsl:for-each>
</dive>