diff options
| author | Mike Hommey <glandium@debian.org> | 2009-03-01 10:55:27 +0100 |
|---|---|---|
| committer | Mike Hommey <glandium@debian.org> | 2009-03-01 10:55:27 +0100 |
| commit | e248b20a3b7df364cc9617b8685b4c190338bcd2 (patch) | |
| tree | f289c8584c4a44dd9cdb87003b193488da8b00f3 /valid.c | |
| parent | 0c8f97ec9edb09da2e0b19c4f9ddf8c725cebc59 (diff) | |
| download | libxml2-upstream/2.7.3.dfsg.tar.gz | |
Import upstream version 2.7.3upstream/2.7.3.dfsg
Diffstat (limited to 'valid.c')
| -rw-r--r-- | valid.c | 42 |
1 files changed, 26 insertions, 16 deletions
@@ -3792,27 +3792,13 @@ xmlValidateNotationDecl(xmlValidCtxtPtr ctxt ATTRIBUTE_UNUSED, xmlDocPtr doc ATT } /** - * xmlValidateAttributeValue: + * xmlValidateAttributeValueInternal: + * @doc: the document * @type: an attribute type * @value: an attribute value * * Validate that the given attribute value match the proper production * - * [ VC: ID ] - * Values of type ID must match the Name production.... - * - * [ VC: IDREF ] - * Values of type IDREF must match the Name production, and values - * of type IDREFS must match Names ... - * - * [ VC: Entity Name ] - * Values of type ENTITY must match the Name production, values - * of type ENTITIES must match Names ... - * - * [ VC: Name Token ] - * Values of type NMTOKEN must match the Nmtoken production; values - * of type NMTOKENS must match Nmtokens. - * * returns 1 if valid or 0 otherwise */ @@ -3839,6 +3825,30 @@ xmlValidateAttributeValueInternal(xmlDocPtr doc, xmlAttributeType type, return(1); } +/** + * xmlValidateAttributeValue: + * @type: an attribute type + * @value: an attribute value + * + * Validate that the given attribute value match the proper production + * + * [ VC: ID ] + * Values of type ID must match the Name production.... + * + * [ VC: IDREF ] + * Values of type IDREF must match the Name production, and values + * of type IDREFS must match Names ... + * + * [ VC: Entity Name ] + * Values of type ENTITY must match the Name production, values + * of type ENTITIES must match Names ... + * + * [ VC: Name Token ] + * Values of type NMTOKEN must match the Nmtoken production; values + * of type NMTOKENS must match Nmtokens. + * + * returns 1 if valid or 0 otherwise + */ int xmlValidateAttributeValue(xmlAttributeType type, const xmlChar *value) { return(xmlValidateAttributeValueInternal(NULL, type, value)); |
