Lines Matching refs:sdl

24 static int schema_simpleType(sdlPtr sdl, xmlAttrPtr tns, xmlNodePtr simpleType, sdlTypePtr cur_type…
25 static int schema_complexType(sdlPtr sdl, xmlAttrPtr tns, xmlNodePtr compType, sdlTypePtr cur_type);
26 static int schema_list(sdlPtr sdl, xmlAttrPtr tns, xmlNodePtr listType, sdlTypePtr cur_type);
27 static int schema_union(sdlPtr sdl, xmlAttrPtr tns, xmlNodePtr unionType, sdlTypePtr cur_type);
28 static int schema_simpleContent(sdlPtr sdl, xmlAttrPtr tns, xmlNodePtr simpCompType, sdlTypePtr cur…
29 static int schema_restriction_simpleContent(sdlPtr sdl, xmlAttrPtr tns, xmlNodePtr restType, sdlTyp…
30 static int schema_restriction_complexContent(sdlPtr sdl, xmlAttrPtr tns, xmlNodePtr restType, sdlTy…
31 static int schema_extension_simpleContent(sdlPtr sdl, xmlAttrPtr tns, xmlNodePtr extType, sdlTypePt…
32 static int schema_extension_complexContent(sdlPtr sdl, xmlAttrPtr tns, xmlNodePtr extType, sdlTypeP…
33 static int schema_sequence(sdlPtr sdl, xmlAttrPtr tns, xmlNodePtr seqType, sdlTypePtr cur_type, sdl…
34 static int schema_all(sdlPtr sdl, xmlAttrPtr tns, xmlNodePtr extType, sdlTypePtr cur_type, sdlConte…
35 static int schema_choice(sdlPtr sdl, xmlAttrPtr tns, xmlNodePtr choiceType, sdlTypePtr cur_type, sd…
36 static int schema_group(sdlPtr sdl, xmlAttrPtr tns, xmlNodePtr groupType, sdlTypePtr cur_type, sdlC…
37 static int schema_any(sdlPtr sdl, xmlAttrPtr tns, xmlNodePtr extType, sdlTypePtr cur_type, sdlConte…
38 static int schema_element(sdlPtr sdl, xmlAttrPtr tns, xmlNodePtr element, sdlTypePtr cur_type, sdlC…
39 static int schema_attribute(sdlPtr sdl, xmlAttrPtr tns, xmlNodePtr attrType, sdlTypePtr cur_type, s…
40 static int schema_attributeGroup(sdlPtr sdl, xmlAttrPtr tns, xmlNodePtr attrType, sdlTypePtr cur_ty…
48 static encodePtr create_encoder(sdlPtr sdl, sdlTypePtr cur_type, const xmlChar *ns, const xmlChar *… in create_encoder() argument
53 if (sdl->encoders == NULL) { in create_encoder()
54 sdl->encoders = emalloc(sizeof(HashTable)); in create_encoder()
55 zend_hash_init(sdl->encoders, 0, NULL, delete_encoder, 0); in create_encoder()
61 if ((enc_ptr = zend_hash_find_ptr(sdl->encoders, nscat.s)) != NULL) { in create_encoder()
82 zend_hash_update_ptr(sdl->encoders, nscat.s, enc); in create_encoder()
88 static encodePtr get_create_encoder(sdlPtr sdl, sdlTypePtr cur_type, const xmlChar *ns, const xmlCh… in get_create_encoder() argument
90 encodePtr enc = get_encoder(sdl, (char*)ns, (char*)type); in get_create_encoder()
92 enc = create_encoder(sdl, cur_type, ns, type); in get_create_encoder()
167 if (!ctx->sdl->types) { in load_schema()
168 ctx->sdl->types = emalloc(sizeof(HashTable)); in load_schema()
169 zend_hash_init(ctx->sdl->types, 0, NULL, delete_type, 0); in load_schema()
272 schema_simpleType(ctx->sdl, tns, trav, NULL); in load_schema()
274 schema_complexType(ctx->sdl, tns, trav, NULL); in load_schema()
276 schema_group(ctx->sdl, tns, trav, NULL, NULL); in load_schema()
278 schema_attributeGroup(ctx->sdl, tns, trav, NULL, ctx); in load_schema()
280 schema_element(ctx->sdl, tns, trav, NULL, NULL); in load_schema()
282 schema_attribute(ctx->sdl, tns, trav, NULL, ctx); in load_schema()
304 static int schema_simpleType(sdlPtr sdl, xmlAttrPtr tns, xmlNodePtr simpleType, sdlTypePtr cur_type) in schema_simpleType() argument
330 ptr = zend_hash_next_index_insert_ptr(sdl->types, newType); in schema_simpleType()
332 if (sdl->encoders == NULL) { in schema_simpleType()
333 sdl->encoders = emalloc(sizeof(HashTable)); in schema_simpleType()
334 zend_hash_init(sdl->encoders, 0, NULL, delete_encoder, 0); in schema_simpleType()
343 zend_hash_next_index_insert_ptr(sdl->encoders, cur_type->encode); in schema_simpleType()
357 ptr = zend_hash_next_index_insert_ptr(sdl->types, newType); in schema_simpleType()
367 create_encoder(sdl, cur_type, ns->children->content, name->children->content); in schema_simpleType()
379 schema_restriction_simpleContent(sdl, tns, trav, cur_type, 1); in schema_simpleType()
383 schema_list(sdl, tns, trav, cur_type); in schema_simpleType()
387 schema_union(sdl, tns, trav, cur_type); in schema_simpleType()
410 static int schema_list(sdlPtr sdl, xmlAttrPtr tns, xmlNodePtr listType, sdlTypePtr cur_type) in schema_list() argument
431 newType->encode = get_create_encoder(sdl, newType, nsptr->href, BAD_CAST(type)); in schema_list()
460 char *res = zend_print_long_to_buf(buf + sizeof(buf) - 1, zend_hash_num_elements(sdl->types)); in schema_list()
475 schema_simpleType(sdl, tns, trav, newType); in schema_list()
493 static int schema_union(sdlPtr sdl, xmlAttrPtr tns, xmlNodePtr unionType, sdlTypePtr cur_type) in schema_union() argument
527 newType->encode = get_create_encoder(sdl, newType, nsptr->href, BAD_CAST(type)); in schema_union()
557 char *res = zend_print_long_to_buf(buf + sizeof(buf) - 1, zend_hash_num_elements(sdl->types)); in schema_union()
572 schema_simpleType(sdl, tns, trav, newType); in schema_union()
592 static int schema_simpleContent(sdlPtr sdl, xmlAttrPtr tns, xmlNodePtr simpCompType, sdlTypePtr cur… in schema_simpleContent() argument
604 schema_restriction_simpleContent(sdl, tns, trav, cur_type, 0); in schema_simpleContent()
608 schema_extension_simpleContent(sdl, tns, trav, cur_type); in schema_simpleContent()
637 static int schema_restriction_simpleContent(sdlPtr sdl, xmlAttrPtr tns, xmlNodePtr restType, sdlTyp… in schema_restriction_simpleContent() argument
650 cur_type->encode = get_create_encoder(sdl, cur_type, nsptr->href, BAD_CAST(type)); in schema_restriction_simpleContent()
669 schema_simpleType(sdl, tns, trav, cur_type); in schema_restriction_simpleContent()
714 schema_attribute(sdl, tns, trav, cur_type, NULL); in schema_restriction_simpleContent()
716 schema_attributeGroup(sdl, tns, trav, cur_type, NULL); in schema_restriction_simpleContent()
742 static int schema_restriction_complexContent(sdlPtr sdl, xmlAttrPtr tns, xmlNodePtr restType, sdlTy… in schema_restriction_complexContent() argument
755 cur_type->encode = get_create_encoder(sdl, cur_type, nsptr->href, BAD_CAST(type)); in schema_restriction_complexContent()
770 schema_group(sdl, tns, trav, cur_type, NULL); in schema_restriction_complexContent()
773 schema_all(sdl, tns, trav, cur_type, NULL); in schema_restriction_complexContent()
776 schema_choice(sdl, tns, trav, cur_type, NULL); in schema_restriction_complexContent()
779 schema_sequence(sdl, tns, trav, cur_type, NULL); in schema_restriction_complexContent()
785 schema_attribute(sdl, tns, trav, cur_type, NULL); in schema_restriction_complexContent()
787 schema_attributeGroup(sdl, tns, trav, cur_type, NULL); in schema_restriction_complexContent()
867 static int schema_extension_simpleContent(sdlPtr sdl, xmlAttrPtr tns, xmlNodePtr extType, sdlTypePt… in schema_extension_simpleContent() argument
880 cur_type->encode = get_create_encoder(sdl, cur_type, nsptr->href, BAD_CAST(type)); in schema_extension_simpleContent()
895 schema_attribute(sdl, tns, trav, cur_type, NULL); in schema_extension_simpleContent()
897 schema_attributeGroup(sdl, tns, trav, cur_type, NULL); in schema_extension_simpleContent()
922 static int schema_extension_complexContent(sdlPtr sdl, xmlAttrPtr tns, xmlNodePtr extType, sdlTypeP… in schema_extension_complexContent() argument
935 cur_type->encode = get_create_encoder(sdl, cur_type, nsptr->href, BAD_CAST(type)); in schema_extension_complexContent()
950 schema_group(sdl, tns, trav, cur_type, NULL); in schema_extension_complexContent()
953 schema_all(sdl, tns, trav, cur_type, NULL); in schema_extension_complexContent()
956 schema_choice(sdl, tns, trav, cur_type, NULL); in schema_extension_complexContent()
959 schema_sequence(sdl, tns, trav, cur_type, NULL); in schema_extension_complexContent()
965 schema_attribute(sdl, tns, trav, cur_type, NULL); in schema_extension_complexContent()
967 schema_attributeGroup(sdl, tns, trav, cur_type, NULL); in schema_extension_complexContent()
1014 static int schema_all(sdlPtr sdl, xmlAttrPtr tns, xmlNodePtr all, sdlTypePtr cur_type, sdlContentMo… in schema_all() argument
1038 schema_element(sdl, tns, trav, cur_type, newModel); in schema_all()
1058 static int schema_group(sdlPtr sdl, xmlAttrPtr tns, xmlNodePtr groupType, sdlTypePtr cur_type, sdlC… in schema_group() argument
1122 if (sdl->groups == NULL) { in schema_group()
1123 sdl->groups = emalloc(sizeof(HashTable)); in schema_group()
1124 zend_hash_init(sdl->groups, 0, NULL, delete_type, 0); in schema_group()
1126 if (zend_hash_add_ptr(sdl->groups, key.s, newType) == NULL) { in schema_group()
1156 schema_choice(sdl, tns, trav, cur_type, newModel); in schema_group()
1163 schema_sequence(sdl, tns, trav, cur_type, newModel); in schema_group()
1170 schema_all(sdl, tns, trav, cur_type, newModel); in schema_group()
1190 static int schema_choice(sdlPtr sdl, xmlAttrPtr tns, xmlNodePtr choiceType, sdlTypePtr cur_type, sd… in schema_choice() argument
1214 schema_element(sdl, tns, trav, cur_type, newModel); in schema_choice()
1216 schema_group(sdl, tns, trav, cur_type, newModel); in schema_choice()
1218 schema_choice(sdl, tns, trav, cur_type, newModel); in schema_choice()
1220 schema_sequence(sdl, tns, trav, cur_type, newModel); in schema_choice()
1222 schema_any(sdl, tns, trav, cur_type, newModel); in schema_choice()
1240 static int schema_sequence(sdlPtr sdl, xmlAttrPtr tns, xmlNodePtr seqType, sdlTypePtr cur_type, sdl… in schema_sequence() argument
1264 schema_element(sdl, tns, trav, cur_type, newModel); in schema_sequence()
1266 schema_group(sdl, tns, trav, cur_type, newModel); in schema_sequence()
1268 schema_choice(sdl, tns, trav, cur_type, newModel); in schema_sequence()
1270 schema_sequence(sdl, tns, trav, cur_type, newModel); in schema_sequence()
1272 schema_any(sdl, tns, trav, cur_type, newModel); in schema_sequence()
1292 static int schema_any(sdlPtr sdl, xmlAttrPtr tns, xmlNodePtr anyType, sdlTypePtr cur_type, sdlConte… in schema_any() argument
1315 static int schema_complexContent(sdlPtr sdl, xmlAttrPtr tns, xmlNodePtr compCont, sdlTypePtr cur_ty… in schema_complexContent() argument
1327 schema_restriction_complexContent(sdl, tns, trav, cur_type); in schema_complexContent()
1331 schema_extension_complexContent(sdl, tns, trav, cur_type); in schema_complexContent()
1358 static int schema_complexType(sdlPtr sdl, xmlAttrPtr tns, xmlNodePtr compType, sdlTypePtr cur_type) in schema_complexType() argument
1385 ptr = zend_hash_next_index_insert_ptr(sdl->types, newType); in schema_complexType()
1387 if (sdl->encoders == NULL) { in schema_complexType()
1388 sdl->encoders = emalloc(sizeof(HashTable)); in schema_complexType()
1389 zend_hash_init(sdl->encoders, 0, NULL, delete_encoder, 0); in schema_complexType()
1398 zend_hash_next_index_insert_ptr(sdl->encoders, cur_type->encode); in schema_complexType()
1411 ptr = zend_hash_next_index_insert_ptr(sdl->types, newType); in schema_complexType()
1414 create_encoder(sdl, cur_type, ns->children->content, name->children->content); in schema_complexType()
1427 schema_simpleContent(sdl, tns, trav, cur_type); in schema_complexType()
1430 schema_complexContent(sdl, tns, trav, cur_type); in schema_complexType()
1434 schema_group(sdl, tns, trav, cur_type, NULL); in schema_complexType()
1437 schema_all(sdl, tns, trav, cur_type, NULL); in schema_complexType()
1440 schema_choice(sdl, tns, trav, cur_type, NULL); in schema_complexType()
1443 schema_sequence(sdl, tns, trav, cur_type, NULL); in schema_complexType()
1448 schema_attribute(sdl, tns, trav, cur_type, NULL); in schema_complexType()
1450 schema_attributeGroup(sdl, tns, trav, cur_type, NULL); in schema_complexType()
1487 static int schema_element(sdlPtr sdl, xmlAttrPtr tns, xmlNodePtr element, sdlTypePtr cur_type, sdlC… in schema_element() argument
1546 if (sdl->elements == NULL) { in schema_element()
1547 sdl->elements = emalloc(sizeof(HashTable)); in schema_element()
1548 zend_hash_init(sdl->elements, 0, NULL, delete_type, 0); in schema_element()
1550 addHash = sdl->elements; in schema_element()
1667 cur_type->encode = get_create_encoder(sdl, cur_type, nsptr->href, BAD_CAST(cptype)); in schema_element()
1685 schema_simpleType(sdl, tns, trav, cur_type); in schema_element()
1693 schema_complexType(sdl, tns, trav, cur_type); in schema_element()
1727 static int schema_attribute(sdlPtr sdl, xmlAttrPtr tns, xmlNodePtr attrType, sdlTypePtr cur_type, s… in schema_attribute() argument
1815 newAttr->encode = get_create_encoder(sdl, cur_type, nsptr->href, BAD_CAST(cptype)); in schema_attribute()
1928 char *res = zend_print_long_to_buf(buf + sizeof(buf) - 1, zend_hash_num_elements(sdl->types)); in schema_attribute()
1936 schema_simpleType(sdl, tns, trav, dummy_type); in schema_attribute()
1949 static int schema_attributeGroup(sdlPtr sdl, xmlAttrPtr tns, xmlNodePtr attrGroup, sdlTypePtr cur_t… in schema_attributeGroup() argument
2027 schema_attribute(sdl, tns, trav, cur_type, NULL); in schema_attributeGroup()
2032 schema_attributeGroup(sdl, tns, trav, cur_type, NULL); in schema_attributeGroup()
2188 …if (ctx->sdl->groups && (tmp = zend_hash_str_find_ptr(ctx->sdl->groups, model->u.group_ref, strlen… in schema_content_model_fixup()
2232 if (ctx->sdl->elements != NULL) { in schema_type_fixup()
2233 tmp = (sdlTypePtr)schema_find_by_ref(ctx->sdl->elements, type->ref); in schema_type_fixup()
2281 sdlPtr sdl = ctx->sdl; in schema_pass2() local
2295 if (sdl->elements) { in schema_pass2()
2296 ZEND_HASH_FOREACH_PTR(sdl->elements, type) { in schema_pass2()
2300 if (sdl->groups) { in schema_pass2()
2301 ZEND_HASH_FOREACH_PTR(sdl->groups, type) { in schema_pass2()
2305 if (sdl->types) { in schema_pass2()
2306 ZEND_HASH_FOREACH_PTR(sdl->types, type) { in schema_pass2()