mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-10-24 13:33:01 +03:00
adds element traversal support avoid a warning regenerated daniel
* include/libxml/tree.h tree.c python/generator.py: adds element traversal support * valid.c: avoid a warning * doc/*: regenerated daniel svn path=/trunk/; revision=3804
This commit is contained in:
42
valid.c
42
valid.c
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user