[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook-apps] page jumps
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Tuesday June 22 2004 19:29, you wrote: > You don't have to edit fo/component.xsl. See this reference for how to use > a customization layer to override the default template. You might want to > read the rest of that chapter as well. > > http://www.sagehill.net/docbookxsl/ReplaceTemplate.html Ok, I did it, but I had to copy a LOT of code. Now I'd like to do the same for the tables... that is, no page break after the table of contents and table of figures. But I can't find the code that handles exactly that... can you please help me with it ? Thanks. - -- Pupeno: pupeno@pupeno.com - http://www.pupeno.com PS: I had to put all this code in my customization layer: <xsl:template match="chapter"> <xsl:variable name="id"> <xsl:call-template name="object.id"/> </xsl:variable> <xsl:variable name="master-reference"> <xsl:call-template name="select.pagemaster"/> </xsl:variable> <fo:page-sequence hyphenate="{$hyphenate}" master-reference="{$master-reference}"> <xsl:attribute name="language"> <xsl:call-template name="l10n.language"/> </xsl:attribute> <xsl:attribute name="format"> <xsl:call-template name="page.number.format"/> </xsl:attribute> <xsl:choose> <xsl:when test="not(preceding::chapter or preceding::appendix or preceding::article or preceding::dedication or parent::part or parent::reference)"> <!-- if there is a preceding component or we're in a part, the --> <!-- page numbering will already be adjusted --> <xsl:attribute name="initial-page-number">1</xsl:attribute> </xsl:when> <xsl:when test="$double.sided != 0"> <xsl:attribute name="initial-page-number">auto-odd</xsl:attribute> </xsl:when> </xsl:choose> <xsl:attribute name="hyphenation-character"> <xsl:call-template name="gentext"> <xsl:with-param name="key" select="'hyphenation-character'"/> </xsl:call-template> </xsl:attribute> <xsl:attribute name="hyphenation-push-character-count"> <xsl:call-template name="gentext"> <xsl:with-param name="key" select="'hyphenation-push-character-count'"/> </xsl:call-template> </xsl:attribute> <xsl:attribute name="hyphenation-remain-character-count"> <xsl:call-template name="gentext"> <xsl:with-param name="key" select="'hyphenation-remain-character-count'"/> </xsl:call-template> </xsl:attribute> <xsl:apply-templates select="." mode="running.head.mode"> <xsl:with-param name="master-reference" select="$master-reference"/> </xsl:apply-templates> <xsl:apply-templates select="." mode="running.foot.mode"> <xsl:with-param name="master-reference" select="$master-reference"/> </xsl:apply-templates> <fo:flow flow-name="xsl-region-body"> <fo:block id="{$id}"> <xsl:call-template name="chapter.titlepage"/> </fo:block> <xsl:variable name="toc.params"> <xsl:call-template name="find.path.params"> <xsl:with-param name="table" select="normalize-space($generate.toc)"/> </xsl:call-template> </xsl:variable> <xsl:if test="contains($toc.params, 'toc')"> <xsl:call-template name="component.toc"/> <xsl:call-template name="component.toc.separator"/> </xsl:if> <xsl:apply-templates/> <xsl:for-each select="/book/chapter[position() != 1]"> <xsl:call-template name="chapter.continued"/> </xsl:for-each> </fo:flow> </fo:page-sequence> </xsl:template> <xsl:template name="chapter.continued"> <xsl:variable name="id"> <xsl:call-template name="object.id"/> </xsl:variable> <fo:block> <fo:block id="{$id}"> <xsl:call-template name="chapter.titlepage"/> </fo:block> <xsl:variable name="toc.params"> <xsl:call-template name="find.path.params"> <xsl:with-param name="table" select="normalize-space($generate.toc)"/> </xsl:call-template> </xsl:variable> <xsl:if test="contains($toc.params, 'toc')"> <xsl:call-template name="component.toc"/> <xsl:call-template name="component.toc.separator"/> </xsl:if> <xsl:apply-templates/> </fo:block> </xsl:template> <xsl:template match="chapter[preceding-sibling::chapter]"> </xsl:template> -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) iD8DBQFA2Oz5fW48a9PWGkURAhW8AJ4rBwzjDeVFv8EIG/j2twjEyOVoTwCdFMIN P+7WZRr0E023IRpb5eJfUkM= =CiOS -----END PGP SIGNATURE-----
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]