[PATCH] Handle one more date/time format for UDDF import
Miika Turkia
miika.turkia at gmail.com
Wed Feb 27 08:16:08 PST 2013
Signed-off-by: Miika Turkia <miika.turkia at gmail.com>
---
xslt/uddf.xslt | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/xslt/uddf.xslt b/xslt/uddf.xslt
index 1e219c5..d9b3f9a 100644
--- a/xslt/uddf.xslt
+++ b/xslt/uddf.xslt
@@ -60,9 +60,12 @@
<xsl:value-of select="concat(format-number(time/hour, '00'), ':', format-number(time/minute, '00'))"/>
</xsl:attribute>
</xsl:when>
- <xsl:when test="u:informationbeforedive/u:datetime != ''">
+ <xsl:when test="informationbeforedive/datetime|u:informationbeforedive/u:datetime != ''">
<xsl:attribute name="date">
- <xsl:value-of select="u:informationbeforedive/u:datetime"/>
+ <xsl:value-of select="substring-before(informationbeforedive/datetime|u:informationbeforedive/u:datetime, 'T')"/>
+ </xsl:attribute>
+ <xsl:attribute name="time">
+ <xsl:value-of select="substring-after(informationbeforedive/datetime|u:informationbeforedive/u:datetime, 'T')"/>
</xsl:attribute>
</xsl:when>
</xsl:choose>
--
1.7.9.5
More information about the subsurface
mailing list