nadpisy <sect1> v hlavicce PDF
Jirka Kosek
jirka na kosek.cz
Čtvrtek Říjen 9 16:00:16 CEST 2003
kecup4 na centrum.cz wrote:
> konkretne jsem zkousel ruzne varianty retrieve-class-name, retrieve-
> position a retrieve-boundary (podle specifikace FO), ale vysledky
> jsou porad spatne, stale se generuji nadpisy <sect2>, jen se meni
> jejich hodnoty v zavislosti na nastaveni retrieve-class-name.
>
> Jde nejak vnutit, aby se zpracovavaly pouze sekce prvni urovne?
Zkuste:
<xsl:template name="section.heading">
<xsl:param name="level" select="1"/>
<xsl:param name="marker" select="1"/>
<xsl:param name="title"/>
<xsl:param name="titleabbrev"/>
<fo:block xsl:use-attribute-sets="section.title.properties">
<xsl:if test="($marker != 0) and ($level = 1)">
<fo:marker marker-class-name="section.head.marker">
<xsl:choose>
<xsl:when test="$titleabbrev = ''">
<xsl:value-of select="$title"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$titleabbrev"/>
</xsl:otherwise>
</xsl:choose>
</fo:marker>
</xsl:if>
<xsl:choose>
<xsl:when test="$level=1">
<fo:block xsl:use-attribute-sets="section.title.level1.properties">
<xsl:copy-of select="$title"/>
</fo:block>
</xsl:when>
<xsl:when test="$level=2">
<fo:block xsl:use-attribute-sets="section.title.level2.properties">
<xsl:copy-of select="$title"/>
</fo:block>
</xsl:when>
<xsl:when test="$level=3">
<fo:block xsl:use-attribute-sets="section.title.level3.properties">
<xsl:copy-of select="$title"/>
</fo:block>
</xsl:when>
<xsl:when test="$level=4">
<fo:block xsl:use-attribute-sets="section.title.level4.properties">
<xsl:copy-of select="$title"/>
</fo:block>
</xsl:when>
<xsl:when test="$level=5">
<fo:block xsl:use-attribute-sets="section.title.level5.properties">
<xsl:copy-of select="$title"/>
</fo:block>
</xsl:when>
<xsl:otherwise>
<fo:block xsl:use-attribute-sets="section.title.level6.properties">
<xsl:copy-of select="$title"/>
</fo:block>
</xsl:otherwise>
</xsl:choose>
</fo:block>
</xsl:template>
--
-----------------------------------------------------------------
Jirka Kosek
e-mail: jirka na kosek.cz
http://www.kosek.cz
------------- další část ---------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3403 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://www.linux.cz/pipermail/docbook/attachments/20031009/cc2adefe/attachment.bin>
Další informace o konferenci Docbook