• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/timemachine/libxml2-2.7.2/

Lines Matching defs:use

15  *   - if we don't intend to use the schema for schemas, we
325 * use pointer comparison for those values.
519 xmlSchemaAttributeUsePtr next; /* The next attr. use. */
602 xmlSchemaPtr schema; /* The main schema in use */
950 xmlSchemaAttributeUsePtr use; /* the attribute use */
971 xmlSchemaPtr schema; /* The schema in use */
1124 return(BAD_CAST "attribute use");
1155 return(BAD_CAST "[helper component] attribute use prohibition");
1639 *buf = xmlStrdup(BAD_CAST "attribute use ");
2957 * Reports an attribute use error during parsing.
3729 * @use: an attribute use
3731 * Deallocates an attribute use structure.
3734 xmlSchemaFreeAttributeUse(xmlSchemaAttributeUsePtr use)
3736 if (use == NULL)
3738 if (use->annot != NULL)
3739 xmlSchemaFreeAnnot(use->annot);
3740 if (use->defVal != NULL)
3741 xmlSchemaFreeValue(use->defVal);
3742 xmlFree(use);
3747 * @prohib: an attribute use prohibition
3749 * Deallocates an attribute use structure.
4335 * Dumps a list of attribute use components.
4340 xmlSchemaAttributeUsePtr use;
4352 use = uses->items[i];
4353 if (use->type == XML_SCHEMA_EXTRA_ATTR_USE_PROHIB) {
4355 prohib = (xmlSchemaAttributeUseProhibPtr) use;
4358 } else if (use->type == XML_SCHEMA_EXTRA_QNAMEREF) {
4360 ref = (xmlSchemaQNameRefPtr) use;
4364 fprintf(output, " [use] ");
4365 name = WXS_ATTRUSE_DECL_NAME(use);
4366 tns = WXS_ATTRUSE_DECL_TNS(use);
5421 "allocating attribute use prohibition", NULL);
6280 * TODO: Should we use the S4S error codes instead?
7088 xmlSchemaAttributeUsePtr use = NULL;
7158 if (xmlStrEqual(attr->name, BAD_CAST "use")) {
7216 * If default and use are both present, use must have
7225 "The value of the attribute 'use' must be 'optional' "
7277 * Create the attribute use component.
7279 use = xmlSchemaAddAttributeUse(pctxt, node);
7280 if (use == NULL)
7282 use->occurs = occurs;
7293 use->attrDecl = attrDecl;
7306 * Create the attribute use component.
7308 use = xmlSchemaAddAttributeUse(pctxt, node);
7309 if (use == NULL)
7314 WXS_ADD_PENDING(pctxt, use);
7315 use->occurs = occurs;
7327 use->attrDecl = WXS_ATTR_CAST ref;
7332 use->defValue = defValue;
7334 use->flags |= XML_SCHEMA_ATTR_USE_FIXED;
7362 "Skipping attribute use prohibition, since it is "
7370 "Skipping attribute use prohibition, since it is "
7386 use = uses->items[i];
7387 if ((use->type == XML_SCHEMA_EXTRA_ATTR_USE_PROHIB) &&
7388 (tmpName == (WXS_ATTR_PROHIB_CAST use)->name) &&
7389 (tmpNs == (WXS_ATTR_PROHIB_CAST use)->targetNamespace))
7396 "Skipping duplicate attribute use prohibition '%s'",
7425 use->annot = xmlSchemaParseAnnotation(pctxt, child, 1);
7448 if (WXS_ATTRUSE_DECL(use)->typeName != NULL) {
7458 WXS_ATTRUSE_TYPEDEF(use) =
7468 return (WXS_BASIC_CAST use);
9043 * Attribute "itemType". NOTE that we will use the "ref" and "refNs"
10378 * We will use the first <import> that comes with a location.
10750 * Note that it is important to use the original @targetNamespace
11035 "trying to use an already parsed schema for a "
12929 * use a counter to keep track of the number of transtions
13151 * NOTE that now we use the "refDecl" field for this.
14040 * (2.1) "If there is an attribute use in the {attribute
14059 "The 'optional' attribute use is inconsistent "
14060 "with the corresponding 'required' attribute use of "
14100 * constraint of an attribute use be its {value
14134 "attribute use is inconsistent with "
14166 "Neither a matching attribute use, "
14179 * (3) "For each attribute use in the {attribute uses} of the {base type
14181 * use with an {attribute declaration} with the same {name} and
14209 "A matching attribute use for the "
14319 xmlSchemaAttributeUsePtr use;
14382 use = baseUses->items[i];
14389 if ((WXS_ATTRUSE_DECL_NAME(use) == pro->name) &&
14390 (WXS_ATTRUSE_DECL_TNS(use) ==
14403 if ((WXS_ATTRUSE_DECL_NAME(use) ==
14405 (WXS_ATTRUSE_DECL_TNS(use) ==
14418 xmlSchemaItemListAddSize(uses, 2, use);
14424 use = baseUses->items[i];
14431 xmlSchemaItemListAddSize(uses, baseUses->nbItems, use);
15825 xmlSchemaAttributeUsePtr use, tmp;
15829 use = uses->items[i];
15840 if ((WXS_ATTRUSE_DECL_NAME(use) ==
15842 (WXS_ATTRUSE_DECL_TNS(use) ==
15851 xmlSchemaGetComponentDesignation(&str, use),
15869 if (WXS_ATTRUSE_TYPEDEF(use) != NULL) {
15871 WXS_ATTRUSE_TYPEDEF(use), XML_SCHEMAS_ID))
15883 xmlSchemaGetComponentDesignation(&str, use),
16068 * use in the {attribute uses} of the {base type definition}, there
16069 * must be an attribute use in the {attribute uses} of the complex
16076 xmlSchemaAttributeUsePtr use, buse;
16082 use = (WXS_LIST_CAST type->attrUses)->items[j];
16085 if ((WXS_ATTRUSE_DECL_NAME(use) ==
16087 (WXS_ATTRUSE_DECL_TNS(use) ==
16089 (WXS_ATTRUSE_TYPEDEF(use) ==
17578 * for validation, plus we need to use the base type of those
17891 * use a lookup function to access them instead.
18139 * We will use the same node as for the <complexType>
18453 * - apply attr. use prohibitions if restricting
18744 * NOTE: It is intended to use the facets list, instead
19052 * Attribute use prohibitions are removed from the list
19065 xmlSchemaAttributeUsePtr use;
19074 use = list->items[i];
19076 if (use->type == XML_SCHEMA_EXTRA_ATTR_USE_PROHIB) {
19095 xmlSchemaItemListAddSize(prohibs, 2, use);
19098 if ((use->type == XML_SCHEMA_EXTRA_QNAMEREF) &&
19099 ((WXS_QNAME_CAST use)->itemType == XML_SCHEMA_TYPE_ATTRIBUTEGROUP))
19101 if ((WXS_QNAME_CAST use)->item == NULL)
19103 gr = WXS_ATTR_GROUP_CAST (WXS_QNAME_CAST use)->item;
19185 use = list->items[j];
19187 if ((prohib->name == WXS_ATTRUSE_DECL_NAME(use)) &&
19188 (prohib->targetNamespace == WXS_ATTRUSE_DECL_TNS(use)))
19195 "Skipping pointless attribute use prohibition "
19196 "'%s', since a corresponding attribute use "
19269 xmlSchemaAttributeUsePtr use, tmp;
19273 use = uses->items[i];
19283 if ((WXS_ATTRUSE_DECL_NAME(use) ==
19285 (WXS_ATTRUSE_DECL_TNS(use) ==
19294 xmlSchemaGetComponentDesignation(&str, use),
19313 if (WXS_ATTRUSE_TYPEDEF(use) != NULL) {
19315 WXS_ATTRUSE_TYPEDEF(use), XML_SCHEMAS_ID))
19327 xmlSchemaGetComponentDesignation(&str, use),
19375 * @item: an schema attribute declaration/use
19383 * Validates the value constraints of an attribute declaration/use.
19588 * Note: The use of ID as a type definition for elements goes beyond
20060 * @item: an attribute use
20099 * @use: an attribute use
20107 xmlSchemaAttributeUsePtr use)
20109 if ((ctxt == NULL) || (use == NULL))
20111 if ((use->defValue == NULL) || (WXS_ATTRUSE_DECL(use) == NULL) ||
20112 ((WXS_ATTRUSE_DECL(use))->type != XML_SCHEMA_TYPE_ATTRIBUTE))
20117 * "The values of the properties of an attribute use must be as
20123 if (((WXS_ATTRUSE_DECL(use))->defValue != NULL) &&
20124 ((WXS_ATTRUSE_DECL(use))->flags & XML_SCHEMAS_ATTR_FIXED) &&
20125 ((use->flags & XML_SCHEMA_ATTR_USE_FIXED) == 0))
20129 WXS_BASIC_CAST use, NULL,
20131 ", thus the attribute use must also have a 'fixed' value "
20139 if ((use->defVal != NULL) && (WXS_ATTRUSE_TYPEDEF(use) != NULL)) {
20143 * value constraint of the attribute use. We will do it here.
20149 WXS_ATTRUSE_TYPEDEF(use), XML_SCHEMAS_ID))
20153 NULL, WXS_BASIC_CAST use,
20161 use->node, WXS_ATTRUSE_TYPEDEF(use),
20162 use->defValue, &(use->defVal),
20172 NULL, WXS_BASIC_CAST use,
20181 * {value constraint}, then if the attribute use itself has a
20185 if (((WXS_ATTRUSE_DECL(use))->defVal != NULL) &&
20186 (((WXS_ATTRUSE_DECL(use))->flags & XML_SCHEMA_ATTR_USE_FIXED) == 0))
20188 if (! xmlSchemaAreValuesEqual(use->defVal,
20189 (WXS_ATTRUSE_DECL(use))->defVal))
20193 WXS_BASIC_CAST use, NULL,
20194 "The 'fixed' value constraint of the attribute use "
20197 (WXS_ATTRUSE_DECL(use))->defValue);
20394 * Note that, if we are redefining with the use of references
20785 * - if an attribute use, then the attribute declaration
21670 count++; /* TODO: Don't use the schema's dict. */
21697 count++; /* TODO: Don't use the schema's dict. */
24099 * anySimpleType based types), then use the provided
25155 * use with an {attribute declaration} whose {name} matches
25161 * to that attribute use as per Attribute Locally Valid (Use)
25163 * attribute use is the ���context-determined declaration��� for the
25169 iattr->use = attrUse;
25186 * (4) "The {attribute declaration} of each attribute use in
25199 tmpiattr->use = attrUse;
25215 tmpiattr->use = attrUse;
25399 if (iattr->use->defValue != NULL) {
25400 iattr->value = (xmlChar *) iattr->use->defValue;
25401 iattr->val = iattr->use->defVal;
25412 "default/fixed value on an attribute use was "
25425 * VAL TODO: Should we use the *normalized* value? This currently
25508 * Note that the attribute *use* can be unavailable, if
25512 ((iattr->use != NULL) &&
25513 (iattr->use->flags & XML_SCHEMAS_ATTR_FIXED)))
25560 * with respect to an attribute use its *normalized*
25562 * representation of the attribute use's {value
25578 if ((iattr->use != NULL) &&
25579 (iattr->use->defValue != NULL)) {
25580 if (iattr->use->defVal == NULL) {
25585 iattr->vcValue = iattr->use->defValue;
25589 attr->use->defVal,
25592 if (! xmlSchemaAreValuesEqual(iattr->val, iattr->use->defVal))
27206 * we have no access to it, so we'll use an own one.
28430 * Note that we use the same text-function for both, to prevent
28492 * Note that we use the same text-function for ignorableWhitespace
28558 * @input: the input to use for reading the data
28649 * Do a schemas validation of the given resource, it will use the