From: Linus Torvalds Date: Sat, 12 May 2012 19:01:38 +0000 (-0700) Subject: Fix more Suunto SDM xml conversion problems X-Git-Url: http://git.tdb.fi/?p=ext%2Fsubsurface.git;a=commitdiff_plain;h=8a58dae3ae028bc1849a4d60930f10de7b67228a 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 --- 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 +