Rob<br>An xpath expression like $elements[tag[@k="name"]] will select all nodes and ways with a name tag.  You don't need to do anything special to combine nodes and ways, because the $elements variable is already a set of nodes and ways that match the rule (assuming the rule is <rule e="node|way">).
<br><br>If you want all the names in alphabetical order try something like:<br><xsl:for-each select='$elements[[tag[@k="name"]]/@name''><br>  <xsl:sort order="ascending"><br>  ...<br><br>Etienne
<br><br><br><br>On 9/26/06, <b class="gmail_sendername">Robert Hart</b> <<a href="mailto:Robert.Hart@burohappold.com">Robert.Hart@burohappold.com</a>> wrote:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I just had a brain wave. If ways are ordered lists of nodes, then POIs can<br>be ways containing only one node. This may sound odd, but I think it has<br>real advantages (well at least one advantage anyway...)<br><br>I've been playing around with creating map indices in osmarender. To do this
<br>I need to know the name and approximate location of everything that should<br>be included in the index. This means I have to handle nodes and ways/areas<br>seperately, which is going to be painful if I want the whole index in
<br>alphabetical order (as opposed to having separate indices for ways and<br>nodes). If POIs were single-node ways, everything would just work with one<br>code path.</blockquote><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Rob<br><br><br><br>This message has been scanned for viruses by MailControl - <a href="http://www.mailcontrol.com">www.mailcontrol.com</a><br><br>_______________________________________________<br>talk mailing list<br><a href="mailto:talk@openstreetmap.org">
talk@openstreetmap.org</a><br><a href="http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/talk">http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/talk</a><br></blockquote></div><br>