[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
[xml] Incorrect Callback invocation in externalSubsetSplit function
- From: Ashwin <ashwins huawei com>
- To: veillard redhat com
- Cc: xml gnome org, ranjit huawei com
- Subject: [xml] Incorrect Callback invocation in externalSubsetSplit function
- Date: Tue, 12 Feb 2008 15:49:40 +0530
> Hi,
>
> When I use xmlSchemaValidateStream with an input file containing
> CDATA, I am not getting the SAX callback I have registered for a CData
> block,
> Oops, yes clearly it's a cut and paste typo from the previous function >
in that file, sorry for the delay, fixed in SVn,
Hi,
A similar kind of error is present in the same file, for the function
externalSubsetSplit, the internal subset callback is invoked, instead of
external subset. The patch correcting this is attached.
Regards
Ashwin Sinha
*** xmlschemas.c 2008-02-12 14:48:50.693513248 -0800
--- xmlschemasfix.c 2008-02-12 14:51:18.821994296 -0800
*************** externalSubsetSplit(void *ctx, const xml
*** 28108,28115 ****
{
xmlSchemaSAXPlugPtr ctxt = (xmlSchemaSAXPlugPtr) ctx;
if ((ctxt != NULL) && (ctxt->user_sax != NULL) &&
! (ctxt->user_sax->internalSubset != NULL))
! ctxt->user_sax->internalSubset(ctxt->user_data, name, ExternalID,
SystemID);
}
--- 28108,28115 ----
{
xmlSchemaSAXPlugPtr ctxt = (xmlSchemaSAXPlugPtr) ctx;
if ((ctxt != NULL) && (ctxt->user_sax != NULL) &&
! (ctxt->user_sax->externalSubset != NULL))
! ctxt->user_sax->externalSubset(ctxt->user_data, name, ExternalID,
SystemID);
}
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]