From 44e854d75508bb9af4a36f2644db4757e30ac985 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Thu, 25 May 2006 07:43:58 +0000 Subject: [PATCH] Use xsltSaveResultToString instead of xmlDocDumpFormatMemory in record conversion utility. See also bug #594. --- src/record_conv.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/record_conv.c b/src/record_conv.c index bf32f62..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.8 2006-05-08 16:58:25 quinn Exp $ + * $Id: record_conv.c,v 1.9 2006-05-25 07:43:58 adam Exp $ */ /** * \file record_conv.c @@ -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); -- 1.7.10.4