Lines Matching refs:ns

48 static encodePtr create_encoder(sdlPtr sdl, sdlTypePtr cur_type, const xmlChar *ns, const xmlChar *…  in create_encoder()  argument
57 smart_str_appends(&nscat, (char*)ns); in create_encoder()
63 if (enc->details.ns) { in create_encoder()
64 efree(enc->details.ns); in create_encoder()
75 enc->details.ns = estrdup((char*)ns); 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()
97 static void schema_load_file(sdlCtx *ctx, xmlAttrPtr ns, xmlChar *location, xmlAttrPtr tns, int imp… in schema_load_file() argument
118 …if (ns != NULL && (new_tns == NULL || xmlStrcmp(ns->children->content, new_tns->children->content)… in schema_load_file()
120 …an't import schema from '%s', unexpected 'targetNamespace'='%s'", location, ns->children->content); in schema_load_file()
122 if (ns == NULL && new_tns != NULL) { in schema_load_file()
230 xmlAttrPtr ns, location; in load_schema() local
233 ns = get_attribute(trav->properties, "namespace"); in load_schema()
236 if (ns != NULL && tns != NULL && xmlStrcmp(ns->children->content, tns->children->content) == 0) { in load_schema()
253 schema_load_file(ctx, ns, uri, tns, 1); in load_schema()
307 xmlAttrPtr name, ns; in schema_simpleType() local
309 ns = get_attribute(simpleType->properties, "targetNamespace"); in schema_simpleType()
310 if (ns == NULL) { in schema_simpleType()
311 ns = tns; in schema_simpleType()
324 newType->namens = estrdup((char*)ns->children->content); in schema_simpleType()
338 cur_type->encode->details.ns = estrdup(newType->namens); in schema_simpleType()
354 newType->namens = estrdup((char*)ns->children->content); in schema_simpleType()
367 create_encoder(sdl, cur_type, ns->children->content, name->children->content); in schema_simpleType()
417 char *type, *ns; in schema_list() local
420 parse_namespace(itemType->children->content, &type, &ns); in schema_list()
421 nsptr = xmlSearchNs(listType->doc, listType, BAD_CAST(ns)); in schema_list()
440 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()
644 char *type, *ns; in schema_restriction_simpleContent() local
647 parse_namespace(base->children->content, &type, &ns); in schema_restriction_simpleContent()
648 nsptr = xmlSearchNs(restType->doc, restType, BAD_CAST(ns)); in schema_restriction_simpleContent()
653 if (ns) {efree(ns);} in schema_restriction_simpleContent()
749 char *type, *ns; in schema_restriction_complexContent() local
752 parse_namespace(base->children->content, &type, &ns); in schema_restriction_complexContent()
753 nsptr = xmlSearchNs(restType->doc, restType, BAD_CAST(ns)); in schema_restriction_complexContent()
758 if (ns) {efree(ns);} in schema_restriction_complexContent()
874 char *type, *ns; in schema_extension_simpleContent() local
877 parse_namespace(base->children->content, &type, &ns); in schema_extension_simpleContent()
878 nsptr = xmlSearchNs(extType->doc, extType, BAD_CAST(ns)); in schema_extension_simpleContent()
883 if (ns) {efree(ns);} in schema_extension_simpleContent()
929 char *type, *ns; in schema_extension_complexContent() local
932 parse_namespace(base->children->content, &type, &ns); in schema_extension_complexContent()
933 nsptr = xmlSearchNs(extType->doc, extType, BAD_CAST(ns)); in schema_extension_complexContent()
938 if (ns) {efree(ns);} in schema_extension_complexContent()
1061 xmlAttrPtr ns, name, ref = NULL; in schema_group() local
1064 ns = get_attribute(groupType->properties, "targetNamespace"); in schema_group()
1065 if (ns == NULL) { in schema_group()
1066 ns = tns; in schema_group()
1078 char *type, *ns; in schema_group() local
1081 parse_namespace(ref->children->content, &type, &ns); in schema_group()
1082 nsptr = xmlSearchNs(groupType->doc, groupType, BAD_CAST(ns)); in schema_group()
1086 xmlAttrPtr ns = get_attribute(groupType->properties, "targetNamespace"); in schema_group() local
1087 if (ns == NULL) { in schema_group()
1088 ns = tns; in schema_group()
1090 if (ns) { in schema_group()
1091 smart_str_appends(&key, (char*)ns->children->content); in schema_group()
1103 if (ns) {efree(ns);} in schema_group()
1110 smart_str_appends(&key, (char*)ns->children->content); in schema_group()
1361 xmlAttrPtr attrs, name, ns; in schema_complexType() local
1364 ns = get_attribute(attrs, "targetNamespace"); in schema_complexType()
1365 if (ns == NULL) { in schema_complexType()
1366 ns = tns; in schema_complexType()
1379 newType->namens = estrdup((char*)ns->children->content); in schema_complexType()
1393 cur_type->encode->details.ns = estrdup(newType->namens); in schema_complexType()
1409 newType->namens = estrdup((char*)ns->children->content); in schema_complexType()
1414 create_encoder(sdl, cur_type, ns->children->content, name->children->content); in schema_complexType()
1490 xmlAttrPtr attrs, attr, ns, name, type, ref = NULL; in schema_element() local
1493 ns = get_attribute(attrs, "targetNamespace"); in schema_element()
1494 if (ns == NULL) { in schema_element()
1495 ns = tns; in schema_element()
1513 char *type, *ns; in schema_element() local
1516 parse_namespace(ref->children->content, &type, &ns); in schema_element()
1517 nsptr = xmlSearchNs(element->doc, element, BAD_CAST(ns)); in schema_element()
1522 xmlAttrPtr ns = get_attribute(attrs, "targetNamespace"); in schema_element() local
1523 if (ns == NULL) { in schema_element()
1524 ns = tns; in schema_element()
1526 if (ns) { in schema_element()
1527 smart_str_appends(&nscat, (char*)ns->children->content); in schema_element()
1535 if (ns) {efree(ns);} in schema_element()
1540 newType->namens = estrdup((char*)ns->children->content); in schema_element()
1745 char *attr_name, *ns; in schema_attribute() local
1748 parse_namespace(ref->children->content, &attr_name, &ns); in schema_attribute()
1749 nsptr = xmlSearchNs(attrType->doc, attrType, BAD_CAST(ns)); in schema_attribute()
1754 xmlAttrPtr ns = get_attribute(attrType->properties, "targetNamespace"); in schema_attribute() local
1755 if (ns == NULL) { in schema_attribute()
1756 ns = tns; in schema_attribute()
1758 if (ns) { in schema_attribute()
1759 smart_str_appends(&key, (char*)ns->children->content); in schema_attribute()
1767 if (ns) {efree(ns);} in schema_attribute()
1769 xmlAttrPtr ns; in schema_attribute() local
1771 ns = get_attribute(attrType->properties, "targetNamespace"); in schema_attribute()
1772 if (ns == NULL) { in schema_attribute()
1773 ns = tns; in schema_attribute()
1775 if (ns != NULL) { in schema_attribute()
1776 smart_str_appends(&key, (char*)ns->children->content); in schema_attribute()
1778 newAttr->namens = estrdup((char*)ns->children->content); in schema_attribute()
1859 char *value, *ns; in schema_attribute() local
1863 parse_namespace(attr->children->content, &value, &ns); in schema_attribute()
1864 nsptr = xmlSearchNs(attr->doc, attr->parent, BAD_CAST(ns)); in schema_attribute()
1866 ext->ns = estrdup((char*)nsptr->href); in schema_attribute()
1871 if (ns) {efree(ns);} in schema_attribute()
1960 xmlAttrPtr ns; in schema_attributeGroup() local
1964 ns = get_attribute(attrGroup->properties, "targetNamespace"); in schema_attributeGroup()
1965 if (ns == NULL) { in schema_attributeGroup()
1966 ns = tns; in schema_attributeGroup()
1971 newType->namens = estrdup((char*)ns->children->content); in schema_attributeGroup()
1985 char *group_name, *ns; in schema_attributeGroup() local
1996 parse_namespace(ref->children->content, &group_name, &ns); in schema_attributeGroup()
1997 nsptr = xmlSearchNs(attrGroup->doc, attrGroup, BAD_CAST(ns)); in schema_attributeGroup()
2006 if (ns) {efree(ns);} in schema_attributeGroup()
2057 if (new_attr->ns) { in copy_extra_attribute()
2058 new_attr->ns = estrdup(new_attr->ns); in copy_extra_attribute()
2468 if (attr->ns) { in delete_extra_attribute()
2469 efree(attr->ns); in delete_extra_attribute()
2481 if (attr->ns) { in delete_extra_attribute_persistent()
2482 free(attr->ns); in delete_extra_attribute_persistent()