Re: Section at new page with exceptions

Pavel Vávra <[email protected]>
Newsgroups gmane.text.docbook.apps
Message-ID <[email protected]>
Hallo Jirka,
  thank you very much, it works as expected.
Pavel

On Wed, 10 Jun 2020 21:33:58 +0200
Jirka Kosek <[email protected]> wrote:

> On 10.6.2020 14:35, Pavel Vávra wrote:
> > <xsl:attribute-set name="section.level1.properties">
> >   <xsl:attribute name="break-before">page</xsl:attribute>
> > </xsl:attribute-set>
> > 
> > ... but some small set of sections is much shorter than one page and I want print them on one page together with previous one. Is it possible to do it e.g. marking these sections with a role 'NoPgBreak'? What I need to add to my xsl transformation to make it work?
> 
> You can use something like:
> 
> <xsl:attribute-set name="section.level1.properties">
>   <xsl:attribute name="break-before">
>     <xsl:choose>
>       <xsl:when test="@role = 'NoPgBreak'">auto</xsl:when>
>       <xsl:otherwise>page</xsl:otherwise>
>     </xsl:choose>
>   </xsl:attribute>
> </xsl:attribute-set>
> 
> -- 
> ------------------------------------------------------------------
>   Jirka Kosek     e-mail: [email protected]     http://www.kosek.cz
> ------------------------------------------------------------------
>   Profesionální školení a poradenství v oblasti technologií XML.
>        Podrobný přehled školení http://xmlguru.cz/skoleni/
> ------------------------------------------------------------------
>   http://docbook.cz    Stránky o dokumentačním formátu DocBook
>   http://xmlguru.cz    Blog mostly about XML for English readers
> ------------------------------------------------------------------
>
signature.asc (application/pgp-signature, 195 B)
-----BEGIN PGP SIGNATURE-----

iF0EARECAB0WIQSwxOF6ffN1y7pPQK0Bpy58hYPypwUCXuQHvwAKCRABpy58hYPy
pxYLAJ46sWGe9FUH/Zl8RKKJ6kOXUh9s5QCeJMukSaJTOslKruLGMiCh0EIojpY=
=zcZw
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.