[OSM-dev] [RFC] Add bounding box information to OSM files.
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
> 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.
> 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..
> This message has been scanned for viruses by MailControl -
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the dev