equal
deleted
inserted
replaced
341 <xsl:variable name="even" select="($span/@height - $h) div count($spanning)"/> |
341 <xsl:variable name="even" select="($span/@height - $h) div count($spanning)"/> |
342 |
342 |
343 <xsl:for-each select="exslt:node-set($layers)/layer"> |
343 <xsl:for-each select="exslt:node-set($layers)/layer"> |
344 <xsl:copy><xsl:copy-of select="@id|@span"/> |
344 <xsl:copy><xsl:copy-of select="@id|@span"/> |
345 <xsl:choose> |
345 <xsl:choose> |
|
346 <xsl:when test="0"/> <!-- why? was something removed or should something be here?--> |
346 <xsl:otherwise> <!-- layers smaller than spanned --> |
347 <xsl:otherwise> <!-- layers smaller than spanned --> |
347 <xsl:choose> |
348 <xsl:choose> |
348 <xsl:when test="$spanning[@id=current()/@id] and $span/@height > $h"> |
349 <xsl:when test="$spanning[@id=current()/@id] and $span/@height > $h"> |
349 <!-- layers are smaller than spanned layer --> |
350 <!-- layers are smaller than spanned layer --> |
350 <xsl:attribute name="height"><xsl:value-of select="@height + $even"/></xsl:attribute> |
351 <xsl:attribute name="height"><xsl:value-of select="@height + $even"/></xsl:attribute> |
761 <!-- height is explicitly set by levels --> |
762 <!-- height is explicitly set by levels --> |
762 |
763 |
763 <xsl:variable name="content"> |
764 <xsl:variable name="content"> |
764 <xsl:apply-templates mode="sizing"/> |
765 <xsl:apply-templates mode="sizing"/> |
765 </xsl:variable> |
766 </xsl:variable> |
766 |
|
767 <!-- if there's no content, only show if forced to by placeholder-detail --> |
767 <!-- if there's no content, only show if forced to by placeholder-detail --> |
768 <xsl:if test="/SystemDefinition[@placeholder-detail='package' or @placeholder-detail='component' or @placeholder-detail='collection'] |
768 <xsl:if test="/SystemDefinition[@placeholder-detail='package' or @placeholder-detail='component' or @placeholder-detail='collection'] |
769 or exslt:node-set($content)/*[self::package or self::collection]"> |
769 or exslt:node-set($content)/*[self::package or self::collection]"> |
770 <xsl:copy><xsl:apply-templates mode="copy-attr" select="@*"/> |
770 <xsl:copy><xsl:apply-templates mode="copy-attr" select="@*"/> |
771 <xsl:variable name="levels0"> |
771 <xsl:variable name="levels0"> |