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

Re: Finally, what if namespaces == document types ?


xsd declaration modulo
Paul Prescod wrote:

>...Do you agree that it makes more sense to associate
> schemas, stylesheets, etc. with document types than with namespaces?

Actually I think the two are just different. It really depends on the
purpose of the association.

With respect to composing schemas from multiple namespaces, a use case I
considered was when a schema refers to a type e.g.

<xsd:element name="this:foo" type="that:bar"/>

the idea is that the "that:bar" type might be imported from the schema which
_is obtained_ via the namespace URI associated with the "that" prefix.

Without RDDL at the end of the namespace URI, there would be a strong
temptation to place an XML Schema directly there.

There are other examples where it is useful to associate namespace URIs with
resources. This sort of thing appears very clearcut to me.

An entirely different use case might be the association of a document
instance with a set of possible validating schemas i.e. a document type set
declaration
>
> > Perhaps the main issue is that if we are finally jettisoning DTDs, we
ought
> > to have a replacement for the <!DOCTYPE> declaration (modulo the
internal
> > subset - groan).
>
> A simple PI.

Yes. That's probably the best idea. I don't personally have strong
preference for an attribute at the root element vs. a PI, I suppose there
are tradeoffs to each approach, which is why XML Schema uses an attribute.
But something like:

<?rddl-doctype href="...uri..." ?>

would also do the trick. I am interested to hear people's opinions on the
tradeoffs between the two options

>
> > This issue is IMHO orthogonal to namespaces.
>
> That's mostly true. But the thing that has Nicolas and Paul so excited
> is that of the two choices (namespace and doctypes), we've developed an
> infrastructure for associating schemas and stylesheets with the wrong
> thing. The actual file format may be appropriate for doing the other
> task but we just need to declare that best practice is now to associate
> RDDL's with schemas and namespaces to document types, not namespaces.
>

I don't see how the two use cases are at all mutually exclusive. In terms of
creating a mix of human readable text (XHTML) and a collection of resources
whether they are attached to a namespace URI or a doctype URI, IMHO makes no
difference.

Jonathan


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.