Commit 3f147372 authored by William M. Brack's avatar William M. Brack
Browse files

skipped call to xmlValidateNCName when compiling --with-minimum (bug

* SAX2.c: skipped call to xmlValidateNCName when compiling
  --with-minimum (bug 142917)
parent 7feb0234
Sat May 22 09:08:24 HKT 2004 William Brack <wbrack@mmm.com.hk>
* SAX2.c: skipped call to xmlValidateNCName when compiling
--with-minimum (bug 142917)
Tue May 18 06:48:00 CEST 2004 Daniel Veillard <daniel@veillard.com>
 
* catalog.c: reverted the broken change.
......
......@@ -1958,11 +1958,13 @@ xmlSAX2AttributeNs(xmlParserCtxtPtr ctxt,
*/
if (dup == NULL)
dup = xmlStrndup(value, valueend - value);
#if LIBXML_VALID_ENABLED
if (xmlValidateNCName(dup, 1) != 0) {
xmlErrValid(ctxt, XML_DTD_XMLID_VALUE,
"xml:id : attribute value %s is not an NCName\n",
(const char *) dup, NULL);
}
#endif
xmlAddID(&ctxt->vctxt, ctxt->myDoc, dup, ret);
}
}
......
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