• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/timemachine/gettext-0.17/gettext-tools/gnulib-lib/libxml/

Lines Matching defs:doc

510 	    xmlGenericError(xmlGenericErrorContext, "?doc? ");
631 if (doc == NULL) return(0); \
632 else if ((doc->intSubset == NULL) && \
633 (doc->extSubset == NULL)) return(0)
909 * @doc: the document
918 xmlNewDocElementContent(xmlDocPtr doc, const xmlChar *name,
923 if (doc != NULL)
924 dict = doc->dict;
997 * @doc: the document owning the element declaration
1005 xmlCopyDocElementContent(xmlDocPtr doc, xmlElementContentPtr cur) {
1011 if (doc != NULL)
1012 dict = doc->dict;
1036 ret->c1 = xmlCopyDocElementContent(doc, cur->c1);
1066 tmp->c1 = xmlCopyDocElementContent(doc,cur->c1);
1092 * @doc: the document owning the element declaration
1098 xmlFreeDocElementContent(xmlDocPtr doc, xmlElementContentPtr cur) {
1102 if (doc != NULL)
1103 dict = doc->dict;
1119 if (cur->c1 != NULL) xmlFreeDocElementContent(doc, cur->c1);
1352 xmlFreeDocElementContent(elem->doc, elem->content);
1448 if (dtd->doc != NULL)
1449 dict = dtd->doc->dict;
1467 if ((dtd->doc != NULL) && (dtd->doc->intSubset != NULL)) {
1468 ret = xmlHashLookup2(dtd->doc->intSubset->elements, name, ns);
1472 xmlHashRemoveEntry2(dtd->doc->intSubset->elements, name, ns, NULL);
1571 ret->content = xmlCopyDocElementContent(dtd->doc, content);
1578 ret->doc = dtd->doc;
1920 if (attr->doc != NULL)
1921 dict = attr->doc->dict;
1991 if (dtd->doc != NULL)
1992 dict = dtd->doc->dict;
2041 if ((dtd->doc != NULL) && (dtd->doc->extSubset == dtd) &&
2042 (dtd->doc->intSubset != NULL) &&
2043 (dtd->doc->intSubset->attributes != NULL)) {
2044 ret = xmlHashLookup3(dtd->doc->intSubset->attributes, name, ns, elem);
2077 * doc must be set before possible error causes call
2081 ret->doc = dtd->doc;
2408 if (dtd->doc != NULL)
2409 dict = dtd->doc->dict;
2594 if (id->doc != NULL)
2595 dict = id->doc->dict;
2608 * @doc: pointer to the document
2617 xmlAddID(xmlValidCtxtPtr ctxt, xmlDocPtr doc, const xmlChar *value,
2622 if (doc == NULL) {
2635 table = (xmlIDTablePtr) doc->ids;
2637 doc->ids = table = xmlHashCreateDict(0, doc->dict);
2655 ret->doc = doc;
2660 if (doc->dict != NULL)
2661 ret->name = xmlDictLookup(doc->dict, attr->name, -1);
2703 * @doc: the document
2715 xmlIsID(xmlDocPtr doc, xmlNodePtr elem, xmlAttrPtr attr) {
2721 if (doc == NULL) return(0);
2722 if ((doc->intSubset == NULL) && (doc->extSubset == NULL)) {
2724 } else if (doc->type == XML_HTML_DOCUMENT_NODE) {
2747 attrDecl = xmlGetDtdAttrDesc(doc->intSubset, fullelemname,
2749 if ((attrDecl == NULL) && (doc->extSubset != NULL))
2750 attrDecl = xmlGetDtdAttrDesc(doc->extSubset, fullelemname,
2767 * @doc: the document
2775 xmlRemoveID(xmlDocPtr doc, xmlAttrPtr attr) {
2780 if (doc == NULL) return(-1);
2782 table = (xmlIDTablePtr) doc->ids;
2788 ID = xmlNodeListGetString(doc, attr->children, 1);
2804 * @doc: pointer to the document
2812 xmlGetID(xmlDocPtr doc, const xmlChar *ID) {
2816 if (doc == NULL) {
2824 table = (xmlIDTablePtr) doc->ids;
2836 return((xmlAttrPtr) doc);
2929 * @doc: pointer to the document
2938 xmlAddRef(xmlValidCtxtPtr ctxt, xmlDocPtr doc, const xmlChar *value,
2944 if (doc == NULL) {
2957 table = (xmlRefTablePtr) doc->refs;
2959 doc->refs = table = xmlHashCreateDict(0, doc->dict);
3029 * @doc: the document
3040 xmlIsRef(xmlDocPtr doc, xmlNodePtr elem, xmlAttrPtr attr) {
3043 if (doc == NULL) {
3044 doc = attr->doc;
3045 if (doc == NULL) return(0);
3048 if ((doc->intSubset == NULL) && (doc->extSubset == NULL)) {
3050 } else if (doc->type == XML_HTML_DOCUMENT_NODE) {
3057 attrDecl = xmlGetDtdAttrDesc(doc->intSubset, elem->name, attr->name);
3058 if ((attrDecl == NULL) && (doc->extSubset != NULL))
3059 attrDecl = xmlGetDtdAttrDesc(doc->extSubset,
3072 * @doc: the document
3080 xmlRemoveRef(xmlDocPtr doc, xmlAttrPtr attr) {
3086 if (doc == NULL) return(-1);
3088 table = (xmlRefTablePtr) doc->refs;
3094 ID = xmlNodeListGetString(doc, attr->children, 1);
3129 * @doc: pointer to the document
3137 xmlGetRefs(xmlDocPtr doc, const xmlChar *ID) {
3140 if (doc == NULL) {
3148 table = (xmlRefTablePtr) doc->refs;
3211 if (dtd->doc != NULL)
3212 dict = dtd->doc->dict;
3367 * @doc: the document
3377 xmlValidateNotationUse(xmlValidCtxtPtr ctxt, xmlDocPtr doc,
3380 if ((doc == NULL) || (doc->intSubset == NULL)) return(-1);
3382 notaDecl = xmlGetDtdNotationDesc(doc->intSubset, notationName);
3383 if ((notaDecl == NULL) && (doc->extSubset != NULL))
3384 notaDecl = xmlGetDtdNotationDesc(doc->extSubset, notationName);
3387 xmlErrValidNode(ctxt, (xmlNodePtr) doc, XML_DTD_UNKNOWN_NOTATION,
3398 * @doc: the document
3408 xmlIsMixedElement(xmlDocPtr doc, const xmlChar *name) {
3411 if ((doc == NULL) || (doc->intSubset == NULL)) return(-1);
3413 elemDecl = xmlGetDtdElementDesc(doc->intSubset, name);
3414 if ((elemDecl == NULL) && (doc->extSubset != NULL))
3415 elemDecl = xmlGetDtdElementDesc(doc->extSubset, name);
3655 * @doc: a document instance
3668 xmlValidateNotationDecl(xmlValidCtxtPtr ctxt ATTRIBUTE_UNUSED, xmlDocPtr doc ATTRIBUTE_UNUSED,
3725 * @doc: the document
3752 xmlValidateAttributeValue2(xmlValidCtxtPtr ctxt, xmlDocPtr doc,
3767 ent = xmlGetDocEntity(doc, value);
3769 if ((ent == NULL) && (doc->standalone == 1)) {
3770 doc->standalone = 0;
3771 ent = xmlGetDocEntity(doc, value);
3774 xmlErrValidNode(ctxt, (xmlNodePtr) doc,
3780 xmlErrValidNode(ctxt, (xmlNodePtr) doc,
3801 ent = xmlGetDocEntity(doc, nam);
3803 xmlErrValidNode(ctxt, (xmlNodePtr) doc,
3809 xmlErrValidNode(ctxt, (xmlNodePtr) doc,
3826 nota = xmlGetDtdNotationDesc(doc->intSubset, value);
3827 if ((nota == NULL) && (doc->extSubset != NULL))
3828 nota = xmlGetDtdNotationDesc(doc->extSubset, value);
3831 xmlErrValidNode(ctxt, (xmlNodePtr) doc,
3846 * @doc: the document
3868 xmlValidCtxtNormalizeAttributeValue(xmlValidCtxtPtr ctxt, xmlDocPtr doc,
3875 if (doc == NULL) return(NULL);
3887 attrDecl = xmlGetDtdAttrDesc(doc->intSubset, fullname, name);
3888 if ((attrDecl == NULL) && (doc->extSubset != NULL)) {
3889 attrDecl = xmlGetDtdAttrDesc(doc->extSubset, fullname, name);
3896 if ((attrDecl == NULL) && (doc->intSubset != NULL))
3897 attrDecl = xmlGetDtdAttrDesc(doc->intSubset, elem->name, name);
3898 if ((attrDecl == NULL) && (doc->extSubset != NULL)) {
3899 attrDecl = xmlGetDtdAttrDesc(doc->extSubset, elem->name, name);
3925 if ((doc->standalone) && (extsubset == 1) && (!xmlStrEqual(value, ret))) {
3936 * @doc: the document
3954 xmlValidNormalizeAttributeValue(xmlDocPtr doc, xmlNodePtr elem,
3960 if (doc == NULL) return(NULL);
3972 attrDecl = xmlGetDtdAttrDesc(doc->intSubset, fullname, name);
3973 if ((attrDecl == NULL) && (doc->extSubset != NULL))
3974 attrDecl = xmlGetDtdAttrDesc(doc->extSubset, fullname, name);
3978 attrDecl = xmlGetDtdAttrDesc(doc->intSubset, elem->name, name);
3979 if ((attrDecl == NULL) && (doc->extSubset != NULL))
3980 attrDecl = xmlGetDtdAttrDesc(doc->extSubset, elem->name, name);
4015 * @doc: a document instance
4031 xmlValidateAttributeDecl(xmlValidCtxtPtr ctxt, xmlDocPtr doc,
4065 xmlElementPtr elem = xmlGetDtdElementDesc(doc->intSubset,
4077 if (doc->intSubset != NULL) {
4078 table = (xmlAttributeTablePtr) doc->intSubset->attributes;
4088 } else if (doc->extSubset != NULL) {
4090 elem = xmlGetDtdElementDesc(doc->extSubset, attr->elem);
4127 * @doc: a document instance
4141 xmlValidateElementDecl(xmlValidCtxtPtr ctxt, xmlDocPtr doc,
4209 tst = xmlGetDtdElementDesc(doc->intSubset, elem->name);
4219 tst = xmlGetDtdElementDesc(doc->extSubset, elem->name);
4240 * @doc: a document instance
4263 xmlValidateOneAttribute(xmlValidCtxtPtr ctxt, xmlDocPtr doc,
4282 attrDecl = xmlGetDtdQAttrDesc(doc->intSubset, fullname,
4284 if ((attrDecl == NULL) && (doc->extSubset != NULL))
4285 attrDecl = xmlGetDtdQAttrDesc(doc->extSubset, fullname,
4288 attrDecl = xmlGetDtdAttrDesc(doc->intSubset, fullname, attr->name);
4289 if ((attrDecl == NULL) && (doc->extSubset != NULL))
4290 attrDecl = xmlGetDtdAttrDesc(doc->extSubset,
4298 attrDecl = xmlGetDtdQAttrDesc(doc->intSubset, elem->name,
4300 if ((attrDecl == NULL) && (doc->extSubset != NULL))
4301 attrDecl = xmlGetDtdQAttrDesc(doc->extSubset, elem->name,
4304 attrDecl = xmlGetDtdAttrDesc(doc->intSubset,
4306 if ((attrDecl == NULL) && (doc->extSubset != NULL))
4307 attrDecl = xmlGetDtdAttrDesc(doc->extSubset,
4342 if (xmlAddID(ctxt, doc, value, attr) == NULL)
4348 if (xmlAddRef(ctxt, doc, value, attr) == NULL)
4358 nota = xmlGetDtdNotationDesc(doc->intSubset, value);
4360 nota = xmlGetDtdNotationDesc(doc->extSubset, value);
4407 ret &= xmlValidateAttributeValue2(ctxt, doc, attr->name,
4416 * @doc: a document instance
4440 xmlValidateOneNamespace(xmlValidCtxtPtr ctxt, xmlDocPtr doc,
4461 attrDecl = xmlGetDtdQAttrDesc(doc->intSubset, fullname,
4463 if ((attrDecl == NULL) && (doc->extSubset != NULL))
4464 attrDecl = xmlGetDtdQAttrDesc(doc->extSubset, fullname,
4467 attrDecl = xmlGetDtdAttrDesc(doc->intSubset, fullname,
4469 if ((attrDecl == NULL) && (doc->extSubset != NULL))
4470 attrDecl = xmlGetDtdAttrDesc(doc->extSubset, fullname,
4478 attrDecl = xmlGetDtdQAttrDesc(doc->intSubset, elem->name,
4480 if ((attrDecl == NULL) && (doc->extSubset != NULL))
4481 attrDecl = xmlGetDtdQAttrDesc(doc->extSubset, elem->name,
4484 attrDecl = xmlGetDtdAttrDesc(doc->intSubset,
4486 if ((attrDecl == NULL) && (doc->extSubset != NULL))
4487 attrDecl = xmlGetDtdAttrDesc(doc->extSubset,
4539 if (xmlAddID(ctxt, doc, value, (xmlAttrPtr) ns) == NULL)
4545 if (xmlAddRef(ctxt, doc, value, (xmlAttrPtr) ns) == NULL)
4555 nota = xmlGetDtdNotationDesc(doc->intSubset, value);
4557 nota = xmlGetDtdNotationDesc(doc->extSubset, value);
4629 ret &= xmlValidateAttributeValue2(ctxt, doc, ns->prefix,
4632 ret &= xmlValidateAttributeValue2(ctxt, doc, BAD_CAST "xmlns",
5421 * @doc: a document instance
5429 xmlValidateOneCdataElement(xmlValidCtxtPtr ctxt, xmlDocPtr doc,
5434 if ((ctxt == NULL) || (doc == NULL) || (elem == NULL))
5553 * @doc: a document instance
5563 xmlValidGetElemDecl(xmlValidCtxtPtr ctxt, xmlDocPtr doc,
5568 if ((ctxt == NULL) || (doc == NULL) ||
5581 elemDecl = xmlGetDtdQElementDesc(doc->intSubset,
5583 if ((elemDecl == NULL) && (doc->extSubset != NULL)) {
5584 elemDecl = xmlGetDtdQElementDesc(doc->extSubset,
5597 elemDecl = xmlGetDtdElementDesc(doc->intSubset, elem->name);
5598 if ((elemDecl == NULL) && (doc->extSubset != NULL)) {
5599 elemDecl = xmlGetDtdElementDesc(doc->extSubset, elem->name);
5617 * @doc: a document instance
5626 xmlValidatePushElement(xmlValidCtxtPtr ctxt, xmlDocPtr doc,
5703 eDecl = xmlValidGetElemDecl(ctxt, doc, elem, &extsubset);
5784 * @doc: a document instance
5793 xmlValidatePopElement(xmlValidCtxtPtr ctxt, xmlDocPtr doc ATTRIBUTE_UNUSED,
5838 * @doc: a document instance
5854 xmlValidateOneElement(xmlValidCtxtPtr ctxt, xmlDocPtr doc,
5929 elemDecl = xmlValidGetElemDecl(ctxt, doc, elem, &extsubset);
5961 ret = xmlValidateOneCdataElement(ctxt, doc, elem);
6037 if ((doc->standalone == 1) && (extsubset == 1)) {
6206 * @doc: a document instance
6218 xmlValidateRoot(xmlValidCtxtPtr ctxt, xmlDocPtr doc) {
6222 if (doc == NULL) return(0);
6224 root = xmlDocGetRootElement(doc);
6235 if ((doc->intSubset != NULL) &&
6236 (doc->intSubset->name != NULL)) {
6240 if (!xmlStrEqual(doc->intSubset->name, root->name)) {
6250 ret = xmlStrEqual(doc->intSubset->name, fullname);
6256 if ((xmlStrEqual(doc->intSubset->name, BAD_CAST "HTML")) &&
6261 root->name, doc->intSubset->name, NULL);
6273 * @doc: a document instance
6282 xmlValidateElement(xmlValidCtxtPtr ctxt, xmlDocPtr doc, xmlNodePtr elem) {
6308 ret &= xmlValidateOneElement(ctxt, doc, elem);
6312 value = xmlNodeListGetString(doc, attr->children, 0);
6313 ret &= xmlValidateOneAttribute(ctxt, doc, elem, attr, value);
6321 ret &= xmlValidateOneNamespace(ctxt, doc, elem, NULL,
6324 ret &= xmlValidateOneNamespace(ctxt, doc, elem,
6331 ret &= xmlValidateElement(ctxt, doc, child);
6370 id = xmlGetID(ctxt->doc, str);
6384 id = xmlGetID(ctxt->doc, name);
6406 id = xmlGetID(ctxt->doc, str);
6461 * @doc: a document instance
6474 xmlValidateDocumentFinal(xmlValidCtxtPtr ctxt, xmlDocPtr doc) {
6479 if (doc == NULL) {
6481 "xmlValidateDocumentFinal: doc == NULL\n", NULL);
6494 table = (xmlRefTablePtr) doc->refs;
6495 ctxt->doc = doc;
6504 * @doc: a document instance
6518 xmlValidateDtd(xmlValidCtxtPtr ctxt, xmlDocPtr doc, xmlDtdPtr dtd) {
6524 if (doc == NULL) return(0);
6525 oldExt = doc->extSubset;
6526 oldInt = doc->intSubset;
6527 doc->extSubset = dtd;
6528 doc->intSubset = NULL;
6529 ret = xmlValidateRoot(ctxt, doc);
6531 doc->extSubset = oldExt;
6532 doc->intSubset = oldInt;
6535 if (doc->ids != NULL) {
6536 xmlFreeIDTable(doc->ids);
6537 doc->ids = NULL;
6539 if (doc->refs != NULL) {
6540 xmlFreeRefTable(doc->refs);
6541 doc->refs = NULL;
6543 root = xmlDocGetRootElement(doc);
6544 ret = xmlValidateElement(ctxt, doc, root);
6545 ret &= xmlValidateDocumentFinal(ctxt, doc);
6546 doc->extSubset = oldExt;
6547 doc->intSubset = oldInt;
6562 ret = xmlValidateNotationUse(ctxt, cur->doc, notation);
6574 xmlDocPtr doc;
6593 ret = xmlValidateAttributeValue2(ctxt, ctxt->doc, cur->name,
6601 ret = xmlValidateAttributeValue2(ctxt, ctxt->doc,
6610 doc = cur->doc;
6618 if (doc != NULL)
6619 elem = xmlGetDtdElementDesc(doc->intSubset, cur->elem);
6620 if ((elem == NULL) && (doc != NULL))
6621 elem = xmlGetDtdElementDesc(doc->extSubset, cur->elem);
6643 * @doc: a document instance
6658 xmlValidateDtdFinal(xmlValidCtxtPtr ctxt, xmlDocPtr doc) {
6663 if (doc == NULL) return(0);
6664 if ((doc->intSubset == NULL) && (doc->extSubset == NULL))
6666 ctxt->doc = doc;
6668 dtd = doc->intSubset;
6678 dtd = doc->extSubset;
6694 * @doc: a document instance
6706 xmlValidateDocument(xmlValidCtxtPtr ctxt, xmlDocPtr doc) {
6710 if (doc == NULL)
6712 if ((doc->intSubset == NULL) && (doc->extSubset == NULL)) {
6717 if ((doc->intSubset != NULL) && ((doc->intSubset->SystemID != NULL) ||
6718 (doc->intSubset->ExternalID != NULL)) && (doc->extSubset == NULL)) {
6720 if (doc->intSubset->SystemID != NULL) {
6721 sysID = xmlBuildURI(doc->intSubset->SystemID,
6722 doc->URL);
6726 (const char *) doc->intSubset->SystemID);
6731 doc->extSubset = xmlParseDTD(doc->intSubset->ExternalID,
6735 if (doc->extSubset == NULL) {
6736 if (doc->intSubset->SystemID != NULL) {
6739 (const char *) doc->intSubset->SystemID);
6743 (const char *) doc->intSubset->ExternalID);
6749 if (doc->ids != NULL) {
6750 xmlFreeIDTable(doc->ids);
6751 doc->ids = NULL;
6753 if (doc->refs != NULL) {
6754 xmlFreeRefTable(doc->refs);
6755 doc->refs = NULL;
6757 ret = xmlValidateDtdFinal(ctxt, doc);
6758 if (!xmlValidateRoot(ctxt, doc)) return(0);
6760 root = xmlDocGetRootElement(doc);
6761 ret &= xmlValidateElement(ctxt, doc, root);
6762 ret &= xmlValidateDocumentFinal(ctxt, doc);
6887 element_desc = xmlGetDtdElementDesc(parent->doc->intSubset,
6889 if ((element_desc == NULL) && (parent->doc->extSubset != NULL))
6890 element_desc = xmlGetDtdElementDesc(parent->doc->extSubset,
6905 test_node = xmlNewDocNode (ref_node->doc, NULL, BAD_CAST "<!dummy?>", NULL);
6926 if (xmlValidateOneElement(&vctxt, parent->doc, parent)) {