mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-01-19 10:03:34 +03:00
A typo and an obscure bug fix:
- parser.c: fixed a function name header typo - SAX.c: notations can also occur in external subset. Daniel
This commit is contained in:
parent
e0c1d72a6f
commit
e020c3a797
@ -1,3 +1,8 @@
|
||||
Wed Mar 21 19:04:34 CET 2001 Daniel Veillard <Daniel.Veillard@imag.fr>
|
||||
|
||||
* parser.c: fixed a function name header typo
|
||||
* SAX.c: notations can also occur in external subset.
|
||||
|
||||
Tue Mar 20 14:21:28 CET 2001 Daniel Veillard <Daniel.Veillard@imag.fr>
|
||||
|
||||
* error.c: removed a C++ like comment
|
||||
|
18
SAX.c
18
SAX.c
@ -621,12 +621,22 @@ unparsedEntityDecl(void *ctx, const xmlChar *name,
|
||||
name, publicId, systemId, notationName);
|
||||
#endif
|
||||
if (ctxt->validate && ctxt->wellFormed &&
|
||||
ctxt->myDoc && ctxt->myDoc->intSubset)
|
||||
ctxt->myDoc && ctxt->myDoc->extSubset)
|
||||
ctxt->valid &= xmlValidateNotationUse(&ctxt->vctxt, ctxt->myDoc,
|
||||
notationName);
|
||||
xmlAddDocEntity(ctxt->myDoc, name,
|
||||
XML_EXTERNAL_GENERAL_UNPARSED_ENTITY,
|
||||
publicId, systemId, notationName);
|
||||
if (ctxt->inSubset == 1)
|
||||
xmlAddDocEntity(ctxt->myDoc, name,
|
||||
XML_EXTERNAL_GENERAL_UNPARSED_ENTITY,
|
||||
publicId, systemId, notationName);
|
||||
else if (ctxt->inSubset == 2)
|
||||
xmlAddDtdEntity(ctxt->myDoc, name,
|
||||
XML_EXTERNAL_GENERAL_UNPARSED_ENTITY,
|
||||
publicId, systemId, notationName);
|
||||
else {
|
||||
if ((ctxt->sax != NULL) && (ctxt->sax->error != NULL))
|
||||
ctxt->sax->error(ctxt,
|
||||
"SAX.unparsedEntityDecl(%s) called while not in subset\n", name);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
2
parser.c
2
parser.c
@ -9092,7 +9092,7 @@ xmlParseExternalEntity(xmlDocPtr doc, xmlSAXHandlerPtr sax, void *user_data,
|
||||
}
|
||||
|
||||
/**
|
||||
* xmlParseBalancedChunk:
|
||||
* xmlParseBalancedChunkMemory:
|
||||
* @doc: the document the chunk pertains to
|
||||
* @sax: the SAX handler bloc (possibly NULL)
|
||||
* @user_data: The user data returned on SAX callbacks (possibly NULL)
|
||||
|
Loading…
x
Reference in New Issue
Block a user