xforms integration

Author Message

Fraser Hore

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!

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 19:03:05
Script start
Timing: Jan 18 2025 19:03:05
Module start 'layout'
Timing: Jan 18 2025 19:03:05
Module start 'content'
Timing: Jan 18 2025 19:03:06
Module end 'content'
Timing: Jan 18 2025 19:03:06
Script end

Main resources:

Total runtime1.5899 sec
Peak memory usage4,096.0000 KB
Database Queries46

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0098 587.7969152.6094
Module start 'layout' 0.00990.0040 740.406339.4297
Module start 'content' 0.01391.5739 779.8359442.3281
Module end 'content' 1.58780.0021 1,222.16418.3438
Script end 1.5899  1,230.5078 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00400.2535160.0003
Check MTime0.00150.0915160.0001
Mysql Total
Database connection0.00110.069610.0011
Mysqli_queries1.531496.3197460.0333
Looping result0.00050.0295440.0000
Template Total1.534896.520.7674
Template load0.00210.129620.0010
Template processing1.532896.405320.7664
Template load and register function0.00020.010010.0002
states
state_id_array0.00590.373110.0059
state_identifier_array0.00210.129220.0010
Override
Cache load0.00170.1045130.0001
Sytem overhead
Fetch class attribute can translate value0.00080.053410.0008
Fetch class attribute name0.00070.044720.0004
XML
Image XML parsing0.00330.205310.0033
class_abstraction
Instantiating content class attribute0.00000.000320.0000
General
dbfile0.00660.4137160.0004
String conversion0.00000.000540.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
3content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 9
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs