docbook-apps

  • 1.  Re: [docbook-apps] Table entry orientation in customization layer

    Posted 09-23-2007 19:13
    Hi,
    Can I ask what XSL-FO processor you are using? If it is Antenna House, then you can just set the rotation and it will work. If it is XEP, it won't work without also setting the width of the content with the processing instruction. XEP will make the table cell (and row) too tall of you don't.

    And currently FOP 0.94 won't position the rotated text correctly in the cell if you don't set the other processing instruction.

    So using the rotate attribute may not be sufficient with the current crop of processors.

    Bob Stayton
    Sagehill Enterprises
    DocBook Consulting
    bobs@sagehill.net


    ----- Original Message -----
    From: Mimil Mimil
    To: docbook-apps@lists.oasis-open.org
    Sent: Saturday, September 15, 2007 6:39 AM
    Subject: [docbook-apps] Table entry orientation in customization layer


    Hi everybody,

    I would like to customize my fo layer on table <entry> in order to use the rotate=1 attribute value. I would like the following:

    When:
    <entry rotate="1">text</entry>
    Have the same behaviour as:
    <entry align="right">text</entry>

    But I don't know how to mimic the add of a Processing Instruction.

    By the way I don't know if it is the best solution. I just want to not add a Processing Instruction in each of my entries I want rotated.

    Could anyone give me a hint?

    Thx,
    Regards,



  • 2.  Re: [docbook-apps] Table entry orientation in customization layer

    Posted 09-27-2007 20:50
    Hi Bob and thx for your answers,

    I am using FOP because my need is to only work as much as possible with
    opensource tool chain.

    But I have to admit that such problems make me have strange feelings about
    docbook because I must set rendering informations into my docbook source
    files. And as you already know it is against the docbook principles about
    the separation of content and presentation.


    How all of you deal with such things?


    Thx,
    Mimil


    On 9/23/07, Bob Stayton <bobs@sagehill.net> wrote:
    >
    > Hi,
    > Can I ask what XSL-FO processor you are using? If it is Antenna House,
    > then you can just set the rotation and it will work. If it is XEP, it won't
    > work without also setting the width of the content with the > rotated-width="xx"?> processing instruction. XEP will make the table cell
    > (and row) too tall of you don't.
    >
    > And currently FOP 0.94 won't position the rotated text correctly in the
    > cell if you don't set the other processing instruction.
    >
    > So using the rotate attribute may not be sufficient with the current crop
    > of processors.
    >
    > Bob Stayton
    > Sagehill Enterprises
    > DocBook Consulting
    > bobs@sagehill.net
    >
    >
    >
    > ----- Original Message -----
    > *From:* Mimil Mimil <mimilowns@gmail.com>
    > *To:* docbook-apps@lists.oasis-open.org
    > *Sent:* Saturday, September 15, 2007 6:39 AM
    > *Subject:* [docbook-apps] Table entry orientation in customization layer
    >
    > Hi everybody,
    >
    > I would like to customize my fo layer on table <entry> in order to use the
    > rotate=1 attribute value. I would like the following:
    >
    > When:
    > <entry rotate="1">text</entry>
    > Have the same behaviour as:
    > <entry align="right">text</entry>
    >
    > But I don't know how to mimic the add of a Processing Instruction.
    >
    > By the way I don't know if it is the best solution. I just want to not add
    > a Processing Instruction in each of my entries I want rotated.
    >
    > Could anyone give me a hint?
    >
    > Thx,
    > Regards,
    >
    >