From 9fd324a42488bec84c27be945c66ea1563d4c60e Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Thu, 3 Oct 2013 15:31:06 +0200 Subject: [PATCH] Fix elements for which SRU facet NS is applied --- src/sru_facet.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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; -- 1.7.10.4