xml-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tilmann Singer <r...@rosa.com>
Subject Re: Building DOM objects directly , Xalan
Date Wed, 19 Jan 2000 11:32:55 GMT

I think this has been answered on the xalan-dev list: you should
instantiate your processor this way

XSLTProcessor processor = 
  XSLTProcessorFactory.getProcessor(new 
  org.apache.xalan.xpath.xdom.XercesLiaison());


hope that helps, tilmann


Kip Lubliner wrote:
> 
> I am trying to build DOM objects directly, without
> reading from an XML file.  When I call
> anXSLProcessor.process(), I get an exception (stack
> trace at end of email).  I am using the LotusXSL apis,
> BTW.  Here is how I am building the Document:
> 
> Document d = new DocumentImpl();
> Element listview = d.createElement("listview");
> d.appendChild(listview);
> // etc.
> anXSLProcessor.process(
>     new XSLTInputSource(d),
>     new XSLTInputSource("c:\\stylesheet.xsl"),
>     out)
> 
> I couldn't find documentation on how to create the
> DOMobjects.  Should I be using DOMImplementationImpl?
> 
> XSL Error: SAX Exception
> 
> SAX exception: DTMLiaison can not handle nodes of
> typeclass org.apache.xerces.dom.DocumentImplDTMLiaison
> 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
> com.lotus.xsl.XSLProcessor.process(XSLProcessor.java:227)
> 
>         at [my code]
> ---------
> 
> DTMLiaison can not handle nodes of typeclass
> org.apache.xerces.dom.DocumentImpl
> 
>         at
> org.apache.xalan.xpath.dtm.DTMLiaison.checkNode(DTMLiaison.java:136)
> 
>         at
> org.apache.xalan.xslt.StylesheetRoot.process(StylesheetRoot.java:303)
> 
>         at
> org.apache.xalan.xslt.XSLTEngineImpl.process(XSLTEngineImpl.java:582)
> 
>         at
> com.lotus.xsl.XSLProcessor.process(XSLProcessor.java:227)
> 
>         at [my code]
> __________________________________________________
> Do You Yahoo!?
> Talk to your friends online with Yahoo! Messenger.
> http://im.yahoo.com

Mime
View raw message