An adventure in diving log software

Miika Turkia miika.turkia at gmail.com
Wed Feb 20 09:31:10 PST 2013


On Wed, Feb 20, 2013 at 10:50 PM, Dirk Hohndel <dirk at hohndel.org> wrote:
>
> Well, I looked at Miika's patch and it seems rather harmless. It's
> another xslt transformation and the support to call that from the
> parser.
>
> This all seems rather harmless.
>
> Two questions (mostly to Miika, I guess):
>
> a) can this format be positively identified? i.e. what's the risk of
> false positives (like we had recently when we suddenly couldn't read our
> own files anymore as they were misidentified)...
>
> As you know, I don't speak xslt, but this seems like I shouldn't have to
> be too nervous:
>
> +  <xsl:template match="/">
> +    <divelog program='subsurface' version='2'>
> +      <dives>
> +        <xsl:apply-templates select="DIVELOGSDATA"/>
> +      </dives>
> +    </divelog>
> +  </xsl:template>

Yes, the root element is <DIVELOGSDATA> and that is does not collide
with anything subsurface uses currently. No false positives with this
one.

> b) can you send a paragraph for the user-manual that adds a brief
> explanation how this would work?

I can do the subsurface import part, but someone else (Henrik?) has to
write the export from divinglogs.de

miika


More information about the subsurface mailing list