diff --git a/ChangeLog b/ChangeLog index 198cb59b..d9171974 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +Thu Aug 28 23:01:36 CEST 2003 Daniel Veillard + + * SAX2.c: fixed a namespace error on attribute reporting bug + pointed out by Tobias Reif + * test/p3p result/p3p result/noent/p3p: this test case was wrong + using xmlsn instead of xmlns... + Thu Aug 28 18:25:07 CEST 2003 Igor Zlatkovic * include/libxml/globals.h include/libxml/xmlexports.h: fixed diff --git a/SAX2.c b/SAX2.c index a55e6a4c..c627b7c4 100644 --- a/SAX2.c +++ b/SAX2.c @@ -1027,6 +1027,11 @@ xmlSAX2AttributeInternal(void *ctx, const xmlChar *fullname, if (ns != NULL) { xmlAttrPtr prop; namespace = xmlSearchNs(ctxt->myDoc, ctxt->node, ns); + if (namespace == NULL) { + ctxt->sax->error(ctxt->userData, + "Namespace prefix %s of attribute %s is not defined\n", + ns, name); + } prop = ctxt->node->properties; while (prop != NULL) { diff --git a/result/noent/p3p b/result/noent/p3p index 5e366b56..195eb425 100644 --- a/result/noent/p3p +++ b/result/noent/p3p @@ -1,5 +1,5 @@ - + diff --git a/result/p3p b/result/p3p index 5e366b56..195eb425 100644 --- a/result/p3p +++ b/result/p3p @@ -1,5 +1,5 @@ - + diff --git a/test/p3p b/test/p3p index 1e5fd075..b20cbc78 100644 --- a/test/p3p +++ b/test/p3p @@ -1,5 +1,5 @@ -