docbook-apps

  • 1.  Re: [docbook-apps] not chunk after chapter

    Posted 02-19-2007 16:53
    Hi Hinrich,

    The description of what you want:

    > Chapter with the first section, after that every section on their own
    > pages.

    sounds exactly like what you get when you process with
    chunk.first.sections="0". For example, if this is your input:


    <chapter id="chap">



    stuff in second section


    ...

    When processed with chunk.first.sections="0", you should get one chunk for
    id="chap" that also contains id="first" section, then a chunk for
    id="second", a chunk for id="third", etc. In what way does that not match
    your requirements?

    Bob Stayton
    Sagehill Enterprises
    DocBook Consulting
    bobs@sagehill.net


    ----- Original Message -----
    From: "Hinrich Aue" <hinrich.aue@lci-software.com>
    To: "'Chris Chiasson'" <chris@chiasson.name>
    Cc: <docbook-apps@lists.oasis-open.org>
    Sent: Monday, February 19, 2007 8:28 AM
    Subject: AW: [docbook-apps] not chunk after chapter


    It has an effect, yes.
    And it is working as described.
    So does chunk.first.sections="1" too.
    But I want the mixture as described.

    Chapter with the first section, after that every section on their own
    pages.

    I could send too chms. One with chunk.first.sections="0" and one with
    chunk.first.sections="1" if you like.

    -----Ursprüngliche Nachricht-----
    Von: chris.chiasson@gmail.com [mailto:chris.chiasson@gmail.com] Im Auftrag
    von Chris Chiasson
    Gesendet: Montag, 19. Februar 2007 17:15
    An: Hinrich Aue
    Cc: docbook-apps@lists.oasis-open.org
    Betreff: Re: [docbook-apps] not chunk after chapter

    So, does setting chunk.first.sections="0" work with html help output?

    On 2/19/07, Hinrich Aue <hinrich.aue@lci-software.com> wrote:
    > I'm using chunk.first.sections="1" because we have text in every section.
    > Therefore we can/want chunk every section.
    > The problem is that we do not have text (as in para) in a chapter.
    > That means that we only have a chapter title in the chunk containing the
    > chapter heading and nothing else. This cannot happen in a section,
    > because
    > every section has at least a para in it.
    >
    > So: Yes, sections should be on there own pages. Except for sections in
    level
    > 1, they should be together with the chapter heading.
    > Just like chunk.first.sections="0"
    >
    > Hinrich
    >
    > -----Ursprüngliche Nachricht-----
    > Von: chris.chiasson@gmail.com [mailto:chris.chiasson@gmail.com] Im
    > Auftrag
    > von Chris Chiasson
    > Gesendet: Montag, 19. Februar 2007 17:05
    > An: Hinrich Aue
    > Cc: docbook-apps@lists.oasis-open.org
    > Betreff: Re: [docbook-apps] not chunk after chapter
    >
    > The main problem I'm having is visualizing the presentation you want
    > on each page of HTML.
    >
    > Should sections be on their own pages? Should the first section be on
    > the same page as that of the beginning of the chapter, instead of on
    > its own page?
    >
    > On 2/19/07, Hinrich Aue <hinrich.aue@lci-software.com> wrote:
    > > I'm sorry. I'll start writing emails in a few days.....
    > >
    > > Of course I mean it the other way around....
    > >
    > > Would it be possible to just keep the chapter with the first section
    (like
    > > chunk.first.sections="0"), then chunk every section as if I chose
    > >
    > > chunk.first.sections="1" ?
    > >
    > > Really really sorry, not my day...
    > >
    > >
    > > -----Ursprüngliche Nachricht-----
    > > Von: chris.chiasson@gmail.com [mailto:chris.chiasson@gmail.com] Im
    Auftrag
    > > von Chris Chiasson
    > > Gesendet: Montag, 19. Februar 2007 14:51
    > > An: Hinrich Aue
    > > Cc: docbook-apps@lists.oasis-open.org
    > > Betreff: Re: [docbook-apps] not chunk after chapter
    > >
    > > now i'm confused
    > >
    > > On 2/19/07, Hinrich Aue <hinrich.aue@lci-software.com> wrote:
    > > >
    > > >
    > > >
    > > >
    > > > Damn! Stupid typos (copy and paste)
    > > >
    > > >
    > > >
    > > > Again. I don't want to spam the mailing list:
    > > >
    > > >
    > > >
    > > > Would it be possible to just keep the chapter with the first section
    > (like
    > > > chunk.first.sections="1"), then chunk every section as if I chose
    > > >
    > > > chunk.first.sections="0" ?
    > > >
    > > >
    > > >
    > > > We have text in every section, but no text in the chapters.
    > > >
    > > >
    > > >
    > > >
    > > >
    > > > ________________________________
    > > >
    > > >
    > > > Von: Hinrich Aue [mailto:hinrich.aue@lci-software.com]
    > > > Gesendet: Sonntag, 18. Februar 2007 15:36
    > > > An: 'Bob Stayton'
    > > > Cc: docbook-apps@lists.oasis-open.org
    > > > Betreff: AW: [docbook-apps] not chunk after chapter
    > > >
    > > >
    > > >
    > > >
    > > > Would it be possible to just keep the chapter with the first section
    > (like
    > > > chunk.first.sections="1"), then chunk every section as if I chose
    > > >
    > > > chunk.first.sections="1" ?
    > > >
    > > >
    > > >
    > > > We have text in every section, but no text in the chapters.
    > > >
    > > >
    > > >
    > > > ________________________________
    > > >
    > > >
    > > > Von: Bob Stayton [mailto:bobs@sagehill.net]
    > > > Gesendet: Sonntag, 18. Februar 2007 01:45
    > > > An: Hinrich Aue; docbook-apps@lists.oasis-open.org
    > > > Betreff: Re: [docbook-apps] not chunk after chapter
    > > >
    > > >
    > > >
    > > >
    > > > I'm not clear what you are asking for here. If you set
    > > > chunk.first.sections="0", then the first section's title and its
    content
    > > > will appear on the same page with the chapter title. That looks
    better
    > in
    > > > such situations.
    > > >
    > > >
    > > >
    > > >
    > > >
    > > > If that isn't what you want, then what do you think should happen to
    the
    > > > chapter title?
    > > >
    > > >
    > > >
    > > >
    > > >
    > > > Bob Stayton
    > > > Sagehill Enterprises
    > > > DocBook Consulting
    > > > bobs@sagehill.net
    > > >
    > > >
    > > >
    > > >
    > > >
    > > >
    > > >
    > > >
    > > >
    > > > ----- Original Message -----
    > > >
    > > >
    > > > From: Hinrich Aue
    > > >
    > > >
    > > > To: docbook-apps@lists.oasis-open.org
    > > >
    > > >
    > > > Sent: Thursday, February 15, 2007 8:39 AM
    > > >
    > > >
    > > > Subject: [docbook-apps] not chunk after chapter
    > > >
    > > >
    > > >
    > > >
    > > > Hello everybody,
    > > >
    > > >
    > > >
    > > > I'm creating a htmlhelp file with docbook.
    > > >
    > > > Chunking is working fine so far, but we have no para directly in our
    > > > chapter.
    > > >
    > > > Besides that I'm using:
    > > >
    > > >
    > > >
    > > > <xsl:param name="chunk.first.sections" select="1"></xsl:param>
    > > >
    > > >
    > > >
    > > > The problem is that it looks pretty ugly when you have a chunk with
    only
    > > the
    > > > chapter heading.
    > > >
    > > > Can I prevent chunking after chapters?
    > > >
    > > >
    > > >
    > > > Thanks,
    > > >
    > > > Hinrich
    > >
    > >
    > > --
    > > http://chris.chiasson.name/
    > >
    > >
    >
    >
    > --
    > http://chris.chiasson.name/
    >
    >
    > ---------------------------------------------------------------------
    > To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
    > For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org
    >
    >


    --
    http://chris.chiasson.name/

    ---------------------------------------------------------------------
    To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
    For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org


    ---------------------------------------------------------------------
    To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
    For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org







  • 2.  AW: [docbook-apps] not chunk after chapter

    Posted 02-19-2007 17:29
      |   view attached
    OK, I've attached an example.

    Example_cfs_0.chm has chunk.first.section = "0"
    Example_cfs_1.chm has chunk.first.section = "1"

    As you can see, in Example_cfs_0.chm, the chapters have only the title.
    Testsection1 has the text sect1......
    Testsection2 has the text sect2......

    As you can see, in Example_cfs_1.chm, the chapters have all the sections,
    and the text.
    So has every other section.

    What I want is:

    The chapter contains the testsection1 and only the section testsection1.
    The following sections contain only the text they have. Every Section below
    should have their own page.

    All with:

    <xsl:param name="chunk.section.depth" select="4"></xsl:param>


    I hope this makes it clear.



    -----Ursprüngliche Nachricht-----
    Von: Bob Stayton [mailto:bobs@sagehill.net]
    Gesendet: Montag, 19. Februar 2007 17:53
    An: Hinrich Aue; 'Chris Chiasson'
    Cc: docbook-apps@lists.oasis-open.org
    Betreff: Re: [docbook-apps] not chunk after chapter

    Hi Hinrich,

    The description of what you want:

    > Chapter with the first section, after that every section on their own
    > pages.

    sounds exactly like what you get when you process with
    chunk.first.sections="0". For example, if this is your input:


    <chapter id="chap">





    stuff in second section


    ...

    When processed with chunk.first.sections="0", you should get one chunk for
    id="chap" that also contains id="first" section, then a chunk for
    id="second", a chunk for id="third", etc. In what way does that not match
    your requirements?

    Bob Stayton
    Sagehill Enterprises
    DocBook Consulting
    bobs@sagehill.net


    ----- Original Message -----
    From: "Hinrich Aue" <hinrich.aue@lci-software.com>
    To: "'Chris Chiasson'" <chris@chiasson.name>
    Cc: <docbook-apps@lists.oasis-open.org>
    Sent: Monday, February 19, 2007 8:28 AM
    Subject: AW: [docbook-apps] not chunk after chapter


    It has an effect, yes.
    And it is working as described.
    So does chunk.first.sections="1" too.
    But I want the mixture as described.

    Chapter with the first section, after that every section on their own
    pages.

    I could send too chms. One with chunk.first.sections="0" and one with
    chunk.first.sections="1" if you like.

    -----Ursprüngliche Nachricht-----
    Von: chris.chiasson@gmail.com [mailto:chris.chiasson@gmail.com] Im Auftrag
    von Chris Chiasson
    Gesendet: Montag, 19. Februar 2007 17:15
    An: Hinrich Aue
    Cc: docbook-apps@lists.oasis-open.org
    Betreff: Re: [docbook-apps] not chunk after chapter

    So, does setting chunk.first.sections="0" work with html help output?

    On 2/19/07, Hinrich Aue <hinrich.aue@lci-software.com> wrote:
    > I'm using chunk.first.sections="1" because we have text in every section.
    > Therefore we can/want chunk every section.
    > The problem is that we do not have text (as in para) in a chapter.
    > That means that we only have a chapter title in the chunk containing the
    > chapter heading and nothing else. This cannot happen in a section,
    > because
    > every section has at least a para in it.
    >
    > So: Yes, sections should be on there own pages. Except for sections in
    level
    > 1, they should be together with the chapter heading.
    > Just like chunk.first.sections="0"
    >
    > Hinrich
    >
    > -----Ursprüngliche Nachricht-----
    > Von: chris.chiasson@gmail.com [mailto:chris.chiasson@gmail.com] Im
    > Auftrag
    > von Chris Chiasson
    > Gesendet: Montag, 19. Februar 2007 17:05
    > An: Hinrich Aue
    > Cc: docbook-apps@lists.oasis-open.org
    > Betreff: Re: [docbook-apps] not chunk after chapter
    >
    > The main problem I'm having is visualizing the presentation you want
    > on each page of HTML.
    >
    > Should sections be on their own pages? Should the first section be on
    > the same page as that of the beginning of the chapter, instead of on
    > its own page?
    >
    > On 2/19/07, Hinrich Aue <hinrich.aue@lci-software.com> wrote:
    > > I'm sorry. I'll start writing emails in a few days.....
    > >
    > > Of course I mean it the other way around....
    > >
    > > Would it be possible to just keep the chapter with the first section
    (like
    > > chunk.first.sections="0"), then chunk every section as if I chose
    > >
    > > chunk.first.sections="1" ?
    > >
    > > Really really sorry, not my day...
    > >
    > >
    > > -----Ursprüngliche Nachricht-----
    > > Von: chris.chiasson@gmail.com [mailto:chris.chiasson@gmail.com] Im
    Auftrag
    > > von Chris Chiasson
    > > Gesendet: Montag, 19. Februar 2007 14:51
    > > An: Hinrich Aue
    > > Cc: docbook-apps@lists.oasis-open.org
    > > Betreff: Re: [docbook-apps] not chunk after chapter
    > >
    > > now i'm confused
    > >
    > > On 2/19/07, Hinrich Aue <hinrich.aue@lci-software.com> wrote:
    > > >
    > > >
    > > >
    > > >
    > > > Damn! Stupid typos (copy and paste)
    > > >
    > > >
    > > >
    > > > Again. I don't want to spam the mailing list:
    > > >
    > > >
    > > >
    > > > Would it be possible to just keep the chapter with the first section
    > (like
    > > > chunk.first.sections="1"), then chunk every section as if I chose
    > > >
    > > > chunk.first.sections="0" ?
    > > >
    > > >
    > > >
    > > > We have text in every section, but no text in the chapters.
    > > >
    > > >
    > > >
    > > >
    > > >
    > > > ________________________________
    > > >
    > > >
    > > > Von: Hinrich Aue [mailto:hinrich.aue@lci-software.com]
    > > > Gesendet: Sonntag, 18. Februar 2007 15:36
    > > > An: 'Bob Stayton'
    > > > Cc: docbook-apps@lists.oasis-open.org
    > > > Betreff: AW: [docbook-apps] not chunk after chapter
    > > >
    > > >
    > > >
    > > >
    > > > Would it be possible to just keep the chapter with the first section
    > (like
    > > > chunk.first.sections="1"), then chunk every section as if I chose
    > > >
    > > > chunk.first.sections="1" ?
    > > >
    > > >
    > > >
    > > > We have text in every section, but no text in the chapters.
    > > >
    > > >
    > > >
    > > > ________________________________
    > > >
    > > >
    > > > Von: Bob Stayton [mailto:bobs@sagehill.net]
    > > > Gesendet: Sonntag, 18. Februar 2007 01:45
    > > > An: Hinrich Aue; docbook-apps@lists.oasis-open.org
    > > > Betreff: Re: [docbook-apps] not chunk after chapter
    > > >
    > > >
    > > >
    > > >
    > > > I'm not clear what you are asking for here. If you set
    > > > chunk.first.sections="0", then the first section's title and its
    content
    > > > will appear on the same page with the chapter title. That looks
    better
    > in
    > > > such situations.
    > > >
    > > >
    > > >
    > > >
    > > >
    > > > If that isn't what you want, then what do you think should happen to
    the
    > > > chapter title?
    > > >
    > > >
    > > >
    > > >
    > > >
    > > > Bob Stayton
    > > > Sagehill Enterprises
    > > > DocBook Consulting
    > > > bobs@sagehill.net
    > > >
    > > >
    > > >
    > > >
    > > >
    > > >
    > > >
    > > >
    > > >
    > > > ----- Original Message -----
    > > >
    > > >
    > > > From: Hinrich Aue
    > > >
    > > >
    > > > To: docbook-apps@lists.oasis-open.org
    > > >
    > > >
    > > > Sent: Thursday, February 15, 2007 8:39 AM
    > > >
    > > >
    > > > Subject: [docbook-apps] not chunk after chapter
    > > >
    > > >
    > > >
    > > >
    > > > Hello everybody,
    > > >
    > > >
    > > >
    > > > I'm creating a htmlhelp file with docbook.
    > > >
    > > > Chunking is working fine so far, but we have no para directly in our
    > > > chapter.
    > > >
    > > > Besides that I'm using:
    > > >
    > > >
    > > >
    > > > <xsl:param name="chunk.first.sections" select="1"></xsl:param>
    > > >
    > > >
    > > >
    > > > The problem is that it looks pretty ugly when you have a chunk with
    only
    > > the
    > > > chapter heading.
    > > >
    > > > Can I prevent chunking after chapters?
    > > >
    > > >
    > > >
    > > > Thanks,
    > > >
    > > > Hinrich
    > >
    > >
    > > --
    > > http://chris.chiasson.name/
    > >
    > >
    >
    >
    > --
    > http://chris.chiasson.name/
    >
    >
    > ---------------------------------------------------------------------
    > To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
    > For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org
    >
    >


    --
    http://chris.chiasson.name/

    ---------------------------------------------------------------------
    To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
    For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org


    ---------------------------------------------------------------------
    To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
    For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org





    ---------------------------------------------------------------------
    To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
    For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org

    </hinrich.aue@lci-software.com></hinrich.aue@lci-software.com></hinrich.aue@lci-software.com></docbook-apps@lists.oasis-open.org></chris@chiasson.name></hinrich.aue@lci-software.com>
    </chapter>

    Attachment(s)

    zip
    ImageTest.zip   9 KB 1 version