|
[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: New expat test release
"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@i... 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@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! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|
|||||||||

Cart








