Windows and xslt dll

Miika Turkia miika.turkia at gmail.com
Wed Mar 6 00:40:38 PST 2013


On Wed, Mar 6, 2013 at 10:38 AM, Lubomir I. Ivanov <neolit123 at gmail.com> wrote:
> On 6 March 2013 06:48, Miika Turkia <miika.turkia at gmail.com> wrote:
>> What is the XSLT library used on Windows. It seems to contain a bug
>> that truncates the fraction part when any math is performed on the
>> number. E.g. tank sizes of 11.4 will become 11.0 as it is currently
>> imported in the from SIZE + SIZE * DBLTANK. (Obviously the double tank
>> is either 0 or 1 depending whether double was used and results in
>> proper size at least in Linux.)
>>
>> Basically I see three solutions. My preferred one would be a working
>> XSLT dll. Next is to return size in milliliter and final is do the
>> math the hard way with a bunch of XSLT and finally return the size in
>> a proper string.
>>
>
> i'm using libxslt 1.1.26 for this build:
> https://github.com/neolit123/subsurface_win32
>
> downloaded from the author website:
> http://www.zlatkovic.com/libxml.en.html
>
> the official one might be slightly newer e.g. 1.1.27

What tank size do you get when opening the dives/*.DLD with your
version? (IIRC that should be 11.7 litres or there about in the source
file)

miika


More information about the subsurface mailing list