W3C home > Mailing lists > Public > www-xml-schema-comments@w3.org > April to June 2000

User interface default values

From: Curt Arnold <carnold@houston.rr.com>
Date: Thu, 6 Apr 2000 22:01:44 -0500
Message-ID: <003701bfa03d$9b7a5c80$ae44a018@houston.rr.com>
To: <www-xml-schema-comments@w3.org>
Cc: <www-forms@w3.org>
I meant to mention this at XTech, but it may be useful to allow for element
and attribute a way that a user agent could obtain an initial or hint value
for an element or attribute that didn't add anything to the information set.
Possibly something like:

<!-- For 'element' and 'attribute' -->
  <attributeGroup name="valueConstraint">
   <attribute name="default" type="string"/>
   <attribute name="fixed" type="string"/>
   <attribute name="initial" type="string"/>

When initial is specified, a user agent may use it to provide a initial
value for a user interface field, but an XML processor doesn't use it to
provide a value if it isn't specified.

<element name="order">
    <attribute name="quantity" type="non-negative-integer" initial="1"/>
    <attribute name="item" type="uri-Reference"/>

This could result in a Schema generated UI having a quantity field with
initialized to 1, but would not result in:

<order item="http://www.buyme.com/item.xml?5555"/>

being interpreted as having a quantity of 1.

Explicitly supporting this hint in XML Schema might make things a little
cleaner with XForms which is using default to mean what I called initial.
Received on Thursday, 6 April 2000 23:10:57 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:08:47 UTC