equal
deleted
inserted
replaced
1482 |
1482 |
1483 |
1483 |
1484 <!-- ====== collections ============= --> |
1484 <!-- ====== collections ============= --> |
1485 |
1485 |
1486 <xsl:template match="collection"> |
1486 <xsl:template match="collection"> |
1487 |
|
1488 <xsl:variable name="y" > |
1487 <xsl:variable name="y" > |
1489 <xsl:choose> |
1488 <xsl:choose> |
1490 <xsl:when test="ancestor::package/@levels or not(ancestor::layer/meta[@rel='model-levels'])"> |
1489 <xsl:when test="ancestor::package/@levels or not(ancestor::layer/meta[@rel='model-levels'])"> |
1491 <!-- the positions come from the pkg only --> |
1490 <!-- the positions come from the pkg only --> |
1492 <xsl:value-of select="count(../meta[@rel='model-levels']/level[(current()[not(@level)] and not(@name)) or @name=current()/@level]/following-sibling::level) * ($mHeight + $groupDy)"/> |
1491 <xsl:value-of select="count(../meta[@rel='model-levels']/level[(current()[not(@level)] and not(@name)) or @name=current()/@level]/following-sibling::level) * ($mHeight + $groupDy)"/> |
1499 </xsl:choose> |
1498 </xsl:choose> |
1500 </xsl:variable> |
1499 </xsl:variable> |
1501 |
1500 |
1502 <xsl:variable name="on-level" select="preceding-sibling::collection[(current()[not(@level)] and not(@level)) or @level=current()/@level]"/> |
1501 <xsl:variable name="on-level" select="preceding-sibling::collection[(current()[not(@level)] and not(@level)) or @level=current()/@level]"/> |
1503 |
1502 |
|
1503 |
1504 <xsl:variable name="x"> |
1504 <xsl:variable name="x"> |
1505 <xsl:choose> |
1505 <xsl:choose> |
|
1506 <xsl:when test="../package and not(preceding-sibling::package)"> |
|
1507 <!-- treat as if it's a normal collection--> |
|
1508 <xsl:value-of select="sum($on-level/@width) + $groupDx * count($on-level) "/> |
|
1509 </xsl:when> |
1506 <xsl:when test="../package"> |
1510 <xsl:when test="../package"> |
1507 <xsl:call-template name="sum-list"> |
1511 <xsl:call-template name="sum-list"> |
1508 <xsl:with-param name="list"> |
1512 <xsl:with-param name="list"> |
1509 <xsl:value-of select="sum(preceding-sibling::package/@width) + $groupDx * count(preceding-sibling::package)"/> |
1513 <xsl:value-of select="sum(preceding-sibling::package/@width) + $groupDx * count(preceding-sibling::package)"/> |
1510 <xsl:text> </xsl:text> |
1514 <xsl:text> </xsl:text> |