New expat test release

James Clark jjc at jclark.com
Tue Apr 27 05:34:07 BST 1999


"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 at 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 at ic.ac.uk the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo at ic.ac.uk the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa at ic.ac.uk)




More information about the Xml-dev mailing list