Closed Bug 294612 Opened 16 years ago Closed 5 years ago

xforms form elements are not working after a xslt transformation


(Core Graveyard :: XForms, defect)

Windows XP
Not set


(Not tracked)



(Reporter: anfuerer, Unassigned)


(Depends on 1 open bug)



(3 files)

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=""
<xsl:output encoding="UTF-8" method="xml" />

<xsl:template match="result">
<html xmlns=""
		<person xmlns="">
	<xf:submission action="http://localhost/" method="post" id="submit"
includenamespaceprefixes="" />
<xf:input ref="name"><xf:label>Your name:</xf:label></xf:input>
<xf:submit submission="submit">

=== 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.
Attached file original XML file
Attached file Example: XSL
I haven't looked at you specific case, but I've experienced it myself.

Jonas, this is the bug I talked about yesterday.
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.
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. ***
Assignee: aaronr → xforms
RIP xforms
Closed: 5 years ago
Resolution: --- → WONTFIX
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.