Re: [xsl] Transformer Error Using Xalan

Subject: Re: [xsl] Transformer Error Using Xalan
From: Mukul Gandhi <mukulgw3@xxxxxxxxx>
Date: Wed, 24 Sep 2003 11:37:34 -0700 (PDT)
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