Lines Matching refs:ns

49 static encodePtr create_encoder(sdlPtr sdl, sdlTypePtr cur_type, const xmlChar *ns, const xmlChar *…  in create_encoder()  argument
58 smart_str_appends(&nscat, (char*)ns); in create_encoder()
64 if (enc->details.ns) { in create_encoder()
65 efree(enc->details.ns); in create_encoder()
76 enc->details.ns = estrdup((char*)ns); in create_encoder()
89 static encodePtr get_create_encoder(sdlPtr sdl, sdlTypePtr cur_type, const xmlChar *ns, const xmlCh… in get_create_encoder() argument
91 encodePtr enc = get_encoder(sdl, (char*)ns, (char*)type); in get_create_encoder()
93 enc = create_encoder(sdl, cur_type, ns, type); in get_create_encoder()
98 static void schema_load_file(sdlCtx *ctx, xmlAttrPtr ns, xmlChar *location, xmlAttrPtr tns, int imp… in schema_load_file() argument
119 …if (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()
123 if (ns == NULL && new_tns != NULL) { in schema_load_file()
231 xmlAttrPtr ns, location; in load_schema() local
234 ns = get_attribute(trav->properties, "namespace"); in load_schema()
237 if (ns != NULL && tns != NULL && xmlStrcmp(ns->children->content, tns->children->content) == 0) { in load_schema()
254 schema_load_file(ctx, ns, uri, tns, 1 TSRMLS_CC); in load_schema()
308 xmlAttrPtr name, ns; in schema_simpleType() local
310 ns = get_attribute(simpleType->properties, "targetNamespace"); in schema_simpleType()
311 if (ns == NULL) { in schema_simpleType()
312 ns = tns; in schema_simpleType()
325 newType->namens = estrdup((char*)ns->children->content); in schema_simpleType()
339 cur_type->encode->details.ns = estrdup(newType->namens); 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()
418 char *type, *ns; in schema_list() local
421 parse_namespace(itemType->children->content, &type, &ns); in schema_list()
422 nsptr = xmlSearchNs(listType->doc, listType, BAD_CAST(ns)); in schema_list()
441 if (ns) {efree(ns);} in schema_list()
501 char *type, *ns; in schema_union() local
516 parse_namespace(BAD_CAST(start), &type, &ns); in schema_union()
517 nsptr = xmlSearchNs(unionType->doc, unionType, BAD_CAST(ns)); in schema_union()
536 if (ns) {efree(ns);} in schema_union()
643 char *type, *ns; in schema_restriction_simpleContent() local
646 parse_namespace(base->children->content, &type, &ns); in schema_restriction_simpleContent()
647 nsptr = xmlSearchNs(restType->doc, restType, BAD_CAST(ns)); in schema_restriction_simpleContent()
652 if (ns) {efree(ns);} in schema_restriction_simpleContent()
748 char *type, *ns; in schema_restriction_complexContent() local
751 parse_namespace(base->children->content, &type, &ns); in schema_restriction_complexContent()
752 nsptr = xmlSearchNs(restType->doc, restType, BAD_CAST(ns)); in schema_restriction_complexContent()
757 if (ns) {efree(ns);} in schema_restriction_complexContent()
873 char *type, *ns; in schema_extension_simpleContent() local
876 parse_namespace(base->children->content, &type, &ns); in schema_extension_simpleContent()
877 nsptr = xmlSearchNs(extType->doc, extType, BAD_CAST(ns)); in schema_extension_simpleContent()
882 if (ns) {efree(ns);} in schema_extension_simpleContent()
928 char *type, *ns; in schema_extension_complexContent() local
931 parse_namespace(base->children->content, &type, &ns); in schema_extension_complexContent()
932 nsptr = xmlSearchNs(extType->doc, extType, BAD_CAST(ns)); in schema_extension_complexContent()
937 if (ns) {efree(ns);} in schema_extension_complexContent()
1060 xmlAttrPtr ns, name, ref = NULL; in schema_group() local
1063 ns = get_attribute(groupType->properties, "targetNamespace"); in schema_group()
1064 if (ns == NULL) { in schema_group()
1065 ns = tns; in schema_group()
1077 char *type, *ns; in schema_group() local
1080 parse_namespace(ref->children->content, &type, &ns); in schema_group()
1081 nsptr = xmlSearchNs(groupType->doc, groupType, BAD_CAST(ns)); in schema_group()
1085 xmlAttrPtr ns = get_attribute(groupType->properties, "targetNamespace"); in schema_group() local
1086 if (ns == NULL) { in schema_group()
1087 ns = tns; in schema_group()
1089 if (ns) { in schema_group()
1090 smart_str_appends(&key, (char*)ns->children->content); in schema_group()
1102 if (ns) {efree(ns);} in schema_group()
1109 smart_str_appends(&key, (char*)ns->children->content); in schema_group()
1360 xmlAttrPtr attrs, name, ns; in schema_complexType() local
1363 ns = get_attribute(attrs, "targetNamespace"); in schema_complexType()
1364 if (ns == NULL) { in schema_complexType()
1365 ns = tns; in schema_complexType()
1378 newType->namens = estrdup((char*)ns->children->content); in schema_complexType()
1392 cur_type->encode->details.ns = estrdup(newType->namens); in schema_complexType()
1408 newType->namens = estrdup((char*)ns->children->content); in schema_complexType()
1413 create_encoder(sdl, cur_type, ns->children->content, name->children->content); in schema_complexType()
1489 xmlAttrPtr attrs, attr, ns, name, type, ref = NULL; in schema_element() local
1492 ns = get_attribute(attrs, "targetNamespace"); in schema_element()
1493 if (ns == NULL) { in schema_element()
1494 ns = tns; in schema_element()
1512 char *type, *ns; in schema_element() local
1515 parse_namespace(ref->children->content, &type, &ns); in schema_element()
1516 nsptr = xmlSearchNs(element->doc, element, BAD_CAST(ns)); in schema_element()
1521 xmlAttrPtr ns = get_attribute(attrs, "targetNamespace"); in schema_element() local
1522 if (ns == NULL) { in schema_element()
1523 ns = tns; in schema_element()
1525 if (ns) { in schema_element()
1526 smart_str_appends(&nscat, (char*)ns->children->content); in schema_element()
1534 if (ns) {efree(ns);} in schema_element()
1539 newType->namens = estrdup((char*)ns->children->content); in schema_element()
1746 char *attr_name, *ns; in schema_attribute() local
1749 parse_namespace(ref->children->content, &attr_name, &ns); in schema_attribute()
1750 nsptr = xmlSearchNs(attrType->doc, attrType, BAD_CAST(ns)); in schema_attribute()
1755 xmlAttrPtr ns = get_attribute(attrType->properties, "targetNamespace"); in schema_attribute() local
1756 if (ns == NULL) { in schema_attribute()
1757 ns = tns; in schema_attribute()
1759 if (ns) { in schema_attribute()
1760 smart_str_appends(&key, (char*)ns->children->content); in schema_attribute()
1768 if (ns) {efree(ns);} in schema_attribute()
1770 xmlAttrPtr ns; in schema_attribute() local
1772 ns = get_attribute(attrType->properties, "targetNamespace"); in schema_attribute()
1773 if (ns == NULL) { in schema_attribute()
1774 ns = tns; in schema_attribute()
1776 if (ns != NULL) { in schema_attribute()
1777 smart_str_appends(&key, (char*)ns->children->content); in schema_attribute()
1779 newAttr->namens = estrdup((char*)ns->children->content); in schema_attribute()
1860 char *value, *ns; in schema_attribute() local
1864 parse_namespace(attr->children->content, &value, &ns); in schema_attribute()
1865 nsptr = xmlSearchNs(attr->doc, attr->parent, BAD_CAST(ns)); in schema_attribute()
1867 ext->ns = estrdup((char*)nsptr->href); in schema_attribute()
1872 if (ns) {efree(ns);} in schema_attribute()
1957 xmlAttrPtr ns; in schema_attributeGroup() local
1961 ns = get_attribute(attrGroup->properties, "targetNamespace"); in schema_attributeGroup()
1962 if (ns == NULL) { in schema_attributeGroup()
1963 ns = tns; in schema_attributeGroup()
1968 newType->namens = estrdup((char*)ns->children->content); in schema_attributeGroup()
1982 char *group_name, *ns; in schema_attributeGroup() local
1993 parse_namespace(ref->children->content, &group_name, &ns); in schema_attributeGroup()
1994 nsptr = xmlSearchNs(attrGroup->doc, attrGroup, BAD_CAST(ns)); in schema_attributeGroup()
2003 if (ns) {efree(ns);} in schema_attributeGroup()
2055 if (new_attr->ns) { in copy_extra_attribute()
2056 new_attr->ns = estrdup(new_attr->ns); in copy_extra_attribute()
2483 if (attr->ns) { in delete_extra_attribute()
2484 efree(attr->ns); in delete_extra_attribute()
2496 if (attr->ns) { in delete_extra_attribute_persistent()
2497 free(attr->ns); in delete_extra_attribute_persistent()