Tim,
Since XSLTForms 1.5, repeats within tables are converted into attributes ("xf-repeat-ref" or "xf-repeat-bind") without adding potentially missing tbody elements.
XSLTForms 1.5.4 now supports table/xf:repeat, not just tbody/xf:repeat.
Nevertheless, browsers add tbody element when not present. It does not seem to disturb XSLTForms in small test cases... Explicit tbody element sounds more secure...
Thank you for your feedback!
--Alain
Le 29/03/2021 19:36, Tim Thompson <[email protected]> a écrit :
Thank you, Alain!
Is it possible to generate a table without a "tbody" element? With 1.5.3, removing "tbody" in my sample form still throws a "TypeError: Cannot read property 'localName' of null" in Chrome, but works in Firefox.
Best regards,Tim
--
Tim A. Thompson
Metadata Librarian
Yale University Library
On Mon, Mar 29, 2021 at 1:25 PM Alain Couthures <[email protected]> wrote:
Hello Tim,
There was a missing initialization in XSLTForms 1.5.2 for table repeats within a repeat.
This has been added as XSLTForms 1.5.3 at https://github.com/AlainCouthures/declarative4all/raw/master/public/direct/xsltforms.zip
Because of XPath 3 support to be committed in next major release, XSLTForms 1.5.3 can use both current and future XPath engines. It is just an intermediate release. Please check all your forms!
Kind regards,
--AlainLe 28/03/2021 23:03, Tim Thompson <[email protected]> a écrit :
Thanks again, Josselin, Habs. Yes, I was using the latest version of XSLTForms, 1.5.2. If I remove the "tbody" element, the form works in Firefox, but throws an error in Chrome. However, if I revert to version 1.4, then it works both with and without "tbody," in both Firefox and Chrome. The issue seems to arise starting with version 1.5beta (655).
Best regards,Tim
--
Tim A. Thompson
Metadata Librarian
Yale University Library
_______________________________________________ Xsltforms-support mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/xsltforms-supportOn Sun, Mar 28, 2021 at 3:44 PM Habs <[email protected]> wrote:
On Sun, 28 Mar 2021, Tim Thompson wrote:
> Thanks, Habs! Where you say the "tbody" tags are removed, do you mean in the XForm itself, or from the rendered HTML? If I remove them from the XForm, I
> still get an error.
>
> However, if I copy the rendered content of the form, save it, and open it in the browser, then the table displays correctly. (See attached.) So, there must
> be something in the XSLTForms _javascript_ that is hiding the content?
>
Hi Tim
Yes I removed the tbody from the Xform and it worked on my setup with
latest xsltforms series (not sure what revision though sorry).
I took your stripped (of anything but essential?!) Xform and plugged it
into my goto basic xhtml document format (headers etc) on my test server.
I simplify xforms to the absolute basics in problem cases I've had - see
if that works and then build back up from there.
I'll have another play and see if I can spot anything else.
If you want my test version of your form let me know.
Regards
--- Sent using Alpine/Pine, probably the best MUA ---
_______________________________________________ Xsltforms-support mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/xsltforms-support
