From 6a98588ed02320c4d33c1d848c38a424c90448f3 Mon Sep 17 00:00:00 2001 From: Miika Turkia Date: Tue, 19 Mar 2013 22:41:49 +0200 Subject: [PATCH] Added support for UDDf version 3.1 This adds support for UDDF version 3.1 as produced by at least DiversDiary. Basically we have to include the different name space into our selections. This patch also checks if the temperature is zero on all samples and skips temperature readings if it looks like the dive computer does not record them. Signed-off-by: Miika Turkia Signed-off-by: Dirk Hohndel --- xslt/commonTemplates.xsl | 16 +++++++ xslt/uddf.xslt | 92 ++++++++++++++++++++++------------------ 2 files changed, 67 insertions(+), 41 deletions(-) diff --git a/xslt/commonTemplates.xsl b/xslt/commonTemplates.xsl index ba649970a..87af4d686 100644 --- a/xslt/commonTemplates.xsl +++ b/xslt/commonTemplates.xsl @@ -131,4 +131,20 @@ + + + + + + + + + + + + + + + + diff --git a/xslt/uddf.xslt b/xslt/uddf.xslt index 4af79d84f..1d65d2d19 100644 --- a/xslt/uddf.xslt +++ b/xslt/uddf.xslt @@ -1,6 +1,7 @@ @@ -11,44 +12,44 @@ - + - + - - + + - + - + - + - + - + - - + + - + - + @@ -56,7 +57,7 @@ - + @@ -64,8 +65,15 @@ - + + + + + + + + @@ -75,44 +83,46 @@ - + - + - + - - - + + + + + - + - + - + - + - + @@ -122,7 +132,7 @@ - + @@ -130,19 +140,19 @@ - + - + - + @@ -152,41 +162,41 @@ - + - + - + - + - + - + - + - + - + - + - +