Re: Something's weird with the dive computer parsing in the UDDF import

2024-03-24 Thread Michael Keller via subsurface
Hi Berthold. The last few weeks have been hectic and I have not yet had time to dig into this, apologies. To get the input to the XSLT that generates the UDDF, simply replace the XSLT file with one that returns a copy of the input, like ** http://www.w3.org/1999/XSL/Transform;>

Re: Something's weird with the dive computer parsing in the UDDF import

2024-03-24 Thread Miika Turkia via subsurface
xsltproc xslt/uddf.xslt fail.uddf The XSLT tries to be smart about the comma, but not sure if the logic is wrong, or if it is just otherwise broken. On Sun, Mar 24, 2024 at 6:37 PM Berthold Stoeger wrote: > Hi Miika, > > any comments on the spurious comma in the dive buddy field? Is there a

Re: Something's weird with the dive computer parsing in the UDDF import

2024-03-24 Thread Berthold Stoeger via subsurface
Hi Miika, any comments on the spurious comma in the dive buddy field? Is there a way to access the intermediate XML for debugging? Thank you, Berthold On Samstag, 23. März 2024 10:48:03 CET Miika Turkia via subsurface wrote: > I do not remember the details of UDDF specification, so should

Re: Something's weird with the dive computer parsing in the UDDF import

2024-03-23 Thread Miika Turkia via subsurface
I do not remember the details of UDDF specification, so should dig into it to make sure. But only fail3.uddf includes divecomputers in section equipment. In UDDF, each dive references into this equipment section for the used dive computer. And for the fail.uddf and fail2.uddf this info is missing,

Re: Something's weird with the dive computer parsing in the UDDF import

2024-03-22 Thread Henrik B A via subsurface
Miika: Are you able to see what's wrong with the import, based on the files I provided? Henrik On Sun, Mar 17, 2024 at 8:04 PM Miika Turkia via subsurface < subsurface@subsurface-divelog.org> wrote: > On Sun, Mar 17, 2024 at 8:59 PM Michael Keller via subsurface < >

Re: Something's weird with the dive computer parsing in the UDDF import

2024-03-17 Thread Miika Turkia via subsurface
On Sun, Mar 17, 2024 at 8:59 PM Michael Keller via subsurface < subsurface@subsurface-divelog.org> wrote: > Hi Berthold. > > > On 17/03/24 21:16, Berthold Stoeger via subsurface wrote: > > > > I reworked quite a bit of the string handling in the parser recently. Did > > this work with older

Re: Something's weird with the dive computer parsing in the UDDF import

2024-03-17 Thread Michael Keller via subsurface
Hi Berthold. On 17/03/24 21:16, Berthold Stoeger via subsurface wrote: I reworked quite a bit of the string handling in the parser recently. Did this work with older versions? Especially the dive buddy thing could be a consequence of the rework. UDDF import / export uses XSLT to convert

Re: Something's weird with the dive computer parsing in the UDDF import

2024-03-17 Thread Henrik B A via subsurface
On Sun, Mar 17, 2024, 09:16 Berthold Stoeger wrote: > Hi Hendrik, > > On Samstag, 16. März 2024 10:31:15 CET Henrik B A via subsurface wrote: > > > It looks like the dive computer parsing is broken when importing UDDF > files. > > I reworked quite a bit of the string handling in the parser

Re: Something's weird with the dive computer parsing in the UDDF import

2024-03-17 Thread Berthold Stoeger via subsurface
Hi Hendrik, On Samstag, 16. März 2024 10:31:15 CET Henrik B A via subsurface wrote: /> It looks like the dive computer parsing is broken when importing / > UDDF files. I reworked quite a bit of the string handling in the parser recently. Did this work with older versions? Especially the

Something's weird with the dive computer parsing in the UDDF import

2024-03-16 Thread Henrik B A via subsurface
Hi! It looks like the dive computer parsing is broken when importing UDDF files. Dive #841 get different computers depending on which other dives it is grouped with: https://henrik.synth.no/files/fail.uddf https://henrik.synth.no/files/fail2.uddf https://henrik.synth.no/files/fail3.uddf