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

Etienne 80n80n at gmail.com
Mon Sep 18 10:46:52 BST 2006


On 9/18/06, Robert Hart <Robert.Hart at burohappold.com> wrote:
>
>
> > Try moving it all inside the first template:
> >
> > <xsl:template match="/rules">
> > <!-- put it here -->
> > </xsl:template>
>
> This was the first thing I tried. Unfortunately it then fails later when
> the
> variables are used for something else... would appear they only have scope
> within the node they're defined in.... stupid.


Ah yes.  Variables defined at the top level have global scope, so putting
them inside the main template restricts their scope to just that template.
Duh.

> Alternatively invert it. So that you have:
> >
> > <xsl:variable ...>
> > <xsl:choose>
> > ...
> > </xsl:variable>
> >
> > although this means that the conditions will be repeated for each of
> bllat, bllon, trlat,
> > trlon which is ugly.
>
>
> Will give this a try later.


I hope this works for you..


Rob
>
>
>
> This message has been scanned for viruses by MailControl -
> www.mailcontrol.com
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/dev/attachments/20060918/071fcb35/attachment.html>


More information about the dev mailing list