• 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 refs:facet

1707 	    *buf = xmlStrdup(BAD_CAST "facet '");
1783 xmlSchemaFacetPtr facet;
1797 for (facet = type->facets; facet != NULL; facet = facet->next) {
1798 if (facet->type != XML_SCHEMA_FACET_ENUMERATION)
1801 res = xmlSchemaGetCanonValueWhtspExt(facet->val,
1824 * The enumeration facet of a type restricts the enumeration
1825 * facet of the ancestor type; i.e., such restricted enumerations
2614 xmlSchemaFacetPtr facet,
2628 * facet to be given.
2631 facetType = facet->type;
2633 msg = xmlStrcat(msg, BAD_CAST "facet '");
2654 snprintf(len, 24, "%lu", xmlSchemaGetFacetValueAsULong(facet));
2683 facet->value);
2688 facet->value);
2693 facet->value);
2698 facet->value);
2703 facet->value);
2708 facet->value);
2713 facet->value);
2715 msg = xmlStrcat(msg, BAD_CAST "The value '%s' is not facet-valid.\n");
2718 msg = xmlStrcat(msg, BAD_CAST "The value is not facet-valid.\n");
2991 * @facet: the illegal facet
2993 * Reports an illegal facet for atomic simple types.
3000 xmlSchemaFacetPtr facet)
3006 "%s: The facet '%s' is not allowed on types derived from the "
3008 BAD_CAST des, xmlSchemaFacetTypeToString(facet->type),
3021 * @facet: the illegal facet
3023 * Reports an illegal facet for <list> and <union>.
3029 xmlSchemaFacetPtr facet)
3036 "%s: The facet '%s' is not allowed.\n",
3037 BAD_CAST des, xmlSchemaFacetTypeToString(facet->type));
3917 * @facet: a schema facet structure
3922 xmlSchemaFreeFacet(xmlSchemaFacetPtr facet)
3924 if (facet == NULL)
3926 if (facet->val != NULL)
3927 xmlSchemaFreeValue(facet->val);
3928 if (facet->regexp != NULL)
3929 xmlRegFreeRegexp(facet->regexp);
3930 if (facet->annot != NULL)
3931 xmlSchemaFreeAnnot(facet->annot);
3932 xmlFree(facet);
3949 xmlSchemaFacetPtr facet, next;
3951 facet = type->facets;
3952 while (facet != NULL) {
3953 next = facet->next;
3954 xmlSchemaFreeFacet(facet);
3955 facet = next;
6614 xmlSchemaFacetPtr facet;
6621 facet = xmlSchemaNewFacet();
6622 if (facet == NULL) {
6623 xmlSchemaPErrMemory(ctxt, "allocating facet", node);
6626 facet->node = node;
6631 xmlSchemaFreeFacet(facet);
6635 facet->type = XML_SCHEMA_FACET_MININCLUSIVE;
6637 facet->type = XML_SCHEMA_FACET_MINEXCLUSIVE;
6639 facet->type = XML_SCHEMA_FACET_MAXINCLUSIVE;
6641 facet->type = XML_SCHEMA_FACET_MAXEXCLUSIVE;
6643 facet->type = XML_SCHEMA_FACET_TOTALDIGITS;
6645 facet->type = XML_SCHEMA_FACET_FRACTIONDIGITS;
6647 facet->type = XML_SCHEMA_FACET_PATTERN;
6649 facet->type = XML_SCHEMA_FACET_ENUMERATION;
6651 facet->type = XML_SCHEMA_FACET_WHITESPACE;
6653 facet->type = XML_SCHEMA_FACET_LENGTH;
6655 facet->type = XML_SCHEMA_FACET_MAXLENGTH;
6657 facet->type = XML_SCHEMA_FACET_MINLENGTH;
6660 "Unknown facet type %s\n", node->name, NULL);
6661 xmlSchemaFreeFacet(facet);
6665 facet->value = value;
6666 if ((facet->type != XML_SCHEMA_FACET_PATTERN) &&
6667 (facet->type != XML_SCHEMA_FACET_ENUMERATION)) {
6673 facet->fixed = 1;
6679 facet->annot = xmlSchemaParseAnnotation(ctxt, child, 1);
6687 return (facet);
11627 xmlSchemaFacetPtr facet, lastfacet = NULL;
11653 facet = xmlSchemaParseFacet(ctxt, schema, child);
11654 if (facet != NULL) {
11656 type->facets = facet;
11658 lastfacet->next = facet;
11659 lastfacet = facet;
11670 facet = type->facets;
11675 xmlSchemaPErrMemory(ctxt, "allocating a facet link", NULL);
11679 facetLink->facet = facet;
11686 facet = facet->next;
11687 } while (facet != NULL);
15199 * 1.3.1 DF must be an allowed constraining facet for the {primitive
15204 xmlSchemaFacetPtr facet;
15213 facet = type->facets;
15215 if (xmlSchemaIsBuiltInTypeFacet(primitive, facet->type) == 0) {
15219 type, primitive, facet);
15221 facet = facet->next;
15222 } while (facet != NULL);
15227 * SPEC (1.3.2) "If there is a facet of the same kind in the {facets}
15280 xmlSchemaFacetPtr facet;
15301 * facet component.
15302 * OPTIMIZE TODO: the S4S already disallows any facet
15306 facet = type->facets;
15308 if (facet->type != XML_SCHEMA_FACET_WHITESPACE) {
15311 type, facet);
15314 facet = facet->next;
15315 } while (facet != NULL);
15391 xmlSchemaFacetPtr facet;
15395 * and enumeration facet components are allowed among the {facets}.
15397 facet = type->facets;
15399 switch (facet->type) {
15414 type, facet);
15422 facet = facet->next;
15423 } while (facet != NULL);
15575 * 3.3.2.4 Only pattern and enumeration facet components are
15579 xmlSchemaFacetPtr facet;
15582 facet = type->facets;
15584 if ((facet->type != XML_SCHEMA_FACET_PATTERN) &&
15585 (facet->type != XML_SCHEMA_FACET_ENUMERATION)) {
15588 type, facet);
15591 facet = facet->next;
15592 } while (facet != NULL);
17072 "The base type's facet is 'fixed', thus the value must not " \
17125 xmlSchemaFacetPtr facet, bfacet,
17153 * when a facet of the same kind occurs in both S and the
17169 facet = cur->facet;
17170 switch (facet->type) {
17172 flength = facet; break;
17174 fminlen = facet; break;
17176 fmininc = facet; break;
17178 fminexc = facet; break;
17180 fmaxlen = facet; break;
17182 fmaxinc = facet; break;
17184 fmaxexc = facet; break;
17186 ftotdig = facet; break;
17188 ffracdig = facet; break;
17194 facet = cur->facet;
17195 switch (facet->type) {
17197 bflength = facet; break;
17199 bfminlen = facet; break;
17201 bfmininc = facet; break;
17203 bfminexc = facet; break;
17205 bfmaxlen = facet; break;
17207 bfmaxinc = facet; break;
17209 bfmaxexc = facet; break;
17211 bftotdig = facet; break;
17213 bffracdig = facet; break;
17587 bfacet = cur->facet;
17596 * Search for a duplicate facet in the current type.
17602 facet = link->facet;
17603 if (facet->type == bfacet->type) {
17604 switch (facet->type) {
17609 if (facet->whitespace < bfacet->whitespace) {
17610 FACET_RESTR_ERR(facet,
17616 (facet->whitespace != bfacet->whitespace)) {
17617 FACET_RESTR_FIXED_ERR(facet)
17629 * If no duplicate was found: add the base types's facet
17637 "deriving facets, creating a facet link", NULL);
17640 link->facet = cur->facet;
17768 * Evaluate the whitespace-facet value.
17780 if (lin->facet->type == XML_SCHEMA_FACET_WHITESPACE) {
17781 switch (lin->facet->whitespace) {
18120 * with a set of facet components"
18519 * @facet: the facet
18530 xmlSchemaCheckFacet(xmlSchemaFacetPtr facet,
18537 if ((facet == NULL) || (typeDecl == NULL))
18548 switch (facet->type) {
18571 * on the facet. In this implementation of XML Schemata the
18572 * type holding a facet, won't be a built-in type.
18599 * facet->node is just the node holding the facet
18601 * of the facet.
18604 ACTXT_CAST pctxt, facet->node, base,
18605 facet->value, &(facet->val), 1, 1, 0);
18611 XML_SCHEMAP_INTERNAL, facet->node, NULL,
18614 "facet '%s' against the base type",
18615 facet->value, xmlSchemaFacetTypeToString(facet->type));
18625 ret, facet->node, WXS_BASIC_CAST facet,
18626 "The value '%s' of the facet does not validate "
18628 facet->value,
18634 } else if (facet->val == NULL) {
18644 facet->regexp = xmlRegexpCompile(facet->value);
18645 if (facet->regexp == NULL) {
18650 ret, facet->node, WXS_BASIC_CAST typeDecl,
18651 "The value '%s' of the facet 'pattern' is not a "
18653 facet->value, NULL);
18663 if (facet->type == XML_SCHEMA_FACET_TOTALDIGITS) {
18666 facet->value, &(facet->val));
18670 facet->value, &(facet->val));
18677 "validating facet value");
18686 ret, facet->node, WXS_BASIC_CAST typeDecl,
18687 "The value '%s' of the facet '%s' is not a valid '%s'",
18688 facet->value,
18689 xmlSchemaFacetTypeToString(facet->type),
18690 (facet->type != XML_SCHEMA_FACET_TOTALDIGITS) ?
18699 if (xmlStrEqual(facet->value, BAD_CAST "preserve")) {
18700 facet->whitespace = XML_SCHEMAS_FACET_PRESERVE;
18701 } else if (xmlStrEqual(facet->value, BAD_CAST "replace")) {
18702 facet->whitespace = XML_SCHEMAS_FACET_REPLACE;
18703 } else if (xmlStrEqual(facet->value, BAD_CAST "collapse")) {
18704 facet->whitespace = XML_SCHEMAS_FACET_COLLAPSE;
18711 ret, facet->node, WXS_BASIC_CAST typeDecl,
18712 "The value '%s' of the facet 'whitespace' is not "
18713 "valid", facet->value, NULL);
18748 xmlSchemaFacetPtr facet = typeDecl->facets;
18759 while (facet != NULL) {
18760 res = xmlSchemaCheckFacet(facet, typeDecl, pctxt, name);
18762 facet = facet->next;
21381 * @type: the facet type
21385 * Returns the char string representation of the facet type if the
21386 * type is a facet and an "Internal Error" string otherwise.
21449 * For list types the facet "whiteSpace" is fixed to "collapse".
24063 xmlSchemaFacetPtr facet;
24114 switch (facetLink->facet->type) {
24122 ret = xmlSchemaValidateLengthFacetWhtsp(facetLink->facet,
24126 ret = xmlSchemaValidateFacetWhtsp(facetLink->facet, ws,
24132 "validating against a atomic type facet");
24137 value, len, type, facetLink->facet, NULL, NULL, NULL);
24156 switch (facetLink->facet->type) {
24160 ret = xmlSchemaValidateListSimpleTypeFacet(facetLink->facet,
24168 "validating against a list type facet");
24173 value, length, type, facetLink->facet, NULL, NULL, NULL);
24195 for (facet = tmpType->facets; facet != NULL; facet = facet->next) {
24196 if (facet->type != XML_SCHEMA_FACET_ENUMERATION)
24199 ret = xmlSchemaAreValuesEqual(facet->val, val);
24204 "validating against an enumeration facet");
24240 facet = NULL;
24245 if (facetLink->facet->type != XML_SCHEMA_FACET_PATTERN)
24252 ret = xmlRegexpExec(facetLink->facet->regexp, value);
24257 "validating against a pattern facet");
24261 * Save the last non-validating facet.
24263 facet = facetLink->facet;
24270 value, 0, type, facet, NULL, NULL, NULL);
24539 * the list type has an enum or pattern facet.