mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 19:35:51 +00:00
not part of build; Calling ::Normalize() on result document, hack to get the xalan buster return useful hints on errors
This commit is contained in:
parent
212d80d3be
commit
a229441467
@ -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 <a href="mailto:kvisco@ziplink.net">Keith Visco</a>
|
||||
* @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"));
|
||||
|
Loading…
Reference in New Issue
Block a user