From a229441467ee84a29d124cf59683775cce6c9623 Mon Sep 17 00:00:00 2001 From: "axel%pike.org" Date: Fri, 2 Mar 2001 03:40:48 +0000 Subject: [PATCH] not part of build; Calling ::Normalize() on result document, hack to get the xalan buster return useful hints on errors --- extensions/transformiix/source/xslt/XSLTProcessor.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/extensions/transformiix/source/xslt/XSLTProcessor.cpp b/extensions/transformiix/source/xslt/XSLTProcessor.cpp index 5de4db877002..86c6affbe70e 100644 --- a/extensions/transformiix/source/xslt/XSLTProcessor.cpp +++ b/extensions/transformiix/source/xslt/XSLTProcessor.cpp @@ -38,7 +38,7 @@ * Olivier Gerardin * -- Changed behavior of passing parameters to templates * - * $Id: XSLTProcessor.cpp,v 1.34 2001/02/14 15:14:20 axel%pike.org Exp $ + * $Id: XSLTProcessor.cpp,v 1.35 2001/03/02 03:40:48 axel%pike.org Exp $ */ #include "XSLTProcessor.h" @@ -53,7 +53,7 @@ /** * XSLTProcessor is a class for Processing XSL stylesheets * @author Keith Visco - * @version $Revision: 1.34 $ $Date: 2001/02/14 15:14:20 $ + * @version $Revision: 1.35 $ $Date: 2001/03/02 03:40:48 $ **/ /** @@ -1774,6 +1774,11 @@ XSLTProcessor::TransformDocument(nsIDOMNode* aSourceDOM, //---------------------------------------/ process(sourceNode, sourceNode, ps); + // XXX Hack, ProcessorState::addToResultTree should do the right thing + // for adding several consecutive text nodes + // Normalize the result document + aOutputDoc->Normalize(); + if (aObserver) { nsresult res = NS_OK; nsAutoString topic; topic.Assign(NS_LITERAL_STRING("xslt-done"));