From 8a58dae3ae028bc1849a4d60930f10de7b67228a Mon Sep 17 00:00:00 2001 From: Linus Torvalds Date: Sat, 12 May 2012 12:01:38 -0700 Subject: [PATCH] Fix more Suunto SDM xml conversion problems Looking at the XML of the two dives Szymon Kosecki sent out to the subsurface list, I notice that our cylinder size conversion was wrong. It looks like CYLINDERUNITS is what determines whether the cylinder size is in metric (0) or imperial (1) units. Of course, if you gave a cylinder size in cuft and didn't give a working pressure, subsurface will just ignore the size as the random crap it is. We *could* default to a working pressure of 3000 psi, of course. This also picks up the CYLINDERDESCRIPTION value, although neither of Szymon's dives actually had any description. I need more SDE xml files to figure out how multi-cylinder dives look etc, but I think this gets most *simple* SDE files converted almost correctly now. Signed-off-by: Linus Torvalds --- xslt/SuuntoSDM.xslt | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/xslt/SuuntoSDM.xslt b/xslt/SuuntoSDM.xslt index 391bdf8..64564ad 100644 --- a/xslt/SuuntoSDM.xslt +++ b/xslt/SuuntoSDM.xslt @@ -86,10 +86,15 @@ + + + + + - + @@ -219,7 +224,12 @@ - + + + + + 0 + -- 2.45.2