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

Choosing when to namespace (was Re: Vocabulary Combination)


rna vocabulary
From: "Hunsberger, Peter" <Peter.Hunsberger@s...>
>
> All of which is a long winded way of arriving at the conclusion that: you
> don't need namespaces if you precisely understand the context of the
> combined vocabularies, but until you combine the vocabularies you probably
> want the name spaces if only to help in combining the vocabularies.

I have been working on a new vocabulary (RNA) [1].  The specification allows
additional vocabularies (Vocabulary A) to be combined, as long as the
following limitations are met:

1) The document must always be of RNA, but may contain Vocabulary A.  In
other words, RNA cannot be used inside of a document of Vocabulary A.
2) Vocabulary A elements and attributes must always be namespace-qualified.

As a result, RNA is never namespace-qualified.  In an earlier incarnation of
the spec, I had placed RNA within a namespace since I knew there was
potential for combination with other vocabularies.  In some conversations on
namespaces, it was pointed out to me that this wasn't necessary given the
above limitations and that keeping namespaces out allowed for easier
processing of the document using standard tools.  This made sense to me, so
I removed the namespace stuff (with the exception of "extensions" [2]).
Now, this vocabulary has no namespace but has specific rules for namespaced
vocabularies to be used with it.

It seems to me that this is the correct way to go about handling namespaces,
at least in this case.

---
Seairth Jacobs
seairth@s...

[1] http://www.seairth.com/web/rna
[2] http://www.seairth.com/web/rna#extension



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.