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

RE: XML Schema views - are they possible?


gjxdm
Len,

AARRRGGGH!!!  Once again you are touching on a pet peeve!

IMHO namespaces are a technology that someone invented - then went looking for a
problem to solve with it.

In 99% of cases the natural XML heirarchy and XPath are enough:

e.g.

 <order-total>
     <amount value='21343.23'/>
 </order-total>
 <postage><amount type='postage'>12.50</amount></postage>

Instead people create havoc and confusion for end users with multiple namespace
documents.  And the real joke is none of it versions!

Using namespaces should only occur when you want to exclude content from within
content.  This is how of course CAM does it.

Also - CAM <ContentReference> completely does away with the need for namespaces
as a means to denote domain usage.  This keeps your instances simple and they
parse anywhere - no namespace issues.

So - ContentReference - assigns a unique ID (UID) to each element / attribute -
so you know instantly - even if the tag name is different (something namespace
can't do too!) - that its actually the same semantic item, and hence content
rules to apply.  And this versions as you can have suffix(es) on the UID
values.  And of course the UIDs provide lookup index to registry definitions.

This brings us to two more Fallacies for Rogers list.

Fallacy that Versioning is only needed at the document level.

Fallacy that Domain Context must be resolved with namespaces.

Cheers, DW.
==========================================================================
Quoting "Bullard, Claude L (Len)" <len.bullard@i...>:

> Cool.
>  
> Did you address the problem of having multiple layers of abstraction and 
> the use of global elements that forces one to use namespaces?  GJXDM 
> is wrestling with this one.
>  
> len
> 
> 
> From: DuCharme, Bob (LNG-CHO) [mailto:bob.ducharme@l...]
> 
> >I'm wondering is there a possibility of having different XML Schema views
> (for reusability purposes). 
>  
> I did a paper titled "Maintaining Schemas for Pipelined Stages" (
> http://www.snee.com/bob/docs/04-01-05.html
> <http://www.snee.com/bob/docs/04-01-05.html> ) at XML 2002 that addresses
> this problem. It uses hypothetical small examples, but Eric van der Vlist
> has since told me that he has used its ideas in a production system since
> then. 
>  
> Instead of writing the schema as an XSLT stylesheet, as Michael Kay
> suggests, my approach uses a master schema describing the shared and
> unshared parts of the schemas in question and then a generic stylesheet to
> pull out a schema (which one could call a "view") for a specific stage in
> the pipeline as needed. 
>  
> And it works with both W3C Schema and RELAX NG.
>  
> 
> 



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.