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

Re: Transformer Error Using Xalan

Subject: Re: Transformer Error Using Xalan
From: Mukul Gandhi <mukulgw3@xxxxxxxxx>
Date: Wed, 24 Sep 2003 11:37:34 -0700 (PDT)
priya mahajan
Hi Priya,
 It seems to me, that the XML transformation with
XSLT(using Xalan) is taking place on the server
side(within servlet) as you have mentioned.. You
should return HTML to the browser(with Content-type as
text/html). I suspect your servlet is sending XML to
the browser which is causing problem. 

Regards,
Mukul

--- Priya Mahajan <priya.mahajan@xxxxxxxx> wrote:
> 
> Hi all,
> 
> I am using Xalan v2.5.1 in a servlet to transform an
> xml file using an xsl 
> stylesheet and sending it back to the browser. I get
> the following error when I 
> try to do this 
> 
>
--------------------------------------------------------------------------
> 
> The XML page cannot be displayed 
> Cannot view XML input using style sheet. Please
> correct the error and then 
> click the Refresh button, or try again later. 
> 
> Invalid at the top level of the document. Error
> processing resource "..."
> Line 1, Position 39 
> 
> <?xml version="1.0" encoding="UTF-8"?>
>
---------------------------------------------------------------------------
> 
> Both my XML and XSL documents did not have any
> encoding attributes in their XML 
> declaration and I included it, but it still gives
> the same error.
> If I use IE6 to view the XML, then it transforms
> using the included stylesheet 
> without any problems ...
> 
> I came across this problem on the list before but
> couldnt find any solution to 
> it. Could someone please shed any light on this !!
> 
> Thanks,
> Priya
> 
>  XSL-List info and archive: 
> http://www.mulberrytech.com/xsl/xsl-list
> 


__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

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
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.