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 Martes, 24 de Julio de 2007 20:39, M.Canales.es escribió:

I'm not very sure about the second test. Maybe this one could be better:

<xsl:attribute-set name="section.properties">
  <xsl:attribute name="break-before">
    <xsl:choose>
       <xsl:when 
            test="preceding-sibling::section[position()=1]/@condition='newpage'
            or 
preceding-sibling::section[position()=1]/*/section[position()=last()]/@condition='newpage'
            or self::section/@condition='newpage'">page</xsl:when>
      <xsl:otherwise>auto</xsl:otherwise>
    </xsl:choose>
  </xsl:attribute>
</xsl:attribute-set> 

-- 
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]