Loading ...
Sorry, an error occurred while loading the content.

looking for a XSLT stylesheet for GPX 1.0 to GPX 1.1 transformation

Expand Messages
  • chrabers
    Does anybody know whether there is a XSLT stylesheet freely available for transforming gpx 1.0 files into gpx 1.1 files? Christian
    Message 1 of 8 , Mar 2, 2010
    • 0 Attachment
      Does anybody know whether there is a XSLT stylesheet freely available for transforming gpx 1.0 files into gpx 1.1 files?

      Christian
    • Robert Lipe
      ... Not a direct answer, but if the GPX 1.0 files don t use extensions, GPSBabel can rewrite them, recasting things like the tweaked spellings of URLs and
      Message 2 of 8 , Mar 2, 2010
      • 0 Attachment
        On Tue, Mar 2, 2010 at 7:54 AM, chrabers <chrabers@...> wrote:

        > Does anybody know whether there is a XSLT stylesheet freely available for
        > transforming gpx 1.0 files into gpx 1.1 files
        >

        Not a direct answer, but if the GPX 1.0 files don't use extensions, GPSBabel
        can rewrite them, recasting things like the tweaked spellings of URLs and
        such.

        If there are extensions in play, things are more complicated as you may
        have to change the extensions themselves. I'll venture that an automated
        tool for arbitrary extension is a difficult task.

        RJL


        [Non-text portions of this message have been removed]
      • Lynn W. Deffenbaugh (Mr)
        I browsed through a few web sites, but does anyone know if there s a short list of the differences between 1.0 and 1.1 around anywhere? Lynn (D) - KJ4ERJ -
        Message 3 of 8 , Mar 2, 2010
        • 0 Attachment
          I browsed through a few web sites, but does anyone know if there's a
          short list of the differences between 1.0 and 1.1 around anywhere?

          Lynn (D) - KJ4ERJ - Working on an Amateur Radio tracking program
          (APRSISCE, see the Yahoo Group)

          Robert Lipe wrote:
          > On Tue, Mar 2, 2010 at 7:54 AM, chrabers <chrabers@...> wrote:
          >
          >
          >> Does anybody know whether there is a XSLT stylesheet freely available for
          >> transforming gpx 1.0 files into gpx 1.1 files
          >>
          >>
          >
          > Not a direct answer, but if the GPX 1.0 files don't use extensions, GPSBabel
          > can rewrite them, recasting things like the tweaked spellings of URLs and
          > such.
          >
          > If there are extensions in play, things are more complicated as you may
          > have to change the extensions themselves. I'll venture that an automated
          > tool for arbitrary extension is a difficult task.
          >
          > RJL
          >
          >
          > [Non-text portions of this message have been removed]
          >
          >
          >
          > ------------------------------------
          >
          > Yahoo! Groups Links
          >
          >
          >
          >
          >
        • Robert Lipe
          On Tue, Mar 2, 2010 at 11:58 AM, Lynn W. Deffenbaugh (Mr)
          Message 4 of 8 , Mar 2, 2010
          • 0 Attachment
            On Tue, Mar 2, 2010 at 11:58 AM, Lynn W. Deffenbaugh (Mr) <
            ldeffenb@...> wrote:

            > I browsed through a few web sites, but does anyone know if there's a
            > short list of the differences between 1.0 and 1.1 around anywhere?
            >

            I don't think we published one in the group here. The authoratitive answer
            would be to compare the XSDs as they're the official word on what comprises
            each.





            > Lynn (D) - KJ4ERJ - Working on an Amateur Radio tracking program
            > (APRSISCE, see the Yahoo Group)
            >
            > Robert Lipe wrote:
            > > On Tue, Mar 2, 2010 at 7:54 AM, chrabers <chrabers@...> wrote:
            > >
            > >
            > >> Does anybody know whether there is a XSLT stylesheet freely available
            > for
            > >> transforming gpx 1.0 files into gpx 1.1 files
            > >>
            > >>
            > >
            > > Not a direct answer, but if the GPX 1.0 files don't use extensions,
            > GPSBabel
            > > can rewrite them, recasting things like the tweaked spellings of URLs and
            > > such.
            > >
            > > If there are extensions in play, things are more complicated as you may
            > > have to change the extensions themselves. I'll venture that an
            > automated
            > > tool for arbitrary extension is a difficult task.
            > >
            > > RJL
            > >
            > >
            > > [Non-text portions of this message have been removed]
            > >
            > >
            > >
            > > ------------------------------------
            > >
            > > Yahoo! Groups Links
            > >
            > >
            > >
            > >
            > >
            >
            >
            >
            > ------------------------------------
            >
            > Yahoo! Groups Links
            >
            >
            >
            >


            [Non-text portions of this message have been removed]
          • chrabers
            ... GPSBabel ... and ... may ... There are no extensions in my files but GPSBabel has more problems transforming gpx 1.0 to 1.1. Here is an example:
            Message 5 of 8 , Mar 2, 2010
            • 0 Attachment
              --- In gpsxml@yahoogroups.com, Robert Lipe <robertlipe@...> wrote:
              > Not a direct answer, but if the GPX 1.0 files don't use extensions,
              GPSBabel
              > can rewrite them, recasting things like the tweaked spellings of URLs
              and
              > such.
              >
              > If there are extensions in play, things are more complicated as you
              may
              > have to change the extensions themselves.

              There are no extensions in my files but GPSBabel has more problems
              transforming gpx 1.0 to 1.1. Here is an example:

              <?xml version="1.0" encoding="iso-8859-1"?>
              <gpx version="1.0" creator="www.tourfinder.net"
              xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
              xmlns="http://www.topografix.com/GPX/1/0"
              xsi:schemaLocation="http://www.topografix.com/GPX/1/0
              http://www.topografix.com/GPX/1/0/gpx.xsd">

              <url>http://www.tourfinder.net/do/tour?action=show&part=overview&\
              ;id=1172&categoryId=1</url>
              <urlname>Tour: Biotopo Marocce di Dro</urlname>

              will be transformed to this:

              <?xml version="1.0" encoding="UTF-8"?>
              <gpx
              version="1.1"
              creator="GPSBabel - http://www.gpsbabel.org"
              xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
              xmlns="http://www.topografix.com/GPX/1/1"
              xsi:schemaLocation="http://www.topografix.com/GPX/1/0
              http://www.topografix.com/GPX/1/0/gpx.xsd">
              <metadata>
              <url>http://www.tourfinder.net/do/tour?action=show&part=overview&id=1172\
              &categoryId=1</url>
              <urlname>Tour: Biotopo Marocce di Dro </urlname>

              1) the schema location is that of 1.0 so that there is a mixup between
              1.0 and 1.1
              2) <url> and <urlname> are not transformed to <link>
              3) & is transformed to &
              The result is a nonvalid gpx file.

              So GPSBabel is no solution.

              I also tryed Tourateq QV.
              It reads 1.0 files and writes valid 1.1 files but it does not transform
              <url> to <link> but deletes <url> and <urlname>.

              Any other idea?

              Christian




              [Non-text portions of this message have been removed]
            • Robert Lipe
              ... Actually, that s part of an example, not a reproducible test case. ... #1 is indeed a bug that we introduced when trying to preserve headers. I don t see
              Message 6 of 8 , Mar 2, 2010
              • 0 Attachment
                On Tue, Mar 2, 2010 at 2:19 PM, chrabers <chrabers@...> wrote:

                >
                > --- In gpsxml@yahoogroups.com, Robert Lipe <robertlipe@...> wrote:
                > > Not a direct answer, but if the GPX 1.0 files don't use extensions,
                > GPSBabel
                > > can rewrite them, recasting things like the tweaked spellings of URLs
                > and
                > > such.
                > >
                > > If there are extensions in play, things are more complicated as you
                > may
                > > have to change the extensions themselves.
                >
                > There are no extensions in my files but GPSBabel has more problems
                > transforming gpx 1.0 to 1.1. Here is an example:
                >

                Actually, that's part of an example, not a reproducible test case.


                >
                > <?xml version="1.0" encoding="iso-8859-1"?>
                > <gpx version="1.0" creator="www.tourfinder.net"
                > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                > xmlns="http://www.topografix.com/GPX/1/0"
                > xsi:schemaLocation="http://www.topografix.com/GPX/1/0
                > http://www.topografix.com/GPX/1/0/gpx.xsd">
                >
                > <url>http://www.tourfinder.net/do/tour?action=show&part=overview&\
                > ;id=1172&categoryId=1</url>
                > <urlname>Tour: Biotopo Marocce di Dro</urlname>
                >
                > will be transformed to this:
                >
                > <?xml version="1.0" encoding="UTF-8"?>
                > <gpx
                > version="1.1"
                > creator="GPSBabel - http://www.gpsbabel.org"
                > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                > xmlns="http://www.topografix.com/GPX/1/1"
                > xsi:schemaLocation="http://www.topografix.com/GPX/1/0
                > http://www.topografix.com/GPX/1/0/gpx.xsd">
                > <metadata>
                > <url>http://www.tourfinder.net/do/tour?action=show&part=overview&id=1172\
                > &categoryId=1</url>
                > <urlname>Tour: Biotopo Marocce di Dro </urlname>
                >
                > 1) the schema location is that of 1.0 so that there is a mixup between
                > 1.0 and 1.1
                > 2) <url> and <urlname> are not transformed to <link>
                > 3) & is transformed to &
                > The result is a nonvalid gpx file.
                >
                > So GPSBabel is no solution.
                >

                #1 is indeed a bug that we introduced when trying to preserve headers.

                I don't see either #2 or #3. If you're interested in pursuing that, the
                gpsbabel mailing list is probably the place for that.

                $ cat blah10.gpx
                <?xml version="1.0" encoding="UTF-8"?>
                <gpx>
                <time>2010-03-03T03:06:31Z</time>
                <bounds minlat="35.972033333" minlon="-87.134700000" maxlat="36.112183333"
                maxlon="-86.620116667"/>
                <wpt lat="35.972033333" lon="-87.134700000">
                <ele>0.000000</ele>
                <name>GCEBB</name>
                <cmt>Mountain Bike Heaven by susy1313</cmt>
                <desc>Mountain Bike Heaven by susy1313</desc>
                <url>
                http://www.tourfinder.net/do/tour?action=show&part=overview&id=1172&categoryId=1
                </url>
                <urlname>Cache Details</urlname>
                <sym>geocache</sym>
                </wpt>
                </gpx>
                dhcp-172-19-0-174:gpsbabel robertlipe$ ./gpsbabel -i gpx -f blah10.gpx -o
                gpx,gpxver=1.1 -F -
                <?xml version="1.0" encoding="UTF-8"?>
                <gpx
                version="1.1"
                creator="GPSBabel - http://www.gpsbabel.org"
                xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                xmlns="http://www.topografix.com/GPX/1/1"
                xsi:schemaLocation="http://www.topografix.com/GPX/1/0
                http://www.topografix.com/GPX/1/0/gpx.xsd">
                <metadata>
                <time>2010-03-03T03:31:06Z</time>
                <bounds minlat="35.972033333" minlon="-87.134700000" maxlat="35.972033333"
                maxlon="-87.134700000"/>
                </metadata>
                <wpt lat="35.972033333" lon="-87.134700000">
                <ele>0.000000</ele>
                <name>GCEBB</name>
                <cmt>Mountain Bike Heaven by susy1313</cmt>
                <desc>Mountain Bike Heaven by susy1313</desc>
                <link href="
                http://www.tourfinder.net/do/tour?action=show&part=overview&id=1172&categoryId=1
                ">
                <text>Cache Details</text>
                </link>
                <sym>geocache</sym>
                </wpt>
                </gpx>


                [Non-text portions of this message have been removed]
              • chrabers
                ... For getting the 3 bugs with GPSBabel 1.3.6 and 1.3.7-beta20100215 (WinXP) I used the following input:
                Message 7 of 8 , Mar 3, 2010
                • 0 Attachment
                  > Actually, that's part of an example, not a reproducible test case.

                  For getting the 3 bugs with GPSBabel 1.3.6 and 1.3.7-beta20100215 (WinXP) I used the following input:
                  <?xml version="1.0" encoding="iso-8859-1"?>
                  <gpx version="1.0" creator="www.tourfinder.net"
                  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.topografix.com/GPX/1/0"
                  xsi:schemaLocation="http://www.topografix.com/GPX/1/0 http://www.topografix.com/GPX/1/0/gpx.xsd">
                  <url>http://www.tourfinder.net/do/tour?action=show&part=overview&id=1172&categoryId=1</url>
                  <urlname>Tour: Biotopo Marocce di Dro</urlname>
                  <bounds minlat="45.919353" minlon="10.885391" maxlat="46.018574" maxlon="10.961266"/>
                  <trk>
                  <trkseg>
                  <trkpt lat="45.924503" lon="10.896528">
                  <ele>290.0</ele>
                  </trkpt>
                  <trkpt lat="45.924503" lon="10.897515">
                  <ele>144.0</ele>
                  </trkpt>
                  </trkseg>
                  </trk>
                  </gpx>

                  GPSBabelGUI for 1.3.6 produced the following command line:
                  gpsbabel.exe -p "" -w -t -i gpx -f "C:\test\gpx-test-1.0.gpx" -o gpx,gpxver=1.1 -F "C:\test\gpx-test-1.1-by-1.3.6.gpx"

                  and the GUI for the beta showed the following command:
                  gpsbabel -w -r -t -i gpx -f C:/test/gpx-test-1.0.gpx -o gpx,gpxver=1.1 -F C:/test/gpx-test-1.1.gpx

                  The result is exactly the same for both program versions - ignoring the generated timestamp:
                  <?xml version="1.0" encoding="UTF-8"?>
                  <gpx
                  version="1.1"
                  creator="GPSBabel - http://www.gpsbabel.org"
                  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                  xmlns="http://www.topografix.com/GPX/1/1"
                  xsi:schemaLocation="http://www.topografix.com/GPX/1/0 http://www.topografix.com/GPX/1/0/gpx.xsd">
                  <metadata>
                  <url>http://www.tourfinder.net/do/tour?action=show&part=overview&id=1172&categoryId=1</url>
                  <urlname>Tour: Biotopo Marocce di Dro </urlname>
                  <time>2010-03-03T22:00:09Z</time>
                  <bounds minlat="45.924503000" minlon="10.896528000" maxlat="45.924503000" maxlon="10.897515000"/>
                  </metadata>
                  <trk>
                  <trkseg>
                  <trkpt lat="45.924503000" lon="10.896528000">
                  <ele>290.000000</ele>
                  </trkpt>
                  <trkpt lat="45.924503000" lon="10.897515000">
                  <ele>144.000000</ele>
                  </trkpt>
                  </trkseg>
                  </trk>
                  </gpx>
                • Robert Lipe
                  Ah, it s the top level metadata that s getting mangled and not the one that s in wpt/trk/rte. That s why I wasn t seeing it. Thanx for the test case.
                  Message 8 of 8 , Mar 4, 2010
                  • 0 Attachment
                    Ah, it's the top level metadata <url> that's getting mangled and not the one
                    that's in wpt/trk/rte. That's why I wasn't seeing it. Thanx for the test
                    case.

                    On Wed, Mar 3, 2010 at 2:23 PM, chrabers <chrabers@...> wrote:

                    > > Actually, that's part of an example, not a reproducible test case.
                    >
                    > For getting the 3 bugs with GPSBabel 1.3.6 and 1.3.7-beta20100215 (WinXP) I
                    > used the following input:
                    > <?xml version="1.0" encoding="iso-8859-1"?>
                    > <gpx version="1.0" creator="www.tourfinder.net"
                    > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="
                    > http://www.topografix.com/GPX/1/0"
                    > xsi:schemaLocation="http://www.topografix.com/GPX/1/0
                    > http://www.topografix.com/GPX/1/0/gpx.xsd">
                    > <url>
                    > http://www.tourfinder.net/do/tour?action=show&part=overview&id=1172&categoryId=1
                    > </url>
                    > <urlname>Tour: Biotopo Marocce di Dro</urlname>
                    > <bounds minlat="45.919353" minlon="10.885391" maxlat="46.018574"
                    > maxlon="10.961266"/>
                    > <trk>
                    > <trkseg>
                    > <trkpt lat="45.924503" lon="10.896528">
                    > <ele>290.0</ele>
                    > </trkpt>
                    > <trkpt lat="45.924503" lon="10.897515">
                    > <ele>144.0</ele>
                    > </trkpt>
                    > </trkseg>
                    > </trk>
                    > </gpx>
                    >
                    > GPSBabelGUI for 1.3.6 produced the following command line:
                    > gpsbabel.exe -p "" -w -t -i gpx -f "C:\test\gpx-test-1.0.gpx" -o
                    > gpx,gpxver=1.1 -F "C:\test\gpx-test-1.1-by-1.3.6.gpx"
                    >
                    > and the GUI for the beta showed the following command:
                    > gpsbabel -w -r -t -i gpx -f C:/test/gpx-test-1.0.gpx -o gpx,gpxver=1.1 -F
                    > C:/test/gpx-test-1.1.gpx
                    >
                    > The result is exactly the same for both program versions - ignoring the
                    > generated timestamp:
                    > <?xml version="1.0" encoding="UTF-8"?>
                    > <gpx
                    > version="1.1"
                    > creator="GPSBabel - http://www.gpsbabel.org"
                    > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                    > xmlns="http://www.topografix.com/GPX/1/1"
                    > xsi:schemaLocation="http://www.topografix.com/GPX/1/0
                    > http://www.topografix.com/GPX/1/0/gpx.xsd">
                    > <metadata>
                    > <url>
                    > http://www.tourfinder.net/do/tour?action=show&part=overview&id=1172&categoryId=1
                    > </url>
                    > <urlname>Tour: Biotopo Marocce di Dro </urlname>
                    > <time>2010-03-03T22:00:09Z</time>
                    > <bounds minlat="45.924503000" minlon="10.896528000" maxlat="45.924503000"
                    > maxlon="10.897515000"/>
                    > </metadata>
                    > <trk>
                    > <trkseg>
                    > <trkpt lat="45.924503000" lon="10.896528000">
                    > <ele>290.000000</ele>
                    > </trkpt>
                    > <trkpt lat="45.924503000" lon="10.897515000">
                    > <ele>144.000000</ele>
                    > </trkpt>
                    > </trkseg>
                    > </trk>
                    > </gpx>
                    >
                    >
                    >
                    >
                    > ------------------------------------
                    >
                    > Yahoo! Groups Links
                    >
                    >
                    >
                    >


                    [Non-text portions of this message have been removed]
                  Your message has been successfully submitted and would be delivered to recipients shortly.