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); 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()
502 char *type, *ns; in schema_union() local
517 parse_namespace(BAD_CAST(start), &type, &ns); in schema_union()
518 nsptr = xmlSearchNs(unionType->doc, unionType, BAD_CAST(ns)); in schema_union()
537 if (ns) {efree(ns);} in schema_union()
645 char *type, *ns; in schema_restriction_simpleContent() local
648 parse_namespace(base->children->content, &type, &ns); in schema_restriction_simpleContent()
649 nsptr = xmlSearchNs(restType->doc, restType, BAD_CAST(ns)); in schema_restriction_simpleContent()
654 if (ns) {efree(ns);} in schema_restriction_simpleContent()
750 char *type, *ns; in schema_restriction_complexContent() local
753 parse_namespace(base->children->content, &type, &ns); in schema_restriction_complexContent()
754 nsptr = xmlSearchNs(restType->doc, restType, BAD_CAST(ns)); in schema_restriction_complexContent()
759 if (ns) {efree(ns);} in schema_restriction_complexContent()
875 char *type, *ns; in schema_extension_simpleContent() local
878 parse_namespace(base->children->content, &type, &ns); in schema_extension_simpleContent()
879 nsptr = xmlSearchNs(extType->doc, extType, BAD_CAST(ns)); in schema_extension_simpleContent()
884 if (ns) {efree(ns);} in schema_extension_simpleContent()
930 char *type, *ns; in schema_extension_complexContent() local
933 parse_namespace(base->children->content, &type, &ns); in schema_extension_complexContent()
934 nsptr = xmlSearchNs(extType->doc, extType, BAD_CAST(ns)); in schema_extension_complexContent()
939 if (ns) {efree(ns);} in schema_extension_complexContent()
1062 xmlAttrPtr ns, name, ref = NULL; in schema_group() local
1065 ns = get_attribute(groupType->properties, "targetNamespace"); in schema_group()
1066 if (ns == NULL) { in schema_group()
1067 ns = tns; in schema_group()
1079 char *type, *ns; in schema_group() local
1082 parse_namespace(ref->children->content, &type, &ns); in schema_group()
1083 nsptr = xmlSearchNs(groupType->doc, groupType, BAD_CAST(ns)); in schema_group()
1087 xmlAttrPtr ns = get_attribute(groupType->properties, "targetNamespace"); in schema_group() local
1088 if (ns == NULL) { in schema_group()
1089 ns = tns; in schema_group()
1091 if (ns) { in schema_group()
1092 smart_str_appends(&key, (char*)ns->children->content); in schema_group()
1104 if (ns) {efree(ns);} in schema_group()
1111 smart_str_appends(&key, (char*)ns->children->content); in schema_group()
1362 xmlAttrPtr attrs, name, ns; in schema_complexType() local
1365 ns = get_attribute(attrs, "targetNamespace"); in schema_complexType()
1366 if (ns == NULL) { in schema_complexType()
1367 ns = tns; in schema_complexType()
1380 newType->namens = estrdup((char*)ns->children->content); in schema_complexType()
1394 cur_type->encode->details.ns = estrdup(newType->namens); in schema_complexType()
1410 newType->namens = estrdup((char*)ns->children->content); in schema_complexType()
1415 create_encoder(sdl, cur_type, ns->children->content, name->children->content); in schema_complexType()
1491 xmlAttrPtr attrs, attr, ns, name, type, ref = NULL; in schema_element() local
1494 ns = get_attribute(attrs, "targetNamespace"); in schema_element()
1495 if (ns == NULL) { in schema_element()
1496 ns = tns; in schema_element()
1514 char *type, *ns; in schema_element() local
1517 parse_namespace(ref->children->content, &type, &ns); in schema_element()
1518 nsptr = xmlSearchNs(element->doc, element, BAD_CAST(ns)); in schema_element()
1523 xmlAttrPtr ns = get_attribute(attrs, "targetNamespace"); in schema_element() local
1524 if (ns == NULL) { in schema_element()
1525 ns = tns; in schema_element()
1527 if (ns) { in schema_element()
1528 smart_str_appends(&nscat, (char*)ns->children->content); in schema_element()
1536 if (ns) {efree(ns);} in schema_element()
1541 newType->namens = estrdup((char*)ns->children->content); in schema_element()
1748 char *attr_name, *ns; in schema_attribute() local
1751 parse_namespace(ref->children->content, &attr_name, &ns); in schema_attribute()
1752 nsptr = xmlSearchNs(attrType->doc, attrType, BAD_CAST(ns)); in schema_attribute()
1757 xmlAttrPtr ns = get_attribute(attrType->properties, "targetNamespace"); in schema_attribute() local
1758 if (ns == NULL) { in schema_attribute()
1759 ns = tns; in schema_attribute()
1761 if (ns) { in schema_attribute()
1762 smart_str_appends(&key, (char*)ns->children->content); in schema_attribute()
1770 if (ns) {efree(ns);} in schema_attribute()
1772 xmlAttrPtr ns; in schema_attribute() local
1774 ns = get_attribute(attrType->properties, "targetNamespace"); in schema_attribute()
1775 if (ns == NULL) { in schema_attribute()
1776 ns = tns; in schema_attribute()
1778 if (ns != NULL) { in schema_attribute()
1779 smart_str_appends(&key, (char*)ns->children->content); in schema_attribute()
1781 newAttr->namens = estrdup((char*)ns->children->content); in schema_attribute()
1862 char *value, *ns; in schema_attribute() local
1866 parse_namespace(attr->children->content, &value, &ns); in schema_attribute()
1867 nsptr = xmlSearchNs(attr->doc, attr->parent, BAD_CAST(ns)); in schema_attribute()
1869 ext->ns = estrdup((char*)nsptr->href); in schema_attribute()
1874 if (ns) {efree(ns);} in schema_attribute()
1963 xmlAttrPtr ns; in schema_attributeGroup() local
1967 ns = get_attribute(attrGroup->properties, "targetNamespace"); in schema_attributeGroup()
1968 if (ns == NULL) { in schema_attributeGroup()
1969 ns = tns; in schema_attributeGroup()
1974 newType->namens = estrdup((char*)ns->children->content); in schema_attributeGroup()
1988 char *group_name, *ns; in schema_attributeGroup() local
1999 parse_namespace(ref->children->content, &group_name, &ns); in schema_attributeGroup()
2000 nsptr = xmlSearchNs(attrGroup->doc, attrGroup, BAD_CAST(ns)); in schema_attributeGroup()
2009 if (ns) {efree(ns);} in schema_attributeGroup()
2060 if (new_attr->ns) { in copy_extra_attribute()
2061 new_attr->ns = estrdup(new_attr->ns); in copy_extra_attribute()
2471 if (attr->ns) { in delete_extra_attribute()
2472 efree(attr->ns); in delete_extra_attribute()
2484 if (attr->ns) { in delete_extra_attribute_persistent()
2485 free(attr->ns); in delete_extra_attribute_persistent()