Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

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

output: HTML
closed
Jirka Kosek
XSL (1066)
5
2005-02-22
2005-02-21
hillel.t
No

following this discussion:
http://lists.oasis-open.org/archives/docbook/200302/msg00106.html
and this RFE:
http://sourceforge.net/tracker/index.php?func=detail&aid=573419&group_id=21935&atid=384107
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.

Discussion

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

     
    Attachments
  • Jirka Kosek
    Jirka Kosek
    2005-02-21

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

    Logged In: YES
    user_id=189932

    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
    user_id=1018839

    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

     
    Attachments
  • hillel.t
    hillel.t
    2005-02-22

    • status: open --> closed