- From: Philippe Le Hegaret <plh@w3.org>
- Date: Wed, 06 Jun 2001 10:16:44 -0400
- To: chris@neomethods.com
- Cc: web-human@w3.org, www-dom@w3.org
Chris Pettit wrote: > > There were no link to the editors, so I'm sending it to the Webmaster. > Sorry, about being a pest. I hope this is where it should go. Not exactly the way to go but Dominique (the human behind web-human@w3.org) forwarded your message in my mailbox. [[[ Comments on this document are invited and are to be sent to the public mailing list www-dom@w3.org. An archive is available at http://lists.w3.org/Archives/Public/www-dom/. ]]] -- Document Object Model (DOM) Level 3 Content Models and Load and Save Specification http://www.w3.org/TR/2001/WD-DOM-Level-3-CMLS-20010419/ Wed, 18 Apr 2001 21:41:33 GMT > > http://www.w3.org/TR/2001/WD-DOM-Level-3-CMLS-20010419/content-models.html > > 1.8. Validating a Document Against a Content Model > The most obvious use for a content model (DTD or XML Schema or any Content > Model) is to use it to validate that a given XML document is in fact a > properly constructed instance of the document type described by this CM. > This again falls into the document-editing world. The XML spec only > discusses performing this test at the time the document is loaded into the > "processor", which most of us have taken to mean that this check should be > performed at parse time. But it is obviously desirable to be able to > validate again a document -- or selected subtrees -- at other times. One > such case would be validating an edited or newly constructed document before > serializing it or otherwise passing it to other users. This issue also > arises if the "internal subset" is altered -- or if the whole Content Model > changes. > > to be able to validate again a document > was the intended line ?? > to be able to validate against a document Currently, it was the intended line. There is no way to validate _again_ a document once it has been loaded in a DOM tree. One of the goals of the Content Model API is to give you access to the "validator processor". On the other hand, this paragraph needs work, at least the first sentence. Regards, Philippe -- Philippe Le Hegaret - http://www.w3.org/People/LeHegaret/ World Wide Web Consortium (W3C), DOM Activity Lead
Received on Wednesday, 6 June 2001 10:16:52 UTC