diff --git a/apps/gpstrek/convert.xsl b/apps/gpstrek/convert.xsl index 7afbd68132..72b19b565d 100644 --- a/apps/gpstrek/convert.xsl +++ b/apps/gpstrek/convert.xsl @@ -1,5 +1,5 @@ - + diff --git a/apps/gpstrek/interface.html b/apps/gpstrek/interface.html index 1f6ed1f378..b645abb53c 100644 --- a/apps/gpstrek/interface.html +++ b/apps/gpstrek/interface.html @@ -15,6 +15,9 @@ function handleOnload(readerEvent){ var content = readerEvent.target.result; + // Replace the gpx version 1.0 with 1.1 to allow parsing older gpx files. The nodes referenced by the xsl exist in both versions. + content = content.replaceAll("http://www.topografix.com/GPX/1/0", "http://www.topografix.com/GPX/1/1"); + var xsltProcessor = new XSLTProcessor(); var myXMLHTTPRequest = new XMLHttpRequest();