W3C home > Mailing lists > Public > www-forms@w3.org > April 2001

XForms Submit Protocol

From: Bernhard Zwischenbrugger <bz@datenkueche.com>
Date: Mon, 2 Apr 2001 14:33:14 +0200
To: www-forms@w3.org
Message-Id: <01040215533201.00382@neu>
I try to implement a subset of XForms to use it as a Serverside webapplication.
I have some XSLT's to convert XFORMs to HTML Forms.
There is no real problem with this.

The Problem is when I try to bind a XML File (XML DB) to

I started to implement a  example.
It's a simple adressbook.

The XML Data File looks like

<?xml version="1.0" encoding="ISO-8859-1"?>
         <item id="1">                
                <number>+43/1/944 5764</number>         
          <item id="2">                
                 <number>555 34 3442 345</number>         
           <item id="3">
                <number>555 345 345 43</number>   
           <item id="4">                 
                   <number>555 3245453</number>         


<?xml version="1.0" encoding="ISO-8859-1"?>
<!ENTITY instancedata SYSTEM "telephone.xml">
<xform id="telephonebook">
<submitInfo target="http://localhost/forms/test.php" />
<groupbox title="Person">
                <hidden ref="/telephonebook/item/@id">
                <textbox ref="/telephonebook/item/firstname">
                <textbox ref="/telephonebook/item/lastname">
                <textbox ref="/telephonebook/item/number">
<submit xform="telephonebook">Save</submit>

Select a Dataset

To make the HTML Form is not a real Problem.
Wenn I try to insert default values to the Form, I have some problems.

My Questions:

o Is it intentet to select the default values (instance data) with the "ref"
ref="item/firstname" or
ref="item[2]/firstname" or
is this decision up to me? 

o Is it intendet to spezify to target of the submitted values by the "ref"

o is there a "XForms Submit Protocol"? 
It's no problem to submit the values per GET and POST. It's possible
to submit the values as an XML-File or name/value pairs.
(10.6.4 - 10.6.5)

The thing I'm missing is the protocol for submit, reset, construct, timezone,...

In my example I have to spezify the location  to save the transmitted

This may look like (URLEncoded):

Or is this the better solution:

There is no protocol for "10.3 Events".

o Will the "XForms Submit Protocol" be part of XForms 1.0

o Assign XML-Instance, XForms, XForms Prozessor
I have 3 Files: 
XML-Instance data: telephone.xml
XForms :                  xform.xml
XForms Processor   : xforms.xslt

Is the telephone.xml assigned to the xforms-processor or to the xforms.xml?

Is it part of the XForms 1.0 to tell the application what to
do with the submitted values? 
The "ref" attribute makes me think, that XForms tells the application
where to find the values in the XML-File. But there is no possibility to tell
what to do with the data (insert, update, delete). 
Maybe I can do this task with DOM?

o Where is the interface between XForms and DOM?

Hope you understand what I'm writing about.


Bernhard Zwischenbrugger       Datenküche
Tel.: +43/1/944 57 64          Redaktionssystem
Mobil.: +43/699/1944 57 64     Web Content Management
Received on Monday, 2 April 2001 09:53:49 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:36:04 UTC