docbook-apps

  • 1.  aligning text

    Posted 06-23-2010 19:11
    I'm converting some older documents to docbook.
    Some of the paragraphs are centred, others aligned right.
    Is there a straight forward way to do this in docbook.
    In XHTML I've created a class="right", etc., and scripted a CSS file.

    The <entry> element has an align attribute, but this does not work with
    <para>.

    I'm sure this can be accomplished through a customized layer, but my
    knowledge of XSLT is not up to that challenge just yet.
    I'd appreciate any direction.
    Paul



  • 2.  RE: [docbook-apps] aligning text

    Posted 06-23-2010 19:26
    You might want to read Bob Stayton's write-up on using CSS:

    http://www.sagehill.net/docbookxsl/UsingCSS.html

    From: PC Thoms [mailto:pcthoms@gmail.com]
    Sent: Wednesday, June 23, 2010 1:11 PM
    To: docbook-apps@lists.oasis-open.org
    Subject: [docbook-apps] aligning text

    I'm converting some older documents to docbook.
    Some of the paragraphs are centred, others aligned right.
    Is there a straight forward way to do this in docbook.
    In XHTML I've created a class="right", etc., and scripted a CSS file.

    The <entry> element has an align attribute, but this does not work with <para>.

    I'm sure this can be accomplished through a customized layer, but my knowledge of XSLT is not up to that challenge just yet.
    I'd appreciate any direction.
    Paul