openstreetmap-website/app/views/notes
Markus Heidelberg 166dc76ae9 Make notes GPX valid and add useful official elements
The "creator" attribute is required and "extensions" is the correct
name of this element.

Validated with SAXCount from the xerces-c package:

$ SAXCount -v=always -n -s -f notes.gpx

Original error messages:

    Error at file /home/markus/notes.gpx, line 2, char 171
      Message: no declaration found for element 'gpx'

    Error at file /home/markus/notes.gpx, line 2, char 171
      Message: attribute 'version' is not declared for element 'gpx'

After adding the "xmlns" attribute:

    Error at file /home/markus/notes.gpx, line 2, char 213
      Message: missing required attribute 'creator'

    Error at file /home/markus/notes.gpx, line 18, char 14
      Message: no declaration found for element 'extension'

    Error at file /home/markus/notes.gpx, line 26, char 7
      Message: element 'extension' is not allowed for content model '(ele?,time?,magvar?,geoidheight?,name?,cmt?,desc?,src?,link*,sym?,type?,fix?,sat?,hdop?,vdop?,pdop?,ageofdgpsdata?,dgpsid?,extensions?)'

The current errors now are caused by the missing XML schema for the
extensions.

Also add the time, name and link elements.
2015-08-10 19:11:18 +01:00
..
_comment.html.erb Fix double escaping of date markup in note feed 2013-05-07 11:23:56 +01:00
_description.html.erb Rework the generation of descriptions in the notes RSS feed 2013-04-26 19:34:32 +01:00
_entry.html.erb Rework the generation of descriptions in the notes RSS feed 2013-04-26 19:34:32 +01:00
_note.gpx.builder Make notes GPX valid and add useful official elements 2015-08-10 19:11:18 +01:00
_note.json.jsonify Use note.closed? in a consistent way 2013-06-11 18:26:54 +01:00
_note.rss.builder Fix a missing translation 2015-07-23 14:23:23 +01:00
_note.xml.builder Return "action" of a note comment in the xml formatting to 2013-07-29 21:23:47 +01:00
_notes_paging_nav.html.erb Revert "Fix off-by-one error in user notes list" 2014-07-26 10:34:57 +01:00
_user.html.erb Restructure notes URLs according to standard rails conventions 2012-03-10 17:04:57 +00:00
feed.rss.builder Report reopened notes properly in the RSS feed 2013-07-03 17:42:04 +01:00
index.gpx.builder Make notes GPX valid and add useful official elements 2015-08-10 19:11:18 +01:00
index.json.jsonify Restructure notes URLs according to standard rails conventions 2012-03-10 17:04:57 +00:00
index.rss.builder Fix exception with GPX and RSS notes#index when no notes are found 2013-04-24 19:17:13 +01:00
index.xml.builder Wrap XML notes responses in an <osm> wrapper 2013-04-24 18:18:20 +01:00
mine.html.erb Use note.closed? in a consistent way 2013-06-11 18:26:54 +01:00
show.gpx.builder Make notes GPX valid and add useful official elements 2015-08-10 19:11:18 +01:00
show.json.jsonify Restructure notes URLs according to standard rails conventions 2012-03-10 17:04:57 +00:00
show.rss.builder Restructure notes URLs according to standard rails conventions 2012-03-10 17:04:57 +00:00
show.xml.builder Wrap XML notes responses in an <osm> wrapper 2013-04-24 18:18:20 +01:00