You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by se...@standardandpoors.com on 2000/02/07 22:55:45 UTC
Error creating an XSLTInputSource
Hi,
I have a valid DOM tree in an in-memory Document object. I'm trying to create a
XSLTInputSource from it and then process the
resulting input source, using the following code:
Document doc = ...//the Document object
XSLTProcessor processor = XSLTProcessorFactory.getProcessor();
processor.process(new XSLTInputSource((Node)(doc.getFirstChild())),
xslInputSource, new XSLTResultTarget(out));
When i run the code, i get the following error message:---
DTMLiaison can not handle nodes of typeclass org.apache.xerces.dom.ElementImpl
at
org.apache.xalan.xslt.XSLTEngineImpl.error(XSLTEngineImpl.java:1412) at
org.apache.xalan.xslt.XSLTEngineImpl.error(XSLTEngineImpl.java:1377) at
org.apache.xalan.xslt.XSLTEngineImpl.process(XSLTEngineImpl.java:606) at
I get an identical message if i try creating an XSLTInputSource from a Document
object after changing the code:
Document doc = ...//the Document object
XSLTProcessor processor = XSLTProcessorFactory.getProcessor();
processor.process(new XSLTInputSource((Node)doc, xslInputSource, new
XSLTResultTarget(out));
DTMLiaison can not handle nodes of typeclass org.apache.xerces.dom.DocumentImpl
at
org.apache.xalan.xslt.XSLTEngineImpl.error(XSLTEngineImpl.java:1412) at
org.apache.xalan.xslt.XSLTEngineImpl.error(XSLTEngineImpl.java:1377) at
org.apache.xalan.xslt.XSLTEngineImpl.process(XSLTEngineImpl.java:606) at
DocumentImpl and ElementImpl are both implementations of Node, which is the
required input param.
Can anyone help me out?
Thanks,
situ