Hi Alain,
That is great to hear, I will give it a try. I have also found a CSS
solution that seems to work pretty well:

input {
    text-align: start !important;
    unicode-bidi: plaintext !important;
}


In terms of dir=auto on other elements I would think labels and outputs
would be the most useful.
Thanks for your continued help!
-Winona


On Sun, Dec 10, 2023 at 6:02 AM Alain Couthures <
alain.couthu...@agencexml.com> wrote:

> Hi Winona,
>
> XSLTForms now allows to add HTML attributes to input/textarea elements
> given they are in HTML namespace such as <xf:input ref="."
> html:dir="auto"/>.
>
> Whether dir="auto" should be systematically added by XSLTForms is a good
> question. For inputs, this should be added within Javascript
> XsltForms_input.prototype.initBody() method. Actually, more elements could
> also be considered: labels and outputs, at least.
>
> What do you think?
>
> --Alain
>
> Le 07/12/2023 17:11 CET, Winona Salesky <wsale...@gmail.com> a écrit :
>
>
> Hi All,
> I need to support both rtl and ltr text input in my forms. Reading up on
> this online, it sounds like the best way to do this is to include the
> following attribute on the input/textarea elements: dir="auto"
>
> What do you think the best way to get this working in XSLTForms is? Edit
> the XSLTForms javascript? Write my own Javascript to amend the output?
> Something else?
>
> Thanks for any thoughts or suggestions.
> -Winona
>
> _______________________________________________ Xsltforms-support mailing
> list Xsltforms-support@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/xsltforms-support
>
>
_______________________________________________
Xsltforms-support mailing list
Xsltforms-support@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xsltforms-support

Reply via email to