From 21ae3b472a54629d9c231e6b65ef560f5b882666 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Mon, 12 Jan 2004 21:02:42 +0000 Subject: [PATCH] Use xsltParseStylesheetFile rather than xmlParseFile & xsltParseStylesheetDoc to avoid loss of white space in XSL file. --- src/yaz-proxy.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/yaz-proxy.cpp b/src/yaz-proxy.cpp index 00daeef..4dbcc43 100644 --- a/src/yaz-proxy.cpp +++ b/src/yaz-proxy.cpp @@ -2,7 +2,7 @@ * Copyright (c) 1998-2004, Index Data. * See the file LICENSE for details. * - * $Id: yaz-proxy.cpp,v 1.86 2004-01-09 18:11:15 adam Exp $ + * $Id: yaz-proxy.cpp,v 1.87 2004-01-12 21:02:42 adam Exp $ */ #include @@ -585,10 +585,9 @@ void Yaz_Proxy::convert_xsl(Z_NamePlusRecordList *p) { if (!m_stylesheet_schema) return; - xmlDocPtr xslt_doc = xmlParseFile(m_stylesheet_schema); xsltStylesheetPtr xsp; - xsp = xsltParseStylesheetDoc(xslt_doc); + xsp = xsltParseStylesheetFile((const xmlChar *) m_stylesheet_schema); int i; for (i = 0; i < p->num_records; i++) -- 1.7.10.4