Mike<br>Firstly, there's a fundamental bug in the <addclass> instruction which prevents it from rendering any rules contained within it in the correct sequence.  In almost all cases there is a way of achieving the same result withup using <addclass>.  The plan is to deprecate this instruction and it will not be available in the next version of Osmarender.
<br><br>In your case the following would work:<br><rule e="segment|way" k="highway" v="primary"><br>  <line class='highway-core highway-primary-core' /><br></rule>
<br><rule e="segment|way" k="highway" v="secondary"><br>  <line class='highway-core highway-secondary-core' /><br></rule><br><br><rule k="route" v="ncn">
<br>  <rule e="segment|way" k="highway" v="primary"><br>
    <line class='highway-core highway-primary-core route-ncn' /><br>  </rule>
<br>  <rule e="segment|way" k="highway" v="secondary"><br>
    <line class='highway-core highway-secondary-core route-ncn' /><br>  </rule><br></rule><br><br>The rules are executed in strict sequence and so the second set of rules will paint over the first set.
<br><br>The styles referenced by the class attribute obey the standard CSS rules, so anything in route-ncn will override a similar property in highway-secondary-core, for example.<br><br>You seem to be doing the right kind of thing.
<br><br>I'll be presenting a workshop at SotM next weekend if you want to learn more about Osmarender.<br><br>Etienne<br><br><br><div><span class="gmail_quote">On 7/6/07, <b class="gmail_sendername">mike</b> <<a href="mailto:mike@bristolbeat.co.uk">
mike@bristolbeat.co.uk</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">I'm using osmarender (well - actually tilesAtHome) to build a cycle oriented map.
<br><br>So far I have greyed out all the roads to make them less prominent. I would like to add color: red to any highways with a route=ncn tag
<br><br>I'm just looking at the addclass statement in osmarender, but I'm a little unsure - can anyone see if the following makes sense?<br><br><addclass k="route" v="ncn" class="route-ncn">
<br>                        <rule e="segment|way" k="highway" v="primary"><br>                            <line class='highway-core highway-primary-core' /><br>                        </rule>
<br>                        <rule e="segment|way" k="highway" v="secondary"><br>                            <line class='highway-core highway-secondary-core' /><br>                       </rule>
<br>...<br></addclass><br><br>I'm also unsure, if it does add the class, what will take precedence  e.g. highway-primary-core (color: #c0c0c0;) or route-ncn (color: red;) ?<br><br>If anyone has a good osmarender rule set for cycling that would help..!
<br><br>Also, I'm very new to this xsl / svg stuff, so any tips on debugging would be really, really usefull.<br><br>cheers,<br><span class="sg"><br>mike<br><br>
</span><br>_______________________________________________<br>dev mailing list<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:dev@openstreetmap.org">dev@openstreetmap.org</a><br><a onclick="return top.js.OpenExtLink(window,event,this)" href="http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/dev" target="_blank">
http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/dev</a><br><br></blockquote></div><br>