Changeset 705 in josm for trunk


Ignore:
Timestamp:
2008-07-12T12:38:34+02:00 (16 years ago)
Author:
(none)
Message:

somehow usable version of the overview page xsl

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/styles/standard/overview.xsl

    r703 r705  
    1414
    1515
    16        
     16<xsl:variable name="xscale">20</xsl:variable>
     17<xsl:variable name="yscale">10</xsl:variable>
     18
    1719       
    1820       
     
    7779                        <xsl:with-param name="inpos" select="$inpos + 1"/>
    7880                        <xsl:with-param name="xpos" select="$xpos"/>
    79                         <xsl:with-param name="ypos" select="$ypos + 1"/>
     81                        <xsl:with-param name="ypos" select="$ypos + $yscale"/>
    8082            </xsl:call-template>
    8183        </xsl:if>
     
    9799        <xsl:param name="key"/>
    98100        <xsl:param name="xpos"/>
     101
     102
     103        <xsl:variable name="xoffset"><xsl:value-of select="number($xpos*$xscale)" /></xsl:variable>
     104
    99105       
    100106        <!-- header item -->
    101107        <xsl:variable name="xoutpos">
    102108                <xsl:choose>
    103                         <xsl:when test="$xpos &gt;= 100"><xsl:value-of select="$xpos" /></xsl:when>
    104                         <xsl:when test="$xpos &gt;= 10">0<xsl:value-of select="$xpos" /></xsl:when>
    105                         <xsl:otherwise>00<xsl:value-of select="$xpos" /></xsl:otherwise>
     109                        <xsl:when test="$xoffset &gt;= 100"><xsl:value-of select="$xoffset" /></xsl:when>
     110                        <xsl:when test="$xoffset &gt;= 10">0<xsl:value-of select="$xoffset" /></xsl:when>
     111                        <xsl:otherwise>00<xsl:value-of select="$xoffset" /></xsl:otherwise>
    106112                </xsl:choose>
    107113        </xsl:variable>
    108114       
    109115        <xsl:element name="node">
    110                 <xsl:attribute name="id">-<xsl:value-of select="$xpos" />0000</xsl:attribute>
     116                <xsl:attribute name="id">-<xsl:value-of select="$xoffset" />0000</xsl:attribute>
    111117                <xsl:attribute name="user">overview-creator</xsl:attribute>
    112118                <xsl:attribute name="visible">true</xsl:attribute>
     
    128134                <xsl:with-param name="key" select="$key"/>
    129135                <xsl:with-param name="inpos" select="1"/>
    130                 <xsl:with-param name="xpos" select="$xpos"/>
    131                 <xsl:with-param name="ypos" select="1"/>
     136                <xsl:with-param name="xpos" select="$xoffset"/>
     137                <xsl:with-param name="ypos" select="$yscale"/>
    132138    </xsl:call-template>
    133139</xsl:template>
Note: See TracChangeset for help on using the changeset viewer.