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

RE: XML Schemas: Best Practices

  • From: "Arnold, Curt" <Curt.Arnold@h...>
  • To: "'xml-dev@l...'" <xml-dev@l...>
  • Date: Tue, 31 Oct 2000 11:35:23 -0700

svg schema
In my opinion, you have to consider who "owns" the namespaces
and if the namespaces are useful in other contexts.  For example, consider the use of XHTML or SVG in a health care schema.  

XHTML and SVG would not be owned by the same organization as the health care schema, they are not updated simultaneously with the health care schema, and they are useful apart from the health care
schema.  In this case, if you tried to incorporate XHTML or SVG tag names into the health care namespace (creating a health:table element for example), then you would lose interoperability with any
existing applications that would process <xhtml:table> but would not recognize <health:table>.  I definitely think that creating aliases is a bad idea.

If you don't have control over the source for a schema (as would be the case for the W3C's XHTML or SVG schema), you should import the namespace.

If you have a case where you have control over the schemas, then you have to consider if a potential namespace would be useful in other contexts.  For example, if I'm doing XML schemas for
automobiles, I might consider making a distinct namespace for tires if:

a) I might reuse the tires namespace in another context, say an XML schema for Trucks
b) I might had over control of the tires namespace to a different group or organization than the organization that owns the automotive namespace.


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.