[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: Names As Types


importance of layer.xml
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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.