RE: [xsl] Unable to View the XSL Output in Browser in Altova XML Spy

Subject: RE: [xsl] Unable to View the XSL Output in Browser in Altova XML Spy
From: "W Charlton" <XSLList@xxxxxxxxxx>
Date: Thu, 11 Nov 2010 12:28:55 -0000
Rashi,

When you say "Altova doesn't allow me to open it in browser tab", what
happens, do you just see a blank page or do you get an error?

First check that you have <xsl:output method="html" indent="yes"
encoding="ISO-8859-1"/> at the top of your stylesheet, this will force the
renderer to create an HTML page rather than an XML page, which is the
default behaviour.

If you see a blank page it is possibly because you have a javascript link
which is closed (as it would be in XML) and the browser will not be able to
continue processing the page, just a guess.

If you have a javascript link it needs to have a closing element as below.
<script type="text/javascript" src="/path/yourfile.js" ></script>
If the transform produces <script type="text/javascript"
src="/path/yourfile.js" /> then the page will not display.



William Charlton
The yMonda team
yMonda Limited
w: www.ymonda.net

-----Original Message-----
From: Rashi Bhardwaj [mailto:rashi.bhardwaj@xxxxxxxxx] 
Sent: 11 November 2010 10:43
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: [xsl] Unable to View the XSL Output in Browser in Altova XML Spy

Hi All,

Could anyone please help me in a silly issue I am facing while
debugging the xsl transformation. I want to view the by xsl output in
run time (while debugging), but as some html tags are not properly
closed, Altova dosen't allow me to open it in browser tab.

Though the same thing is working fine on our test machine. But when I
try at my machine it is not allowing me to open it while debugging the
XSL.

Please help me out.

Regards,
Rashi Bhardwaj

Current Thread