• Home
  • Raw
  • Download

Lines Matching refs:facet

1797     xmlSchemaFacetPtr facet;  in xmlSchemaFormatFacetEnumSet()  local
1811 for (facet = type->facets; facet != NULL; facet = facet->next) { in xmlSchemaFormatFacetEnumSet()
1812 if (facet->type != XML_SCHEMA_FACET_ENUMERATION) in xmlSchemaFormatFacetEnumSet()
1815 res = xmlSchemaGetCanonValueWhtspExt(facet->val, in xmlSchemaFormatFacetEnumSet()
2653 xmlSchemaFacetPtr facet, in xmlSchemaFacetErr() argument
2670 facetType = facet->type; in xmlSchemaFacetErr()
2693 snprintf(len, 24, "%lu", xmlSchemaGetFacetValueAsULong(facet)); in xmlSchemaFacetErr()
2722 facet->value); in xmlSchemaFacetErr()
2727 facet->value); in xmlSchemaFacetErr()
2732 facet->value); in xmlSchemaFacetErr()
2737 facet->value); in xmlSchemaFacetErr()
2742 facet->value); in xmlSchemaFacetErr()
2747 facet->value); in xmlSchemaFacetErr()
2752 facet->value); in xmlSchemaFacetErr()
3039 xmlSchemaFacetPtr facet) in xmlSchemaPIllegalFacetAtomicErr() argument
3047 BAD_CAST des, xmlSchemaFacetTypeToString(facet->type), in xmlSchemaPIllegalFacetAtomicErr()
3068 xmlSchemaFacetPtr facet) in xmlSchemaPIllegalFacetListUnionErr() argument
3076 BAD_CAST des, xmlSchemaFacetTypeToString(facet->type)); in xmlSchemaPIllegalFacetListUnionErr()
3971 xmlSchemaFreeFacet(xmlSchemaFacetPtr facet) in xmlSchemaFreeFacet() argument
3973 if (facet == NULL) in xmlSchemaFreeFacet()
3975 if (facet->val != NULL) in xmlSchemaFreeFacet()
3976 xmlSchemaFreeValue(facet->val); in xmlSchemaFreeFacet()
3977 if (facet->regexp != NULL) in xmlSchemaFreeFacet()
3978 xmlRegFreeRegexp(facet->regexp); in xmlSchemaFreeFacet()
3979 if (facet->annot != NULL) in xmlSchemaFreeFacet()
3980 xmlSchemaFreeAnnot(facet->annot); in xmlSchemaFreeFacet()
3981 xmlFree(facet); in xmlSchemaFreeFacet()
3998 xmlSchemaFacetPtr facet, next; in xmlSchemaFreeType() local
4000 facet = type->facets; in xmlSchemaFreeType()
4001 while (facet != NULL) { in xmlSchemaFreeType()
4002 next = facet->next; in xmlSchemaFreeType()
4003 xmlSchemaFreeFacet(facet); in xmlSchemaFreeType()
4004 facet = next; in xmlSchemaFreeType()
6675 xmlSchemaFacetPtr facet; in xmlSchemaParseFacet() local
6682 facet = xmlSchemaNewFacet(); in xmlSchemaParseFacet()
6683 if (facet == NULL) { in xmlSchemaParseFacet()
6687 facet->node = node; in xmlSchemaParseFacet()
6692 xmlSchemaFreeFacet(facet); in xmlSchemaParseFacet()
6696 facet->type = XML_SCHEMA_FACET_MININCLUSIVE; in xmlSchemaParseFacet()
6698 facet->type = XML_SCHEMA_FACET_MINEXCLUSIVE; in xmlSchemaParseFacet()
6700 facet->type = XML_SCHEMA_FACET_MAXINCLUSIVE; in xmlSchemaParseFacet()
6702 facet->type = XML_SCHEMA_FACET_MAXEXCLUSIVE; in xmlSchemaParseFacet()
6704 facet->type = XML_SCHEMA_FACET_TOTALDIGITS; in xmlSchemaParseFacet()
6706 facet->type = XML_SCHEMA_FACET_FRACTIONDIGITS; in xmlSchemaParseFacet()
6708 facet->type = XML_SCHEMA_FACET_PATTERN; in xmlSchemaParseFacet()
6710 facet->type = XML_SCHEMA_FACET_ENUMERATION; in xmlSchemaParseFacet()
6712 facet->type = XML_SCHEMA_FACET_WHITESPACE; in xmlSchemaParseFacet()
6714 facet->type = XML_SCHEMA_FACET_LENGTH; in xmlSchemaParseFacet()
6716 facet->type = XML_SCHEMA_FACET_MAXLENGTH; in xmlSchemaParseFacet()
6718 facet->type = XML_SCHEMA_FACET_MINLENGTH; in xmlSchemaParseFacet()
6722 xmlSchemaFreeFacet(facet); in xmlSchemaParseFacet()
6726 facet->value = value; in xmlSchemaParseFacet()
6727 if ((facet->type != XML_SCHEMA_FACET_PATTERN) && in xmlSchemaParseFacet()
6728 (facet->type != XML_SCHEMA_FACET_ENUMERATION)) { in xmlSchemaParseFacet()
6734 facet->fixed = 1; in xmlSchemaParseFacet()
6740 facet->annot = xmlSchemaParseAnnotation(ctxt, child, 1); in xmlSchemaParseFacet()
6748 return (facet); in xmlSchemaParseFacet()
11700 xmlSchemaFacetPtr facet, lastfacet = NULL; in xmlSchemaParseRestriction() local
11726 facet = xmlSchemaParseFacet(ctxt, schema, child); in xmlSchemaParseRestriction()
11727 if (facet != NULL) { in xmlSchemaParseRestriction()
11729 type->facets = facet; in xmlSchemaParseRestriction()
11731 lastfacet->next = facet; in xmlSchemaParseRestriction()
11732 lastfacet = facet; in xmlSchemaParseRestriction()
11743 facet = type->facets; in xmlSchemaParseRestriction()
11752 facetLink->facet = facet; in xmlSchemaParseRestriction()
11759 facet = facet->next; in xmlSchemaParseRestriction()
11760 } while (facet != NULL); in xmlSchemaParseRestriction()
15342 xmlSchemaFacetPtr facet; in xmlSchemaCheckCOSSTRestricts() local
15351 facet = type->facets; in xmlSchemaCheckCOSSTRestricts()
15353 if (xmlSchemaIsBuiltInTypeFacet(primitive, facet->type) == 0) { in xmlSchemaCheckCOSSTRestricts()
15357 type, primitive, facet); in xmlSchemaCheckCOSSTRestricts()
15359 facet = facet->next; in xmlSchemaCheckCOSSTRestricts()
15360 } while (facet != NULL); in xmlSchemaCheckCOSSTRestricts()
15418 xmlSchemaFacetPtr facet; in xmlSchemaCheckCOSSTRestricts() local
15444 facet = type->facets; in xmlSchemaCheckCOSSTRestricts()
15446 if (facet->type != XML_SCHEMA_FACET_WHITESPACE) { in xmlSchemaCheckCOSSTRestricts()
15449 type, facet); in xmlSchemaCheckCOSSTRestricts()
15452 facet = facet->next; in xmlSchemaCheckCOSSTRestricts()
15453 } while (facet != NULL); in xmlSchemaCheckCOSSTRestricts()
15529 xmlSchemaFacetPtr facet; in xmlSchemaCheckCOSSTRestricts() local
15535 facet = type->facets; in xmlSchemaCheckCOSSTRestricts()
15537 switch (facet->type) { in xmlSchemaCheckCOSSTRestricts()
15552 type, facet); in xmlSchemaCheckCOSSTRestricts()
15560 facet = facet->next; in xmlSchemaCheckCOSSTRestricts()
15561 } while (facet != NULL); in xmlSchemaCheckCOSSTRestricts()
15718 xmlSchemaFacetPtr facet; in xmlSchemaCheckCOSSTRestricts() local
15721 facet = type->facets; in xmlSchemaCheckCOSSTRestricts()
15723 if ((facet->type != XML_SCHEMA_FACET_PATTERN) && in xmlSchemaCheckCOSSTRestricts()
15724 (facet->type != XML_SCHEMA_FACET_ENUMERATION)) { in xmlSchemaCheckCOSSTRestricts()
15727 type, facet); in xmlSchemaCheckCOSSTRestricts()
15730 facet = facet->next; in xmlSchemaCheckCOSSTRestricts()
15731 } while (facet != NULL); in xmlSchemaCheckCOSSTRestricts()
17264 xmlSchemaFacetPtr facet, bfacet, in xmlSchemaDeriveAndValidateFacets() local
17308 facet = cur->facet; in xmlSchemaDeriveAndValidateFacets()
17309 switch (facet->type) { in xmlSchemaDeriveAndValidateFacets()
17311 flength = facet; break; in xmlSchemaDeriveAndValidateFacets()
17313 fminlen = facet; break; in xmlSchemaDeriveAndValidateFacets()
17315 fmininc = facet; break; in xmlSchemaDeriveAndValidateFacets()
17317 fminexc = facet; break; in xmlSchemaDeriveAndValidateFacets()
17319 fmaxlen = facet; break; in xmlSchemaDeriveAndValidateFacets()
17321 fmaxinc = facet; break; in xmlSchemaDeriveAndValidateFacets()
17323 fmaxexc = facet; break; in xmlSchemaDeriveAndValidateFacets()
17325 ftotdig = facet; break; in xmlSchemaDeriveAndValidateFacets()
17327 ffracdig = facet; break; in xmlSchemaDeriveAndValidateFacets()
17333 facet = cur->facet; in xmlSchemaDeriveAndValidateFacets()
17334 switch (facet->type) { in xmlSchemaDeriveAndValidateFacets()
17336 bflength = facet; break; in xmlSchemaDeriveAndValidateFacets()
17338 bfminlen = facet; break; in xmlSchemaDeriveAndValidateFacets()
17340 bfmininc = facet; break; in xmlSchemaDeriveAndValidateFacets()
17342 bfminexc = facet; break; in xmlSchemaDeriveAndValidateFacets()
17344 bfmaxlen = facet; break; in xmlSchemaDeriveAndValidateFacets()
17346 bfmaxinc = facet; break; in xmlSchemaDeriveAndValidateFacets()
17348 bfmaxexc = facet; break; in xmlSchemaDeriveAndValidateFacets()
17350 bftotdig = facet; break; in xmlSchemaDeriveAndValidateFacets()
17352 bffracdig = facet; break; in xmlSchemaDeriveAndValidateFacets()
17726 bfacet = cur->facet; in xmlSchemaDeriveAndValidateFacets()
17741 facet = link->facet; in xmlSchemaDeriveAndValidateFacets()
17742 if (facet->type == bfacet->type) { in xmlSchemaDeriveAndValidateFacets()
17743 switch (facet->type) { in xmlSchemaDeriveAndValidateFacets()
17748 if (facet->whitespace < bfacet->whitespace) { in xmlSchemaDeriveAndValidateFacets()
17749 FACET_RESTR_ERR(facet, in xmlSchemaDeriveAndValidateFacets()
17755 (facet->whitespace != bfacet->whitespace)) { in xmlSchemaDeriveAndValidateFacets()
17756 FACET_RESTR_FIXED_ERR(facet) in xmlSchemaDeriveAndValidateFacets()
17779 link->facet = cur->facet; in xmlSchemaDeriveAndValidateFacets()
17919 if (lin->facet->type == XML_SCHEMA_FACET_WHITESPACE) { in xmlSchemaTypeFixupWhitespace()
17920 switch (lin->facet->whitespace) { in xmlSchemaTypeFixupWhitespace()
18669 xmlSchemaCheckFacet(xmlSchemaFacetPtr facet, in xmlSchemaCheckFacet() argument
18676 if ((facet == NULL) || (typeDecl == NULL)) in xmlSchemaCheckFacet()
18687 switch (facet->type) { in xmlSchemaCheckFacet()
18743 ACTXT_CAST pctxt, facet->node, base, in xmlSchemaCheckFacet()
18744 facet->value, &(facet->val), 1, 1, 0); in xmlSchemaCheckFacet()
18750 XML_SCHEMAP_INTERNAL, facet->node, NULL, in xmlSchemaCheckFacet()
18754 facet->value, xmlSchemaFacetTypeToString(facet->type)); in xmlSchemaCheckFacet()
18764 ret, facet->node, WXS_BASIC_CAST facet, in xmlSchemaCheckFacet()
18767 facet->value, in xmlSchemaCheckFacet()
18773 } else if (facet->val == NULL) { in xmlSchemaCheckFacet()
18783 facet->regexp = xmlRegexpCompile(facet->value); in xmlSchemaCheckFacet()
18784 if (facet->regexp == NULL) { in xmlSchemaCheckFacet()
18789 ret, facet->node, WXS_BASIC_CAST typeDecl, in xmlSchemaCheckFacet()
18792 facet->value, NULL); in xmlSchemaCheckFacet()
18802 if (facet->type == XML_SCHEMA_FACET_TOTALDIGITS) { in xmlSchemaCheckFacet()
18805 facet->value, &(facet->val)); in xmlSchemaCheckFacet()
18809 facet->value, &(facet->val)); in xmlSchemaCheckFacet()
18825 ret, facet->node, WXS_BASIC_CAST typeDecl, in xmlSchemaCheckFacet()
18827 facet->value, in xmlSchemaCheckFacet()
18828 xmlSchemaFacetTypeToString(facet->type), in xmlSchemaCheckFacet()
18829 (facet->type != XML_SCHEMA_FACET_TOTALDIGITS) ? in xmlSchemaCheckFacet()
18838 if (xmlStrEqual(facet->value, BAD_CAST "preserve")) { in xmlSchemaCheckFacet()
18839 facet->whitespace = XML_SCHEMAS_FACET_PRESERVE; in xmlSchemaCheckFacet()
18840 } else if (xmlStrEqual(facet->value, BAD_CAST "replace")) { in xmlSchemaCheckFacet()
18841 facet->whitespace = XML_SCHEMAS_FACET_REPLACE; in xmlSchemaCheckFacet()
18842 } else if (xmlStrEqual(facet->value, BAD_CAST "collapse")) { in xmlSchemaCheckFacet()
18843 facet->whitespace = XML_SCHEMAS_FACET_COLLAPSE; in xmlSchemaCheckFacet()
18850 ret, facet->node, WXS_BASIC_CAST typeDecl, in xmlSchemaCheckFacet()
18852 "valid", facet->value, NULL); in xmlSchemaCheckFacet()
18887 xmlSchemaFacetPtr facet = typeDecl->facets; in xmlSchemaCheckFacetValues() local
18898 while (facet != NULL) { in xmlSchemaCheckFacetValues()
18899 res = xmlSchemaCheckFacet(facet, typeDecl, pctxt, name); in xmlSchemaCheckFacetValues()
18901 facet = facet->next; in xmlSchemaCheckFacetValues() local
24207 xmlSchemaFacetPtr facet; in xmlSchemaValidateFacets() local
24258 switch (facetLink->facet->type) { in xmlSchemaValidateFacets()
24266 ret = xmlSchemaValidateLengthFacetWhtsp(facetLink->facet, in xmlSchemaValidateFacets()
24270 ret = xmlSchemaValidateFacetWhtsp(facetLink->facet, ws, in xmlSchemaValidateFacets()
24281 value, len, type, facetLink->facet, NULL, NULL, NULL); in xmlSchemaValidateFacets()
24300 switch (facetLink->facet->type) { in xmlSchemaValidateFacets()
24304 ret = xmlSchemaValidateListSimpleTypeFacet(facetLink->facet, in xmlSchemaValidateFacets()
24317 value, length, type, facetLink->facet, NULL, NULL, NULL); in xmlSchemaValidateFacets()
24339 for (facet = tmpType->facets; facet != NULL; facet = facet->next) { in xmlSchemaValidateFacets()
24340 if (facet->type != XML_SCHEMA_FACET_ENUMERATION) in xmlSchemaValidateFacets()
24343 ret = xmlSchemaAreValuesEqual(facet->val, val); in xmlSchemaValidateFacets()
24384 facet = NULL; in xmlSchemaValidateFacets()
24389 if (facetLink->facet->type != XML_SCHEMA_FACET_PATTERN) in xmlSchemaValidateFacets()
24396 ret = xmlRegexpExec(facetLink->facet->regexp, value); in xmlSchemaValidateFacets()
24407 facet = facetLink->facet; in xmlSchemaValidateFacets()
24414 value, 0, type, facet, NULL, NULL, NULL); in xmlSchemaValidateFacets()