You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by David Xu <da...@vendio.com> on 2000/09/27 23:12:53 UTC

XSLTProcessor can't process a XSLTInputSource generated by a org.w3c.dom.Node.

 Hi,
       I am using Xalan and Xerces to process XML docs on Windows98. When I
try to
use the following code:

        ...
        DOMParser parser = new DOMParser();
        parser.parse(xml_input);
        Document doc = parser.getDocument();
        xml_input =new XSLTInputSource(doc);
        .
        .
        .
        processor.process(xml_input, xsl_input, new
XSLTResultTarget(response.getWriter()));
        ...

I received a XSL Error caused by the last statement:
    Cannot use a DTMLiaison for a input DOM node... pass a
org.apache.xalan.xpath.xdom.XercesLiaison instead.

        Can anybody tell me why? And, what is the solution?

David