| OLD | NEW |
| 1 /* | 1 /* |
| 2 * schemas.c : implementation of the XML Schema handling and | 2 * schemas.c : implementation of the XML Schema handling and |
| 3 * schema validity checking | 3 * schema validity checking |
| 4 * | 4 * |
| 5 * See Copyright for the status of this software. | 5 * See Copyright for the status of this software. |
| 6 * | 6 * |
| 7 * Daniel Veillard <veillard@redhat.com> | 7 * Daniel Veillard <veillard@redhat.com> |
| 8 */ | 8 */ |
| 9 | 9 |
| 10 /* | 10 /* |
| (...skipping 13928 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 13939 * 1 super must be any. | 13939 * 1 super must be any. |
| 13940 */ | 13940 */ |
| 13941 if (super->any) | 13941 if (super->any) |
| 13942 return (0); | 13942 return (0); |
| 13943 /* | 13943 /* |
| 13944 * 2.1 sub must be a pair of not and a namespace name or �absent�. | 13944 * 2.1 sub must be a pair of not and a namespace name or �absent�. |
| 13945 * 2.2 super must be a pair of not and the same value. | 13945 * 2.2 super must be a pair of not and the same value. |
| 13946 */ | 13946 */ |
| 13947 if ((sub->negNsSet != NULL) && | 13947 if ((sub->negNsSet != NULL) && |
| 13948 (super->negNsSet != NULL) && | 13948 (super->negNsSet != NULL) && |
| 13949 » (sub->negNsSet->value == sub->negNsSet->value)) | 13949 » (sub->negNsSet->value == super->negNsSet->value)) |
| 13950 return (0); | 13950 return (0); |
| 13951 /* | 13951 /* |
| 13952 * 3.1 sub must be a set whose members are either namespace names or �absent�
. | 13952 * 3.1 sub must be a set whose members are either namespace names or �absent�
. |
| 13953 */ | 13953 */ |
| 13954 if (sub->nsSet != NULL) { | 13954 if (sub->nsSet != NULL) { |
| 13955 /* | 13955 /* |
| 13956 * 3.2.1 super must be the same set or a superset thereof. | 13956 * 3.2.1 super must be the same set or a superset thereof. |
| 13957 */ | 13957 */ |
| 13958 if (super->nsSet != NULL) { | 13958 if (super->nsSet != NULL) { |
| 13959 xmlSchemaWildcardNsPtr cur, curB; | 13959 xmlSchemaWildcardNsPtr cur, curB; |
| (...skipping 14797 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 28757 xmlSchemaValidCtxtGetParserCtxt(xmlSchemaValidCtxtPtr ctxt) | 28757 xmlSchemaValidCtxtGetParserCtxt(xmlSchemaValidCtxtPtr ctxt) |
| 28758 { | 28758 { |
| 28759 if (ctxt == NULL) | 28759 if (ctxt == NULL) |
| 28760 return(NULL); | 28760 return(NULL); |
| 28761 return (ctxt->parserCtxt); | 28761 return (ctxt->parserCtxt); |
| 28762 } | 28762 } |
| 28763 | 28763 |
| 28764 #define bottom_xmlschemas | 28764 #define bottom_xmlschemas |
| 28765 #include "elfgcchack.h" | 28765 #include "elfgcchack.h" |
| 28766 #endif /* LIBXML_SCHEMAS_ENABLED */ | 28766 #endif /* LIBXML_SCHEMAS_ENABLED */ |
| OLD | NEW |