Lines Matching refs:ns

46 static encodePtr create_encoder(sdlPtr sdl, sdlTypePtr cur_type, const xmlChar *ns, const xmlChar *…  in create_encoder()  argument
55 smart_str_appends(&nscat, (char*)ns); in create_encoder()
61 if (enc->details.ns) { in create_encoder()
62 efree(enc->details.ns); in create_encoder()
73 enc->details.ns = estrdup((char*)ns); in create_encoder()
86 static encodePtr get_create_encoder(sdlPtr sdl, sdlTypePtr cur_type, const xmlChar *ns, const xmlCh… in get_create_encoder() argument
88 encodePtr enc = get_encoder(sdl, (char*)ns, (char*)type); in get_create_encoder()
90 enc = create_encoder(sdl, cur_type, ns, type); in get_create_encoder()
95 static void schema_load_file(sdlCtx *ctx, xmlAttrPtr ns, xmlChar *location, xmlAttrPtr tns, int imp… in schema_load_file() argument
116 …if (ns != NULL && (new_tns == NULL || xmlStrcmp(ns->children->content, new_tns->children->content)… in schema_load_file()
118 …an't import schema from '%s', unexpected 'targetNamespace'='%s'", location, ns->children->content); in schema_load_file()
120 if (ns == NULL && new_tns != NULL) { in schema_load_file()
228 xmlAttrPtr ns, location; in load_schema() local
231 ns = get_attribute(trav->properties, "namespace"); in load_schema()
234 if (ns != NULL && tns != NULL && xmlStrcmp(ns->children->content, tns->children->content) == 0) { in load_schema()
251 schema_load_file(ctx, ns, uri, tns, 1); in load_schema()
305 xmlAttrPtr name, ns; in schema_simpleType() local
307 ns = get_attribute(simpleType->properties, "targetNamespace"); in schema_simpleType()
308 if (ns == NULL) { in schema_simpleType()
309 ns = tns; in schema_simpleType()
322 newType->namens = estrdup((char*)ns->children->content); in schema_simpleType()
336 cur_type->encode->details.ns = estrdup(newType->namens); in schema_simpleType()
352 newType->namens = estrdup((char*)ns->children->content); in schema_simpleType()
365 create_encoder(sdl, cur_type, ns->children->content, name->children->content); in schema_simpleType()
415 char *type, *ns; in schema_list() local
418 parse_namespace(itemType->children->content, &type, &ns); in schema_list()
419 nsptr = xmlSearchNs(listType->doc, listType, BAD_CAST(ns)); in schema_list()
438 if (ns) {efree(ns);} in schema_list()
499 char *type, *ns; in schema_union() local
514 parse_namespace(BAD_CAST(start), &type, &ns); in schema_union()
515 nsptr = xmlSearchNs(unionType->doc, unionType, BAD_CAST(ns)); in schema_union()
534 if (ns) {efree(ns);} in schema_union()
642 char *type, *ns; in schema_restriction_simpleContent() local
645 parse_namespace(base->children->content, &type, &ns); in schema_restriction_simpleContent()
646 nsptr = xmlSearchNs(restType->doc, restType, BAD_CAST(ns)); in schema_restriction_simpleContent()
651 if (ns) {efree(ns);} in schema_restriction_simpleContent()
747 char *type, *ns; in schema_restriction_complexContent() local
750 parse_namespace(base->children->content, &type, &ns); in schema_restriction_complexContent()
751 nsptr = xmlSearchNs(restType->doc, restType, BAD_CAST(ns)); in schema_restriction_complexContent()
756 if (ns) {efree(ns);} in schema_restriction_complexContent()
872 char *type, *ns; in schema_extension_simpleContent() local
875 parse_namespace(base->children->content, &type, &ns); in schema_extension_simpleContent()
876 nsptr = xmlSearchNs(extType->doc, extType, BAD_CAST(ns)); in schema_extension_simpleContent()
881 if (ns) {efree(ns);} in schema_extension_simpleContent()
927 char *type, *ns; in schema_extension_complexContent() local
930 parse_namespace(base->children->content, &type, &ns); in schema_extension_complexContent()
931 nsptr = xmlSearchNs(extType->doc, extType, BAD_CAST(ns)); in schema_extension_complexContent()
936 if (ns) {efree(ns);} in schema_extension_complexContent()
1059 xmlAttrPtr ns, name, ref = NULL; in schema_group() local
1062 ns = get_attribute(groupType->properties, "targetNamespace"); in schema_group()
1063 if (ns == NULL) { in schema_group()
1064 ns = tns; in schema_group()
1076 char *type, *ns; in schema_group() local
1079 parse_namespace(ref->children->content, &type, &ns); in schema_group()
1080 nsptr = xmlSearchNs(groupType->doc, groupType, BAD_CAST(ns)); in schema_group()
1084 xmlAttrPtr ns = get_attribute(groupType->properties, "targetNamespace"); in schema_group() local
1085 if (ns == NULL) { in schema_group()
1086 ns = tns; in schema_group()
1088 if (ns) { in schema_group()
1089 smart_str_appends(&key, (char*)ns->children->content); in schema_group()
1101 if (ns) {efree(ns);} in schema_group()
1108 smart_str_appends(&key, (char*)ns->children->content); in schema_group()
1359 xmlAttrPtr attrs, name, ns; in schema_complexType() local
1362 ns = get_attribute(attrs, "targetNamespace"); in schema_complexType()
1363 if (ns == NULL) { in schema_complexType()
1364 ns = tns; in schema_complexType()
1377 newType->namens = estrdup((char*)ns->children->content); in schema_complexType()
1391 cur_type->encode->details.ns = estrdup(newType->namens); in schema_complexType()
1407 newType->namens = estrdup((char*)ns->children->content); in schema_complexType()
1412 create_encoder(sdl, cur_type, ns->children->content, name->children->content); in schema_complexType()
1488 xmlAttrPtr attrs, attr, ns, name, type, ref = NULL; in schema_element() local
1491 ns = get_attribute(attrs, "targetNamespace"); in schema_element()
1492 if (ns == NULL) { in schema_element()
1493 ns = tns; in schema_element()
1511 char *type, *ns; in schema_element() local
1514 parse_namespace(ref->children->content, &type, &ns); in schema_element()
1515 nsptr = xmlSearchNs(element->doc, element, BAD_CAST(ns)); in schema_element()
1520 xmlAttrPtr ns = get_attribute(attrs, "targetNamespace"); in schema_element() local
1521 if (ns == NULL) { in schema_element()
1522 ns = tns; in schema_element()
1524 if (ns) { in schema_element()
1525 smart_str_appends(&nscat, (char*)ns->children->content); in schema_element()
1533 if (ns) {efree(ns);} in schema_element()
1538 newType->namens = estrdup((char*)ns->children->content); in schema_element()
1743 char *attr_name, *ns; in schema_attribute() local
1746 parse_namespace(ref->children->content, &attr_name, &ns); in schema_attribute()
1747 nsptr = xmlSearchNs(attrType->doc, attrType, BAD_CAST(ns)); in schema_attribute()
1752 xmlAttrPtr ns = get_attribute(attrType->properties, "targetNamespace"); in schema_attribute() local
1753 if (ns == NULL) { in schema_attribute()
1754 ns = tns; in schema_attribute()
1756 if (ns) { in schema_attribute()
1757 smart_str_appends(&key, (char*)ns->children->content); in schema_attribute()
1765 if (ns) {efree(ns);} in schema_attribute()
1767 xmlAttrPtr ns; in schema_attribute() local
1769 ns = get_attribute(attrType->properties, "targetNamespace"); in schema_attribute()
1770 if (ns == NULL) { in schema_attribute()
1771 ns = tns; in schema_attribute()
1773 if (ns != NULL) { in schema_attribute()
1774 smart_str_appends(&key, (char*)ns->children->content); in schema_attribute()
1776 newAttr->namens = estrdup((char*)ns->children->content); in schema_attribute()
1858 char *value, *ns; in schema_attribute() local
1862 parse_namespace(attr->children->content, &value, &ns); in schema_attribute()
1863 nsptr = xmlSearchNs(attr->doc, attr->parent, BAD_CAST(ns)); in schema_attribute()
1865 ext->ns = estrdup((char*)nsptr->href); in schema_attribute()
1870 if (ns) {efree(ns);} in schema_attribute()
1959 xmlAttrPtr ns; in schema_attributeGroup() local
1963 ns = get_attribute(attrGroup->properties, "targetNamespace"); in schema_attributeGroup()
1964 if (ns == NULL) { in schema_attributeGroup()
1965 ns = tns; in schema_attributeGroup()
1970 newType->namens = estrdup((char*)ns->children->content); in schema_attributeGroup()
1984 char *group_name, *ns; in schema_attributeGroup() local
1995 parse_namespace(ref->children->content, &group_name, &ns); in schema_attributeGroup()
1996 nsptr = xmlSearchNs(attrGroup->doc, attrGroup, BAD_CAST(ns)); in schema_attributeGroup()
2005 if (ns) {efree(ns);} in schema_attributeGroup()
2056 if (new_attr->ns) { in copy_extra_attribute()
2057 new_attr->ns = estrdup(new_attr->ns); in copy_extra_attribute()
2474 if (attr->ns) { in delete_extra_attribute()
2475 efree(attr->ns); in delete_extra_attribute()
2487 if (attr->ns) { in delete_extra_attribute_persistent()
2488 free(attr->ns); in delete_extra_attribute_persistent()