Home | History | Annotate | Download | only in libxml2

Lines Matching refs:attr

519     xmlSchemaAttributeUsePtr next; /* The next attr. use. */
521 * The attr. decl. OR a QName-ref. to an attr. decl. OR
1652 xmlSchemaAttributePtr attr;
1654 attr = (xmlSchemaAttributePtr) item;
1658 attr->targetNamespace, attr->name));
2822 * @attr: the illegal attribute node
2831 xmlAttrPtr attr,
2837 xmlSchemaFormatItemForReport(&des, NULL, ownerItem, attr->parent);
2839 xmlSchemaFormatItemForReport(ownerDes, NULL, ownerItem, attr->parent);
2843 if (attr == NULL) {
2849 xmlSchemaPErrExt(ctxt, (xmlNodePtr) attr, error, NULL, NULL, NULL,
2851 BAD_CAST des, attr->name, (const xmlChar *) msg, NULL, NULL);
2863 * @attr: the illegal attribute node
2871 xmlAttrPtr attr)
2875 xmlSchemaFormatNodeForError(&strA, ACTXT_CAST ctxt, attr->parent);
2876 xmlSchemaErr4(ACTXT_CAST ctxt, error, (xmlNodePtr) attr,
2878 xmlSchemaFormatQNameNs(&strB, attr->ns, attr->name),
2953 * @attr: the invalid schema attribute
3046 * @attr: the bad attribute node
3055 xmlAttrPtr attr,
3061 xmlSchemaFormatItemForReport(&des, NULL, WXS_BASIC_CAST ownerItem, attr->parent);
3062 xmlSchemaPErrExt(ctxt, (xmlNodePtr) attr, error, NULL, NULL, NULL,
3711 * @attr: an attribute declaration
3716 xmlSchemaFreeAttribute(xmlSchemaAttributePtr attr)
3718 if (attr == NULL)
3720 if (attr->annot != NULL)
3721 xmlSchemaFreeAnnot(attr->annot);
3722 if (attr->defVal != NULL)
3723 xmlSchemaFreeValue(attr->defVal);
3724 xmlFree(attr);
5772 xmlAttrPtr attr,
5787 ownerItem, (xmlNodePtr) attr,
5796 ns = xmlSearchNs(attr->doc, attr->parent, NULL);
5817 ns = xmlSearchNs(attr->doc, attr->parent, pref);
5821 ownerItem, (xmlNodePtr) attr,
5838 * @attr: the attribute node
5853 xmlAttrPtr attr,
5859 attr);
5861 ownerItem, attr, value, uri, local));
5889 xmlAttrPtr attr;
5891 attr = xmlSchemaGetPropNode(ownerElem, name);
5892 if (attr == NULL) {
5898 ownerItem, attr, uri, local));
5916 xmlSchemaPValAttrNodeID(xmlSchemaParserCtxtPtr ctxt, xmlAttrPtr attr)
5921 if (attr == NULL)
5923 value = xmlSchemaGetNodeContentNoDict((xmlNodePtr) attr);
5929 if (attr->atype != XML_ATTRIBUTE_ID) {
5942 res = xmlAddID(NULL, attr->doc, value, attr);
5947 NULL, (xmlNodePtr) attr,
5952 attr->atype = XML_ATTRIBUTE_ID;
5958 NULL, (xmlNodePtr) attr,
5975 xmlAttrPtr attr;
5977 attr = xmlSchemaGetPropNode(ownerElem, (const char *) name);
5978 if (attr == NULL)
5980 return(xmlSchemaPValAttrNodeID(ctxt, attr));
5999 xmlAttrPtr attr;
6001 attr = xmlSchemaGetPropNode(node, "maxOccurs");
6002 if (attr == NULL)
6004 val = xmlSchemaGetNodeContent(ctxt, (xmlNodePtr) attr);
6011 NULL, (xmlNodePtr) attr, NULL, expected,
6025 NULL, (xmlNodePtr) attr, NULL, expected,
6042 NULL, (xmlNodePtr) attr, NULL, expected,
6064 xmlAttrPtr attr;
6066 attr = xmlSchemaGetPropNode(node, "minOccurs");
6067 if (attr == NULL)
6069 val = xmlSchemaGetNodeContent(ctxt, (xmlNodePtr) attr);
6077 NULL, (xmlNodePtr) attr, NULL, expected,
6094 NULL, (xmlNodePtr) attr, NULL, expected,
6231 * @attr: the schema attribute node being validated
6245 xmlAttrPtr attr,
6256 if ((pctxt == NULL) || (type == NULL) || (attr == NULL))
6270 (xmlNodePtr) attr);
6292 ret, ownerItem, (xmlNodePtr) attr,
6304 * @attr: the schema attribute node being validated
6318 xmlAttrPtr attr,
6324 if ((ctxt == NULL) || (type == NULL) || (attr == NULL))
6327 val = xmlSchemaGetNodeContent(ctxt, (xmlNodePtr) attr);
6331 return (xmlSchemaPValAttrNodeValue(ctxt, ownerItem, attr,
6362 xmlAttrPtr attr;
6379 attr = xmlSchemaGetPropNode(ownerElem, name);
6380 if (attr == NULL) {
6385 return (xmlSchemaPValAttrNode(ctxt, ownerItem, attr,
6393 xmlAttrPtr attr,
6419 xmlNodePtr n = (attr != NULL) ? (xmlNodePtr) attr : node;
6496 xmlAttrPtr attr;
6513 attr = node->properties;
6514 while (attr != NULL) {
6515 if (((attr->ns == NULL) &&
6516 (!xmlStrEqual(attr->name, BAD_CAST "id"))) ||
6517 ((attr->ns != NULL) &&
6518 xmlStrEqual(attr->ns->href, xmlSchemaNs))) {
6521 XML_SCHEMAP_S4S_ATTR_NOT_ALLOWED, NULL, attr);
6523 attr = attr->next;
6538 attr = child->properties;
6539 while (attr != NULL) {
6540 if (((attr->ns == NULL) &&
6541 (!xmlStrEqual(attr->name, BAD_CAST "source"))) ||
6542 ((attr->ns != NULL) &&
6543 xmlStrEqual(attr->ns->href, xmlSchemaNs))) {
6546 XML_SCHEMAP_S4S_ATTR_NOT_ALLOWED, NULL, attr);
6548 attr = attr->next;
6560 attr = child->properties;
6561 while (attr != NULL) {
6562 if (attr->ns == NULL) {
6563 if (!xmlStrEqual(attr->name, BAD_CAST "source")) {
6565 XML_SCHEMAP_S4S_ATTR_NOT_ALLOWED, NULL, attr);
6568 if (xmlStrEqual(attr->ns->href, xmlSchemaNs) ||
6569 (xmlStrEqual(attr->name, BAD_CAST "lang") &&
6570 (!xmlStrEqual(attr->ns->href, XML_XML_NAMESPACE)))) {
6573 XML_SCHEMAP_S4S_ATTR_NOT_ALLOWED, NULL, attr);
6576 attr = attr->next;
6581 attr = xmlSchemaGetPropNodeNs(child, (const char *) XML_XML_NAMESPACE, "lang");
6582 if (attr != NULL)
6583 xmlSchemaPValAttrNode(ctxt, NULL, attr,
6713 xmlAttrPtr attr;
6735 attr = xmlSchemaGetPropNode(node, "namespace");
6736 ns = xmlSchemaGetNodeContent(ctxt, (xmlNodePtr) attr);
6737 if ((attr == NULL) || (xmlStrEqual(ns, BAD_CAST "##any")))
6762 NULL, (xmlNodePtr) attr,
6777 xmlSchemaPValAttrNodeValue(ctxt, NULL, attr,
6878 xmlAttrPtr attr;
6886 attr = node->properties;
6887 while (attr != NULL) {
6888 if (attr->ns == NULL) {
6889 if ((!xmlStrEqual(attr->name, BAD_CAST "id")) &&
6890 (!xmlStrEqual(attr->name, BAD_CAST "minOccurs")) &&
6891 (!xmlStrEqual(attr->name, BAD_CAST "maxOccurs")) &&
6892 (!xmlStrEqual(attr->name, BAD_CAST "namespace")) &&
6893 (!xmlStrEqual(attr->name, BAD_CAST "processContents"))) {
6895 XML_SCHEMAP_S4S_ATTR_NOT_ALLOWED, NULL, attr);
6897 } else if (xmlStrEqual(attr->ns->href, xmlSchemaNs)) {
6899 XML_SCHEMAP_S4S_ATTR_NOT_ALLOWED, NULL, attr);
6901 attr = attr->next;
7016 xmlAttrPtr attr;
7029 attr = node->properties;
7030 while (attr != NULL) {
7031 if (attr->ns == NULL) {
7032 if ((!xmlStrEqual(attr->name, BAD_CAST "id")) &&
7033 (!xmlStrEqual(attr->name, BAD_CAST "namespace")) &&
7034 (!xmlStrEqual(attr->name, BAD_CAST "processContents"))) {
7036 XML_SCHEMAP_S4S_ATTR_NOT_ALLOWED, NULL, attr);
7038 } else if (xmlStrEqual(attr->ns->href, xmlSchemaNs)) {
7040 XML_SCHEMAP_S4S_ATTR_NOT_ALLOWED, NULL, attr);
7042 attr = attr->next;
7090 xmlAttrPtr attr;
7104 attr = xmlSchemaGetPropNode(node, "ref");
7105 if (attr != NULL) {
7107 NULL, attr, &tmpNs, &tmpName) != 0) {
7110 if (xmlSchemaCheckReference(pctxt, schema, node, attr, tmpNs) != 0)
7118 attr = node->properties;
7119 while (attr != NULL) {
7120 if (attr->ns == NULL) {
7122 if (xmlStrEqual(attr->name, BAD_CAST "id")) {
7123 xmlSchemaPValAttrNodeID(pctxt, attr);
7125 } else if (xmlStrEqual(attr->name, BAD_CAST "ref")) {
7129 if (xmlStrEqual(attr->name, BAD_CAST "name")) {
7131 } else if (xmlStrEqual(attr->name, BAD_CAST "id")) {
7132 xmlSchemaPValAttrNodeID(pctxt, attr);
7134 } else if (xmlStrEqual(attr->name, BAD_CAST "type")) {
7136 attr, &tmpNs, &tmpName);
7138 } else if (xmlStrEqual(attr->name, BAD_CAST "form")) {
7144 (xmlNodePtr) attr);
7151 NULL, (xmlNodePtr) attr,
7158 if (xmlStrEqual(attr->name, BAD_CAST "use")) {
7160 attrValue = xmlSchemaGetNodeContent(pctxt, (xmlNodePtr) attr);
7171 NULL, (xmlNodePtr) attr,
7176 } else if (xmlStrEqual(attr->name, BAD_CAST "default")) {
7184 NULL, attr, "default", "fixed");
7186 defValue = xmlSchemaGetNodeContent(pctxt, (xmlNodePtr) attr);
7190 } else if (xmlStrEqual(attr->name, BAD_CAST "fixed")) {
7198 NULL, attr, "default", "fixed");
7200 defValue = xmlSchemaGetNodeContent(pctxt, (xmlNodePtr) attr);
7205 } else if (! xmlStrEqual(attr->ns->href, xmlSchemaNs))
7209 XML_SCHEMAP_S4S_ATTR_NOT_ALLOWED, NULL, attr);
7212 attr = attr->next;
7251 attr = xmlSchemaGetPropNode(node, "name");
7252 if (attr == NULL) {
7257 if (xmlSchemaPValAttrNode(pctxt, NULL, attr,
7268 NULL, (xmlNodePtr) attr,
7423 * TODO: Should this go into the attr decl?
7480 xmlAttrPtr attr;
7494 attr = xmlSchemaGetPropNode(node, "name");
7495 if (attr == NULL) {
7500 if (xmlSchemaPValAttrNode(pctxt, NULL, attr,
7511 NULL, (xmlNodePtr) attr,
7539 attr = node->properties;
7540 while (attr != NULL) {
7541 if (attr->ns == NULL) {
7542 if ((!xmlStrEqual(attr->name, BAD_CAST "id")) &&
7543 (!xmlStrEqual(attr->name, BAD_CAST "default")) &&
7544 (!xmlStrEqual(attr->name, BAD_CAST "fixed")) &&
7545 attr->name, BAD_CAST "name")) &&
7546 (!xmlStrEqual(attr->name, BAD_CAST "type")))
7549 XML_SCHEMAP_S4S_ATTR_NOT_ALLOWED, NULL, attr);
7551 } else if (xmlStrEqual(attr->ns->href, xmlSchemaNs)) {
7553 XML_SCHEMAP_S4S_ATTR_NOT_ALLOWED, NULL, attr);
7555 attr = attr->next;
7570 attr = xmlSchemaGetPropNode(node, "default");
7571 if (attr != NULL) {
7578 WXS_BASIC_CAST ret, attr, "default", "fixed");
7580 ret->defValue = xmlSchemaGetNodeContent(pctxt, (xmlNodePtr) attr);
7632 xmlAttrPtr attr;
7638 attr = xmlSchemaGetPropNode(node, "ref");
7639 if (attr == NULL) {
7646 NULL, attr, &refNs, &ref);
7647 if (xmlSchemaCheckReference(pctxt, schema, node, attr, refNs) != 0)
7653 attr = node->properties;
7654 while (attr != NULL) {
7655 if (attr->ns == NULL) {
7656 if ((!xmlStrEqual(attr->name, BAD_CAST "ref")) &&
7657 (!xmlStrEqual(attr->name, BAD_CAST "id")))
7660 XML_SCHEMAP_S4S_ATTR_NOT_ALLOWED, NULL, attr);
7662 } else if (xmlStrEqual(attr->ns->href, xmlSchemaNs)) {
7664 XML_SCHEMAP_S4S_ATTR_NOT_ALLOWED, NULL, attr);
7666 attr = attr->next;
7764 xmlAttrPtr attr;
7770 attr = xmlSchemaGetPropNode(node, "name");
7771 if (attr == NULL) {
7781 NULL, attr,
7792 attr = node->properties;
7793 while (attr != NULL) {
7794 if (attr->ns == NULL) {
7795 if ((!xmlStrEqual(attr->name, BAD_CAST "name")) &&
7796 (!xmlStrEqual(attr->name, BAD_CAST "id")))
7799 XML_SCHEMAP_S4S_ATTR_NOT_ALLOWED, NULL, attr);
7801 } else if (xmlStrEqual(attr->ns->href, xmlSchemaNs)) {
7803 XML_SCHEMAP_S4S_ATTR_NOT_ALLOWED, NULL, attr);
7805 attr = attr->next;
7974 xmlAttrPtr attr,
7993 if (attr == NULL)
7996 node = (xmlNodePtr) attr;
8015 if (attr == NULL)
8018 nsList = xmlGetNsList(attr->doc, attr->parent);
8195 xmlAttrPtr attr;
8200 attr = node->properties;
8201 while (attr != NULL) {
8202 if (attr->ns == NULL) {
8203 if ((!xmlStrEqual(attr->name, BAD_CAST "id")) &&
8204 (!xmlStrEqual(attr->name, BAD_CAST "xpath"))) {
8206 XML_SCHEMAP_S4S_ATTR_NOT_ALLOWED, NULL, attr);
8208 } else if (xmlStrEqual(attr->ns->href, xmlSchemaNs)) {
8210 XML_SCHEMAP_S4S_ATTR_NOT_ALLOWED, NULL, attr);
8212 attr = attr->next;
8228 attr = xmlSchemaGetPropNode(node, "xpath");
8229 if (attr == NULL) {
8235 item->xpath = xmlSchemaGetNodeContent(ctxt, (xmlNodePtr) attr);
8240 if (xmlSchemaCheckCSelectorXPath(ctxt, idc, item, attr,
8243 (xmlNodePtr) attr,
8293 xmlAttrPtr attr;
8300 attr = node->properties;
8301 while (attr != NULL) {
8302 if (attr->ns == NULL) {
8303 if ((!xmlStrEqual(attr->name, BAD_CAST "id")) &&
8304 (!xmlStrEqual(attr->name, BAD_CAST "name")) &&
8306 (!xmlStrEqual(attr->name, BAD_CAST "refer")))) {
8308 XML_SCHEMAP_S4S_ATTR_NOT_ALLOWED, NULL, attr);
8310 } else if (xmlStrEqual(attr->ns->href, xmlSchemaNs)) {
8312 XML_SCHEMAP_S4S_ATTR_NOT_ALLOWED, NULL, attr);
8314 attr = attr->next;
8319 attr = xmlSchemaGetPropNode(node, "name");
8320 if (attr == NULL) {
8327 NULL, attr,
8342 attr = xmlSchemaGetPropNode(node, "refer");
8343 if (attr == NULL) {
8357 NULL, attr,
8360 xmlSchemaCheckReference(ctxt, schema, node, attr,
8442 xmlAttrPtr attr, nameAttr;
8460 attr = xmlSchemaGetPropNode(node, "ref");
8461 if ((topLevel) || (attr == NULL)) {
8504 NULL, attr, &refNs, &ref);
8505 xmlSchemaCheckReference(ctxt, schema, node, attr, refNs);
8516 attr = node->properties;
8517 while (attr != NULL) {
8518 if (attr->ns == NULL) {
8519 if (xmlStrEqual(attr->name, BAD_CAST "ref") ||
8520 xmlStrEqual(attr->name, BAD_CAST "name") ||
8521 xmlStrEqual(attr->name, BAD_CAST "id") ||
8522 xmlStrEqual(attr->name, BAD_CAST "maxOccurs") ||
8523 xmlStrEqual(attr->name, BAD_CAST "minOccurs"))
8525 attr = attr->next;
8531 NULL, NULL, attr,
8536 } else if (xmlStrEqual(attr->ns->href, xmlSchemaNs)) {
8538 XML_SCHEMAP_S4S_ATTR_NOT_ALLOWED, NULL, attr);
8540 attr = attr->next;
8584 attr = xmlSchemaGetPropNode(node, "form");
8585 if (attr != NULL) {
8586 attrValue = xmlSchemaGetNodeContent(ctxt, (xmlNodePtr) attr);
8592 NULL, (xmlNodePtr) attr,
8606 attr = node->properties;
8607 while (attr != NULL) {
8608 if (attr->ns == NULL) {
8609 if ((!xmlStrEqual(attr->name, BAD_CAST "name")) &&
8610 (!xmlStrEqual(attr->name, BAD_CAST "type")) &&
8611 (!xmlStrEqual(attr->name, BAD_CAST "id")) &&
8612 (!xmlStrEqual(attr->name, BAD_CAST "default")) &&
8613 (!xmlStrEqual(attr->name, BAD_CAST "fixed")) &&
8614 (!xmlStrEqual(attr->name, BAD_CAST "block")) &&
8615 (!xmlStrEqual(attr->name, BAD_CAST "nillable")))
8618 if ((!xmlStrEqual(attr->name, BAD_CAST "maxOccurs")) &&
8619 (!xmlStrEqual(attr->name, BAD_CAST "minOccurs")) &&
8620 (!xmlStrEqual(attr->name, BAD_CAST "form")))
8623 XML_SCHEMAP_S4S_ATTR_NOT_ALLOWED, NULL, attr);
8625 } else if ((!xmlStrEqual(attr->name, BAD_CAST "final")) &&
8626 (!xmlStrEqual(attr->name, BAD_CAST "abstract")) &&
8627 (!xmlStrEqual(attr->name, BAD_CAST "substitutionGroup"))) {
8630 XML_SCHEMAP_S4S_ATTR_NOT_ALLOWED, NULL, attr);
8633 } else if (xmlStrEqual(attr->ns->href, xmlSchemaNs)) {
8636 XML_SCHEMAP_S4S_ATTR_NOT_ALLOWED, NULL, attr);
8638 attr = attr->next;
8657 attr = xmlSchemaGetPropNode(node, "final");
8658 if (attr == NULL) {
8664 attrValue = xmlSchemaGetNodeContent(ctxt, (xmlNodePtr) attr);
8671 NULL, (xmlNodePtr) attr,
8680 attr = xmlSchemaGetPropNode(node, "block");
8681 if (attr == NULL) {
8692 attrValue = xmlSchemaGetNodeContent(ctxt, (xmlNodePtr) attr);
8700 NULL, (xmlNodePtr) attr,
8709 attr = xmlSchemaGetPropNode(node, "type");
8710 if (attr != NULL) {
8712 NULL, attr,
8715 attr, decl->namedTypeNs);
8718 attr = xmlSchemaGetPropNode(node, "fixed");
8719 if (attr != NULL) {
8720 fixed = xmlSchemaGetNodeContent(ctxt, (xmlNodePtr) attr);
8728 NULL, attr, "default", "fixed");
8838 xmlAttrPtr attr;
8857 attr = node->properties;
8858 while (attr != NULL) {
8859 if (attr->ns == NULL) {
8860 if ((!xmlStrEqual(attr->name, BAD_CAST "id")) &&
8861 (!xmlStrEqual(attr->name, BAD_CAST "memberTypes"))) {
8863 XML_SCHEMAP_S4S_ATTR_NOT_ALLOWED, NULL, attr);
8865 } else if (xmlStrEqual(attr->ns->href, xmlSchemaNs)) {
8867 XML_SCHEMAP_S4S_ATTR_NOT_ALLOWED, NULL, attr);
8869 attr = attr->next;
8876 attr = xmlSchemaGetPropNode(node, "memberTypes");
8877 if (attr != NULL) {
8884 cur = xmlSchemaGetNodeContent(ctxt, (xmlNodePtr) attr);
8896 NULL, attr, BAD_CAST tmp, &nsName, &localName) == 0) {
8974 if ((attr == NULL) && (type->subtypes == NULL)) {
9007 xmlAttrPtr attr;
9025 attr = node->properties;
9026 while (attr != NULL) {
9027 if (attr->ns == NULL) {
9028 if ((!xmlStrEqual(attr->name, BAD_CAST "id")) &&
9029 (!xmlStrEqual(attr->name, BAD_CAST "itemType"))) {
9031 XML_SCHEMAP_S4S_ATTR_NOT_ALLOWED, NULL, attr);
9033 } else if (xmlStrEqual(attr->ns->href, xmlSchemaNs)) {
9035 XML_SCHEMAP_S4S_ATTR_NOT_ALLOWED, NULL, attr);
9037 attr = attr->next;
9119 xmlAttrPtr attr;
9126 attr = xmlSchemaGetPropNode(node, "name");
9127 if (attr == NULL) {
9135 NULL, attr,
9193 attr = node->properties;
9194 while (attr != NULL) {
9195 if (attr->ns == NULL) {
9196 if (!xmlStrEqual(attr->name, BAD_CAST "id")) {
9198 XML_SCHEMAP_S4S_ATTR_NOT_ALLOWED, NULL, attr);
9200 } else if (xmlStrEqual(attr->ns->href, xmlSchemaNs)) {
9202 XML_SCHEMAP_S4S_ATTR_NOT_ALLOWED, NULL, attr);
9204 attr = attr->next;
9222 attr = node->properties;
9223 while (attr != NULL) {
9224 if (attr->ns == NULL) {
9225 if ((!xmlStrEqual(attr->name, BAD_CAST "id")) &&
9226 (!xmlStrEqual(attr->name, BAD_CAST "name")) &&
9227 (!xmlStrEqual(attr->name, BAD_CAST "final"))) {
9229 XML_SCHEMAP_S4S_ATTR_NOT_ALLOWED, NULL, attr);
9231 } else if (xmlStrEqual(attr->ns->href, xmlSchemaNs)) {
9233 XML_SCHEMAP_S4S_ATTR_NOT_ALLOWED, NULL, attr);
9235 attr = attr->next;
9240 attr = xmlSchemaGetPropNode(node, "final");
9241 if (attr == NULL) {
9257 WXS_BASIC_CAST type, (xmlNodePtr) attr,
9333 xmlAttrPtr attr;
9340 attr = xmlSchemaGetPropNode(node, "ref");
9341 if (attr == NULL) {
9347 attr, &refNs, &ref) != 0) {
9350 xmlSchemaCheckReference(ctxt, schema, node, attr, refNs);
9357 attr = node->properties;
9358 while (attr != NULL) {
9359 if (attr->ns == NULL) {
9360 if ((!xmlStrEqual(attr->name, BAD_CAST "ref")) &&
9361 (!xmlStrEqual(attr->name, BAD_CAST "id")) &&
9362 (!xmlStrEqual(attr->name, BAD_CAST "minOccurs")) &&
9363 (!xmlStrEqual(attr->name, BAD_CAST "maxOccurs"))) {
9365 XML_SCHEMAP_S4S_ATTR_NOT_ALLOWED, NULL, attr);
9367 } else if (xmlStrEqual(attr->ns->href, xmlSchemaNs)) {
9369 XML_SCHEMAP_S4S_ATTR_NOT_ALLOWED, NULL, attr);
9371 attr = attr->next;
9435 xmlAttrPtr attr;
9441 attr = xmlSchemaGetPropNode(node, "name");
9442 if (attr == NULL) {
9448 } else if (xmlSchemaPValAttrNode(ctxt, NULL, attr,
9459 attr = node->properties;
9460 while (attr != NULL) {
9461 if (attr->ns == NULL) {
9462 if ((!xmlStrEqual(attr->name, BAD_CAST "name")) &&
9463 (!xmlStrEqual(attr->name, BAD_CAST "id"))) {
9465 XML_SCHEMAP_S4S_ATTR_NOT_ALLOWED, NULL, attr);
9467 } else if (xmlStrEqual(attr->ns->href, xmlSchemaNs)) {
9469 XML_SCHEMAP_S4S_ATTR_NOT_ALLOWED, NULL, attr);
9471 attr = attr->next;
9614 xmlAttrPtr attr;
9631 attr = xmlSchemaGetPropNode(node, "version");
9632 if (attr != NULL) {
9633 res = xmlSchemaPValAttrNode(ctxt, NULL, NULL, attr,
9638 attr = xmlSchemaGetPropNode(node, "targetNamespace");
9639 if (attr != NULL) {
9640 res = xmlSchemaPValAttrNode(ctxt, NULL, attr,
9648 attr = xmlSchemaGetPropNode(node, "elementFormDefault");
9649 if (attr != NULL) {
9650 val = xmlSchemaGetNodeContent(ctxt, (xmlNodePtr) attr);
9657 NULL, (xmlNodePtr) attr, NULL,
9661 attr = xmlSchemaGetPropNode(node, "attributeFormDefault");
9662 if (attr != NULL) {
9663 val = xmlSchemaGetNodeContent(ctxt, (xmlNodePtr) attr);
9670 NULL, (xmlNodePtr) attr, NULL,
9674 attr = xmlSchemaGetPropNode(node, "finalDefault");
9675 if (attr != NULL) {
9676 val = xmlSchemaGetNodeContent(ctxt, (xmlNodePtr) attr);
9687 NULL, (xmlNodePtr) attr, NULL,
9692 attr = xmlSchemaGetPropNode(node, "blockDefault");
9693 if (attr != NULL) {
9694 val = xmlSchemaGetNodeContent(ctxt, (xmlNodePtr) attr);
9703 NULL, (xmlNodePtr) attr, NULL,
10681 xmlAttrPtr attr;
10691 attr = node->properties;
10692 while (attr != NULL) {
10693 if (attr->ns == NULL) {
10694 if ((!xmlStrEqual(attr->name, BAD_CAST "id")) &&
10695 (!xmlStrEqual(attr->name, BAD_CAST "namespace")) &&
10696 (!xmlStrEqual(attr->name, BAD_CAST "schemaLocation"))) {
10698 XML_SCHEMAP_S4S_ATTR_NOT_ALLOWED, NULL, attr);
10700 } else if (xmlStrEqual(attr->ns->href, xmlSchemaNs)) {
10702 XML_SCHEMAP_S4S_ATTR_NOT_ALLOWED, NULL, attr);
10704 attr = attr->next;
10828 xmlAttrPtr attr;
10839 attr = node->properties;
10840 while (attr != NULL) {
10841 if (attr->ns == NULL) {
10842 if ((!xmlStrEqual(attr->name, BAD_CAST "id")) &&
10843 (!xmlStrEqual(attr->name, BAD_CAST "schemaLocation"))) {
10845 XML_SCHEMAP_S4S_ATTR_NOT_ALLOWED, NULL, attr);
10847 } else if (xmlStrEqual(attr->ns->href, xmlSchemaNs)) {
10849 XML_SCHEMAP_S4S_ATTR_NOT_ALLOWED, NULL, attr);
10851 attr = attr->next;
10861 attr = xmlSchemaGetPropNode(node, "schemaLocation");
10862 if (attr != NULL) {
10866 if (xmlSchemaPValAttrNode(pctxt, NULL, attr,
11186 xmlAttrPtr attr;
11219 attr = node->properties;
11220 while (attr != NULL) {
11221 if (attr->ns == NULL) {
11222 if ((!xmlStrEqual(attr->name, BAD_CAST "id")) &&
11223 (!xmlStrEqual(attr->name, BAD_CAST "maxOccurs")) &&
11224 (!xmlStrEqual(attr->name, BAD_CAST "minOccurs"))) {
11226 XML_SCHEMAP_S4S_ATTR_NOT_ALLOWED, NULL, attr);
11228 } else if (xmlStrEqual(attr->ns->href, xmlSchemaNs)) {
11230 XML_SCHEMAP_S4S_ATTR_NOT_ALLOWED, NULL, attr);
11232 attr = attr->next;
11238 attr = node->properties;
11239 while (attr != NULL) {
11240 if (attr->ns == NULL) {
11241 if (!xmlStrEqual(attr->name, BAD_CAST "id")) {
11243 XML_SCHEMAP_S4S_ATTR_NOT_ALLOWED, NULL, attr);
11245 } else if (xmlStrEqual(attr->ns->href, xmlSchemaNs)) {
11247 XML_SCHEMAP_S4S_ATTR_NOT_ALLOWED, NULL, attr);
11249 attr = attr->next;
11450 xmlAttrPtr attr;
11461 attr = node->properties;
11462 while (attr != NULL) {
11463 if (attr->ns == NULL) {
11464 if ((!xmlStrEqual(attr->name, BAD_CAST "id")) &&
11465 (!xmlStrEqual(attr->name, BAD_CAST "base"))) {
11467 XML_SCHEMAP_S4S_ATTR_NOT_ALLOWED, NULL, attr);
11469 } else if (xmlStrEqual(attr->ns->href, xmlSchemaNs)) {
11471 XML_SCHEMAP_S4S_ATTR_NOT_ALLOWED, NULL, attr);
11473 attr = attr->next;
11754 xmlAttrPtr attr;
11765 attr = node->properties;
11766 while (attr != NULL) {
11767 if (attr->ns == NULL) {
11768 if ((!xmlStrEqual(attr->name, BAD_CAST "id")) &&
11769 (!xmlStrEqual(attr->name, BAD_CAST "base"))) {
11771 XML_SCHEMAP_S4S_ATTR_NOT_ALLOWED, NULL, attr);
11773 } else if (xmlStrEqual(attr->ns->href, xmlSchemaNs)) {
11775 XML_SCHEMAP_S4S_ATTR_NOT_ALLOWED, NULL, attr);
11777 attr = attr->next;
11890 xmlAttrPtr attr;
11902 attr = node->properties;
11903 while (attr != NULL) {
11904 if (attr->ns == NULL) {
11905 if ((!xmlStrEqual(attr->name, BAD_CAST "id"))) {
11907 XML_SCHEMAP_S4S_ATTR_NOT_ALLOWED, NULL, attr);
11909 } else if (xmlStrEqual(attr->ns->href, xmlSchemaNs)) {
11911 XML_SCHEMAP_S4S_ATTR_NOT_ALLOWED, NULL, attr);
11913 attr = attr->next;
11980 xmlAttrPtr attr;
11991 attr = node->properties;
11992 while (attr != NULL) {
11993 if (attr->ns == NULL) {
11994 if ((!xmlStrEqual(attr->name, BAD_CAST "id")) &&
11995 (!xmlStrEqual(attr->name, BAD_CAST "mixed")))
11998 XML_SCHEMAP_S4S_ATTR_NOT_ALLOWED, NULL, attr);
12000 } else if (xmlStrEqual(attr->ns->href, xmlSchemaNs)) {
12002 XML_SCHEMAP_S4S_ATTR_NOT_ALLOWED, NULL, attr);
12004 attr = attr->next;
12075 xmlAttrPtr attr;
12089 attr = xmlSchemaGetPropNode(node, "name");
12090 if (attr == NULL) {
12094 } else if (xmlSchemaPValAttrNode(ctxt, NULL, attr,
12140 attr = node->properties;
12141 while (attr != NULL) {
12142 if (attr->ns == NULL) {
12143 if (xmlStrEqual(attr->name, BAD_CAST "id")) {
12148 } else if (xmlStrEqual(attr->name, BAD_CAST "mixed")) {
12153 NULL, (xmlNodePtr) attr))
12159 if (xmlStrEqual(attr->name, BAD_CAST "name")) {
12161 } else if (xmlStrEqual(attr->name, BAD_CAST "abstract")) {
12166 NULL, (xmlNodePtr) attr))
12168 } else if (xmlStrEqual(attr->name, BAD_CAST "final")) {
12173 (xmlNodePtr) attr);
12183 NULL, (xmlNodePtr) attr, NULL,
12188 } else if (xmlStrEqual(attr->name, BAD_CAST "block")) {
12193 (xmlNodePtr) attr);
12201 NULL, (xmlNodePtr) attr, NULL,
12208 XML_SCHEMAP_S4S_ATTR_NOT_ALLOWED, NULL, attr);
12212 XML_SCHEMAP_S4S_ATTR_NOT_ALLOWED, NULL, attr);
12214 } else if (xmlStrEqual(attr->ns->href, xmlSchemaNs)) {
12216 XML_SCHEMAP_S4S_ATTR_NOT_ALLOWED, NULL, attr);
12218 attr = attr->next;
14342 * This one will transfer all attr. prohibitions
14436 * Shrink attr. uses.
15817 * - attribute uses need to be already inherited (apply attr. prohibitions)
18449 * - expand attr. group references
18452 * - inherit or union attr. wildcards if extending
18453 * - apply attr. use prohibitions if restricting
18932 * @attr: the current attribute list to be processed
19019 * TODO: Report the referenced attr group as QName.
19054 * Pointlessness of attr. prohibs, if a matching attr. decl
19079 "unexpected attr prohibition found");
19105 * Expand the referenced attr. group.
19389 xmlSchemaAttributePtr attr)
19400 if (WXS_ATTR_TYPEDEF(attr) == NULL)
19403 if (attr->defValue != NULL) {
19412 WXS_ATTR_TYPEDEF(attr), XML_SCHEMAS_ID))
19416 NULL, WXS_BASIC_CAST attr,
19431 attr->node, WXS_ATTR_TYPEDEF(attr),
19432 attr->defValue, &(attr->defVal),
19442 NULL, WXS_BASIC_CAST attr,
23832 "attr info not cleared");
23864 xmlSchemaAttrInfoPtr attr;
23866 attr = xmlSchemaGetFreshAttrInfo(vctxt);
23867 if (attr == NULL) {
23872 attr->node = attrNode;
23873 attr->nodeLine = nodeLine;
23874 attr->state = XML_SCHEMAS_ATTR_UNKNOWN;
23875 attr->localName = localName;
23876 attr->nsName = nsName;
23878 attr->flags |= XML_SCHEMA_NODE_INFO_FLAG_OWNED_NAMES;
23884 if (xmlStrEqual(attr->nsName, xmlSchemaInstanceNs)) {
23885 attr->metaType = XML_SCHEMA_ATTR_INFO_META_XSI_NIL;
23888 if (xmlStrEqual(attr->nsName, xmlSchemaInstanceNs)) {
23889 attr->metaType = XML_SCHEMA_ATTR_INFO_META_XSI_TYPE;
23892 if (xmlStrEqual(attr->nsName, xmlSchemaInstanceNs)) {
23893 attr->metaType = XML_SCHEMA_ATTR_INFO_META_XSI_SCHEMA_LOC;
23896 if (xmlStrEqual(attr->nsName, xmlSchemaInstanceNs)) {
23897 attr->metaType = XML_SCHEMA_ATTR_INFO_META_XSI_NO_NS_SCHEMA_LOC;
23899 } else if (xmlStrEqual(attr->nsName, xmlNamespaceNs)) {
23900 attr->metaType = XML_SCHEMA_ATTR_INFO_META_XMLNS;
23903 attr->value = value;
23905 attr->flags |= XML_SCHEMA_NODE_INFO_FLAG_OWNED_VALUES;
23906 if (attr->metaType != 0)
23907 attr->state = XML_SCHEMAS_ATTR_META;
25058 xmlSchemaAttrInfoPtr attr;
25063 attr = vctxt->attrInfos[i];
25064 if (attr->flags & XML_SCHEMA_NODE_INFO_FLAG_OWNED_NAMES) {
25065 if (attr->localName != NULL)
25066 xmlFree((xmlChar *) attr->localName);
25067 if (attr->nsName != NULL)
25068 xmlFree((xmlChar *) attr->nsName);
25070 if (attr->flags & XML_SCHEMA_NODE_INFO_FLAG_OWNED_VALUES) {
25071 if (attr->value != NULL)
25072 xmlFree((xmlChar *) attr->value);
25074 if (attr->val != NULL) {
25075 xmlSchemaFreeValue(attr->val);
25076 attr->val = NULL;
25078 memset(attr, 0, sizeof(xmlSchemaAttrInfo));
25587 if (xmlSchemaCompareValuesWhtsp(attr->val,
25589 attr->use->defVal,
25602 if (xmlSchemaCompareValuesWhtsp(attr->val,
27534 xmlSchemaAttrInfoPtr attr;
27540 attr = ctxt->attrInfos[i];
27541 xmlFree(attr);
27709 xmlAttrPtr attr;
27750 attr = node->properties;
27752 if (attr->ns != NULL)
27753 nsName = attr->ns->href;
27757 (xmlNodePtr) attr,
27763 attr->name, nsName, 0,
27764 xmlNodeListGetString(attr->doc, attr->children, 1), 1);
27770 attr = attr->next;
27771 } while (attr);