Closed Bug 294612 Opened 16 years ago Closed 5 years ago
xforms form elements are not working after a xslt transformation
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b) Gecko/20050201 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b) Gecko/20050201 XForms are not working after an XSLT transformation. With XSLT I generated a XHTML which contains an XForms form. The XSL transformation is done and rendered in the browser correctly. But the form can not be edited and submission does not work. (see examples in "Steps to Reproduce"). If you save the transformed XHTML in a file and re-open it then it works perfectly as it should. Reproducible: Always Steps to Reproduce: === EXAMPLE test.xsl === <?xml version="1.0"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xf="http://www.w3.org/2002/xforms"> <xsl:output encoding="UTF-8" method="xml" /> <xsl:template match="result"> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:xf="http://www.w3.org/2002/xforms" xmlns:ev="http://www.w3.org/2001/xml-events"> <head> <title>Test</title> <xf:model> <xf:instance> <person xmlns=""> <name/> </person> </xf:instance> <xf:submission action="http://localhost/" method="post" id="submit" includenamespaceprefixes="" /> </xf:model> </head> <body> <xf:input ref="name"><xf:label>Your name:</xf:label></xf:input> <xf:submit submission="submit"> <xf:label>Submit</xf:label> </xf:submit> </body> </html> </xsl:template> </xsl:stylesheet> ================================ === test.xml === <?xml version="1.0"?> <?xml-stylesheet type="text/xsl" href="test.xsl" ?> <result /> ================================ Actual Results: XSL transformation is done and the document is rendered correctly in the browser. But I can't edit the text field and nothing happens if I click on the sumbit button.
I haven't looked at you specific case, but I've experienced it myself. Jonas, this is the bug I talked about yesterday.
Status: UNCONFIRMED → NEW
Ever confirmed: true
The elements are created correctly etc. but we fail to locate the instances and the model I think. This might be because we look for them in the wrong document? That is in the source-file, and not in the transformed document.
got an lxr-link to the code that fails?
(In reply to comment #5) > got an lxr-link to the code that fails? Nope, sorry. I'll try to look at it again some time, but it's not high on my priority list.
I think I've found the problem. It's somewhat the same as bug 302915. BeginAddingChildren() and DoneAddingChildren() are not called on XTF elements when they are created by Transformiix.
Depends on: 239152
Bug 239152 is about cleaning up the entire mess of the multiple notifications we have now. We could either hack more notifications into transformiix, or wait for the mess to be fixed once and for all.
*** Bug 315009 has been marked as a duplicate of this bug. ***
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.