[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook-apps] titles of <sect1> into the headers in PDF
I tryied 4 variations of retrieve-position: first-starting-within-page | first-including-carryover | last- starting-within-page | last-ending-within-page and 3 of retrieve-boundary: page | page-sequence | document (there was error messaged with "page" value during rendering by FOP) It produced various output, but no one was usable. Now I set them to default values. Petr Rajsky ______________________________________________________________ > Od: Bob Stayton <bobs@sco.com> > Komu: kecup4@centrum.cz > CC: docbook-apps@lists.oasis-open.org > Datum: Tue, 14 Oct 2003 09:37:02 -0700 > Předmět: Re: [docbook-apps] titles of <sect1> into the headers in PDF > > You don't say how you manipulated the > retrieve-position and retrieve-boundary properties. > Those are probably the source of this problem. > > > Bob Stayton 400 Encinal Street > Publications Architect Santa Cruz, CA 95060 > Technical Publications voice: (831) 427-7796 > The SCO Group fax: (831) 429-1887 > email: bobs@sco.com > > > On Tue, Oct 14, 2003 at 03:22:55PM +0200, kecup4@centrum.cz wrote: > > Hello, > > > > i have document with following structure: > > > > <article> > > <sect1> > > > > <sect2> > > </sect2> > > > > <sect2> > > </sect2> > > > > </sect1> > > > > > > <sect1> > > > > <sect2> > > </sect2> > > > > <sect2> > > </sect2> > > > > </sect1> > > </article> > > > > I produce PDF output. What i need is generating titles of relevant > > <sect1> in page header (every <sect1> starts on new page). > > > > I manipulated with retrieve-position a retrieve-boundary in > > header.content template but it didn't work for me, it generated > > <sect2> titles instead, until Jirka Kosek sent me this template: > > > > <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> > > > > It works much better, i really have <sect1> titles in headers, but > > there are still some bug - in headers there are renderred titles of > > NEXT <sect1> not of CURRENT ONE. Only headers of last <sect1> are OK. > > > > Did somebody solved rederring of section's titles into the headers? > > > > Thank very much, > > Petr Rajsky > > > > > > -------------------- > > MMS telefon Nokia 6100 již od 5577 Kč. http://user.centrum.cz/redir.php? url=http://www.oskarmobil.cz/services/whatsnew.php#moje > > > > > > > > > > > > To unsubscribe from this list, send a post to docbook-apps- unsubscribe@lists.oasis-open.org, or visit http://www.oasis- open.org/mlmanage/. > > > > > > -- > > Bob Stayton 400 Encinal Street > Publications Architect Santa Cruz, CA 95060 > Technical Publications voice: (831) 427-7796 > The SCO Group fax: (831) 429-1887 > email: bobs@sco.com > > To unsubscribe from this list, send a post to docbook-apps- unsubscribe@lists.oasis-open.org, or visit http://www.oasis- open.org/mlmanage/. > -------------------- MMS telefon Nokia 6100 již od 5577 Kč. http://user.centrum.cz/redir.php?url=http://www.oskarmobil.cz/services/whatsnew.php#moje
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]