W3C home > Mailing lists > Public > xmlschema-dev@w3.org > November 2011

Re: Is this reasonable: classify each element as either an Object or property

From: Michael Kay <mike@saxonica.com>
Date: Fri, 04 Nov 2011 00:14:40 +0000
Message-ID: <4EB32E70.8060406@saxonica.com>
To: xmlschema-dev@w3.org
On 03/11/2011 20:29, Costello, Roger L. wrote:
> Hi Folks,
> I am thinking that it is useful to identify each element in a schema as either an Object or a property.
> Objects are described by one or more properties.
> The value of a property may be either simple or an Object.
> Here is an example of an XML document containing two Objects (Book and Person) and three properties (title, author, name):
> <Book>
>      <title>The Implementation of Functional Programming Languages</title>
>      <author>
>          <Person>
>              <name>Simon L. Peyton Jones</name>
>          </Person>
>      </author>
> </Book>
> Notice that two of the properties (title and name) have a simple value. One property (author) has an Object value.
> Is this a reasonable desire?
> /Roger
I think it's a bit 'perfectionist' and can lead to unnecessary and 
inconvenient extra layers of tagging. It can also lead to unproductive 
debates about semantic distinctions that have little practical 
importance. For example, this kind of approach, when taken to extremes, 
can lead to


being replaced by


Don't laugh: I see exactly this kind of bloat in many standardized XML 
vocabularies such as FpML.

Michael Kay
Received on Friday, 4 November 2011 08:41:14 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:56:19 UTC