W3C home > Mailing lists > Public > www-forms@w3.org > May 2003

RE: XForms processor

From: Klotz, Leigh <Leigh.Klotz@pahv.xerox.com>
Date: Tue, 20 May 2003 17:28:38 -0700
Message-ID: <51B8ABCE456FD111899900805F6FD6EE12EE03EF@mercury.ADOC.xerox.com>
To: "'www-forms@w3.org'" <www-forms@w3.org>, "'jemaxson@fedex.com'" <jemaxson@fedex.com>

There are quite a few differences between the rather old W3Schools example
and the last public version of the specification.

Here is a version compliant with the latest published version of the XForms

You could use CSS to style the form controls, or additional bindings
or an XML Schema to better describe the data, or even remove the
<instance>...</instance> entirely and let
the "lazy author" feature of spec-compliant XForms processors create one for


<?xml version="1.0" ?>
<html xmlns="http://www.w3.org/1999/xhtml"
    <model xmlns="http://www.w3.org/2002/xforms/cr">
      <submission id="pay" action="http://www.example.com/cgi-bin/echo.sh"
	  <pay xmlns="">
	    <cc />

      <!-- These next few "bind" lines are optional but improve validation
and appearance -->
      <!-- See http://www.w3schools.com/schema/schema_dtypes_date.asp -->
      <bind nodeset="exp" type="xsd:gYearMonth" />
      <bind nodeset="cc" relevant="/pay/as = 'credit'" />
      <bind nodeset="exp" relevant="/pay/as = 'credit'" />
    <group class="box" xmlns="http://www.w3.org/2002/xforms/cr">
      <select1 class="mine" ref="as">
	  <label>Select Payment Method</label>
      <input class="mine cc" ref="cc">
	  <label>Credit Card Number</label>
      <input class="mine" ref="exp">
	  <label>Expiration Date</label>
      <submit submission="pay">

-----Original Message-----
From: AndrewWatt2001@aol.com [mailto:AndrewWatt2001@aol.com] 
Sent: Friday, May 16, 2003 12:02 PM
To: jemaxson@fedex.com
Cc: www-forms@w3.org
Subject: Re: XForms processor

In a message dated 16/05/2003 19:42:21 GMT Daylight Time, jemaxson@fedex.com

Is there an XForms processor that will display the following example in IE 6
SP1?  FormsPlayer did not work.  Their example uses <xform:Select1> and the
example from the link below uses <xform:SelectOne>!  Yikes!
Thanks for your help.


The select1 element is in the Candidate Recommendation. <selectOne>, for
better or worse, was dropped.

So the w3schools.com example is now out of date.

I hope that helps.

Andrew Watt 
Received on Tuesday, 20 May 2003 20:28:36 UTC

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