#613 xsl's do not handle the dir attribute properly

output: HTML
XSL (1066)

following this discussion:
and this RFE:
the dir attribute was added to the docbook 4.3 DTD. To
my understanding of the given links, this attribute
should mimic the HTML dir attribute.

In HTML using the dir attribute sets the text direction
for the section it operates on, and adjusts the text in
the right direction. If we use dir="rtl" then the text
direction will be right to left, and the section will
be adjusted to the right.

I created the sample file "myfile.xml" that uses
dir="rtl" on the root element.
If you run xsltproc against it you can see that the
text is not adjusted according to the dir attribute.


  • hillel.t

    hillel.t - 2005-02-21
  • Jirka Kosek

    Jirka Kosek - 2005-02-21
    • assigned_to: nobody --> kosek
    • status: open --> pending
  • Jirka Kosek

    Jirka Kosek - 2005-02-21

    Logged In: YES

    Partially fixed in CVS.

    However problem is much more complex, support for dir must
    be added into indexes and headers/footers also.

  • hillel.t

    hillel.t - 2005-02-22
    • status: pending --> open
  • hillel.t

    hillel.t - 2005-02-22

    Logged In: YES

    Hi Jirka,
    I didn't manage to work against the cvs version (I checked
    out the xsl module but there were some file missing), but I
    did try to work against the customization layer you gave me,
    and had partial success.

    I tested the dir attribute on some popular elements.
    I attach a file with the tests. the text in the brackets is
    the desired alignment according to the dir tag.
    Among the tags that don't work are popular tags like <title>
    and <para> but there are more. You can play with the sample
    file and add the dir attribute to different elements and
    check the results.

  • hillel.t

    hillel.t - 2005-02-22

    includes the dir attribute on popular elements

  • hillel.t

    hillel.t - 2005-02-22
    • status: open --> closed

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks