Lines Matching refs:content

119 …(ns != NULL && (new_tns == NULL || xmlStrcmp(ns->children->content, new_tns->children->content) !=…  in schema_load_file()
121 …an't import schema from '%s', unexpected 'targetNamespace'='%s'", location, ns->children->content); in schema_load_file()
125 …import schema from '%s', unexpected 'targetNamespace'='%s'", location, new_tns->children->content); in schema_load_file()
131 xmlSetProp(schema, BAD_CAST("targetNamespace"), tns->children->content); in schema_load_file()
133 } else if (tns != NULL && xmlStrcmp(tns->children->content, new_tns->children->content) != 0) { in schema_load_file()
200 uri = xmlBuildURI(location->children->content, trav->doc->URL); in load_schema()
202 uri = xmlBuildURI(location->children->content, base); in load_schema()
220 uri = xmlBuildURI(location->children->content, trav->doc->URL); in load_schema()
222 uri = xmlBuildURI(location->children->content, base); in load_schema()
237 if (ns != NULL && tns != NULL && xmlStrcmp(ns->children->content, tns->children->content) == 0) { in load_schema()
239 …s', namespace must not match the enclosing schema 'targetNamespace'", location->children->content); in load_schema()
248 uri = xmlBuildURI(location->children->content, trav->doc->URL); in load_schema()
250 uri = xmlBuildURI(location->children->content, base); in load_schema()
324 newType->name = estrdup((char*)name->children->content); in schema_simpleType()
325 newType->namens = estrdup((char*)ns->children->content); in schema_simpleType()
354 newType->name = estrdup((char*)name->children->content); in schema_simpleType()
355 newType->namens = estrdup((char*)ns->children->content); in schema_simpleType()
368 create_encoder(sdl, cur_type, ns->children->content, name->children->content); in schema_simpleType()
421 parse_namespace(itemType->children->content, &type, &ns); in schema_list()
467 newType->namens = estrdup((char*)tns->children->content); in schema_list()
504 str = estrdup((char*)memberTypes->children->content); in schema_union()
563 newType->namens = estrdup((char*)tns->children->content); in schema_union()
646 parse_namespace(base->children->content, &type, &ns); in schema_restriction_simpleContent()
751 parse_namespace(base->children->content, &type, &ns); in schema_restriction_complexContent()
815 if (!strncmp((char*)fixed->children->content, "true", sizeof("true")) || in schema_restriction_var_int()
816 !strncmp((char*)fixed->children->content, "1", sizeof("1"))) in schema_restriction_var_int()
825 (*valptr)->value = atoi((char*)value->children->content); in schema_restriction_var_int()
842 if (!strncmp((char*)fixed->children->content, "true", sizeof("true")) || in schema_restriction_var_char()
843 !strncmp((char*)fixed->children->content, "1", sizeof("1"))) { in schema_restriction_var_char()
853 (*valptr)->value = estrdup((char*)value->children->content); in schema_restriction_var_char()
876 parse_namespace(base->children->content, &type, &ns); in schema_extension_simpleContent()
931 parse_namespace(base->children->content, &type, &ns); in schema_extension_complexContent()
987 model->min_occurs = atoi((char*)attr->children->content); in schema_min_max()
994 if (!strncmp((char*)attr->children->content, "unbounded", sizeof("unbounded"))) { in schema_min_max()
997 model->max_occurs = atoi((char*)attr->children->content); in schema_min_max()
1020 newModel->u.content = emalloc(sizeof(HashTable)); in schema_all()
1021 zend_hash_init(newModel->u.content, 0, NULL, delete_model, 0); in schema_all()
1025 zend_hash_next_index_insert(model->u.content,&newModel,sizeof(sdlContentModelPtr), NULL); in schema_all()
1080 parse_namespace(ref->children->content, &type, &ns); in schema_group()
1098 newModel->u.content = emalloc(sizeof(HashTable)); in schema_group()
1099 zend_hash_init(newModel->u.content, 0, NULL, delete_model, 0); in schema_group()
1101 smart_str_appends(&key, (char*)ns->children->content); in schema_group()
1103 smart_str_appends(&key, (char*)name->children->content); in schema_group()
1128 zend_hash_next_index_insert(model->u.content, &newModel, sizeof(sdlContentModelPtr), NULL); in schema_group()
1188 newModel->u.content = emalloc(sizeof(HashTable)); in schema_choice()
1189 zend_hash_init(newModel->u.content, 0, NULL, delete_model, 0); in schema_choice()
1193 zend_hash_next_index_insert(model->u.content,&newModel,sizeof(sdlContentModelPtr), NULL); in schema_choice()
1238 newModel->u.content = emalloc(sizeof(HashTable)); in schema_sequence()
1239 zend_hash_init(newModel->u.content, 0, NULL, delete_model, 0); in schema_sequence()
1243 zend_hash_next_index_insert(model->u.content,&newModel,sizeof(sdlContentModelPtr), NULL); in schema_sequence()
1293 zend_hash_next_index_insert(model->u.content, &newModel, sizeof(sdlContentModelPtr), NULL); in schema_any()
1369 newType->name = estrdup((char*)name->children->content); in schema_complexType()
1370 newType->namens = estrdup((char*)ns->children->content); in schema_complexType()
1399 newType->name = estrdup((char*)name->children->content); in schema_complexType()
1400 newType->namens = estrdup((char*)ns->children->content); in schema_complexType()
1405 create_encoder(sdl, cur_type, ns->children->content, name->children->content); in schema_complexType()
1507 parse_namespace(ref->children->content, &type, &ns); in schema_element()
1522 newType->name = estrdup((char*)name->children->content); in schema_element()
1523 newType->namens = estrdup((char*)ns->children->content); in schema_element()
1565 zend_hash_next_index_insert(model->u.content, &newModel, sizeof(sdlContentModelPtr), NULL); in schema_element()
1579 if (!stricmp((char*)attr->children->content, "true") || in schema_element()
1580 !stricmp((char*)attr->children->content, "1")) { in schema_element()
1594 cur_type->fixed = estrdup((char*)attr->children->content); in schema_element()
1604 cur_type->def = estrdup((char*)attr->children->content); in schema_element()
1610 if (strncmp((char*)attr->children->content, "qualified", sizeof("qualified")) == 0) { in schema_element()
1612 } else if (strncmp((char*)attr->children->content, "unqualified", sizeof("unqualified")) == 0) { in schema_element()
1626 if(def == NULL || strncmp((char*)def->children->content, "qualified", sizeof("qualified"))) { in schema_element()
1649 parse_namespace(type->children->content, &cptype, &str_ns); in schema_element()
1733 parse_namespace(ref->children->content, &attr_name, &ns); in schema_attribute()
1753 smart_str_appends(&key, (char*)ns->children->content); in schema_attribute()
1755 newAttr->namens = estrdup((char*)ns->children->content); in schema_attribute()
1757 smart_str_appends(&key, (char*)name->children->content); in schema_attribute()
1788 parse_namespace(type->children->content, &cptype, &str_ns); in schema_attribute()
1800 newAttr->def = estrdup((char*)attr->children->content); in schema_attribute()
1802 newAttr->fixed = estrdup((char*)attr->children->content); in schema_attribute()
1804 if (strncmp((char*)attr->children->content, "qualified", sizeof("qualified")) == 0) { in schema_attribute()
1806 } else if (strncmp((char*)attr->children->content, "unqualified", sizeof("unqualified")) == 0) { in schema_attribute()
1814 newAttr->name = estrdup((char*)attr->children->content); in schema_attribute()
1820 if (strncmp((char*)attr->children->content, "prohibited", sizeof("prohibited")) == 0) { in schema_attribute()
1822 } else if (strncmp((char*)attr->children->content, "required", sizeof("required")) == 0) { in schema_attribute()
1824 } else if (strncmp((char*)attr->children->content, "optional", sizeof("optional")) == 0) { in schema_attribute()
1840 parse_namespace(attr->children->content, &value, &ns); in schema_attribute()
1846 ext->val = estrdup((char*)attr->children->content); in schema_attribute()
1872 if(def == NULL || strncmp((char*)def->children->content, "qualified", sizeof("qualified"))) { in schema_attribute()
1908 dummy_type->namens = estrdup((char*)tns->children->content); in schema_attribute()
1943 newType->name = estrdup((char*)name->children->content); in schema_attributeGroup()
1944 newType->namens = estrdup((char*)ns->children->content); in schema_attributeGroup()
1969 parse_namespace(ref->children->content, &group_name, &ns); in schema_attributeGroup()
2161 zend_hash_internal_pointer_reset_ex(model->u.content, &pos); in schema_content_model_fixup()
2162 while (zend_hash_get_current_data_ex(model->u.content, (void**)&tmp, &pos) == SUCCESS) { in schema_content_model_fixup()
2165 zend_hash_move_forward_ex(model->u.content, &pos); in schema_content_model_fixup()
2177 zend_hash_internal_pointer_reset(model->u.content); in schema_content_model_fixup()
2178 while (zend_hash_get_current_data(model->u.content, (void**)&tmp) == SUCCESS) { in schema_content_model_fixup()
2180 zend_hash_move_forward(model->u.content); in schema_content_model_fixup()
2306 zend_hash_destroy(tmp->u.content); in delete_model()
2307 efree(tmp->u.content); in delete_model()
2328 zend_hash_destroy(tmp->u.content); in delete_model_persistent()
2329 free(tmp->u.content); in delete_model_persistent()