version 1.23, 1999/08/29 10:56:44
|
version 1.24, 1999/08/29 18:01:18
|
Line 1932 xmlValidateNotationDecl(xmlValidCtxtPtr
|
Line 1932 xmlValidateNotationDecl(xmlValidCtxtPtr
|
int |
int |
xmlValidateAttributeValue(xmlAttributeType type, const CHAR *value) { |
xmlValidateAttributeValue(xmlAttributeType type, const CHAR *value) { |
switch (type) { |
switch (type) { |
case XML_ATTRIBUTE_IDREFS: |
|
case XML_ATTRIBUTE_ENTITIES: |
case XML_ATTRIBUTE_ENTITIES: |
|
case XML_ATTRIBUTE_IDREFS: |
return(xmlValidateNamesValue(value)); |
return(xmlValidateNamesValue(value)); |
|
case XML_ATTRIBUTE_ENTITY: |
case XML_ATTRIBUTE_IDREF: |
case XML_ATTRIBUTE_IDREF: |
case XML_ATTRIBUTE_ID: |
case XML_ATTRIBUTE_ID: |
case XML_ATTRIBUTE_ENTITY: |
|
case XML_ATTRIBUTE_NOTATION: |
case XML_ATTRIBUTE_NOTATION: |
return(xmlValidateNameValue(value)); |
return(xmlValidateNameValue(value)); |
case XML_ATTRIBUTE_NMTOKENS: |
case XML_ATTRIBUTE_NMTOKENS: |
Line 1999 xmlValidateAttributeDecl(xmlValidCtxtPtr
|
Line 1999 xmlValidateAttributeDecl(xmlValidCtxtPtr
|
ret = 0; |
ret = 0; |
} |
} |
|
|
/* max ID per element */ |
/* One ID per Element Type */ |
if ((attr->type == XML_ATTRIBUTE_ID) && (doc->extSubset != NULL)) { |
if ((attr->type == XML_ATTRIBUTE_ID) && (doc->extSubset != NULL)) { |
int nbId = 0; |
int nbId = 0; |
|
|
Line 2129 xmlValidateElementDecl(xmlValidCtxtPtr c
|
Line 2129 xmlValidateElementDecl(xmlValidCtxtPtr c
|
int |
int |
xmlValidateOneAttribute(xmlValidCtxtPtr ctxt, xmlDocPtr doc, |
xmlValidateOneAttribute(xmlValidCtxtPtr ctxt, xmlDocPtr doc, |
xmlNodePtr elem, xmlAttrPtr attr, const CHAR *value) { |
xmlNodePtr elem, xmlAttrPtr attr, const CHAR *value) { |
xmlElementPtr elemDecl; |
/* xmlElementPtr elemDecl; */ |
xmlAttributePtr attrDecl; |
xmlAttributePtr attrDecl; |
int val; |
int val; |
int ret = 1; |
int ret = 1; |
Line 2217 xmlValidateOneAttribute(xmlValidCtxtPtr
|
Line 2217 xmlValidateOneAttribute(xmlValidCtxtPtr
|
ret = 0; |
ret = 0; |
} |
} |
|
|
|
/******** |
elemDecl = xmlGetDtdElementDesc(doc->intSubset, elem->name); |
elemDecl = xmlGetDtdElementDesc(doc->intSubset, elem->name); |
if ((elemDecl == NULL) && (doc->extSubset != NULL)) |
if ((elemDecl == NULL) && (doc->extSubset != NULL)) |
elemDecl = xmlGetDtdElementDesc(doc->extSubset, elem->name); |
elemDecl = xmlGetDtdElementDesc(doc->extSubset, elem->name); |
if (elemDecl == NULL) { |
if (elemDecl == NULL) { |
/* the error has or will be reported soon in xmlValidateOneElement */ |
|
return(0); |
return(0); |
} |
} |
|
********/ |
return(ret); |
return(ret); |
} |
} |
|
|
Line 2553 xmlValidateOneElement(xmlValidCtxtPtr ct
|
Line 2554 xmlValidateOneElement(xmlValidCtxtPtr ct
|
break; |
break; |
} |
} |
|
|
|
/* TODO - [ VC: Required Attribute ] */ |
return(ret); |
return(ret); |
} |
} |
|
|