[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Odd Problem with Servlet and XML

  • From: Bendik Vedeler <bendikv@o...>
  • To: xml-dev@l...
  • Date: Mon, 04 Dec 2000 14:40:48 +0100

servlet with xml
I have a DOM-Document that I wish to transform to HTML and display to a
browser using a Servlet.
I tried it out on a regular Java-class first, and everything worked out
fine. When I tried to implement it in a Servlet i get an odd
error-message though:
  XSL Error: Cannot use a DTMLiaison for a input DOM node... pass a   
org.apache.xalan.xpath.xdom.XercesLiaison instead!

So, I figured that I'd tell my XSLTProcessor to use the XercesLiaison,
at which point I got an error-message stating:
  XercesLiaison can not handle nodes of the type class
com.sun.xml.tree.XmlDocument


This seems strange for two reasons. Why should it work perfectly well in
a regular Java-class, but not in a Servlet? (The java-class was compiled
by the same user as the web-server runs as, with no problems). And why
does it talk of a com.sun.xml.tree.XmlDocument when I have no imports
from sun in either Class?

For information, the web-server is running Apache, with a standalone
Tomcat for servlets. JDK 2.x JSDK 1.2.2. Linux. Xalan and Xerces used
for XML/XSL parsing/processing.

Help would be very appreciated.

Bendik Vedeler

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.