W3C home > Mailing lists > Public > public-forms@w3.org > February 2008

Re: XForm

From: Erik Bruchez <ebruchez@orbeon.com>
Date: Sun, 17 Feb 2008 13:16:56 -0800
Message-Id: <36F4263A-1937-42CC-9382-CA37BE37D426@orbeon.com>
To: "Forms WG (new)" <public-forms@w3.org>
Curtis,

I don't know which XForms implementation you are using, but with  
Orbeon Forms, using XHTML is required, and that implies putting your  
XHTML elements in a namespace, e.g.:

   <html xmlns="http://www.w3.org/1999/xhtml" xmlns:xf="http://www.w3.org/2002/xforms 
">

If you do so, be aware that you will have to make sure your instance  
data is not in the XHTML namespace:

   <course xmlns="">
     ...

Alternatively, you can use explicit prefixes on all XHTML elements:

   <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xf="http://www.w3.org/2002/xforms 
">
     <xhtml:head>
       ...

The modified attached version works for me.

-Erik


On Feb 15, 2008, at 7:25 AM, Poulson, Curtis wrote:

> Good morning,
>
>
>
> I am trying to create an XForm. I can not get the submit button to  
> show.
> What type of file do you put the code in? The code is below.
>
> This is my first XForm experience.
>
>
>
>
>
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 TRANSITIONAL//EN"
> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-TRANSITIONAL.dtd">
>
> <html xmlns:xf="http://www.w3.org/2002/xforms">
>
>
>
> <head>
>
>  <title>XForms Test Document</title>
>
>
>
> <xf:model>
>
> <xf:instance>
>
>  <course>
>
>    <cnumber/>
>
>    <cname/>
>
>  </course>
>
> </xf:instance>
>
> <xf:submission id="form1"
>
> action="submit.asp"
>
> method="get"/>
>
> </xf:model>
>
>
>
> </head>
>
>
>
> <body>
>
>
>
> <xf:input ref="cnumber">
>
> <xf:label> Course Number</xf:label></xf:input>
>
> <br/>
>
> <br/>
>
> <xf:input ref="cname">
>
> <xf:label> Course Name</xf:label></xf:input>
>
> <br/>
>
> <br/>
>
> <xf:submit submission="form1">
>
> <xf:label>Submit</xf:label></xf:submit>
>
>
>
> </body>
>
> </html>
>
>
>
>
>
>
>
> Curtis Poulson
>
> Progeny Systems Corporation
>
> 5700 Thurston Avenue, Suite 211
>
> Virginia Beach, VA 23455-3302
>
> cpoulson@progeny.net
>
> 757-460-7450 ext. 117
>
>
>

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



Received on Sunday, 17 February 2008 21:17:13 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 1 October 2013 22:06:47 UTC