Lines Matching refs:facet
1788 xmlSchemaFacetPtr facet; in xmlSchemaFormatFacetEnumSet() local
1802 for (facet = type->facets; facet != NULL; facet = facet->next) { in xmlSchemaFormatFacetEnumSet()
1803 if (facet->type != XML_SCHEMA_FACET_ENUMERATION) in xmlSchemaFormatFacetEnumSet()
1806 res = xmlSchemaGetCanonValueWhtspExt(facet->val, in xmlSchemaFormatFacetEnumSet()
2635 xmlSchemaFacetPtr facet, in xmlSchemaFacetErr() argument
2652 facetType = facet->type; in xmlSchemaFacetErr()
2675 snprintf(len, 24, "%lu", xmlSchemaGetFacetValueAsULong(facet)); in xmlSchemaFacetErr()
2704 facet->value); in xmlSchemaFacetErr()
2709 facet->value); in xmlSchemaFacetErr()
2714 facet->value); in xmlSchemaFacetErr()
2719 facet->value); in xmlSchemaFacetErr()
2724 facet->value); in xmlSchemaFacetErr()
2729 facet->value); in xmlSchemaFacetErr()
2734 facet->value); in xmlSchemaFacetErr()
3021 xmlSchemaFacetPtr facet) in xmlSchemaPIllegalFacetAtomicErr() argument
3029 BAD_CAST des, xmlSchemaFacetTypeToString(facet->type), in xmlSchemaPIllegalFacetAtomicErr()
3050 xmlSchemaFacetPtr facet) in xmlSchemaPIllegalFacetListUnionErr() argument
3058 BAD_CAST des, xmlSchemaFacetTypeToString(facet->type)); in xmlSchemaPIllegalFacetListUnionErr()
3943 xmlSchemaFreeFacet(xmlSchemaFacetPtr facet) in xmlSchemaFreeFacet() argument
3945 if (facet == NULL) in xmlSchemaFreeFacet()
3947 if (facet->val != NULL) in xmlSchemaFreeFacet()
3948 xmlSchemaFreeValue(facet->val); in xmlSchemaFreeFacet()
3949 if (facet->regexp != NULL) in xmlSchemaFreeFacet()
3950 xmlRegFreeRegexp(facet->regexp); in xmlSchemaFreeFacet()
3951 if (facet->annot != NULL) in xmlSchemaFreeFacet()
3952 xmlSchemaFreeAnnot(facet->annot); in xmlSchemaFreeFacet()
3953 xmlFree(facet); in xmlSchemaFreeFacet()
3970 xmlSchemaFacetPtr facet, next; in xmlSchemaFreeType() local
3972 facet = type->facets; in xmlSchemaFreeType()
3973 while (facet != NULL) { in xmlSchemaFreeType()
3974 next = facet->next; in xmlSchemaFreeType()
3975 xmlSchemaFreeFacet(facet); in xmlSchemaFreeType()
3976 facet = next; in xmlSchemaFreeType()
6635 xmlSchemaFacetPtr facet; in xmlSchemaParseFacet() local
6642 facet = xmlSchemaNewFacet(); in xmlSchemaParseFacet()
6643 if (facet == NULL) { in xmlSchemaParseFacet()
6647 facet->node = node; in xmlSchemaParseFacet()
6652 xmlSchemaFreeFacet(facet); in xmlSchemaParseFacet()
6656 facet->type = XML_SCHEMA_FACET_MININCLUSIVE; in xmlSchemaParseFacet()
6658 facet->type = XML_SCHEMA_FACET_MINEXCLUSIVE; in xmlSchemaParseFacet()
6660 facet->type = XML_SCHEMA_FACET_MAXINCLUSIVE; in xmlSchemaParseFacet()
6662 facet->type = XML_SCHEMA_FACET_MAXEXCLUSIVE; in xmlSchemaParseFacet()
6664 facet->type = XML_SCHEMA_FACET_TOTALDIGITS; in xmlSchemaParseFacet()
6666 facet->type = XML_SCHEMA_FACET_FRACTIONDIGITS; in xmlSchemaParseFacet()
6668 facet->type = XML_SCHEMA_FACET_PATTERN; in xmlSchemaParseFacet()
6670 facet->type = XML_SCHEMA_FACET_ENUMERATION; in xmlSchemaParseFacet()
6672 facet->type = XML_SCHEMA_FACET_WHITESPACE; in xmlSchemaParseFacet()
6674 facet->type = XML_SCHEMA_FACET_LENGTH; in xmlSchemaParseFacet()
6676 facet->type = XML_SCHEMA_FACET_MAXLENGTH; in xmlSchemaParseFacet()
6678 facet->type = XML_SCHEMA_FACET_MINLENGTH; in xmlSchemaParseFacet()
6682 xmlSchemaFreeFacet(facet); in xmlSchemaParseFacet()
6686 facet->value = value; in xmlSchemaParseFacet()
6687 if ((facet->type != XML_SCHEMA_FACET_PATTERN) && in xmlSchemaParseFacet()
6688 (facet->type != XML_SCHEMA_FACET_ENUMERATION)) { in xmlSchemaParseFacet()
6694 facet->fixed = 1; in xmlSchemaParseFacet()
6700 facet->annot = xmlSchemaParseAnnotation(ctxt, child, 1); in xmlSchemaParseFacet()
6708 return (facet); in xmlSchemaParseFacet()
11661 xmlSchemaFacetPtr facet, lastfacet = NULL; in xmlSchemaParseRestriction() local
11687 facet = xmlSchemaParseFacet(ctxt, schema, child); in xmlSchemaParseRestriction()
11688 if (facet != NULL) { in xmlSchemaParseRestriction()
11690 type->facets = facet; in xmlSchemaParseRestriction()
11692 lastfacet->next = facet; in xmlSchemaParseRestriction()
11693 lastfacet = facet; in xmlSchemaParseRestriction()
11704 facet = type->facets; in xmlSchemaParseRestriction()
11713 facetLink->facet = facet; in xmlSchemaParseRestriction()
11720 facet = facet->next; in xmlSchemaParseRestriction()
11721 } while (facet != NULL); in xmlSchemaParseRestriction()
15303 xmlSchemaFacetPtr facet; in xmlSchemaCheckCOSSTRestricts() local
15312 facet = type->facets; in xmlSchemaCheckCOSSTRestricts()
15314 if (xmlSchemaIsBuiltInTypeFacet(primitive, facet->type) == 0) { in xmlSchemaCheckCOSSTRestricts()
15318 type, primitive, facet); in xmlSchemaCheckCOSSTRestricts()
15320 facet = facet->next; in xmlSchemaCheckCOSSTRestricts()
15321 } while (facet != NULL); in xmlSchemaCheckCOSSTRestricts()
15379 xmlSchemaFacetPtr facet; in xmlSchemaCheckCOSSTRestricts() local
15405 facet = type->facets; in xmlSchemaCheckCOSSTRestricts()
15407 if (facet->type != XML_SCHEMA_FACET_WHITESPACE) { in xmlSchemaCheckCOSSTRestricts()
15410 type, facet); in xmlSchemaCheckCOSSTRestricts()
15413 facet = facet->next; in xmlSchemaCheckCOSSTRestricts()
15414 } while (facet != NULL); in xmlSchemaCheckCOSSTRestricts()
15490 xmlSchemaFacetPtr facet; in xmlSchemaCheckCOSSTRestricts() local
15496 facet = type->facets; in xmlSchemaCheckCOSSTRestricts()
15498 switch (facet->type) { in xmlSchemaCheckCOSSTRestricts()
15513 type, facet); in xmlSchemaCheckCOSSTRestricts()
15521 facet = facet->next; in xmlSchemaCheckCOSSTRestricts()
15522 } while (facet != NULL); in xmlSchemaCheckCOSSTRestricts()
15679 xmlSchemaFacetPtr facet; in xmlSchemaCheckCOSSTRestricts() local
15682 facet = type->facets; in xmlSchemaCheckCOSSTRestricts()
15684 if ((facet->type != XML_SCHEMA_FACET_PATTERN) && in xmlSchemaCheckCOSSTRestricts()
15685 (facet->type != XML_SCHEMA_FACET_ENUMERATION)) { in xmlSchemaCheckCOSSTRestricts()
15688 type, facet); in xmlSchemaCheckCOSSTRestricts()
15691 facet = facet->next; in xmlSchemaCheckCOSSTRestricts()
15692 } while (facet != NULL); in xmlSchemaCheckCOSSTRestricts()
17225 xmlSchemaFacetPtr facet, bfacet, in xmlSchemaDeriveAndValidateFacets() local
17269 facet = cur->facet; in xmlSchemaDeriveAndValidateFacets()
17270 switch (facet->type) { in xmlSchemaDeriveAndValidateFacets()
17272 flength = facet; break; in xmlSchemaDeriveAndValidateFacets()
17274 fminlen = facet; break; in xmlSchemaDeriveAndValidateFacets()
17276 fmininc = facet; break; in xmlSchemaDeriveAndValidateFacets()
17278 fminexc = facet; break; in xmlSchemaDeriveAndValidateFacets()
17280 fmaxlen = facet; break; in xmlSchemaDeriveAndValidateFacets()
17282 fmaxinc = facet; break; in xmlSchemaDeriveAndValidateFacets()
17284 fmaxexc = facet; break; in xmlSchemaDeriveAndValidateFacets()
17286 ftotdig = facet; break; in xmlSchemaDeriveAndValidateFacets()
17288 ffracdig = facet; break; in xmlSchemaDeriveAndValidateFacets()
17294 facet = cur->facet; in xmlSchemaDeriveAndValidateFacets()
17295 switch (facet->type) { in xmlSchemaDeriveAndValidateFacets()
17297 bflength = facet; break; in xmlSchemaDeriveAndValidateFacets()
17299 bfminlen = facet; break; in xmlSchemaDeriveAndValidateFacets()
17301 bfmininc = facet; break; in xmlSchemaDeriveAndValidateFacets()
17303 bfminexc = facet; break; in xmlSchemaDeriveAndValidateFacets()
17305 bfmaxlen = facet; break; in xmlSchemaDeriveAndValidateFacets()
17307 bfmaxinc = facet; break; in xmlSchemaDeriveAndValidateFacets()
17309 bfmaxexc = facet; break; in xmlSchemaDeriveAndValidateFacets()
17311 bftotdig = facet; break; in xmlSchemaDeriveAndValidateFacets()
17313 bffracdig = facet; break; in xmlSchemaDeriveAndValidateFacets()
17687 bfacet = cur->facet; in xmlSchemaDeriveAndValidateFacets()
17702 facet = link->facet; in xmlSchemaDeriveAndValidateFacets()
17703 if (facet->type == bfacet->type) { in xmlSchemaDeriveAndValidateFacets()
17704 switch (facet->type) { in xmlSchemaDeriveAndValidateFacets()
17709 if (facet->whitespace < bfacet->whitespace) { in xmlSchemaDeriveAndValidateFacets()
17710 FACET_RESTR_ERR(facet, in xmlSchemaDeriveAndValidateFacets()
17716 (facet->whitespace != bfacet->whitespace)) { in xmlSchemaDeriveAndValidateFacets()
17717 FACET_RESTR_FIXED_ERR(facet) in xmlSchemaDeriveAndValidateFacets()
17740 link->facet = cur->facet; in xmlSchemaDeriveAndValidateFacets()
17880 if (lin->facet->type == XML_SCHEMA_FACET_WHITESPACE) { in xmlSchemaTypeFixupWhitespace()
17881 switch (lin->facet->whitespace) { in xmlSchemaTypeFixupWhitespace()
18630 xmlSchemaCheckFacet(xmlSchemaFacetPtr facet, in xmlSchemaCheckFacet() argument
18637 if ((facet == NULL) || (typeDecl == NULL)) in xmlSchemaCheckFacet()
18648 switch (facet->type) { in xmlSchemaCheckFacet()
18704 ACTXT_CAST pctxt, facet->node, base, in xmlSchemaCheckFacet()
18705 facet->value, &(facet->val), 1, 1, 0); in xmlSchemaCheckFacet()
18711 XML_SCHEMAP_INTERNAL, facet->node, NULL, in xmlSchemaCheckFacet()
18715 facet->value, xmlSchemaFacetTypeToString(facet->type)); in xmlSchemaCheckFacet()
18725 ret, facet->node, WXS_BASIC_CAST facet, in xmlSchemaCheckFacet()
18728 facet->value, in xmlSchemaCheckFacet()
18734 } else if (facet->val == NULL) { in xmlSchemaCheckFacet()
18744 facet->regexp = xmlRegexpCompile(facet->value); in xmlSchemaCheckFacet()
18745 if (facet->regexp == NULL) { in xmlSchemaCheckFacet()
18750 ret, facet->node, WXS_BASIC_CAST typeDecl, in xmlSchemaCheckFacet()
18753 facet->value, NULL); in xmlSchemaCheckFacet()
18763 if (facet->type == XML_SCHEMA_FACET_TOTALDIGITS) { in xmlSchemaCheckFacet()
18766 facet->value, &(facet->val)); in xmlSchemaCheckFacet()
18770 facet->value, &(facet->val)); in xmlSchemaCheckFacet()
18786 ret, facet->node, WXS_BASIC_CAST typeDecl, in xmlSchemaCheckFacet()
18788 facet->value, in xmlSchemaCheckFacet()
18789 xmlSchemaFacetTypeToString(facet->type), in xmlSchemaCheckFacet()
18790 (facet->type != XML_SCHEMA_FACET_TOTALDIGITS) ? in xmlSchemaCheckFacet()
18799 if (xmlStrEqual(facet->value, BAD_CAST "preserve")) { in xmlSchemaCheckFacet()
18800 facet->whitespace = XML_SCHEMAS_FACET_PRESERVE; in xmlSchemaCheckFacet()
18801 } else if (xmlStrEqual(facet->value, BAD_CAST "replace")) { in xmlSchemaCheckFacet()
18802 facet->whitespace = XML_SCHEMAS_FACET_REPLACE; in xmlSchemaCheckFacet()
18803 } else if (xmlStrEqual(facet->value, BAD_CAST "collapse")) { in xmlSchemaCheckFacet()
18804 facet->whitespace = XML_SCHEMAS_FACET_COLLAPSE; in xmlSchemaCheckFacet()
18811 ret, facet->node, WXS_BASIC_CAST typeDecl, in xmlSchemaCheckFacet()
18813 "valid", facet->value, NULL); in xmlSchemaCheckFacet()
18848 xmlSchemaFacetPtr facet = typeDecl->facets; in xmlSchemaCheckFacetValues() local
18859 while (facet != NULL) { in xmlSchemaCheckFacetValues()
18860 res = xmlSchemaCheckFacet(facet, typeDecl, pctxt, name); in xmlSchemaCheckFacetValues()
18862 facet = facet->next; in xmlSchemaCheckFacetValues() local
24165 xmlSchemaFacetPtr facet; in xmlSchemaValidateFacets() local
24216 switch (facetLink->facet->type) { in xmlSchemaValidateFacets()
24224 ret = xmlSchemaValidateLengthFacetWhtsp(facetLink->facet, in xmlSchemaValidateFacets()
24228 ret = xmlSchemaValidateFacetWhtsp(facetLink->facet, ws, in xmlSchemaValidateFacets()
24239 value, len, type, facetLink->facet, NULL, NULL, NULL); in xmlSchemaValidateFacets()
24258 switch (facetLink->facet->type) { in xmlSchemaValidateFacets()
24262 ret = xmlSchemaValidateListSimpleTypeFacet(facetLink->facet, in xmlSchemaValidateFacets()
24275 value, length, type, facetLink->facet, NULL, NULL, NULL); in xmlSchemaValidateFacets()
24297 for (facet = tmpType->facets; facet != NULL; facet = facet->next) { in xmlSchemaValidateFacets()
24298 if (facet->type != XML_SCHEMA_FACET_ENUMERATION) in xmlSchemaValidateFacets()
24301 ret = xmlSchemaAreValuesEqual(facet->val, val); in xmlSchemaValidateFacets()
24342 facet = NULL; in xmlSchemaValidateFacets()
24347 if (facetLink->facet->type != XML_SCHEMA_FACET_PATTERN) in xmlSchemaValidateFacets()
24354 ret = xmlRegexpExec(facetLink->facet->regexp, value); in xmlSchemaValidateFacets()
24365 facet = facetLink->facet; in xmlSchemaValidateFacets()
24372 value, 0, type, facet, NULL, NULL, NULL); in xmlSchemaValidateFacets()