Re: [Xsltforms-support] XForms repeat and tables?
Brought to you by:
alain-couthures
From: Tim T. <tim...@gm...> - 2021-03-29 17:37:10
|
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 < ala...@ag...> 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, > > --Alain > > Le 28/03/2021 23:03, Tim Thompson <tim...@gm...> 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 > > On Sun, Mar 28, 2021 at 3:44 PM Habs <ge...@us...> 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 Xsl...@li... > https://lists.sourceforge.net/lists/listinfo/xsltforms-support > > |