Hello and good day,
I am brand new to GIS and to this forum so please bear with me for asking a newbie question. I have an xslt that works on a split osm file[germany.osm.bz2]
What I want to do is parse all elements of 'amenity' and @v='restaurant.
In other words i want to gather all "available" elements (nodes, ways and relations) to match the elements I need to rework the given filter below so that we can get all elements.... See the current XSLT -
<xsl:stylesheet version = '1.0'
xmlns="http://www.w3.org/1999/xhtml"
xmlns:xml_split="http://xmltwig.com/xml_split"
xmlns:xsl='http://www.w3.org/1999/XSL/Transform'>
<xsl:output method="text" encoding="UTF-8"/>
<xsl:template match="/">
<xsl:for-each select="xml_split:root/node/tag[@k='amenity' and @v='restaurant']">
<xsl:value-of select="../@id"/>
<xsl:text>	</xsl:text>
<xsl:value-of select="../@lat"/>
<xsl:text>	</xsl:text>
<xsl:value-of select="../@lon"/>
<xsl:text>	</xsl:text>
<xsl:for-each select="../tag[@k='name']">
<xsl:value-of select="@v"/>
</xsl:for-each>
<xsl:text>
</xsl:text>
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>
it gives back the following results
"27376049 49.6499423 8.5543447 Clubhaus SC Olympia Lorsch"
"27407910 49.7045590 8.5115993 Forsthaus Jägersburg"
"27433397 51.4588114 7.0073003 Unperfekthaus"
"27433643 50.0081188 9.0691993 Schützenhaus"
"27453754 49.6358087 8.4547972 Feldschlössel"
"27474067 50.1880211 9.1742722 Pizzeria A66"
"27475403 49.0062148 8.3369945 Marty's Restaurant"
"27505752 48.4081456 11.7959129 Gasthof Nagerl"
"27530181 49.5054702 8.7089191 Zum Pflug"
I want to have a more in depth results with all tags. What modifications do I need to make to the xslt-file?
I hope that I was able to ask the question correctly. If you have any questions do not hesitate to ask..
Update: moved the question - thx to Stev_K. Thx for all your help here. Guess that the question has a far more appropiate place at Stackoverflow!