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

RE: XForms processor

From: Ben Nolan <ben@ripcord.co.nz>
Date: Wed, 21 May 2003 13:34:14 +1200
To: <www-forms@w3.org>
Message-ID: <001f01c31f39$16e59f10$5900f80a@llgdarkstar>

Is there a specification for css application to xforms?

For example - in my processor my default transformation for an input tag
to html is

<input style="width: 300px" ref="/xyz">
  <label style="font-weight: bold">abc</label>

<label style="font-weight: bold">abc</label>
<input style="with: 300px"/>


-----Original Message-----
From: www-forms-request@w3.org [mailto:www-forms-request@w3.org] On
Behalf Of Klotz, Leigh
Sent: Wednesday, 21 May 2003 12:29 p.m.
To: 'www-forms@w3.org'; 'jemaxson@fedex.com'
Subject: RE: XForms processor

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 specification.

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 you.


<?xml version="1.0" ?>
<html xmlns="http://www.w3.org/1999/xhtml"
    <model xmlns="http://www.w3.org/2002/xforms/cr">
      <submission id="pay"
	  <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,

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 21:34:21 UTC

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