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

Re: Does DTD validation work with namespaces?

  • From: "Winchel 'Todd' Vincent, III" <winchel@m...>
  • To: xml-dev@l...
  • Date: Mon, 14 Aug 2000 11:27:51 -0400

dtd namespace
This message, sent last night, appears not to have made it to the list
because of email problems.  I am reposting it.  My apologies if anyone gets
it twice.

<MarcusCarr>
> Idle musings only...
>
> Given that DTDs are for parsing for validity, it might not be unreasonable
to
> expect that the entire document will be checked against their various
DTDs. Since
> a DOCTYPE declaration is used to signal the start of a new document, it
would be
> ideal if that concept could just be extended, allowing a number of
DOCTYPEs to
> coexist in a single compound document. Each time a new DOCTYPE was
encountered,
> processing of the parent document would be suspended and the documents
processed
> recursively. The existence of a nested document would have no impact on
the
> structure of the parent document - it wouldn't even need to be anticipated
in the
> DTD.
</MarcusCarr>

Marcus:

Some idle musings on my part . . .

Why couldn't you use this same idea, but instead of relying on finding a
DOCTYPE (which would mean a change in XML 1.0), you simply pay attention to
the declared namespace and use the namespace URI to go fetch a DTD.  I may
be way off base on this, but it seems to me, this would not require a change
in DTD syntax.  It would not require a change in Namespace syntax.  It would
simply mean a change in the rule that the resource at the end of the URI is
irrelevant and it would mean extra work (and new behavior rules) for a DTD
validating parser.  I mentioned in an earlier post the difference between
(1) non-validating parser (2) validating parser (which everyone understands)
and (3) a proposed DTD-Namespace-aware validating parser.

Again, I could be completely wrong about the analysis here.  But, your ideas
match very closely what I think a solution could be.

Any feedback would be welcome.

Thanks,

Todd




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.