[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: To namespace or not to Namespace .... dictionaries are the
Michael, I respectfully beg to differ! Architecturally XSD Schema is lacking a registry and dictionary system. That was a W3C decision. Namespaces attempt to remediate some of the shortcomings that introduces. With the OASIS CAM approach - you have true content assembly driven from canonical component dictionaries that you can then use structurally to develop your schema. This encourages good data modelling and structure design, it also encourages good naming and design rules practice so you have consistent definitions and reuse. Each dictionary provides isolation within itself and automatically across dictionaries since you can specify the dictionary::item and context parent/child to denote the specific use reference. What is more - you can take existing Schema ugly - load those into CAM templates - refactor and rename - merge - and then generate consolidated dictionaries. Whenever you do this it is hugely instructive - even for established standards of sets of industry schema. I'm constantly seeing - "oh we did not realize we had those conflicts and inconsistencies - we need to fix that" or just plain errors (type mismatch with entity name and intended use). Schema is like using a compiler with no type consistency checking and no variable use pattern checking - it assumes you know what you are doing and that what you coded is what you really intended. Once you have consistent dictionaries - then you can compare across dictionaries - and align and reuse. For the OASIS SET work we are defining semantic mechanisms to exploit what canonical dictionaries add to the equation. Using namespaces fixes nothing relating to conflicts - just makes you think it does - e.g. I have nc:PersonDetails and im:PersonDetails - OK - now what are you going to do? Are these the same? If different how do they differ and when do I use one and not the other? Can I setup automated mapping (focus of OASIS SET)? Canonical XML dictionaries combined with structure blueprint templates and an expander tool are redefining how people build information exchanges for interoperable business information. BTW - sidebar technical note - the one use of namespaces I do see technically is to embed program directives into XML content streams to allow discreet processing to occur - but is otherwise stripped out and ignored for content purposes e.g. <foobar xslt:dothis="apply-template" xslt:dothis-name="special-stuff">my data goes here</foobar> DW
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] |
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
|