[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Stupid Question (was RE: XML doesn't deserve its
Mike Champion wrote: > 3/5/2002 5:55:15 PM, Joe English <jenglish@f...> wrote: > > >I'm having a hard time envisioning a scenario where having > >'xsi:type' would be useful to an application. > > Well, I have that same problem with the PSVI :~) Seriously, > would this apply to having the PSVI tell you the type of > the element as well as having xsi:type tell you the type > of the element? More or less, yes. The general idea of Infoset augmentation is I think very useful, but I'm starting to think that doing it as part of validation is not a good idea. Schema languages for validation should be as powerful (and expensive) as needed to express a wide range of constraints, but schema languages for augmentation should be as simple (and cheap) as possible. RELAX-NG and Schematron are at the right level of complexity for validation languages; they're very expressive, but they don't add anything to the infoset other than "OK/not OK" (and in the case of Schematron, a detailed explanation of why it's not OK). EXPLICIT LINK is pretty close to the right level of simplicity for an augmenting language. Were it not for two or three fatal flaws in the specification it would be ideal. W3C XML Schema tries to do both at the same time, and both sides suffer. Besides that, only a few of the W3C XML Schema PSVI contributions look very useful to me -- "schema default", and maybe the ID/IDRef properties. Getting back to (what I think was :-) the original point, I agree (I think) that adding attributes is a better way to augment an infoset than adding "information items" with an unspecified implementation. That way everything fits into the basic "elements, attributes, and text" framework. --Joe English jenglish@f...
|
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
|