W3C home > Mailing lists > Public > www-forms@w3.org > June 2008

Re: submit doesn't appear as button

From: Erik Bruchez <ebruchez@orbeon.com>
Date: Thu, 12 Jun 2008 16:45:52 +0200
Message-Id: <D3FCC27E-04B8-4482-9435-7F939890C75D@orbeon.com>
To: www-forms@w3.org
There are many issues with your example:

* There is no <xforms> element in XForms. So you must remove that.
* You need to place XForms elements in a namespace, e.g. <xforms:model>.
* Your XForms namespace is wrong, you must use:

   xmlns:xforms="http://www.w3.org/2002/xforms"

* Your markup is not well-formed as your </body> element is not closed.
* If you have as default namespace the HTML namespace, you must use  
xmlns="" on your instance's root element.

See attached a modified version which seems to work for me.

-Erik


On Jun 11, 2008, at 10:17 PM, Pruitt, Byron S wrote:

> <?xml version="1.0" encoding="UTF-8"?>
> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:ev="http://www.w3.org/2001/xml-events 
> " xmlns:xforms="http://www.w3.org/2002/xforms/cr">
> <xforms>
> <head>
> <model>
>   <instance>
>   <Template>
>             <Letter>
>                         <Advisor_EmployeeID></Advisor_EmployeeID>
>                         <Client_ID></Client_ID>
>             </Letter>
> </Template>
>   </instance>
>   <submission id="form1" method="form-data-post" action="http://localhost:8080/dls/forms/letter 
> " ref="/Template"/>
> </model>
> </head>
> <body>
> <input ref="Client_ID">
> <label>Client ID</label>
> </input>
> <br/>
>
> <input ref="Advisor_EmployeeID">
> <label>Advisor Employe ID</label>
> </input>
> <br/>
> <br/>
>
> <submit submission="form1">
> <label>Submit</label>
> </submit>
> <body>
> </xforms>
> </html>

--
Orbeon Forms - Web Forms for the Enterprise Done the Right Way
http://www.orbeon.com/



Received on Thursday, 12 June 2008 14:46:40 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Saturday, 10 March 2012 06:22:12 GMT