473,574 Members | 2,886 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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:styleshe et 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_r eports.xsl" type="text/xsl"?>

<INVOICE INVOICE_TYPE="D RAFT">

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

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 11454
"robert walker" <rf******@hotma il.com> wrote in message
news:96******** *************** ***@posting.goo gle.com...
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:styleshe et 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_r eports.xsl" type="text/xsl"?>

<INVOICE INVOICE_TYPE="D RAFT">

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

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******@hotma il.com> wrote in message
news:96******** *************** ***@posting.goo gle.com...
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
2444
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 login again, i bounce them to an error page. i use the session_onEnd sub within global.asa to remove their userID from the array at the end of their...
1
2338
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... I have am XML file generated on the server that looks something like this: <?xml version="1.0" encoding="utf-8" ?> <?xml-stylesheet type="text/xsl"...
2
8790
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 Transform(input As System.Xml.XPath.IXPathNavigable, args As System.Xml.Xsl.XsltArgumentList, output As System.IO.Stream)' is obsolete: 'You should pass...
8
2170
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 table being transformed - modest amount of data to say the least. The transform takes at least 10 seconds on a fast machine, which seems absolutely...
6
5217
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
2370
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 wont work since the page isnt HTML anymore. Is there some other way to print automaticly. i used to have this function to print automaticly from...
1
2199
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 Parsing Error: not well-formed Location: http://localhost:1132/WebSite/Google Line Number 2, Column 62:<urlset
16
2317
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 on the same page work correctly. It appears to be isolated to 1-2 machines in a particular network. I cannot verify whether these machines have...
4
7713
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 view my XML pages using IE 6 or 7 it displays beautifully both accessed locally as through HTTP on my ISPís server where I put them using FTP. When I...
0
7762
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
8105
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8272
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7859
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
8137
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
3774
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
2274
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1369
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1101
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.