fixed a namespace error on attribute reporting bug pointed out by Tobias

* 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...
Daniel
This commit is contained in:
Daniel Veillard 2003-08-28 21:13:25 +00:00
parent 01d99951a5
commit 67906944fc
5 changed files with 15 additions and 3 deletions

View File

@ -1,3 +1,10 @@
Thu Aug 28 23:01:36 CEST 2003 Daniel Veillard <daniel@veillard.com>
* 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 <igor@zlatkovic.com>
* include/libxml/globals.h include/libxml/xmlexports.h: fixed

5
SAX2.c
View File

@ -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) {

View File

@ -1,5 +1,5 @@
<?xml version="1.0"?>
<RDF:RDF xmlns:RDF="http://www.w3.org/TR/WD-rdf-syntax#" p3p="http//www.w3.org/TR/1998/WD-P3P10-syntax#proposal.DTD">
<RDF:RDF xmlns:p3p="http//www.w3.org/TR/1998/WD-P3P10-syntax#proposal.DTD" xmlns:RDF="http://www.w3.org/TR/WD-rdf-syntax#">
<PROP realm="http://www.CoolCatalog.com/catalogue/" entity="CoolCatalog" agreeID="94df1293a3e519bb" assurance="http://www.TrustUs.org">
<USES>
<STATEMENT purp="2,3" recpnt="0" id="0" consq="a site with clothes you'd appreciate.">

View File

@ -1,5 +1,5 @@
<?xml version="1.0"?>
<RDF:RDF xmlns:RDF="http://www.w3.org/TR/WD-rdf-syntax#" p3p="http//www.w3.org/TR/1998/WD-P3P10-syntax#proposal.DTD">
<RDF:RDF xmlns:p3p="http//www.w3.org/TR/1998/WD-P3P10-syntax#proposal.DTD" xmlns:RDF="http://www.w3.org/TR/WD-rdf-syntax#">
<PROP realm="http://www.CoolCatalog.com/catalogue/" entity="CoolCatalog" agreeID="94df1293a3e519bb" assurance="http://www.TrustUs.org">
<USES>
<STATEMENT purp="2,3" recpnt="0" id="0" consq="a site with clothes you'd appreciate.">

View File

@ -1,5 +1,5 @@
<?xml version="1.0"?>
<RDF:RDF xmlsn:p3p="http//www.w3.org/TR/1998/WD-P3P10-syntax#proposal.DTD"
<RDF:RDF xmlns:p3p="http//www.w3.org/TR/1998/WD-P3P10-syntax#proposal.DTD"
xmlns:RDF="http://www.w3.org/TR/WD-rdf-syntax#">
<PROP realm="http://www.CoolCatalog.com/catalogue/"
entity="CoolCatalog" agreeID="94df1293a3e519bb"