docbook-apps

  • 1.  TOC contains selected section titles. How?

    Posted 02-21-2012 15:47
    Hello!

    First, I'm new in Docbook. I have been trying to generate the TOC only
    containing selected section titles. I did some research and haven't found
    anything so far which could help me with this issue. My question is: Is it
    possible to force either Xsltproc or FOP to generate the TOC which only
    contains selected section titles? How can I modify my customization layer
    in order to achieve my goal?

    Thank you in advance!

    Roland Burda



  • 2.  Re: [docbook-apps] TOC contains selected section titles. How?

    Posted 02-21-2012 16:29
    see:
    http://www.sagehill.net/docbookxsl/TOCcontrol.html

    Cheers,

    __peppo

    On Tue, Feb 21, 2012 at 4:46 PM, Roland Burda <burda.roland@gmail.com> wrote:
    > Hello!
    >
    > First, I'm new in Docbook. I have been trying to generate the TOC only
    > containing selected section titles. I did some research and haven't found
    > anything so far which could help me with this issue. My question is: Is it
    > possible to force either Xsltproc or FOP to generate the TOC which only
    > contains selected section titles? How can I modify my customization layer in
    > order to achieve my goal?
    >
    > Thank you in advance!
    >
    > Roland Burda



  • 3.  Re: [docbook-apps] TOC contains selected section titles. How?

    Posted 02-21-2012 20:20
    Giuseppe,

    Sorry for not giving a response earlier. This is what I have been looking
    for. If something isn't clear for me I will write again!

    2012/2/21 Giuseppe Bonelli <peppo.bonelli@gmail.com>

    > see:
    > http://www.sagehill.net/docbookxsl/TOCcontrol.html
    >
    > Cheers,
    >
    > __peppo
    >
    > On Tue, Feb 21, 2012 at 4:46 PM, Roland Burda <burda.roland@gmail.com>
    > wrote:
    > > Hello!
    > >
    > > First, I'm new in Docbook. I have been trying to generate the TOC only
    > > containing selected section titles. I did some research and haven't found
    > > anything so far which could help me with this issue. My question is: Is
    > it
    > > possible to force either Xsltproc or FOP to generate the TOC which only
    > > contains selected section titles? How can I modify my customization
    > layer in
    > > order to achieve my goal?
    > >
    > > Thank you in advance!
    > >
    > > Roland Burda
    >



  • 4.  Re: [docbook-apps] TOC contains selected section titles. How?

    Posted 02-21-2012 17:41
    Roland,
    This can certainly be done. When you say 'only containing selected
    section titles', I assume you have established, or plan to establish,
    some markup difference between the selected titles and the other ones.
    Do you already have something in mind? Maybe you can say more about
    what you intend.

    This section of "DocBook XSL: The Complete Guide" talks about how to
    modify a customization layer to use the 'role' attribute to prevent
    certain sections from appearing in the TOC:

    http://www.sagehill.net/docbookxsl/TOCcontrol.html#TitlesOutOfToc

    --Aaron DaMommio


    On Tue, Feb 21, 2012 at 9:46 AM, Roland Burda <burda.roland@gmail.com> wrote:
    > Hello!
    >
    > First, I'm new in Docbook. I have been trying to generate the TOC only
    > containing selected section titles. I did some research and haven't found
    > anything so far which could help me with this issue. My question is: Is it
    > possible to force either Xsltproc or FOP to generate the TOC which only
    > contains selected section titles? How can I modify my customization layer in
    > order to achieve my goal?
    >
    > Thank you in advance!
    >
    > Roland Burda



    --
    --------------------------------------
    Aaron DaMommio: Husband, father, writer, juggler, and expert washer of dishes.
    - My blog: http://aarondamommio.blogspot.com
    - Need a juggler?  http://amazingaaronjuggler.blogspot.com/
    =======================================



  • 5.  Re: [docbook-apps] TOC contains selected section titles. How?

    Posted 02-21-2012 18:02
    Another option might be to use the <simplesect> element for the
    sections that you don't want to see in your TOC, then exclude
    <simplesect> from the TOC using the instructions elsewhere on that
    linked page.
    <simplesect> can't be nested -- can't contain other section-type
    elements -- but then I'm not sure why you'd want to have a complex
    structure in a section that you were excluding from your TOC. :)
    --Aaron

    On Tue, Feb 21, 2012 at 11:41 AM, Aaron DaMommio <aaron@damommio.com> wrote:
    > Roland,
    > This can certainly be done. When you say 'only containing selected
    > section titles', I assume you have established, or plan to establish,
    > some markup difference between the selected titles and the other ones.
    > Do you already have something in mind? Maybe you can say more about
    > what you intend.
    >
    > This section of "DocBook XSL: The Complete Guide" talks about how to
    > modify a customization layer to use the 'role' attribute to prevent
    > certain sections from appearing in the TOC:
    >
    > http://www.sagehill.net/docbookxsl/TOCcontrol.html#TitlesOutOfToc
    >
    > --Aaron DaMommio
    >
    >
    > On Tue, Feb 21, 2012 at 9:46 AM, Roland Burda <burda.roland@gmail.com> wrote:
    >> Hello!
    >>
    >> First, I'm new in Docbook. I have been trying to generate the TOC only
    >> containing selected section titles. I did some research and haven't found
    >> anything so far which could help me with this issue. My question is: Is it
    >> possible to force either Xsltproc or FOP to generate the TOC which only
    >> contains selected section titles? How can I modify my customization layer in
    >> order to achieve my goal?
    >>
    >> Thank you in advance!
    >>
    >> Roland Burda
    >
    >
    >
    > --
    > --------------------------------------
    > Aaron DaMommio: Husband, father, writer, juggler, and expert washer of dishes.
    > - My blog: http://aarondamommio.blogspot.com
    > - Need a juggler?  http://amazingaaronjuggler.blogspot.com/
    > =======================================



  • 6.  Re: [docbook-apps] TOC contains selected section titles. How?

    Posted 02-21-2012 20:15
    Aaron,

    Yes, I have a given structure of the TOC which was established by the
    writer of the book I am working on. Therefore I need to change the TOC, so
    to get the same result which follows the authors instructions and the
    structure I just mentioned.
    Unfortunately the originally generated TOC contains all of the sections. I
    don't need all of them, regardless of the level of the sections.

    I will give a respond tomorrow what result I get after I change my
    customization layer according to the TOCcontrol guide. Thank you!

    2012/2/21 Aaron DaMommio <aaron@damommio.com>

    > Roland,
    > This can certainly be done. When you say 'only containing selected
    > section titles', I assume you have established, or plan to establish,
    > some markup difference between the selected titles and the other ones.
    > Do you already have something in mind? Maybe you can say more about
    > what you intend.
    >
    > This section of "DocBook XSL: The Complete Guide" talks about how to
    > modify a customization layer to use the 'role' attribute to prevent
    > certain sections from appearing in the TOC:
    >
    > http://www.sagehill.net/docbookxsl/TOCcontrol.html#TitlesOutOfToc
    >
    > --Aaron DaMommio
    >
    >
    > On Tue, Feb 21, 2012 at 9:46 AM, Roland Burda <burda.roland@gmail.com>
    > wrote:
    > > Hello!
    > >
    > > First, I'm new in Docbook. I have been trying to generate the TOC only
    > > containing selected section titles. I did some research and haven't found
    > > anything so far which could help me with this issue. My question is: Is
    > it
    > > possible to force either Xsltproc or FOP to generate the TOC which only
    > > contains selected section titles? How can I modify my customization
    > layer in
    > > order to achieve my goal?
    > >
    > > Thank you in advance!
    > >
    > > Roland Burda
    >
    >
    >
    > --
    > --------------------------------------
    > Aaron DaMommio: Husband, father, writer, juggler, and expert washer of
    > dishes.
    > - My blog: http://aarondamommio.blogspot.com
    > - Need a juggler? http://amazingaaronjuggler.blogspot.com/
    > =======================================
    >
    > ---------------------------------------------------------------------
    > To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
    > For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org
    >
    >



  • 7.  Re: [docbook-apps] TOC contains selected section titles. How?

    Posted 02-21-2012 20:39
    Okay, Roland. What is the difference between the sections you want to
    show in the TOC and the ones you do not want?
    Is it based on topic or something? I'm curious as to how you decide
    what to include and what to leave out.
    --Aaron

    On Tue, Feb 21, 2012 at 2:14 PM, Roland Burda <burda.roland@gmail.com> wrote:
    > Aaron,
    >
    > Yes, I have a given structure of the TOC which was established by the writer
    > of the book I am working on. Therefore I need to change the TOC, so to get
    > the same result which follows the authors instructions and the structure I
    > just mentioned.
    > Unfortunately the originally generated TOC contains all of the sections. I
    > don't need all of them, regardless of the level of the sections.
    >
    > I will give a respond tomorrow what result I get after I change my
    > customization layer according to the TOCcontrol guide. Thank you!
    >
    > 2012/2/21 Aaron DaMommio <aaron@damommio.com>
    >>
    >> Roland,
    >> This can certainly be done. When you say 'only containing selected
    >> section titles', I assume you have established, or plan to establish,
    >> some markup difference between the selected titles and the other ones.
    >> Do you already have something in mind? Maybe you can say more about
    >> what you intend.
    >>
    >> This section of "DocBook XSL: The Complete Guide" talks about how to
    >> modify a customization layer to use the 'role' attribute to prevent
    >> certain sections from appearing in the TOC:
    >>
    >> http://www.sagehill.net/docbookxsl/TOCcontrol.html#TitlesOutOfToc
    >>
    >> --Aaron DaMommio
    >>
    >>
    >> On Tue, Feb 21, 2012 at 9:46 AM, Roland Burda <burda.roland@gmail.com>
    >> wrote:
    >> > Hello!
    >> >
    >> > First, I'm new in Docbook. I have been trying to generate the TOC only
    >> > containing selected section titles. I did some research and haven't
    >> > found
    >> > anything so far which could help me with this issue. My question is: Is
    >> > it
    >> > possible to force either Xsltproc or FOP to generate the TOC which only
    >> > contains selected section titles? How can I modify my customization
    >> > layer in
    >> > order to achieve my goal?
    >> >
    >> > Thank you in advance!
    >> >
    >> > Roland Burda
    >>
    >>
    >>
    >> --
    >> --------------------------------------
    >> Aaron DaMommio: Husband, father, writer, juggler, and expert washer of
    >> dishes.
    >> - My blog: http://aarondamommio.blogspot.com
    >> - Need a juggler?  http://amazingaaronjuggler.blogspot.com/
    >> =======================================
    >>
    >> ---------------------------------------------------------------------
    >> To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
    >> For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org
    >>
    >



    --
    --------------------------------------
    Aaron DaMommio: Husband, father, writer, juggler, and expert washer of dishes.
    - My blog: http://aarondamommio.blogspot.com
    - Need a juggler?  http://amazingaaronjuggler.blogspot.com/
    =======================================



  • 8.  Re: [docbook-apps] TOC contains selected section titles. How?

    Posted 02-21-2012 22:31
    I should have mentioned this earlier that it is based on topic whether
    which section will appear in the TOC. My bad.

    2012/2/21 Aaron DaMommio <aaron@damommio.com>

    > Okay, Roland. What is the difference between the sections you want to
    > show in the TOC and the ones you do not want?
    > Is it based on topic or something? I'm curious as to how you decide
    > what to include and what to leave out.
    > --Aaron
    >
    > On Tue, Feb 21, 2012 at 2:14 PM, Roland Burda <burda.roland@gmail.com>
    > wrote:
    > > Aaron,
    > >
    > > Yes, I have a given structure of the TOC which was established by the
    > writer
    > > of the book I am working on. Therefore I need to change the TOC, so to
    > get
    > > the same result which follows the authors instructions and the structure
    > I
    > > just mentioned.
    > > Unfortunately the originally generated TOC contains all of the sections.
    > I
    > > don't need all of them, regardless of the level of the sections.
    > >
    > > I will give a respond tomorrow what result I get after I change my
    > > customization layer according to the TOCcontrol guide. Thank you!
    > >
    > > 2012/2/21 Aaron DaMommio <aaron@damommio.com>
    > >>
    > >> Roland,
    > >> This can certainly be done. When you say 'only containing selected
    > >> section titles', I assume you have established, or plan to establish,
    > >> some markup difference between the selected titles and the other ones.
    > >> Do you already have something in mind? Maybe you can say more about
    > >> what you intend.
    > >>
    > >> This section of "DocBook XSL: The Complete Guide" talks about how to
    > >> modify a customization layer to use the 'role' attribute to prevent
    > >> certain sections from appearing in the TOC:
    > >>
    > >> http://www.sagehill.net/docbookxsl/TOCcontrol.html#TitlesOutOfToc
    > >>
    > >> --Aaron DaMommio
    > >>
    > >>
    > >> On Tue, Feb 21, 2012 at 9:46 AM, Roland Burda <burda.roland@gmail.com>
    > >> wrote:
    > >> > Hello!
    > >> >
    > >> > First, I'm new in Docbook. I have been trying to generate the TOC only
    > >> > containing selected section titles. I did some research and haven't
    > >> > found
    > >> > anything so far which could help me with this issue. My question is:
    > Is
    > >> > it
    > >> > possible to force either Xsltproc or FOP to generate the TOC which
    > only
    > >> > contains selected section titles? How can I modify my customization
    > >> > layer in
    > >> > order to achieve my goal?
    > >> >
    > >> > Thank you in advance!
    > >> >
    > >> > Roland Burda
    > >>
    > >>
    > >>
    > >> --
    > >> --------------------------------------
    > >> Aaron DaMommio: Husband, father, writer, juggler, and expert washer of
    > >> dishes.
    > >> - My blog: http://aarondamommio.blogspot.com
    > >> - Need a juggler? http://amazingaaronjuggler.blogspot.com/
    > >> =======================================
    > >>
    > >> ---------------------------------------------------------------------
    > >> To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
    > >> For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org
    > >>
    > >
    >
    >
    >
    > --
    > --------------------------------------
    > Aaron DaMommio: Husband, father, writer, juggler, and expert washer of
    > dishes.
    > - My blog: http://aarondamommio.blogspot.com
    > - Need a juggler? http://amazingaaronjuggler.blogspot.com/
    > =======================================
    >



  • 9.  Re: [docbook-apps] TOC contains selected section titles. How?

    Posted 02-22-2012 11:27
    <xsl:template match="sect1[@role = 'NotInToc']|sect2[@role =
    'NotInToc']|sect3[@role = 'NotInToc']|sect4[@role = 'NotInToc']"
    mode="toc" />

    With this above, specified sections can be selected to not to appear in the
    TOC.

    2012/2/21 Roland Burda <burda.roland@gmail.com>

    > I should have mentioned this earlier that it is based on topic whether
    > which section will appear in the TOC. My bad.
    >
    >
    > 2012/2/21 Aaron DaMommio <aaron@damommio.com>
    >
    >> Okay, Roland. What is the difference between the sections you want to
    >> show in the TOC and the ones you do not want?
    >> Is it based on topic or something? I'm curious as to how you decide
    >> what to include and what to leave out.
    >> --Aaron
    >>
    >> On Tue, Feb 21, 2012 at 2:14 PM, Roland Burda <burda.roland@gmail.com>
    >> wrote:
    >> > Aaron,
    >> >
    >> > Yes, I have a given structure of the TOC which was established by the
    >> writer
    >> > of the book I am working on. Therefore I need to change the TOC, so to
    >> get
    >> > the same result which follows the authors instructions and the
    >> structure I
    >> > just mentioned.
    >> > Unfortunately the originally generated TOC contains all of the
    >> sections. I
    >> > don't need all of them, regardless of the level of the sections.
    >> >
    >> > I will give a respond tomorrow what result I get after I change my
    >> > customization layer according to the TOCcontrol guide. Thank you!
    >> >
    >> > 2012/2/21 Aaron DaMommio <aaron@damommio.com>
    >> >>
    >> >> Roland,
    >> >> This can certainly be done. When you say 'only containing selected
    >> >> section titles', I assume you have established, or plan to establish,
    >> >> some markup difference between the selected titles and the other ones.
    >> >> Do you already have something in mind? Maybe you can say more about
    >> >> what you intend.
    >> >>
    >> >> This section of "DocBook XSL: The Complete Guide" talks about how to
    >> >> modify a customization layer to use the 'role' attribute to prevent
    >> >> certain sections from appearing in the TOC:
    >> >>
    >> >> http://www.sagehill.net/docbookxsl/TOCcontrol.html#TitlesOutOfToc
    >> >>
    >> >> --Aaron DaMommio
    >> >>
    >> >>
    >> >> On Tue, Feb 21, 2012 at 9:46 AM, Roland Burda <burda.roland@gmail.com>
    >> >> wrote:
    >> >> > Hello!
    >> >> >
    >> >> > First, I'm new in Docbook. I have been trying to generate the TOC
    >> only
    >> >> > containing selected section titles. I did some research and haven't
    >> >> > found
    >> >> > anything so far which could help me with this issue. My question is:
    >> Is
    >> >> > it
    >> >> > possible to force either Xsltproc or FOP to generate the TOC which
    >> only
    >> >> > contains selected section titles? How can I modify my customization
    >> >> > layer in
    >> >> > order to achieve my goal?
    >> >> >
    >> >> > Thank you in advance!
    >> >> >
    >> >> > Roland Burda
    >> >>
    >> >>
    >> >>
    >> >> --
    >> >> --------------------------------------
    >> >> Aaron DaMommio: Husband, father, writer, juggler, and expert washer of
    >> >> dishes.
    >> >> - My blog: http://aarondamommio.blogspot.com
    >> >> - Need a juggler? http://amazingaaronjuggler.blogspot.com/
    >> >> =======================================
    >> >>
    >> >> ---------------------------------------------------------------------
    >> >> To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
    >> >> For additional commands, e-mail:
    >> docbook-apps-help@lists.oasis-open.org
    >> >>
    >> >
    >>
    >>
    >>
    >> --
    >> --------------------------------------
    >> Aaron DaMommio: Husband, father, writer, juggler, and expert washer of
    >> dishes.
    >> - My blog: http://aarondamommio.blogspot.com
    >> - Need a juggler? http://amazingaaronjuggler.blogspot.com/
    >> =======================================
    >>
    >
    >