Import Dialog changed?

Miika Turkia miika.turkia at gmail.com
Sat Feb 23 12:57:16 PST 2013


On Sat, Feb 23, 2013 at 7:47 PM, Dirk Hohndel <dirk at hohndel.org> wrote:
> Linus Torvalds <torvalds at linux-foundation.org> writes:
>
>> On Sat, Feb 23, 2013 at 11:29 AM, Dirk Hohndel <dirk at hohndel.org> wrote:
>>>
>>> What's the typical extension used? I thought they were just XML files...
>>
>> They are xml files, but they use the extension "uddf"
>
> Even on Windows?
>
> Since we read uddf directly this should be straight forward, something
> like this:
>
> diff --git a/gtk-gui.c b/gtk-gui.c
> index 4120714..b8ccf60 100644
> --- a/gtk-gui.c
> +++ b/gtk-gui.c
> @@ -123,6 +123,8 @@ static GtkFileFilter *setup_filter(void)
>         GtkFileFilter *filter = gtk_file_filter_new();
>         gtk_file_filter_add_pattern(filter, "*.xml");
>         gtk_file_filter_add_pattern(filter, "*.XML");
> +       gtk_file_filter_add_pattern(filter, "*.uddf");
> +       gtk_file_filter_add_pattern(filter, "*.UDDF");
>  #ifdef LIBZIP
>         gtk_file_filter_add_pattern(filter, "*.sde");
>         gtk_file_filter_add_pattern(filter, "*.SDE");

Theoretically the following mimetype filter should do the trick of
including uddf files. However, I would not be surprised if the mime
type would not work on some environments.

> Miika - were you planning to provide an XSLT file for uddf? I sent out
> email discussing this question yesterday...

I have one attached. It does the matching of gas change events to the
actual cylinders that I believe was missing from the native
implementation. However, there is one problem with this one. The
samples downloaded from Artur's given git repository do not work. If I
remove xmlns from the root element, they work fine but I have no idea
how to fix that without modifying the input files. The original line
is following:
<uddf xmlns="http://www.streit.cc/uddf/3.2/" version="3.2.0">

And changing it to this the xslt works fine:
<uddf version="3.2.0">

I did a quick search on layover in London but didn't find anything
that would have given a solution to this problem...

miika
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-XSLT-for-UDDF-import.patch
Type: application/octet-stream
Size: 6743 bytes
Desc: not available
URL: <http://lists.hohndel.org/pipermail/subsurface/attachments/20130223/55fad0ac/attachment.obj>


More information about the subsurface mailing list