X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=index%2Falvis.c;h=218e6ea6aab11493e0f78d5c57f48cdc334540db;hb=6b553b7b42f0a2940c9765b9811e5db44ba8265f;hp=43847e0ce106c260d2be81179584a3125c04e82a;hpb=5d13c6c6bb31cb385291820d9d1d9e4d192e8d0a;p=idzebra-moved-to-github.git diff --git a/index/alvis.c b/index/alvis.c index 43847e0..218e6ea 100644 --- a/index/alvis.c +++ b/index/alvis.c @@ -1,4 +1,4 @@ -/* $Id: alvis.c,v 1.5 2006-11-10 12:56:26 adam Exp $ +/* $Id: alvis.c,v 1.6 2006-11-16 13:27:54 adam Exp $ Copyright (C) 1995-2006 Index Data ApS @@ -706,8 +706,11 @@ static int filter_retrieve (void *clientData, struct recRetrieveCtrl *p) xmlChar *buf_out; int len_out; - xsltSaveResultToString(&buf_out, &len_out, resDoc, - schema->stylesheet_xsp); + if (schema->stylesheet_xsp) + xsltSaveResultToString(&buf_out, &len_out, resDoc, + schema->stylesheet_xsp); + else + xmlDocDumpMemory(resDoc, &buf_out, &len_out); p->output_format = VAL_TEXT_XML; p->rec_len = len_out; @@ -720,8 +723,11 @@ static int filter_retrieve (void *clientData, struct recRetrieveCtrl *p) xmlChar *buf_out; int len_out; - xsltSaveResultToString(&buf_out, &len_out, resDoc, - schema->stylesheet_xsp); + if (schema->stylesheet_xsp) + xsltSaveResultToString(&buf_out, &len_out, resDoc, + schema->stylesheet_xsp); + else + xmlDocDumpMemory(resDoc, &buf_out, &len_out); p->output_format = VAL_SUTRS; p->rec_len = len_out;