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);
6282 * TODO: Should we use the S4S error codes instead?
7090 xmlSchemaAttributeUsePtr use = NULL;
7160 if (xmlStrEqual(attr->name, BAD_CAST "use")) {
7218 * If default and use are both present, use must have
7227 "The value of the attribute 'use' must be 'optional' "
7279 * Create the attribute use component.
7281 use = xmlSchemaAddAttributeUse(pctxt, node);
7282 if (use == NULL)
7284 use->occurs = occurs;
7295 use->attrDecl = attrDecl;
7308 * Create the attribute use component.
7310 use = xmlSchemaAddAttributeUse(pctxt, node);
7311 if (use == NULL)
7316 WXS_ADD_PENDING(pctxt, use);
7317 use->occurs = occurs;
7329 use->attrDecl = WXS_ATTR_CAST ref;
7334 use->defValue = defValue;
7336 use->flags |= XML_SCHEMA_ATTR_USE_FIXED;
7364 "Skipping attribute use prohibition, since it is "
7372 "Skipping attribute use prohibition, since it is "
7388 use = uses->items[i];
7389 if ((use->type == XML_SCHEMA_EXTRA_ATTR_USE_PROHIB) &&
7390 (tmpName == (WXS_ATTR_PROHIB_CAST use)->name) &&
7391 (tmpNs == (WXS_ATTR_PROHIB_CAST use)->targetNamespace))
7398 "Skipping duplicate attribute use prohibition '%s'",
7427 use->annot = xmlSchemaParseAnnotation(pctxt, child, 1);
7450 if (WXS_ATTRUSE_DECL(use)->typeName != NULL) {
7460 WXS_ATTRUSE_TYPEDEF(use) =
7470 return (WXS_BASIC_CAST use);
9045 * Attribute "itemType". NOTE that we will use the "ref" and "refNs"
10380 * We will use the first <import> that comes with a location.
10752 * Note that it is important to use the original @targetNamespace
11037 "trying to use an already parsed schema for a "
12931 * use a counter to keep track of the number of transtions
13153 * NOTE that now we use the "refDecl" field for this.
14042 * (2.1) "If there is an attribute use in the {attribute
14061 "The 'optional' attribute use is inconsistent "
14062 "with the corresponding 'required' attribute use of "
14102 * constraint of an attribute use be its {value
14136 "attribute use is inconsistent with "
14168 "Neither a matching attribute use, "
14181 * (3) "For each attribute use in the {attribute uses} of the {base type
14183 * use with an {attribute declaration} with the same {name} and
14211 "A matching attribute use for the "
14321 xmlSchemaAttributeUsePtr use;
14384 use = baseUses->items[i];
14391 if ((WXS_ATTRUSE_DECL_NAME(use) == pro->name) &&
14392 (WXS_ATTRUSE_DECL_TNS(use) ==
14405 if ((WXS_ATTRUSE_DECL_NAME(use) ==
14407 (WXS_ATTRUSE_DECL_TNS(use) ==
14420 xmlSchemaItemListAddSize(uses, 2, use);
14426 use = baseUses->items[i];
14433 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) ==
17576 * for validation, plus we need to use the base type of those
17889 * use a lookup function to access them instead.
18137 * We will use the same node as for the <complexType>
18451 * - apply attr. use prohibitions if restricting
18742 * NOTE: It is intended to use the facets list, instead
19050 * Attribute use prohibitions are removed from the list
19063 xmlSchemaAttributeUsePtr use;
19072 use = list->items[i];
19074 if (use->type == XML_SCHEMA_EXTRA_ATTR_USE_PROHIB) {
19093 xmlSchemaItemListAddSize(prohibs, 2, use);
19096 if ((use->type == XML_SCHEMA_EXTRA_QNAMEREF) &&
19097 ((WXS_QNAME_CAST use)->itemType == XML_SCHEMA_TYPE_ATTRIBUTEGROUP))
19099 if ((WXS_QNAME_CAST use)->item == NULL)
19101 gr = WXS_ATTR_GROUP_CAST (WXS_QNAME_CAST use)->item;
19183 use = list->items[j];
19185 if ((prohib->name == WXS_ATTRUSE_DECL_NAME(use)) &&
19186 (prohib->targetNamespace == WXS_ATTRUSE_DECL_TNS(use)))
19193 "Skipping pointless attribute use prohibition "
19194 "'%s', since a corresponding attribute use "
19267 xmlSchemaAttributeUsePtr use, tmp;
19271 use = uses->items[i];
19281 if ((WXS_ATTRUSE_DECL_NAME(use) ==
19283 (WXS_ATTRUSE_DECL_TNS(use) ==
19292 xmlSchemaGetComponentDesignation(&str, use),
19311 if (WXS_ATTRUSE_TYPEDEF(use) != NULL) {
19313 WXS_ATTRUSE_TYPEDEF(use), XML_SCHEMAS_ID))
19325 xmlSchemaGetComponentDesignation(&str, use),
19373 * @item: an schema attribute declaration/use
19381 * Validates the value constraints of an attribute declaration/use.
19586 * Note: The use of ID as a type definition for elements goes beyond
20058 * @item: an attribute use
20097 * @use: an attribute use
20105 xmlSchemaAttributeUsePtr use)
20107 if ((ctxt == NULL) || (use == NULL))
20109 if ((use->defValue == NULL) || (WXS_ATTRUSE_DECL(use) == NULL) ||
20110 ((WXS_ATTRUSE_DECL(use))->type != XML_SCHEMA_TYPE_ATTRIBUTE))
20115 * "The values of the properties of an attribute use must be as
20121 if (((WXS_ATTRUSE_DECL(use))->defValue != NULL) &&
20122 ((WXS_ATTRUSE_DECL(use))->flags & XML_SCHEMAS_ATTR_FIXED) &&
20123 ((use->flags & XML_SCHEMA_ATTR_USE_FIXED) == 0))
20127 WXS_BASIC_CAST use, NULL,
20129 ", thus the attribute use must also have a 'fixed' value "
20137 if ((use->defVal != NULL) && (WXS_ATTRUSE_TYPEDEF(use) != NULL)) {
20141 * value constraint of the attribute use. We will do it here.
20147 WXS_ATTRUSE_TYPEDEF(use), XML_SCHEMAS_ID))
20151 NULL, WXS_BASIC_CAST use,
20159 use->node, WXS_ATTRUSE_TYPEDEF(use),
20160 use->defValue, &(use->defVal),
20170 NULL, WXS_BASIC_CAST use,
20179 * {value constraint}, then if the attribute use itself has a
20183 if (((WXS_ATTRUSE_DECL(use))->defVal != NULL) &&
20184 (((WXS_ATTRUSE_DECL(use))->flags & XML_SCHEMA_ATTR_USE_FIXED) == 0))
20186 if (! xmlSchemaAreValuesEqual(use->defVal,
20187 (WXS_ATTRUSE_DECL(use))->defVal))
20191 WXS_BASIC_CAST use, NULL,
20192 "The 'fixed' value constraint of the attribute use "
20195 (WXS_ATTRUSE_DECL(use))->defValue);
20392 * Note that, if we are redefining with the use of references
20783 * - if an attribute use, then the attribute declaration
21668 count++; /* TODO: Don't use the schema's dict. */
21695 count++; /* TODO: Don't use the schema's dict. */
24097 * anySimpleType based types), then use the provided
25153 * use with an {attribute declaration} whose {name} matches
25159 * to that attribute use as per Attribute Locally Valid (Use)
25161 * attribute use is the �context-determined declaration� for the
25167 iattr->use = attrUse;
25184 * (4) "The {attribute declaration} of each attribute use in
25197 tmpiattr->use = attrUse;
25213 tmpiattr->use = attrUse;
25397 if (iattr->use->defValue != NULL) {
25398 iattr->value = (xmlChar *) iattr->use->defValue;
25399 iattr->val = iattr->use->defVal;
25410 "default/fixed value on an attribute use was "
25423 * VAL TODO: Should we use the *normalized* value? This currently
25506 * Note that the attribute *use* can be unavailable, if
25510 ((iattr->use != NULL) &&
25511 (iattr->use->flags & XML_SCHEMAS_ATTR_FIXED)))
25558 * with respect to an attribute use its *normalized*
25560 * representation of the attribute use's {value
25576 if ((iattr->use != NULL) &&
25577 (iattr->use->defValue != NULL)) {
25578 if (iattr->use->defVal == NULL) {
25583 iattr->vcValue = iattr->use->defValue;
25587 attr->use->defVal,
25590 if (! xmlSchemaAreValuesEqual(iattr->val, iattr->use->defVal))
27204 * we have no access to it, so we'll use an own one.
28428 * Note that we use the same text-function for both, to prevent
28490 * Note that we use the same text-function for ignorableWhitespace
28556 * @input: the input to use for reading the data
28647 * Do a schemas validation of the given resource, it will use the