Home | History | Annotate | Download | only in libxml2

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 */
1129 return(BAD_CAST "attribute use");
1160 return(BAD_CAST "[helper component] attribute use prohibition");
1644 *buf = xmlStrdup(BAD_CAST "attribute use ");
1799 * Use the whitespace type of the base type.
2659 * Use a default message.
2978 * Reports an attribute use error during parsing.
3119 * Use default messages.
3750 * @use: an attribute use
3752 * Deallocates an attribute use structure.
3755 xmlSchemaFreeAttributeUse(xmlSchemaAttributeUsePtr use)
3757 if (use == NULL)
3759 if (use->annot != NULL)
3760 xmlSchemaFreeAnnot(use->annot);
3761 if (use->defVal != NULL)
3762 xmlSchemaFreeValue(use->defVal);
3763 xmlFree(use);
3768 * @prohib: an attribute use prohibition
3770 * Deallocates an attribute use structure.
4356 * Dumps a list of attribute use components.
4361 xmlSchemaAttributeUsePtr use;
4373 use = uses->items[i];
4374 if (use->type == XML_SCHEMA_EXTRA_ATTR_USE_PROHIB) {
4376 prohib = (xmlSchemaAttributeUseProhibPtr) use;
4379 } else if (use->type == XML_SCHEMA_EXTRA_QNAMEREF) {
4381 ref = (xmlSchemaQNameRefPtr) use;
4385 fprintf(output, " [use] ");
4386 name = WXS_ATTRUSE_DECL_NAME(use);
4387 tns = WXS_ATTRUSE_DECL_TNS(use);
5442 "allocating attribute use prohibition", NULL);
5955 * TODO: Use xmlSchemaStrip here; it's not exported at this
6301 * TODO: Should we use the S4S error codes instead?
7109 xmlSchemaAttributeUsePtr use = NULL;
7179 if (xmlStrEqual(attr->name, BAD_CAST "use")) {
7237 * If default and use are both present, use must have
7246 "The value of the attribute 'use' must be 'optional' "
7298 * Create the attribute use component.
7300 use = xmlSchemaAddAttributeUse(pctxt, node);
7301 if (use == NULL)
7303 use->occurs = occurs;
7314 use->attrDecl = attrDecl;
7327 * Create the attribute use component.
7329 use = xmlSchemaAddAttributeUse(pctxt, node);
7330 if (use == NULL)
7335 WXS_ADD_PENDING(pctxt, use);
7336 use->occurs = occurs;
7348 use->attrDecl = WXS_ATTR_CAST ref;
7353 use->defValue = defValue;
7355 use->flags |= XML_SCHEMA_ATTR_USE_FIXED;
7383 "Skipping attribute use prohibition, since it is "
7391 "Skipping attribute use prohibition, since it is "
7407 use = uses->items[i];
7408 if ((use->type == XML_SCHEMA_EXTRA_ATTR_USE_PROHIB) &&
7409 (tmpName == (WXS_ATTR_PROHIB_CAST use)->name) &&
7410 (tmpNs == (WXS_ATTR_PROHIB_CAST use)->targetNamespace))
7417 "Skipping duplicate attribute use prohibition '%s'",
7446 use->annot = xmlSchemaParseAnnotation(pctxt, child, 1);
7469 if (WXS_ATTRUSE_DECL(use)->typeName != NULL) {
7479 WXS_ATTRUSE_TYPEDEF(use) =
7489 return (WXS_BASIC_CAST use);
9064 * Attribute "itemType". NOTE that we will use the "ref" and "refNs"
9067 * REVAMP TODO: Use the "base" and "baseNs" fields, since we will remove
10411 * We will use the first <import> that comes with a location.
10783 * Note that it is important to use the original @targetNamespace
13011 * use a counter to keep track of the number of transtions
13249 * NOTE that now we use the "refDecl" field for this.
14138 * (2.1) "If there is an attribute use in the {attribute
14157 "The 'optional' attribute use is inconsistent "
14158 "with the corresponding 'required' attribute use of "
14198 * constraint of an attribute use be its {value
14232 "attribute use is inconsistent with "
14264 "Neither a matching attribute use, "
14277 * (3) "For each attribute use in the {attribute uses} of the {base type
14279 * use with an {attribute declaration} with the same {name} and
14307 "A matching attribute use for the "
14417 xmlSchemaAttributeUsePtr use;
14480 use = baseUses->items[i];
14487 if ((WXS_ATTRUSE_DECL_NAME(use) == pro->name) &&
14488 (WXS_ATTRUSE_DECL_TNS(use) ==
14501 if ((WXS_ATTRUSE_DECL_NAME(use) ==
14503 (WXS_ATTRUSE_DECL_TNS(use) ==
14516 xmlSchemaItemListAddSize(uses, 2, use);
14522 use = baseUses->items[i];
14529 xmlSchemaItemListAddSize(uses, baseUses->nbItems, use);
15925 xmlSchemaAttributeUsePtr use, tmp;
15929 use = uses->items[i];
15940 if ((WXS_ATTRUSE_DECL_NAME(use) ==
15942 (WXS_ATTRUSE_DECL_TNS(use) ==
15951 xmlSchemaGetComponentDesignation(&str, use),
15969 if (WXS_ATTRUSE_TYPEDEF(use) != NULL) {
15971 WXS_ATTRUSE_TYPEDEF(use), XML_SCHEMAS_ID))
15983 xmlSchemaGetComponentDesignation(&str, use),
16168 * use in the {attribute uses} of the {base type definition}, there
16169 * must be an attribute use in the {attribute uses} of the complex
16176 xmlSchemaAttributeUsePtr use, buse;
16182 use = (WXS_LIST_CAST type->attrUses)->items[j];
16185 if ((WXS_ATTRUSE_DECL_NAME(use) ==
16187 (WXS_ATTRUSE_DECL_TNS(use) ==
16189 (WXS_ATTRUSE_TYPEDEF(use) ==
17678 * for validation, plus we need to use the base type of those
17991 * use a lookup function to access them instead.
18239 * We will use the same node as for the <complexType>
18553 * - apply attr. use prohibitions if restricting
18844 * NOTE: It is intended to use the facets list, instead
19152 * Attribute use prohibitions are removed from the list
19165 xmlSchemaAttributeUsePtr use;
19174 use = list->items[i];
19176 if (use->type == XML_SCHEMA_EXTRA_ATTR_USE_PROHIB) {
19195 xmlSchemaItemListAddSize(prohibs, 2, use);
19198 if ((use->type == XML_SCHEMA_EXTRA_QNAMEREF) &&
19199 ((WXS_QNAME_CAST use)->itemType == XML_SCHEMA_TYPE_ATTRIBUTEGROUP))
19201 if ((WXS_QNAME_CAST use)->item == NULL)
19203 gr = WXS_ATTR_GROUP_CAST (WXS_QNAME_CAST use)->item;
19285 use = list->items[j];
19287 if ((prohib->name == WXS_ATTRUSE_DECL_NAME(use)) &&
19288 (prohib->targetNamespace == WXS_ATTRUSE_DECL_TNS(use)))
19295 "Skipping pointless attribute use prohibition "
19296 "'%s', since a corresponding attribute use "
19369 xmlSchemaAttributeUsePtr use, tmp;
19373 use = uses->items[i];
19383 if ((WXS_ATTRUSE_DECL_NAME(use) ==
19385 (WXS_ATTRUSE_DECL_TNS(use) ==
19394 xmlSchemaGetComponentDesignation(&str, use),
19413 if (WXS_ATTRUSE_TYPEDEF(use) != NULL) {
19415 WXS_ATTRUSE_TYPEDEF(use), XML_SCHEMAS_ID))
19427 xmlSchemaGetComponentDesignation(&str, use),
19475 * @item: an schema attribute declaration/use
19483 * Validates the value constraints of an attribute declaration/use.
19688 * Note: The use of ID as a type definition for elements goes beyond
20160 * @item: an attribute use
20199 * @use: an attribute use
20202 * Attribute Use Correct (au-props-correct)
20207 xmlSchemaAttributeUsePtr use)
20209 if ((ctxt == NULL) || (use == NULL))
20211 if ((use->defValue == NULL) || (WXS_ATTRUSE_DECL(use) == NULL) ||
20212 ((WXS_ATTRUSE_DECL(use))->type != XML_SCHEMA_TYPE_ATTRIBUTE))
20217 * "The values of the properties of an attribute use must be as
20218 * described in the property tableau in The Attribute Use Schema
20223 if (((WXS_ATTRUSE_DECL(use))->defValue != NULL) &&
20224 ((WXS_ATTRUSE_DECL(use))->flags & XML_SCHEMAS_ATTR_FIXED) &&
20225 ((use->flags & XML_SCHEMA_ATTR_USE_FIXED) == 0))
20229 WXS_BASIC_CAST use, NULL,
20231 ", thus the attribute use must also have a 'fixed' value "
20239 if ((use->defVal != NULL) && (WXS_ATTRUSE_TYPEDEF(use) != NULL)) {
20243 * value constraint of the attribute use. We will do it here.
20249 WXS_ATTRUSE_TYPEDEF(use), XML_SCHEMAS_ID))
20253 NULL, WXS_BASIC_CAST use,
20261 use->node, WXS_ATTRUSE_TYPEDEF(use),
20262 use->defValue, &(use->defVal),
20272 NULL, WXS_BASIC_CAST use,
20281 * {value constraint}, then if the attribute use itself has a
20285 if (((WXS_ATTRUSE_DECL(use))->defVal != NULL) &&
20286 (((WXS_ATTRUSE_DECL(use))->flags & XML_SCHEMA_ATTR_USE_FIXED) == 0))
20288 if (! xmlSchemaAreValuesEqual(use->defVal,
20289 (WXS_ATTRUSE_DECL(use))->defVal))
20293 WXS_BASIC_CAST use, NULL,
20294 "The 'fixed' value constraint of the attribute use "
20297 (WXS_ATTRUSE_DECL(use))->defValue);
20494 * Note that, if we are redefining with the use of references
20885 * - if an attribute use, then the attribute declaration
21770 count++; /* TODO: Don't use the schema's dict. */
21797 count++; /* TODO: Don't use the schema's dict. */
22830 * TODO: Use memset?
24046 * REVISIT OPTIMIZE TODO: Use a pool of IDC matchers.
24057 * OPTIMIZE TODO: Use a pool of IDC tables??.
24117 * TODO: Use memset instead?
24201 * anySimpleType based types), then use the provided
24290 * XML Schema 1.0 spec. Use the whitespace type of the base type.
24427 * OPTIMIZE TODO: Use flags for:
25190 * Attribute Locally Valid (Use) (cvc-au)
25257 * use with an {attribute declaration} whose {name} matches
25263 * to that attribute use as per Attribute Locally Valid (Use)
25265 * attribute use is the `context-determined declaration` for the
25271 iattr->use = attrUse;
25288 * (4) "The {attribute declaration} of each attribute use in
25301 tmpiattr->use = attrUse;
25317 tmpiattr->use = attrUse;
25502 if (iattr->use->defValue != NULL) {
25503 iattr->value = (xmlChar *) iattr->use->defValue;
25504 iattr->val = iattr->use->defVal;
25515 "default/fixed value on an attribute use was "
25528 * VAL TODO: Should we use the *normalized* value? This currently
25611 * Note that the attribute *use* can be unavailable, if
25615 ((iattr->use != NULL) &&
25616 (iattr->use->flags & XML_SCHEMAS_ATTR_FIXED)))
25661 * SPEC Attribute Locally Valid (Use) (cvc-au)
25663 * with respect to an attribute use its *normalized*
25665 * representation of the attribute use's {value
25681 if ((iattr->use != NULL) &&
25682 (iattr->use->defValue != NULL)) {
25683 if (iattr->use->defVal == NULL) {
25688 iattr->vcValue = iattr->use->defValue;
25692 attr->use->defVal,
25695 if (! xmlSchemaAreValuesEqual(iattr->val, iattr->use->defVal))
25847 * Use the xsi:type attribute for the type definition.
27331 * we have no access to it, so we'll use an own one.
28585 * Note that we use the same text-function for both, to prevent
28647 * Note that we use the same text-function for ignorableWhitespace
28770 * @input: the input to use for reading the data
28862 * Do a schemas validation of the given resource, it will use the