xforms form elements are not working after a xslt transformation

RESOLVED WONTFIX

Status

Core Graveyard
XForms
RESOLVED WONTFIX
12 years ago
9 months ago

People

(Reporter: Andreas Fuerer, Unassigned)

Tracking

(Depends on: 1 bug)

Trunk
x86
Windows XP
Dependency tree / graph

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(3 attachments)

(Reporter)

Description

12 years ago
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.
(Reporter)

Comment 1

12 years ago
Created attachment 183894 [details]
original XML file
(Reporter)

Comment 2

12 years ago
Created attachment 183895 [details]
Example: XSL

Comment 3

12 years ago
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

Comment 4

12 years ago
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?

Comment 6

12 years ago
(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.

Comment 7

12 years ago
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.

Comment 9

12 years ago
*** Bug 315009 has been marked as a duplicate of this bug. ***

Updated

11 years ago
Blocks: 323593

Comment 10

11 years ago
Created attachment 215811 [details]
Same as original XML, but linked to the XSL attachment for easier testing

Updated

11 years ago
Assignee: aaronr → xforms
RIP xforms
Status: NEW → RESOLVED
Last Resolved: a year ago
Resolution: --- → WONTFIX
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.