Saturday 03 February 2007 7:08:14 am
Has anyone had any success integrating xforms into ezpublish? I've tried to get a simple form working using a popup template but even if i wrap the code in {literal} tags it mixes up the xml tags for some reason. The generated source looks like this:
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:xforms="http://www.w3.org/2002/xforms"><head><title>Hello XForms!</title>
<xforms:model></xforms:model>
<xforms:instance xmlns=""></xforms:instance>
<name></name></head><body>Fraser
<xforms:input ref="/name">
<xforms:label>Type your name in the box and press tab: </xforms:label>
</xforms:input>
<hr>
<xforms:output value="concat('Hello ', /name)">
<xforms:label>Output: </xforms:label>
</xforms:output>
</body></html>
Instead of this:
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:xforms="http://www.w3.org/2002/xforms">
<head>
<title>Hello XForms!</title>
<xforms:model>
<xforms:instance xmlns="">
<Name/>
</xforms:instance>
</xforms:model>
</head>
<body>
<xforms:input ref="/Name" a0:type="http://www.w3.org/2001/XMLSchema#string" xmlns:a0="http://www.mozilla.org/projects/xforms/2005/type" a0:typelist="http://www.w3.org/2001/XMLSchema#string">
<xforms:label>Type your name in the box and press tab: </xforms:label>
</xforms:input>
<hr/>
<xforms:output value="concat('Hello ', /Name)">
<xforms:label>Output: </xforms:label>
</xforms:output>
</body>
</html>
Notice for example that the </xforms:model> closing element comes right after the openning one instead of below the </instance> closing element. Anyone know why this might be happening? Thanks!
|