List Info

Thread: RE: Selective pagebreaks




RE: Selective pagebreaks
user name
2007-07-24 14:36:46
Hmmm, maybe there still is an issue here. I've tried your
section template and it seems to do what it is told to do.
However, the next page is blank and it is not marked as a
blank page as others usually are. This is also at an end of
a chapter, so the added page is the filler to make the next
chapter start on an odd page.

I wonder if this is a two fold issue.

Regards,

Dean Nelson   
Enterprise Electronics Corp




-----Original Message-----
From: M.Canales.es [mailto:macanamacana-es.com] 
Sent: Tuesday, July 24, 2007 1:47 PM
To: docbook-appslists.oasis-open.org
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.linuxfroms
cratch.org
LFS en castellano: http://www.escomp
oslinux.org/lfs-es http://www.lfs-es.info
TLDP-ES:                           http://es.tldp.org

------------------------------------------------------------
---------
To unsubscribe, e-mail: docbook-apps-unsubscribelists.oasis-open.org
For additional commands, e-mail: docbook-apps-helplists.oasis-open.org


------------------------------------------------------------
---------
To unsubscribe, e-mail: docbook-apps-unsubscribelists.oasis-open.org
For additional commands, e-mail: docbook-apps-helplists.oasis-open.org


Re: Selective pagebreaks
user name
2007-07-24 15:39:06
El Martes, 24 de Julio de 2007 21:36, Nelson, Dean
escribió:
> Hmmm, maybe there still is an issue here. I've tried
your section template
> and it seems to do what it is told to do. However, the
next page is blank
> and it is not marked as a blank page as others usually
are. This is also at
> an end of a chapter, so the added page is the filler to
make the next
> chapter start on an odd page.

Actually, the issue is that you said that not all TEST
sections are at the 
same level, and I don't know if some of them could be
nested, thus creating 
the proper tests for your case is hard.

To start a TEST section on a new page only

"self::section/condition='newpage'" 

is required (well, a plain condition='newpage' can be
enought).

The other tests are intended to try to output the first
non-TEST section that 
start after a TEST section also into a new page, and that it
what is failing 
and hard to debug without having the book sources to can
test it.

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

------------------------------------------------------------
---------
To unsubscribe, e-mail: docbook-apps-unsubscribelists.oasis-open.org
For additional commands, e-mail: docbook-apps-helplists.oasis-open.org


[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )