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">
      <xsl:choose>
         <xsl:when 
            test="preceding-sibling::sect1[position()=1]/sect2/@role='package'
                     or self::sect1/sect2/@role='package'">page</xsl:when>
        <xsl:otherwise>
          <xsl:text>auto</xsl:text>
        </xsl:otherwise>
      </xsl:choose>
    </xsl:attribute>
  </xsl:attribute-set>

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]