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

RE: Stupid Question (was RE: XML doesn't dese rveits

xsi types
3/5/2002 3:02:27 PM, Nicolas LEHUEN <nicolas.lehuen@u...> wrote:

>1) The fact that adding type information creates a data model much more
>complicated than the Infoset. People have to agree about types, about  their
>names and their semantics.

True for both in-band and out-of-band.  The in-band system is automatically
pluggable and extendible.

>Your example is OK provided everybody knows what is an "Int". I think XML
>Schema so-called "simple" types are a precious thing here. Why not use the
>xsi:type notation, while we're at it ?

Right.  I guess I was just trying to be generic, i.e. "starting from
scratch." I should have used the xsi:types in the example.

>For complex types, this is way more complex. You need a structure
>definition, and you won't be able to embed it inline. You can still use
>xsi:type, but you'll need a schema document to refer to.

Good point ... the first REALLY convincing one I've seen, IMHO. 

>2) Obviously, there is a verbosity and readability problem. 

Uhh, namespaces killed that long ago :~) Anyway, "readable"
documents are mostly string typed, no?

> The situation
>in which some legacy code needs <firstname> first, then <lastname>, and a
>new document in which those elements are in reverse order cannot be handled
>by AFs, for example.

Another problem that XPath and related tools (XSLT, Schematron) solves ...

>Anyway, OOP provides interesting concept regarding "contracts", "extension
>of contracts" etc. Those are public interface of classes (or pure
>interfaces) and inheritance. A schema language like XML Schema also support
>those concepts, yet it is very difficult nowadays to access to schema
>information from a random XML document (or even from an XML document with an
>associated schema, because PSVI is not widely supported for now).

OK, I think I see the advantage of an "out of band" schema in this scenario.
But that brings us back to the PSVI "chicken and egg" problem that got me
started.  Sigh.

Thanks, very helpful.


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.
First Name
Last Name
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.