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

Question about xforms properties

From: Hiroshi Iwasaki <Iwasaki_Hiroshi@mse.mei.co.jp>
Date: Mon, 3 Dec 2001 10:44:41 +0900
Message-ID: <001b01c17b9c$166c5e80$63794a0a@mseyokd>
To: <www-forms@w3.org>
Hi all xformers;

I have a question about xforms properties.

11.2 XForms Properties says as follows:
For each xform element, the XForms Processor
maintains a set of read-write properties.

Since specification does not give us an example,
I can not undersatand where these properties should be declared.

I think 11.4.4 Interactivity gives us a hint where they should be declared.
It says as follows:
As users indicate completion of a form control by navigating
away the following occurs:
If the immediate-revalidate property is true, all revalidations
bound to the form control are run.

My guess is that they should be declared as an attribute of form control
element as follows:
<!-- Declaration of xforms property as an attribute of form control
element -->
<xform:input ref="pay:payment/pay:cc" immediate-revalidate="true">
  <xform:caption>Credit Card Number</xform:caption>
<!-- Plus the following in an external Schema -->
  <xsd:simpleType name="cc">
    <xsd:restriction base="xsd:string">
      <xsd:pattern value="\d{14,16}"/>

Thus the XForms Processor gets xform property,immediate-revalidate="true"
from the xform input element.
Since the revalidation is bound to the form control, it is revalidated
when the user navigates away from the form control.

Am I correct?

Best Regards.

Hiroshi Iwasaki
Received on Sunday, 2 December 2001 20:42:19 UTC

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