[OSM-dev] [RFC] Add bounding box information to OSM files.

Robert Hart Robert.Hart at BuroHappold.com
Sun Sep 17 22:37:50 BST 2006


 
> Something like this ought to work: 
> 
> <xsl:choose>
>  <xsl:when test='/rules/@bllat'>
>     <xsl:variable name='bllat'><value-of select='/rules/@bllat'/>
>     <xsl:variable name='blllon'><value-of select='/rules/@bllon'/> 
>     ...
>   </xsl:when>
>   <xsl:when test='$data/osm/@bllat'>
>     <xsl:variable name='bllat'><value-of select='$data/@bllat'/>
>     <xsl:variable name='blllon'><value-of select='$data/@bllon'/>
>    ...
>   </xsl:when>
>   <xsl:otherwise'>
>     <!-- existing code for bllat bllon etc goes here -->
>   </xsl:otherwise>
> </xsl:choose>



You'd think so wouldn't you. Would appear you can't have an xsl:choose as a
top-level element though. *sigh* will have to think some more.

Rob



 


Rob
<<ouputbbox.diff>>  <<osmarender.xsl >>



_______________________________________________
dev mailing list
dev at openstreetmap.org <mailto:dev at openstreetmap.org> 
 <http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/dev>
http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/dev








This message has been scanned for viruses by MailControl - www.mailcontrol.com




More information about the dev mailing list