Commit f431eb81 authored by Daniel Veillard's avatar Daniel Veillard
Browse files

applied the patch provided by Brent Hendricks fixing #105992 and

* SAX.c test/valid/ns* test/result/ns*: applied the patch
  provided by Brent Hendricks fixing #105992 and integrated the
  examples in the testsuite.
Daniel
parent c4f65abe
Tue Apr 22 10:35:13 CEST 2003 Daniel Veillard <daniel@veillard.com>
* SAX.c test/valid/ns* test/result/ns*: applied the patch
provided by Brent Hendricks fixing #105992 and integrated the
examples in the testsuite.
Tue Apr 22 01:06:09 CEST 2003 Daniel Veillard <daniel@veillard.com>
 
* TODO: updated a bit
......
......@@ -958,7 +958,7 @@ my_attribute(void *ctx, const xmlChar *fullname, const xmlChar *value,
if (nsret != NULL && ctxt->validate && ctxt->wellFormed &&
ctxt->myDoc && ctxt->myDoc->intSubset)
ctxt->valid &= xmlValidateOneNamespace(&ctxt->vctxt, ctxt->myDoc,
ctxt->node, name, nsret, value);
ctxt->node, prefix, nsret, value);
if (name != NULL)
xmlFree(name);
if (nval != NULL)
......@@ -1226,7 +1226,8 @@ process_external_subset:
}
}
if (att == NULL) {
attribute(ctxt, fulln, attr->defaultValue);
my_attribute(ctxt, fulln, attr->defaultValue,
prefix);
}
xmlFree(fulln);
}
......
<?xml version="1.0"?>
<!DOCTYPE a:outer [
<!ELEMENT a:outer EMPTY>
<!ATTLIST a:outer xmlns:a CDATA #FIXED "urn:namespace">
<!ATTLIST a:outer xmlns:b CDATA #FIXED "urn:namespaceb">
]>
<a:outer xmlns:b="urn:namespaceb" xmlns:a="urn:namespace"/>
<?xml version="1.0"?>
<!DOCTYPE a:outer [
<!ELEMENT a:outer (a:inner)>
<!ATTLIST a:outer xmlns:a CDATA #FIXED "urn:namespace">
<!ELEMENT a:inner EMPTY>
<!ATTLIST a:inner xmlns:a CDATA #FIXED "urn:namespace">
<!ATTLIST a:inner attr CDATA #FIXED "yes">
]>
<a:outer xmlns:a="urn:namespace">
<a:inner xmlns:a="urn:namespace"/>
</a:outer>
<?xml version="1.0"?>
<!DOCTYPE a:outer [
<!ELEMENT a:outer EMPTY>
<!ATTLIST a:outer xmlns:a CDATA #FIXED 'urn:namespace'>
<!ATTLIST a:outer xmlns:b CDATA #FIXED 'urn:namespaceb'>
]>
<a:outer />
<?xml version="1.0"?>
<!DOCTYPE a:outer [
<!ELEMENT a:outer (a:inner)>
<!ATTLIST a:outer xmlns:a CDATA #FIXED 'urn:namespace'>
<!ELEMENT a:inner EMPTY>
<!ATTLIST a:inner xmlns:a CDATA #FIXED 'urn:namespace'>
<!ATTLIST a:inner attr CDATA #FIXED 'yes'>
]>
<a:outer xmlns:a="urn:namespace">
<a:inner />
</a:outer>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment