Hi,

i have got the problem that a Transformation on DOMResult(Document) runs
into java.util.EmptyStackException.

// ********* DOM RESULT ******** //
// runs in Error 

......
javax.xml.parsers.DocumentBuilderFactory domfac =
javax.xml.parsers.DocumentBuilderFactory.newInstance();
domfac.setNamespaceAware(true);
try
{
DocumentBuilder db = domfac.newDocumentBuilder();
DOMImplementation di = db.getDOMImplementation();
org.w3c.dom.Document dom = di.createDocument("", "root", null);

// !! RUNS INTO ERROR
//DOMResult tempResult = new DOMResult(dom);

// WILL WORK
//DOMResult tempResult = new DOMResult();

// WILL WORK
//DOMResult tempResult = new DOMResult(dom.getDocumentElement());


this.transform(xsltSource, xmlSource, tempResult);
}
catch(Exception e)
{
System.out.println(e.toString());
}

ON StreamResult it works.

Kind Regards

Marcus
-- 
View this message in context: 
http://www.nabble.com/DOMResult-on-Document-causes-java.util.EmptyStackException-tf4451305.html#a12699533
Sent from the Xalan - Dev mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to