[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Names As Types
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! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|