docbook-apps

  • 1.  bug in chunking sections?

    Posted 05-10-2010 13:31
    Hello,

    Considering this document structure :
    (1) and (2) are here for further reference.

    <chapter>


    (1)
    (1)
    (1)


    (2)
    (2)

    </chapter>

    And using the parameter :
    <xsl:param name="chunk.section.depth" select="8"></xsl:param>

    Is it the expected behaviour that the sections marked with (1) are not
    chunked while those marked with (2) are chunked?
    If so, is there a possibility to chunk those (1) sections as well?

    Thanks a lot if you can help.

    Maxime Bégnis



  • 2.  Re: [docbook-apps] bug in chunking sections?

    Posted 05-10-2010 13:33
    Sorry, I forgot to mention that I use the 1.75.2 version of the stylesheets.

    Maxime Bégnis a écrit :
    > Hello,
    >
    > Considering this document structure :
    > (1) and (2) are here for further reference.
    >
    > <chapter>
    >

    >

    >
    (1)
    >
    (1)
    >
    (1)
    >

    >

    >
    (2)
    >
    (2)
    >

    > </chapter>
    >
    > And using the parameter :
    > <xsl:param name="chunk.section.depth" select="8"></xsl:param>
    >
    > Is it the expected behaviour that the sections marked with (1) are not
    > chunked while those marked with (2) are chunked?
    > If so, is there a possibility to chunk those (1) sections as well?
    >
    > Thanks a lot if you can help.
    >
    > Maxime Bégnis
    >
    > ---------------------------------------------------------------------
    > To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
    > For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org
    >
    >




  • 3.  Re: [docbook-apps] bug in chunking sections?

    Posted 05-11-2010 08:56
    Maxime Bégnis wrote:

    > And using the parameter :
    > <xsl:param name="chunk.section.depth" select="8"></xsl:param>
    >
    > Is it the expected behaviour that the sections marked with (1) are not
    > chunked while those marked with (2) are chunked?
    > If so, is there a possibility to chunk those (1) sections as well?

    Have you also set chunk.first.sections to 1? Default is 0 which means
    that your chapter/section[1] will not be chunked (including descendant
    sections).

    Jirka

    --
    ------------------------------------------------------------------
    Jirka Kosek e-mail: jirka@kosek.cz http://xmlguru.cz
    ------------------------------------------------------------------
    Professional XML consulting and training services
    DocBook customization, custom XSLT/XSL-FO document processing
    ------------------------------------------------------------------
    OASIS DocBook TC member, W3C Invited Expert, ISO JTC1/SC34 member
    ------------------------------------------------------------------




  • 4.  Re: [docbook-apps] bug in chunking sections?

    Posted 05-11-2010 09:15
    Hello Jirka,

    No, I left chunk.first.sections to 0. Otherwise I have some pages
    containing only a title. I would like to have a page containing :

    chapter/(content)
    chapter/section[1]/(content)
    chapter/section[1]/section[1]/(content)

    Then on next pages the content of chapter/section[1]/section[2],
    chapter/section[1]/section[3], ...

    I wonder if this can be done easily. I looked at the sources a bit but
    chunking code is rather complicated.

    Maxime Bégnis

    Jirka Kosek a écrit :
    > Maxime Bégnis wrote:
    >
    >
    >> And using the parameter :
    >> <xsl:param name="chunk.section.depth" select="8"></xsl:param>
    >>
    >> Is it the expected behaviour that the sections marked with (1) are not
    >> chunked while those marked with (2) are chunked?
    >> If so, is there a possibility to chunk those (1) sections as well?
    >>
    >
    > Have you also set chunk.first.sections to 1? Default is 0 which means
    > that your chapter/section[1] will not be chunked (including descendant
    > sections).
    >
    > Jirka
    >
    >




  • 5.  Re: [docbook-apps] bug in chunking sections?

    Posted 05-11-2010 10:09
    Maxime Bégnis wrote:

    > No, I left chunk.first.sections to 0. Otherwise I have some pages
    > containing only a title. I would like to have a page containing :
    >
    > chapter/(content)
    > chapter/section[1]/(content)
    > chapter/section[1]/section[1]/(content)
    >
    > Then on next pages the content of chapter/section[1]/section[2],
    > chapter/section[1]/section[3], ...
    >
    > I wonder if this can be done easily. I looked at the sources a bit but
    > chunking code is rather complicated.

    Easily -- probably not. The problem is that you chunk.first.sections=1
    to bahave differently -- chunk on the innermost first section, not on
    outer most. Probably this should be handled by another parameter. You
    can submit this as a new RFE.

    Jirka

    --
    ------------------------------------------------------------------
    Jirka Kosek e-mail: jirka@kosek.cz http://xmlguru.cz
    ------------------------------------------------------------------
    Professional XML consulting and training services
    DocBook customization, custom XSLT/XSL-FO document processing
    ------------------------------------------------------------------
    OASIS DocBook TC member, W3C Invited Expert, ISO JTC1/SC34 member
    ------------------------------------------------------------------