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

Re: More on namespaces...


Re:  More on namespaces...
"Seairth Jacobs" <seairth@s...> wrote:

| 1) Suppose you have a vocabulary that states that only <B> may be within
| <A>.  Now suppose you have another vocabulary with element <C>.  If one 
| were to do <ns1:A><ns1:B/><ns2:C/></ns1:A>, would the document still be 
| valid according to the first vocabulary?

I don't think this is a well-formed question.  It confuses documents with
document types.  The schema for a vocabulary defines a document type; how
a document type *applies* to any particular document is a separate issue.
Must this document type always apply point-by-point to the entirety of the
document?

If you say yes, then the answer is no, this document is not valid, because
by construction it has "foreign" material that the schema for vocabulary
ns1 does not account for.

If you say no, then the answer is yes, the document is valid in the sense
that it has a partition which meets all required constraints of the ns1
schema.

| 3) In one of the original posts of the recent thread, there was a sample
| document:

Which was taken from an article advocating namespaces:

 http://www.xml.com/pub/a/1999/01/namespaces.html

From the passage in that article introducing this very sample document:

: So let's set up a scenario: suppose XML.com wanted to start publishing 
: reviews of XML books. We'd want to mark the info up with XML, of course, 
: but we'd also like to use HTML to help beautify the display. Here's a 
: tiny sample of what we might do:

I thought there was a basis for "document views", but the author of the
article has since questioned this interpretation, so what the example is
really supposed to be illustrating must be something else.

| I am wondering if the real problem here is the way in which the 
| vocabularies are being mixed.  [...] I guess the point is...  in the
| original XML above, are we really trying to figure out how to separate 
| the vocabularies successfully, 

Apparently, this is "not useful", according to the author.

| or are we really seeing a case where the design is bad to start with?

Depends on what the design is intended to achieve, no?

| 4) Should a vocabulary be able to dictate how other vocabularies can be 
| used with it? 

No.  That way lies madness. 


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.