nadpisy

Tomas.Waller Tomas.Waller na seznam.cz
Pátek Září 11 14:32:33 CEST 2009


Dobrý den!
Mohl bych ještě poprosit o radu:

Chtěl jsem změnit nadpisy obrázků na kurzívu, ale normální, tedy netlusté písmo, a současně ponechat tlusté nekurzivní písmo v nadpisech tabulek. Udělal jsem úpravu uvedenou níže, ale změnila se tloušťka nadpisů jak obrázků, tak tabulek, ovšem kurzíva je jen u nadpisů obrázků. 
Tedy font-weight tady ovlivnil jak tabulky (což nechápu a nechci), tak obrázky, 
ale font-style jen obrázky.
Kde je chyba?
Jak tady odlišit <figure> od <table>?

<xsl:attribute-set name="formal.title.properties" use-attribute-sets="normal.para.spacing">

  <xsl:attribute name="font-weight">
    <xsl:choose>
      <xsl:when test="self::figure"></xsl:when>
      <xsl:otherwise>inherit</xsl:otherwise>
    </xsl:choose>
  </xsl:attribute>

  <xsl:attribute name="font-style">
    <xsl:choose>
      <xsl:when test="self::figure">italic</xsl:when>
      <xsl:otherwise>inherit</xsl:otherwise>
    </xsl:choose>
  </xsl:attribute>

</xsl:attribute-set>

Děkuji předem za radu.
Tomáš Waller



Další informace o konferenci Docbook