• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/timemachine/gettext-0.17/gnulib-local/lib/libxml/

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);
11619 xmlSchemaFacetPtr facet, lastfacet = NULL;
11645 facet = xmlSchemaParseFacet(ctxt, schema, child);
11646 if (facet != NULL) {
11648 type->facets = facet;
11650 lastfacet->next = facet;
11651 lastfacet = facet;
11662 facet = type->facets;
11667 xmlSchemaPErrMemory(ctxt, "allocating a facet link", NULL);
11671 facetLink->facet = facet;
11678 facet = facet->next;
11679 } while (facet != NULL);
15189 * 1.3.1 DF must be an allowed constraining facet for the {primitive
15194 xmlSchemaFacetPtr facet;
15203 facet = type->facets;
15205 if (xmlSchemaIsBuiltInTypeFacet(primitive, facet->type) == 0) {
15209 type, primitive, facet);
15211 facet = facet->next;
15212 } while (facet != NULL);
15217 * SPEC (1.3.2) "If there is a facet of the same kind in the {facets}
15270 xmlSchemaFacetPtr facet;
15291 * facet component.
15292 * OPTIMIZE TODO: the S4S already disallows any facet
15296 facet = type->facets;
15298 if (facet->type != XML_SCHEMA_FACET_WHITESPACE) {
15301 type, facet);
15304 facet = facet->next;
15305 } while (facet != NULL);
15381 xmlSchemaFacetPtr facet;
15385 * and enumeration facet components are allowed among the {facets}.
15387 facet = type->facets;
15389 switch (facet->type) {
15404 type, facet);
15412 facet = facet->next;
15413 } while (facet != NULL);
15565 * 3.3.2.4 Only pattern and enumeration facet components are
15569 xmlSchemaFacetPtr facet;
15572 facet = type->facets;
15574 if ((facet->type != XML_SCHEMA_FACET_PATTERN) &&
15575 (facet->type != XML_SCHEMA_FACET_ENUMERATION)) {
15578 type, facet);
15581 facet = facet->next;
15582 } while (facet != NULL);
17060 "The base type's facet is 'fixed', thus the value must not " \
17113 xmlSchemaFacetPtr facet, bfacet,
17141 * when a facet of the same kind occurs in both S and the
17157 facet = cur->facet;
17158 switch (facet->type) {
17160 flength = facet; break;
17162 fminlen = facet; break;
17164 fmininc = facet; break;
17166 fminexc = facet; break;
17168 fmaxlen = facet; break;
17170 fmaxinc = facet; break;
17172 fmaxexc = facet; break;
17174 ftotdig = facet; break;
17176 ffracdig = facet; break;
17182 facet = cur->facet;
17183 switch (facet->type) {
17185 bflength = facet; break;
17187 bfminlen = facet; break;
17189 bfmininc = facet; break;
17191 bfminexc = facet; break;
17193 bfmaxlen = facet; break;
17195 bfmaxinc = facet; break;
17197 bfmaxexc = facet; break;
17199 bftotdig = facet; break;
17201 bffracdig = facet; break;
17575 bfacet = cur->facet;
17584 * Search for a duplicate facet in the current type.
17590 facet = link->facet;
17591 if (facet->type == bfacet->type) {
17592 switch (facet->type) {
17597 if (facet->whitespace < bfacet->whitespace) {
17604 (facet->whitespace != bfacet->whitespace)) {
17605 FACET_RESTR_FIXED_ERR(facet)
17617 * If no duplicate was found: add the base types's facet
17625 "deriving facets, creating a facet link", NULL);
17628 link->facet = cur->facet;
17756 * Evaluate the whitespace-facet value.
17768 if (lin->facet->type == XML_SCHEMA_FACET_WHITESPACE) {
17769 switch (lin->facet->whitespace) {
18108 * with a set of facet components"
18507 * @facet: the facet
18518 xmlSchemaCheckFacet(xmlSchemaFacetPtr facet,
18525 if ((facet == NULL) || (typeDecl == NULL))
18536 switch (facet->type) {
18559 * on the facet. In this implementation of XML Schemata the
18560 * type holding a facet, won't be a built-in type.
18587 * facet->node is just the node holding the facet
18589 * of the facet.
18592 ACTXT_CAST pctxt, facet->node, base,
18593 facet->value, &(facet->val), 1, 1, 0);
18599 XML_SCHEMAP_INTERNAL, facet->node, NULL,
18602 "facet '%s' against the base type",
18603 facet->value, xmlSchemaFacetTypeToString(facet->type));
18613 ret, facet->node, WXS_BASIC_CAST facet,
18614 "The value '%s' of the facet does not validate "
18616 facet->value,
18622 } else if (facet->val == NULL) {
18632 facet->regexp = xmlRegexpCompile(facet->value);
18633 if (facet->regexp == NULL) {
18638 ret, facet->node, WXS_BASIC_CAST typeDecl,
18639 "The value '%s' of the facet 'pattern' is not a "
18641 facet->value, NULL);
18651 if (facet->type == XML_SCHEMA_FACET_TOTALDIGITS) {
18654 facet->value, &(facet->val));
18658 facet->value, &(facet->val));
18665 "validating facet value");
18674 ret, facet->node, WXS_BASIC_CAST typeDecl,
18675 "The value '%s' of the facet '%s' is not a valid '%s'",
18676 facet->value,
18677 xmlSchemaFacetTypeToString(facet->type),
18678 (facet->type != XML_SCHEMA_FACET_TOTALDIGITS) ?
18687 if (xmlStrEqual(facet->value, BAD_CAST "preserve")) {
18688 facet->whitespace = XML_SCHEMAS_FACET_PRESERVE;
18689 } else if (xmlStrEqual(facet->value, BAD_CAST "replace")) {
18690 facet->whitespace = XML_SCHEMAS_FACET_REPLACE;
18691 } else if (xmlStrEqual(facet->value, BAD_CAST "collapse")) {
18692 facet->whitespace = XML_SCHEMAS_FACET_COLLAPSE;
18699 ret, facet->node, WXS_BASIC_CAST typeDecl,
18700 "The value '%s' of the facet 'whitespace' is not "
18701 "valid", facet->value, NULL);
18736 xmlSchemaFacetPtr facet = typeDecl->facets;
18747 while (facet != NULL) {
18748 res = xmlSchemaCheckFacet(facet, typeDecl, pctxt, name);
18750 facet = facet->next;
21371 * @type: the facet type
21375 * Returns the char string representation of the facet type if the
21376 * type is a facet and an "Internal Error" string otherwise.
21439 * For list types the facet "whiteSpace" is fixed to "collapse".
24039 xmlSchemaFacetPtr facet;
24090 switch (facetLink->facet->type) {
24098 ret = xmlSchemaValidateLengthFacetWhtsp(facetLink->facet,
24102 ret = xmlSchemaValidateFacetWhtsp(facetLink->facet, ws,
24108 "validating against a atomic type facet");
24113 value, len, type, facetLink->facet, NULL, NULL, NULL);
24132 switch (facetLink->facet->type) {
24136 ret = xmlSchemaValidateListSimpleTypeFacet(facetLink->facet,
24144 "validating against a list type facet");
24149 value, length, type, facetLink->facet, NULL, NULL, NULL);
24171 for (facet = tmpType->facets; facet != NULL; facet = facet->next) {
24172 if (facet->type != XML_SCHEMA_FACET_ENUMERATION)
24175 ret = xmlSchemaAreValuesEqual(facet->val, val);
24180 "validating against an enumeration facet");
24216 facet = NULL;
24221 if (facetLink->facet->type != XML_SCHEMA_FACET_PATTERN)
24228 ret = xmlRegexpExec(facetLink->facet->regexp, value);
24233 "validating against a pattern facet");
24237 * Save the last non-validating facet.
24239 facet = facetLink->facet;
24246 value, 0, type, facet, NULL, NULL, NULL);
24515 * the list type has an enum or pattern facet.