From: Adam Dickmeiss Date: Mon, 12 Jan 2004 21:02:42 +0000 (+0000) Subject: Use xsltParseStylesheetFile rather than xmlParseFile & X-Git-Tag: YAZPP.0.7.5.larry~6 X-Git-Url: http://jsfdemo.indexdata.com/cgi-bin?a=commitdiff_plain;h=21ae3b472a54629d9c231e6b65ef560f5b882666;p=yazpp-moved-to-github.git Use xsltParseStylesheetFile rather than xmlParseFile & xsltParseStylesheetDoc to avoid loss of white space in XSL file. --- 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++)