From: Adam Dickmeiss Date: Thu, 3 Oct 2013 13:31:06 +0000 (+0200) Subject: Fix elements for which SRU facet NS is applied X-Git-Tag: v5.0.1~2 X-Git-Url: http://lists.indexdata.dk/?a=commitdiff_plain;h=9fd324a42488bec84c27be945c66ea1563d4c60e;p=yaz-moved-to-github.git Fix elements for which SRU facet NS is applied --- diff --git a/src/sru_facet.c b/src/sru_facet.c index 67e4733..7703f37 100644 --- a/src/sru_facet.c +++ b/src/sru_facet.c @@ -219,11 +219,10 @@ void yaz_sru_facet_response(ODR o, Z_FacetList **facetList, xmlNodePtr n) "http://docs.oasis-open.org/ns/search-ws/facetedResults"; xmlNode *p1 = xmlNewChild(n, 0, BAD_CAST "facetedResults", 0); xmlNsPtr ns_fr = xmlNewNs(p1, BAD_CAST ns, BAD_CAST "fr"); - xmlSetNs(p1, ns_fr); for (i = 0; i < fl->num; i++) { Z_FacetField *ff = fl->elements[i]; - xmlNode *p2 = xmlNewChild(p1, 0, BAD_CAST "facet", 0); + xmlNode *p2 = xmlNewChild(p1, ns_fr, BAD_CAST "facet", 0); int j; xmlNode *p3; struct yaz_facet_attr av;