OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   RE: [xml-dev] Names As Types

[ Lists Home | Date Index | Thread Index ]

Bullard, Claude L (Len) said:

> What is the ideal XML application language architecture?

Here is how I would like to it to be: a stack defined into
simply describable layers of responsibility. Humans are not the end
of the stack:  they can view any layer and see the inputs, outputs, and
responsibilities of each layer.

In reverse:

1) Encoding layer.  From bits to characters (text)
2) Markup layer. From text to data+markup
3) Tree layer. From data+markup to attribute-value trees, xml:space=strip
4) Composition layer. xml:include, xml:base, xlink
5) Property-augmented data layer: xml:id, xsi:type (simple),
6) Property-augmented names layer: non-standard namespaces, ID, RDF
7) Status layer: validation, security

(These layers are conceptual, not functional, in the same way that
we think of TCP and IP as being separate layers despite their actual
fairly tight coupling.)

This kind of stack provides a alternative to a "processing model"
for XML that lets street uchin specs like xml:include and
even RDF work find a natural home.

The Infoset and PSVI are generalized in four ways:
* a layer (4) to represent composition/linking properties over AVTs,
including building document sets or collections
* a layer (5) to represent a list of properties on data and attribute
values (e.g. datatypes)
* a layer (6) to represent a list of properties on named information items
(elements, attributes)
* a layer (7) to represent status information, in particular kinds of
   validation

This stack, therefore, does not build in any idea that datatyping is a
result of validation. It is fine for XSD to couch itself in those terms,
but XSD is unhelpful for databases in this regard.

Adoption of a conceptual stack like this (by the W3C TAG and XML Core WG
etc.) would, I think, help channel discussion and development. For example,
it would provide a much better model for defining the semantics of xml:lang.
Or for providing an inline specification for non-significant whitespace.
Or for allowing a better RDF.

Cheers
Rick Jelliffe




 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS