Use xsltSaveResultToString instead of xmlDocDumpFormatMemory
[yaz-moved-to-github.git] / src / record_conv.c
index 9cb2e4c..4f153a9 100644 (file)
@@ -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);