diff options
author | Miika Turkia <miika.turkia@gmail.com> | 2013-02-27 18:16:08 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-02-27 09:11:56 -0800 |
commit | 38036a31d0c7b110d975e88277a5065ac6c1adbe (patch) | |
tree | 4be26b9bc8569ed5acd539f80d03290f2d319a4c | |
parent | cc9686016536ae6f2d7b5c4dd51a21cf3ce4d797 (diff) | |
download | subsurface-38036a31d0c7b110d975e88277a5065ac6c1adbe.tar.gz |
Handle one more date/time format for UDDF import
Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r-- | xslt/uddf.xslt | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/xslt/uddf.xslt b/xslt/uddf.xslt index 1e219c5f8..d9b3f9a7d 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> |