Velikost title pro section jako velikost title pro chapter?
Jan Tošovský
j.tosovsky na tiscali.cz
Pátek Únor 5 20:10:30 CET 2010
> Zkusil jsem, ale nepomáhá.
> Použil jsem attribute-set (varianty pro role="mytitle" i
> renderas="chapter"):
>
> <xsl:attribute-set name="section.title.level1.properties">
> <xsl:attribute name="background-color">
> <xsl:choose>
> <xsl:when test="@role='mytitle'">rgb(186, 219, 100)</xsl:when>
> <xsl:otherwise>#E0E0E0</xsl:otherwise>
> </xsl:choose>
> </xsl:attribute>
> <xsl:attribute name="font-size">
> <xsl:choose>
> <xsl:when test="@role='mytitle'">
> <xsl:value-of select="$body.font.master * 2.43882"/>
> <xsl:text>pt</xsl:text>
> </xsl:when>
> <xsl:otherwise>
> <xsl:value-of select="$body.font.master * 4.43882"/>
> <xsl:text>pt</xsl:text>
> </xsl:otherwise>
> </xsl:choose>
> </xsl:attribute>
> </xsl:attribute-set>
>
> ignoruje jak podmínky a vždy bere otherwise.
> Na rozdíl od tohoto level1, level2 dělá, co má, když je pro
> ni použit stejný attribute-set. Atribut role pro section na
> první úrovni nefunguje? Pro druhou funguje.
Mno, zmenil bych pokusne hodnotu v otherwise. Treba se ukaze, ze je cely kod
ignorovan ;-)
Pak bude treba hledat zradu o krok drive.
Další informace o konferenci Docbook