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()
102 static void schema_load_file(sdlCtx *ctx, xmlAttrPtr ns, xmlChar *location, xmlAttrPtr tns, int imp… in schema_load_file() argument
125 …if (ns != NULL && (new_tns == NULL || xmlStrcmp(ns->children->content, new_tns->children->content)… in schema_load_file()
129 …port schema from '%s', missing 'targetNamespace', expected '%s'", location, ns->children->content); in schema_load_file()
134 …nexpected 'targetNamespace'='%s', expected '%s'", location, target_ns_copy, ns->children->content); in schema_load_file()
137 if (ns == NULL && new_tns != NULL) { in schema_load_file()
249 xmlAttrPtr ns, location; in load_schema() local
252 ns = get_attribute(trav->properties, "namespace"); in load_schema()
255 if (ns != NULL && tns != NULL && xmlStrcmp(ns->children->content, tns->children->content) == 0) { in load_schema()
272 schema_load_file(ctx, ns, uri, tns, 1); in load_schema()
326 xmlAttrPtr name, ns; in schema_simpleType() local
328 ns = get_attribute(simpleType->properties, "targetNamespace"); in schema_simpleType()
329 if (ns == NULL) { in schema_simpleType()
330 ns = tns; in schema_simpleType()
343 newType->namens = estrdup((char*)ns->children->content); in schema_simpleType()
357 cur_type->encode->details.ns = estrdup(newType->namens); in schema_simpleType()
373 newType->namens = estrdup((char*)ns->children->content); in schema_simpleType()
386 create_encoder(sdl, cur_type, ns->children->content, name->children->content); in schema_simpleType()
436 char *type, *ns; in schema_list() local
439 parse_namespace(itemType->children->content, &type, &ns); in schema_list()
440 nsptr = xmlSearchNs(listType->doc, listType, BAD_CAST(ns)); in schema_list()
459 if (ns) {efree(ns);} in schema_list()
520 char *type, *ns; in schema_union() local
535 parse_namespace(BAD_CAST(start), &type, &ns); in schema_union()
536 nsptr = xmlSearchNs(unionType->doc, unionType, BAD_CAST(ns)); in schema_union()
555 if (ns) {efree(ns);} in schema_union()
663 char *type, *ns; in schema_restriction_simpleContent() local
666 parse_namespace(base->children->content, &type, &ns); in schema_restriction_simpleContent()
667 nsptr = xmlSearchNs(restType->doc, restType, BAD_CAST(ns)); in schema_restriction_simpleContent()
672 if (ns) {efree(ns);} in schema_restriction_simpleContent()
768 char *type, *ns; in schema_restriction_complexContent() local
771 parse_namespace(base->children->content, &type, &ns); in schema_restriction_complexContent()
772 nsptr = xmlSearchNs(restType->doc, restType, BAD_CAST(ns)); in schema_restriction_complexContent()
777 if (ns) {efree(ns);} in schema_restriction_complexContent()
893 char *type, *ns; in schema_extension_simpleContent() local
896 parse_namespace(base->children->content, &type, &ns); in schema_extension_simpleContent()
897 nsptr = xmlSearchNs(extType->doc, extType, BAD_CAST(ns)); in schema_extension_simpleContent()
902 if (ns) {efree(ns);} in schema_extension_simpleContent()
948 char *type, *ns; in schema_extension_complexContent() local
951 parse_namespace(base->children->content, &type, &ns); in schema_extension_complexContent()
952 nsptr = xmlSearchNs(extType->doc, extType, BAD_CAST(ns)); in schema_extension_complexContent()
957 if (ns) {efree(ns);} in schema_extension_complexContent()
1080 xmlAttrPtr ns, name, ref = NULL; in schema_group() local
1083 ns = get_attribute(groupType->properties, "targetNamespace"); in schema_group()
1084 if (ns == NULL) { in schema_group()
1085 ns = tns; in schema_group()
1097 char *type, *ns; in schema_group() local
1100 parse_namespace(ref->children->content, &type, &ns); in schema_group()
1101 nsptr = xmlSearchNs(groupType->doc, groupType, BAD_CAST(ns)); in schema_group()
1105 xmlAttrPtr ns = get_attribute(groupType->properties, "targetNamespace"); in schema_group() local
1106 if (ns == NULL) { in schema_group()
1107 ns = tns; in schema_group()
1109 if (ns) { in schema_group()
1110 smart_str_appends(&key, (char*)ns->children->content); in schema_group()
1122 if (ns) {efree(ns);} in schema_group()
1129 smart_str_appends(&key, (char*)ns->children->content); in schema_group()
1380 xmlAttrPtr attrs, name, ns; in schema_complexType() local
1383 ns = get_attribute(attrs, "targetNamespace"); in schema_complexType()
1384 if (ns == NULL) { in schema_complexType()
1385 ns = tns; in schema_complexType()
1398 newType->namens = estrdup((char*)ns->children->content); in schema_complexType()
1412 cur_type->encode->details.ns = estrdup(newType->namens); in schema_complexType()
1428 newType->namens = estrdup((char*)ns->children->content); in schema_complexType()
1433 create_encoder(sdl, cur_type, ns->children->content, name->children->content); in schema_complexType()
1509 xmlAttrPtr attrs, attr, ns, name, type, ref = NULL; in schema_element() local
1512 ns = get_attribute(attrs, "targetNamespace"); in schema_element()
1513 if (ns == NULL) { in schema_element()
1514 ns = tns; in schema_element()
1532 char *type, *ns; in schema_element() local
1535 parse_namespace(ref->children->content, &type, &ns); in schema_element()
1536 nsptr = xmlSearchNs(element->doc, element, BAD_CAST(ns)); in schema_element()
1541 xmlAttrPtr ns = get_attribute(attrs, "targetNamespace"); in schema_element() local
1542 if (ns == NULL) { in schema_element()
1543 ns = tns; in schema_element()
1545 if (ns) { in schema_element()
1546 smart_str_appends(&nscat, (char*)ns->children->content); in schema_element()
1554 if (ns) {efree(ns);} in schema_element()
1559 newType->namens = estrdup((char*)ns->children->content); in schema_element()
1764 char *attr_name, *ns; in schema_attribute() local
1767 parse_namespace(ref->children->content, &attr_name, &ns); in schema_attribute()
1768 nsptr = xmlSearchNs(attrType->doc, attrType, BAD_CAST(ns)); in schema_attribute()
1773 xmlAttrPtr ns = get_attribute(attrType->properties, "targetNamespace"); in schema_attribute() local
1774 if (ns == NULL) { in schema_attribute()
1775 ns = tns; in schema_attribute()
1777 if (ns) { in schema_attribute()
1778 smart_str_appends(&key, (char*)ns->children->content); in schema_attribute()
1786 if (ns) {efree(ns);} in schema_attribute()
1788 xmlAttrPtr ns; in schema_attribute() local
1790 ns = get_attribute(attrType->properties, "targetNamespace"); in schema_attribute()
1791 if (ns == NULL) { in schema_attribute()
1792 ns = tns; in schema_attribute()
1794 if (ns != NULL) { in schema_attribute()
1795 smart_str_appends(&key, (char*)ns->children->content); in schema_attribute()
1797 newAttr->namens = estrdup((char*)ns->children->content); in schema_attribute()
1879 char *value, *ns; in schema_attribute() local
1883 parse_namespace(attr->children->content, &value, &ns); in schema_attribute()
1884 nsptr = xmlSearchNs(attr->doc, attr->parent, BAD_CAST(ns)); in schema_attribute()
1886 ext->ns = estrdup((char*)nsptr->href); in schema_attribute()
1891 if (ns) {efree(ns);} in schema_attribute()
1980 xmlAttrPtr ns; in schema_attributeGroup() local
1984 ns = get_attribute(attrGroup->properties, "targetNamespace"); in schema_attributeGroup()
1985 if (ns == NULL) { in schema_attributeGroup()
1986 ns = tns; in schema_attributeGroup()
1991 newType->namens = estrdup((char*)ns->children->content); in schema_attributeGroup()
2005 char *group_name, *ns; in schema_attributeGroup() local
2016 parse_namespace(ref->children->content, &group_name, &ns); in schema_attributeGroup()
2017 nsptr = xmlSearchNs(attrGroup->doc, attrGroup, BAD_CAST(ns)); in schema_attributeGroup()
2026 if (ns) {efree(ns);} in schema_attributeGroup()
2077 if (new_attr->ns) { in copy_extra_attribute()
2078 new_attr->ns = estrdup(new_attr->ns); in copy_extra_attribute()
2495 if (attr->ns) { in delete_extra_attribute()
2496 efree(attr->ns); in delete_extra_attribute()
2508 if (attr->ns) { in delete_extra_attribute_persistent()
2509 free(attr->ns); in delete_extra_attribute_persistent()