After a few exciting hours learning XSLT 2.0, I've created this:

http://wiki.openstreetmap.org/wiki/User_talk:Stevage/Mapnik-support

In summary, it provides a simple function: "Does Mapnik currently make
reference to <tag>=<value> in its oms.xml file?"  That is,
{{Mapnik-support|railway|tram}} returns "yes",
{{Mapnik-support|sport|cricket}} returns "no".

My intention is that calls to this template could be embedded in the various
{{Map Features:...}} templates, adding tool support to the information
documented about each tag.

The template was generated in one pass using XSLT 2.0 from an untreated
osm.xml (I had to create some required .inc files, though). I'm hoping that
by making it easy to generate, the information can be kept up to date on the
wiki with no effort.

What does everyone think?

Next steps:
* Refine the template a bit, possibly add more information about how the
tags are supported
* Look for other supported tags that don't show up in the osm.xml (like
name=*, was one) (anyone have ideas?)
* Repeat for other renderers, routers, editors
* Spread calls to the template throughout the {{Map Features:...}}
templates.

I've also created this list of tags, with the same XSLT transform:
http://wiki.openstreetmap.org/wiki/User:Stevage/mapnik

Steve
PS Generated using Saxon HE 9.2.0.3j.
_______________________________________________
Tagging mailing list
Tagging@openstreetmap.org
http://lists.openstreetmap.org/listinfo/tagging

Reply via email to