OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]

Subject: Re: [docbook-apps] Selective pagebreaks

El Lunes, 23 de Julio de 2007 20:58, Nelson, Dean escribió:

> Ideally I would like to make a PI that I can use on selected sections
> that intelligently says "start a new page now". Any ideas?

If you meant "start a new page on this section but not in this other", in LFS 
we have a customization that creates conditional new pages for sect1 based on 
if a descendant sect2 contains role="package" or not:

     <!-- Force package's sect1 onto a new page -->
  <xsl:attribute-set name="section.level1.properties">
    <xsl:attribute name="break-before">
                     or self::sect1/sect2/@role='package'">page</xsl:when>

Note: This make use of @break-before just to avoid such extra blank pages. 

Manuel Canales Esparcia
Usuario de LFS nº2886:       http://www.linuxfromscratch.org
LFS en castellano: http://www.escomposlinux.org/lfs-es http://www.lfs-es.info
TLDP-ES:                           http://es.tldp.org

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]