Fwd: sample UDDF file

Dirk Hohndel dirk at hohndel.org
Wed Feb 27 10:40:55 PST 2013


Miika Turkia <miika.turkia at gmail.com> writes:
>> As stated many many times (by me)... I'd really like the XSLT to take
>> care of all of these things and slowly trim down our parser.
>>
>> Mika - does the XSLT library that we use have the ability to load
>> multiple stylesheets? Can we have a "common functions" XSLT file that
>> contains date parsing and other things we need in multiple files?
>
> At least on Linux it does work properly. Just to make sure that it
> works on other environments as well, here is a patch with the datetime
> conversion moved to a separate file. It should be tested on Windows
> and Mac before moving any of the common functions (or templates) to
> this separate file.

Seems to work fine on Mac
> The attached patch ignores any time zone information. However, it does
> not implement the standard fully as it basically ignores the case when
> e.g. day or minute and second are missing from the datatime field.
> (Missing seconds is handled by subsurface well enough, even with the
> trailing colon like 20:31:)

Odd :-)

/D


More information about the subsurface mailing list