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

Attribute Models

From: Richard Rathmann <rrathmann@csc.noaa.gov>
Date: Fri, 28 May 1999 12:37:07 -0400
Message-Id: <4.1.19990528111439.00a1f9e0@mailsrv.csc.noaa.gov>
To: www-xml-schema-comments@w3.org
Should the XML Schema--Structure Specification provide mechanisms for
selecting between different attribute models?

For example, given a <date> element which encloses dates of any format, a
person may wish to normalize the date within one or more attribute values
for processing in another application.  One option would be to use one
attribute with a datatype of "date".  Another would be to split the date
into respective "year", "month", and "day" attributes.  Another two would
be to split the date into "year"+"week"+"day" or even "year"+"day" attributes.

Another example would be the HTML <a> element, which can act as a link
originator (with the "href" attribute) and/or as a link destination (with
the "name" attribute).

In the schema you may not want to be limited to one option, but you may
also want to allow ONLY one option, whichever it may be, for a particular
instance of the element (i.e. only one date normalization option per
element or mutually exclusive link originators and anchors in my two
examples, respectively).



******************************************
  Richard E. Rathmann           
  REMSA Contractor              
  NOAA Coastal Services Center  
  2234 S Hobson Ave             
  Charleston, SC  29405-2413    
  (843) 740-1314                
  (843) 740-1224  (fax)         
******************************************
Received on Friday, 28 May 1999 12:37:26 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Sunday, 6 December 2009 18:12:46 GMT