I feel dirty, I’ve touched XSL…
It was easy to do easy stuff, very easy actually from knowing nothing about XSL to getting a list of names and IDs took about 15 min. But doing more advanced stuff was pretty hard.
ways names + way id.
Södermälarstrand 1300
Hornsgatan 1303
Stora Nygatan 1973
Västerlånggatan 1975
Österlånggatan 1631237
Prästgatan 1631238
Lilla Nygatan 1631239
Högbergsgatan 1631241
include as stylesheet in XML
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="text"/>
<xsl:template match="/osm">
<xsl:for-each select="way/tag[@k='name']">
<xsl:value-of select="@v"/><xsl:text> </xsl:text>
<xsl:value-of select="../@id"/><xsl:text>
</xsl:text>
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>