diff options
author | Kasimier T. Buchcik <kbuchcik@src.gnome.org> | 2005-05-25 17:29:36 +0000 |
---|---|---|
committer | Kasimier T. Buchcik <kbuchcik@src.gnome.org> | 2005-05-25 17:29:36 +0000 |
commit | bd6c3f7df8fe63f5adc03a3c45a7eb2e834fde47 (patch) | |
tree | d4303e0597d590155e8be9c0b11fd36f6b31dbca /xmlschemastypes.c | |
parent | 7cd517c26229e2adae87d1a5bfb277e342bad5a6 (diff) | |
download | libxml2-bd6c3f7df8fe63f5adc03a3c45a7eb2e834fde47.tar.gz |
Fixed facet errors to be channelled back for union type members;
* xmlschemas.c: Fixed facet errors to be channelled back for
union type members; facet-validation will stop now on the
first error. Reported by GUY Fabrice to the mailing-list.
* xmlschemastypes.c: Changed to ignore lengh-related facet
validation for QNames and NOTATIONs as proposed by the
schema people.
* test/schemas/union2* result/schemas/union2*: Added
regression tests for union types (by GUY Fabrice).
Diffstat (limited to 'xmlschemastypes.c')
-rw-r--r-- | xmlschemastypes.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/xmlschemastypes.c b/xmlschemastypes.c index fce468b4..4a917953 100644 --- a/xmlschemastypes.c +++ b/xmlschemastypes.c @@ -4671,14 +4671,20 @@ xmlSchemaValidateLengthFacetInternal(xmlSchemaFacetPtr facet, case XML_SCHEMAS_NMTOKEN: case XML_SCHEMAS_NAME: case XML_SCHEMAS_NCNAME: - case XML_SCHEMAS_ID: - /* - * FIXME: What exactly to do with anyURI? + case XML_SCHEMAS_ID: + /* + * FIXME: What exactly to do with anyURI? */ case XML_SCHEMAS_ANYURI: if (value != NULL) len = xmlSchemaNormLen(value); break; + case XML_SCHEMAS_QNAME: + case XML_SCHEMAS_NOTATION: + /* + * Ignore validation against QName and NOTATION. + */ + return (0); default: TODO } |