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

RE: Effective XML

RE:  Effective XML

> -----Original Message-----
> From: Bullard, Claude L (Len) [mailto:clbullar@i...]
> Sent: 02 January 2002 22:19
> To: Michael Brennan; 'Leigh Dodds'; xml-dev
> Subject: RE:  Effective XML


> Is it better to use a namespace or to copy an element type 
> or attribute type definition into a new schema?  IOW, by 
> what criteria should one choose between a namespace reference 
> and a clone?
> Maintenance is obvious but not a problem.  I would suggest 
> that it is cheaper to copy if the overlap among several 
> schema is small (just a few common element and attribute 
> types).

I'd agree with this. 

I'd guess that the most common example at the moment of use 
by reference is to include XHTML elements where one needs to 
include markup text (e.g. product descriptions) within another 

The overlaps might not be just be defined in terms of numbers of 
elements/attributes, but also whether the 'concept' (for want of 
a better term) that is being marked up is a natural subset of 
the existing schema. For the XHTML example, this is paragraphs of 

Another way to consider this and a potential advantage of this 
kind of modularity is that these document fragments in another 
namespace can be handed off to other components in a 
pipeline. E.g. an HTML renderer. Reuse of existing markup definitions 
allows reuse of these components, or where these don't exist, 
provide a means of specifying a standard input for a new component.
Copying references increases the size of the interface to such 
components or requires adapters.




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.