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

Etienne 80n80n at gmail.com
Sun Sep 17 23:00:18 BST 2006


Robert
Try moving it all inside the first template:

<xsl:template match="/rules">
  <!-- put it here -->
</xsl: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.

Etienne


On 9/17/06, Robert Hart <Robert.Hart at burohappold.com> wrote:
>
>
> > 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/dev/attachments/20060917/1c9b04b6/attachment.html>


More information about the dev mailing list