472,374 Members | 1,570 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,374 software developers and data experts.

browser does not transform xml when server through web server

hi all, can someone help me with this

I have xml file on
my web server (iplanet) and want to
to load them from a client (internet explorer)
and see the transformed xml in html

my xslt is billing_reports.xsl like this

=====================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html"/>
<xsl:template match="/">
......
=====================================

and my xml file looks like
=====================================
<?xml version="1.0" encoding="ISO-8859-1"?>

<?xml-stylesheet href="billing_reports.xsl" type="text/xsl"?>

<INVOICE INVOICE_TYPE="DRAFT">

.......
=====================================

when served to the the client, no transformation takes place

internet explorer client gives
"Invalid at the top level of the document. Error processing resource
..."
its well formed xml and there is no dtd, so I do not understand this
message,
and
mozilla yeieds the xml
as if it were a text file

XML Bible book states

There are three primary ways to transform XML documents into other
formats, such as HTML, with an XSLT style sheet:

1. The XML document and associated style sheet are both served to the
client (Web browser), which then transforms the document as specified
by the style sheet and presents it to the user.

..
..
..
..
how do I configure #1 so that this happens

thanks
Jul 20 '05 #1
3 11386
"robert walker" <rf******@hotmail.com> wrote in message
news:96**************************@posting.google.c om...
hi all, can someone help me with this

I have xml file on
my web server (iplanet) and want to
to load them from a client (internet explorer)
and see the transformed xml in html

my xslt is billing_reports.xsl like this

=====================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html"/>
<xsl:template match="/">
.....
=====================================

and my xml file looks like
=====================================
<?xml version="1.0" encoding="ISO-8859-1"?>

<?xml-stylesheet href="billing_reports.xsl" type="text/xsl"?>

<INVOICE INVOICE_TYPE="DRAFT">

......
=====================================

when served to the the client, no transformation takes place

internet explorer client gives
"Invalid at the top level of the document. Error processing resource
.."
its well formed xml and there is no dtd, so I do not understand this

Are you sure there is NO whitespace before the xml prolog?

Joe (MVP - xml)
Jul 20 '05 #2
hi joe, i think all
ws is removed proior to start of

<?xml version="1.0" encoding="iso-8859-1"?>
in my xml file

this is what you are suggesting i check right?

i was reading about cocoon and additional processing instructions to
get this to work, but thought it should just happen when requesting a
xml
resource

thanks
Jul 20 '05 #3
"robert walker" <rf******@hotmail.com> wrote in message
news:96**************************@posting.google.c om...
hi joe, i think all
ws is removed proior to start of

<?xml version="1.0" encoding="iso-8859-1"?>
in my xml file

this is what you are suggesting i check right?

i was reading about cocoon and additional processing instructions to
get this to work, but thought it should just happen when requesting a
xml
resource

thanks

If you email the files to joefawcett - AT - hotmail.com I'll check them on
my server/browser.
(You'll need to email rather than post inline because that can change
encoding etc.)
--

Joe
Jul 20 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

24
by: Nancy Drew | last post by:
hi all i'm trying to keep users from being able to login to a site twice at the same time. everytime a user does a login, i stick their userID into an application scoped array. if they try to...
1
by: David | last post by:
I would like to be able to re-sort data in an HTML table on the without returning to the server. It seems like an XSLT should be able to accomplish this, but I can't find enough information... ...
2
by: Showjumper | last post by:
I've got the following code. But the XSLTransform line is underlined by the blue squiggle and vs tells me c:\inetpub\wwwroot\Sites\RiderDesign\articles\test.aspx.vb(37): 'Public Sub...
8
by: Luther Miller | last post by:
I am using the XML tranform functionality in .NET to transform data in a DataSet into XMLSS using an XSLT file I have created. There are about 100 columns and only about 120 rows in the data...
6
by: hb | last post by:
Hi, Would you please tell me how to detect if the client's browser is closed? I need such event to trigger a database modification. Thank you hb
3
by: Richard | last post by:
in a previous aspx page i got a few records printed throu window.print() function in javascript. but now i have the records in a to RTF and i want to run the same function print, which ofcourse...
1
by: shapper | last post by:
Hello, I am trying to convert an Asp.Net XML sitemap file in a Google XMl sitemap file using a XSL file using an HttpHandler. Everything seems well in my code but I am getting an error: XML...
16
by: Eric | last post by:
I have a user of a web application written in Java/JSP that is unable to login to the site simply because certain links on the page do not run when they are clicked. Other popups using Javascript...
4
by: th1421 | last post by:
Hi, I'm new to FireFox. I am currently trying to convert my website to be compatible with it. Doing so I’m trying to process some XML/XSLT pages (preferably without using JavaScript). When I...
2
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and efficiency. While initially associated with cryptocurrencies...
0
by: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge required to effectively administer and manage Oracle...
0
by: antdb | last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine In the overall architecture, a new "hyper-convergence" concept was proposed, which integrated multiple engines and...
0
hi
by: WisdomUfot | last post by:
It's an interesting question you've got about how Gmail hides the HTTP referrer when a link in an email is clicked. While I don't have the specific technical details, Gmail likely implements measures...
0
by: Carina712 | last post by:
Setting background colors for Excel documents can help to improve the visual appeal of the document and make it easier to read and understand. Background colors can be used to highlight important...
0
BLUEPANDA
by: BLUEPANDA | last post by:
At BluePanda Dev, we're passionate about building high-quality software and sharing our knowledge with the community. That's why we've created a SaaS starter kit that's not only easy to use but also...
0
by: Rahul1995seven | last post by:
Introduction: In the realm of programming languages, Python has emerged as a powerhouse. With its simplicity, versatility, and robustness, Python has gained popularity among beginners and experts...
1
by: Johno34 | last post by:
I have this click event on my form. It speaks to a Datasheet Subform Private Sub Command260_Click() Dim r As DAO.Recordset Set r = Form_frmABCD.Form.RecordsetClone r.MoveFirst Do If...
1
by: ezappsrUS | last post by:
Hi, I wonder if someone knows where I am going wrong below. I have a continuous form and two labels where only one would be visible depending on the checkbox being checked or not. Below is the...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.