docbook-apps

  • 1.  how remove dot in orderedlist/listitem?

    Posted 08-30-2013 13:22
    Hi,

    I have fragment of docbook like this:

    <orderedlist inheritnum="ignore" continuation="restarts">
    <listitem><para>FOO</para></listitem>
    <listitem><para>BOO</para></listitem>
    </orderedlist>

    I convert this list to xsl-fo, and see (I removed tags):
    1. FOO
    2. BOO

    But I want
    1 FOO
    2 BOO

    without dots after numbers.

    Can not find any preference that can change this behaviour.

    Also I try hack fo/list.xsl,

    but I can not find where in
    <xsl:template match="d:orderedlist/d:listitem">

    dot appear (I am newbie in XSL).


    Any suggestions how to remove dots?



  • 2.  Re: [docbook-apps] how remove dot in orderedlist/listitem?

    Posted 08-30-2013 15:41
    IIRC, <simplelist> is formatted without dots by default.

    Also look at the mark attribute on itemizedlist. Try setting that to
    "none".

    For customizing lists, see Bob Stayton's excellent book on customizing
    the DocBook xsls:
    http://www.sagehill.net/docbookxsl/Itemizedlists.html

    Regards,
    David

    On 08/30/2013 08:22 AM, Dave Milter wrote:
    > Hi,
    >
    > I have fragment of docbook like this:
    >
    > <orderedlist inheritnum="ignore" continuation="restarts">
    > <listitem><para>FOO</para></listitem>
    > <listitem><para>BOO</para></listitem>
    > </orderedlist>
    >
    > I convert this list to xsl-fo, and see (I removed tags):
    > 1. FOO
    > 2. BOO
    >
    > But I want
    > 1 FOO
    > 2 BOO
    >
    > without dots after numbers.
    >
    > Can not find any preference that can change this behaviour.
    >
    > Also I try hack fo/list.xsl,
    >
    > but I can not find where in
    > <xsl:template match="d:orderedlist/d:listitem">
    >
    > dot appear (I am newbie in XSL).
    >
    >
    > Any suggestions how to remove dots?




  • 3.  Re: [docbook-apps] how remove dot in orderedlist/listitem?

    Posted 08-30-2013 16:13
    Wow, somehow between the time I read your message and wrote my reply, my
    brain completely reinterpreted what you were asking into a different
    question.

    Ignore me and listen to Bob. Sorry for the noise.

    David

    On 08/30/2013 10:40 AM, David Cramer wrote:
    > IIRC, <simplelist> is formatted without dots by default.
    >
    > Also look at the mark attribute on itemizedlist. Try setting that to
    > "none".
    >
    > For customizing lists, see Bob Stayton's excellent book on customizing
    > the DocBook xsls:
    > http://www.sagehill.net/docbookxsl/Itemizedlists.html
    >
    > Regards,
    > David
    >
    > On 08/30/2013 08:22 AM, Dave Milter wrote:
    >> Hi,
    >>
    >> I have fragment of docbook like this:
    >>
    >> <orderedlist inheritnum="ignore" continuation="restarts">
    >> <listitem><para>FOO</para></listitem>
    >> <listitem><para>BOO</para></listitem>
    >> </orderedlist>
    >>
    >> I convert this list to xsl-fo, and see (I removed tags):
    >> 1. FOO
    >> 2. BOO
    >>
    >> But I want
    >> 1 FOO
    >> 2 BOO
    >>
    >> without dots after numbers.
    >>
    >> Can not find any preference that can change this behaviour.
    >>
    >> Also I try hack fo/list.xsl,
    >>
    >> but I can not find where in
    >> <xsl:template match="d:orderedlist/d:listitem">
    >>
    >> dot appear (I am newbie in XSL).
    >>
    >>
    >> Any suggestions how to remove dots?
    >




  • 4.  Re: [docbook-apps] how remove dot in orderedlist/listitem?

    Posted 08-30-2013 15:54
    Hi Dave,
    You will want to copy to your customization layer and customize the template that starts like this from the file common/common.xsl:

    <xsl:template match="orderedlist/listitem" mode="item-number">

    You will see that the dots are added as part of the $type variable that is used as the @format attribute in numeration. Remove the dot there and it should work.

    I'm a bit surprised that the dots are hard wired like that. Most generated punctuation is part of the gentext system so that it can be more easily changed for different languages.

    Bob Stayton
    Sagehill Enterprises
    bobs@sagehill.net


    From: Dave Milter
    Sent: Friday, August 30, 2013 6:22 AM
    To: docbook-apps@lists.oasis-open.org
    Subject: [docbook-apps] how remove dot in orderedlist/listitem?


    Hi,

    I have fragment of docbook like this:

    <orderedlist inheritnum="ignore" continuation="restarts">
    <listitem><para>FOO</para></listitem>

    <listitem><para>BOO</para></listitem>
    </orderedlist>


    I convert this list to xsl-fo, and see (I removed tags):

    1. FOO

    2. BOO


    But I want

    1 FOO

    2 BOO


    without dots after numbers.


    Can not find any preference that can change this behaviour.


    Also I try hack fo/list.xsl,


    but I can not find where in
    <xsl:template match="d:orderedlist/d:listitem">


    dot appear (I am newbie in XSL).



    Any suggestions how to remove dots?