X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Ffilter_query_rewrite.cpp;h=4828781d41329755165253fd9015be1dfb230d73;hb=586d78659d671683f33ec55f4a7d32b28e345ccd;hp=9fe00bf1cc8bc1a0cd6895e1365d0295aaa7d1ea;hpb=b02df3fd0849c5222081013420c18f949c55f9c5;p=metaproxy-moved-to-github.git diff --git a/src/filter_query_rewrite.cpp b/src/filter_query_rewrite.cpp index 9fe00bf..4828781 100644 --- a/src/filter_query_rewrite.cpp +++ b/src/filter_query_rewrite.cpp @@ -101,12 +101,7 @@ void yf::QueryRewrite::Rep::process(mp::Package &package) const xmlDocPtr doc_input = 0; yaz_query2xml(req->query, &doc_input); - if (!doc_input) - { - error_code = YAZ_BIB1_MALFORMED_QUERY; - addinfo = "converion from Query to XML failed"; - } - else + if (doc_input) { xmlDocPtr doc_res = xsltApplyStylesheet(m_stylesheet, doc_input, 0);