X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=src%2Frecord_conv.c;h=4f153a90c3c9662647c6d2b84c2aa9dc23421a1b;hp=9cb2e4c8a6d54c0657fc351d8118397e91e971ff;hb=44e854d75508bb9af4a36f2644db4757e30ac985;hpb=0b20fc2dcafe8d56501a3b34626b3174c60eefb5 diff --git a/src/record_conv.c b/src/record_conv.c index 9cb2e4c..4f153a9 100644 --- a/src/record_conv.c +++ b/src/record_conv.c @@ -2,7 +2,7 @@ * Copyright (C) 2005-2006, Index Data ApS * See the file LICENSE for details. * - * $Id: record_conv.c,v 1.7 2006-05-08 10:16:47 adam Exp $ + * $Id: record_conv.c,v 1.9 2006-05-25 07:43:58 adam Exp $ */ /** * \file record_conv.c @@ -113,7 +113,7 @@ yaz_record_conv_t yaz_record_conv_create() p->path = 0; #if HAVE_EXSLT - exsltDynRegister(); + exsltRegisterAll(); #endif yaz_record_conv_reset(p); return p; @@ -442,7 +442,9 @@ int yaz_record_conv_record(yaz_record_conv_t p, { xmlChar *out_buf; int out_len; - xmlDocDumpFormatMemory (res, &out_buf, &out_len, 1); + + xsltSaveResultToString(&out_buf, &out_len, res, + r->u.xslt.xsp); wrbuf_rewind(record); wrbuf_write(record, (const char *) out_buf, out_len);