OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   Re: New expat test release

[ Lists Home | Date Index | Thread Index ]
  • From: James Clark <jjc@jclark.com>
  • To: "XML Developers' List" <xml-dev@ic.ac.uk>
  • Date: Tue, 27 Apr 1999 09:59:22 +0700

"Simon St.Laurent" wrote:
> 
> At 07:46 PM 4/25/99 +0700, James Clark wrote:
> >XML_SetNotStandaloneHandler() allows you to control what to do with
> >documents that have a DTD and standalone="no"
> 
> What exactly are we supposed to hand this method and what exactly is it
> supposed to do?  Is this for passing off non-standalone documents to a
> different processor, or is this part of a mechanism we might be able to use to
> make expat deal with external resources?
> 
> xmlparser.h just has:
> >
> > void XMLPARSEAPIXML_SetNotStandaloneHandler(XML_Parser
> > parser,                   XML_NotStandaloneHandler handler);

It also has:

/* This is called if the document is not standalone (it has an
external subset or a reference to a parameter entity, but does not
have standalone="yes"). If this handler returns 0, then processing
will not continue, and the parser will return a
XML_ERROR_NOT_STANDALONE error. */

typedef int (*XML_NotStandaloneHandler)(void *userData);

It doesn't allow expat to handle external DTDs.  Typically you would use
this to stop processing with an error, to continue processing probably
with a warning, or to invoke a different processor.

James



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





 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS