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

Re: Compound Documents - necessary for success?

  • From: costello@m... (Roger L. Costello)
  • To: xml-dev@i...
  • Date: Thu, 28 Jan 99 10:11:34 -0500

xml multiple doctypes
Marcus Carr wrote:

>Also, what would prevent someone from putting together a compound document
>constructed entirely of valid fragments? 

Yes, this is exactly what is desired!  

>To the naked eye it would look like an
>invalid document, but the fact that the fragments themselves were valid
and
>existed in a location that allowed them would mean that the document was
parsable
>without error. I'm not suggesting this would be a common way of producing
>documents, but nor do I think it's a good idea that you could conceivably
create
>a class of documents between well-formed and valid.

Is it not enough to verify that the fragments are valid and that the
document as a whole is well-formed?

>
>Along similar lines, how would I include, say, two paragraphs of a judge's
>speech? Does a compound document imply a single doctype element? Would I
have to
>wrap the two paragraphs in some artificial element just to make it a
complete
>document? 

I would like to assert that an XML parser *should* be able to validate each
document fragment against their respective DTDs.  Perhaps all the DTDs that
are referenced by the fragments should be listed in multiple DOCTYPEs at
the top of the document?

/Roger


xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@i...
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/
To (un)subscribe, mailto:majordomo@i... the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo@i... the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa@i...)


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.