473,772 Members | 2,478 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

XML Rendering Problem

Hi,

I am transforming an xml page using an xsl stylesheet. The results
look fine when tested on my local machine using Firefox 1.0.7 and IE
6.0.29, but after I upload the pages to my server and check them
remotely, the page fails to render in Firefox (it works fine in IE).
Any idea what is going on?

In firefox, it looks like the contents of the xml page are just getting
spit out, and no attempt is made to render it (as if it is not
recognized as XML).

xml page:
http://angelforge.com/jamie/resume/resume.xml

xsl:
http://angelforge.com/jamie/resume/resume.xsl

css:
http://angelforge.com/jamie/resume/resume.css

js:
http://angelforge.com/jamie/resume/resumeFunctions.js

Feb 16 '06 #1
19 1711
ja******@gmail. com wrote:
In firefox, it looks like the contents of the xml page are just getting
spit out, and no attempt is made to render it (as if it is not
recognized as XML).
http://angelforge.com/jamie/resume/resume.xml


200 OK
Connection: close
Date: Thu, 16 Feb 2006 21:01:46 GMT
Accept-Ranges: bytes
ETag: "66c0c7-172d-43f4d9ad"
Server: Apache/1.3.34 (Unix) mod_throttle/3.1.2 mod_auth_passth rough/1.8
mod_log_bytes/1.2 mod_bwlimited/1.4 PHP/4.3.11 FrontPage/5.0.2.2635
mod_ssl/2.8.25 OpenSSL/0.9.7a
Content-Length: 5933
Content-Type: text/html <<<============ =============== =============== ===!!
Last-Modified: Thu, 16 Feb 2006 19:59:41 GMT
Client-Date: Thu, 16 Feb 2006 21:00:20 GMT
Client-Peer: 64.20.42.162:80
Client-Response-Num: 1

Your server is claiming that your XML is HTML and browsers are attempting to
treat it as such.

--
David Dorward <http://blog.dorward.me .uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is
Feb 16 '06 #2
David Dorward wrote:
ja******@gmail. com wrote:
In firefox, it looks like the contents of the xml page are just getting
spit out, and no attempt is made to render it (as if it is not
recognized as XML).
http://angelforge.com/jamie/resume/resume.xml


200 OK
Connection: close
Date: Thu, 16 Feb 2006 21:01:46 GMT
Accept-Ranges: bytes
ETag: "66c0c7-172d-43f4d9ad"
Server: Apache/1.3.34 (Unix) mod_throttle/3.1.2 mod_auth_passth rough/1.8
mod_log_bytes/1.2 mod_bwlimited/1.4 PHP/4.3.11 FrontPage/5.0.2.2635
mod_ssl/2.8.25 OpenSSL/0.9.7a
Content-Length: 5933
Content-Type: text/html <<<============ =============== =============== ===!!
Last-Modified: Thu, 16 Feb 2006 19:59:41 GMT
Client-Date: Thu, 16 Feb 2006 21:00:20 GMT
Client-Peer: 64.20.42.162:80
Client-Response-Num: 1

Your server is claiming that your XML is HTML and browsers are attempting to
treat it as such.


As David points out, if you want the browser to treat it as XML, you
gotta say so (FAQ: http://xml.silmaril.ie/developers/serversoftware/)

But it gets worse: if you serve it as XML, using XSLT to render it as
HTML, the browser still treats it as XML, so you can't use Javascript
because there is no HTML for it to hang its claws on. If you open the
XML document in a browser and then do a View|Source all you will see
is the XML: even though it has been rendered as HTML, that affects
only the positioning and formatting -- the underlying code is still
HTML, so the Javascript is inoperative.

Unless, of course, someone would like to explain how to do it (I've
been asking people to contribute this to the XML FAQ but there have
been no takers so far, which is why I'm assuming it doesn't work. I
would *love* to be proved wrong -- I'm not a Javascript person.)

///Peter
--
XML FAQ: http://xml.silmaril.ie/
Feb 16 '06 #3
If you look at the page I posted in IE 6.0.29, you will see that my
javascript works fine: http://angelforge.com/jamie/resume/resume.xml
(for example, click on Microsoft Excel, or the Cancel button at the top
right). I am not so sure about Firefox.

Feb 17 '06 #4
ja******@gmail. com wrote:
I am not so sure about Firefox.


The click-an-item is definitely not working in ffox.

Be careful about displaying that you don't know how to write portable
code and/or aren't willing to test for portability; some potential
employers will indeed hold that against you.
--
() ASCII Ribbon Campaign | Joe Kesselman
/\ Stamp out HTML e-mail! | System architexture and kinetic poetry
Feb 17 '06 #5
Joe Kesselman wrote:
Be careful about displaying that you don't know how to write portable
code and/or aren't willing to test for portability; some potential
employers will indeed hold that against you.


You know employers smart enough to _notice_ ?!

Where do I send my CV? 8-)

Feb 17 '06 #6
Andy Dingley <di*****@codesm iths.com> wrote:
You know employers smart enough to _notice_ ?!
Where do I send my CV? 8-)


http://www.ibm.com/employment/us/

I admit we haven't always gotten it right either. But we care more about
industry standards than most, and we really are trying.

--
Joe Kesselman / Beware the fury of a patient man. -- John Dryden
Feb 17 '06 #7
The really weird thing is that the scripts work fine when tested
locally. Does anyone know why firefox would treat local versus remote
xml/js differently?

Feb 17 '06 #8


ja******@gmail. com wrote:
The really weird thing is that the scripts work fine when tested
locally. Does anyone know why firefox would treat local versus remote
xml/js differently?


I don't know why it would work locally but at least for Mozilla your
XSLT generates an XHTML document parsed/treated as text/xml and XHTML is
case-sensitive so your event handlers need to be e.g.
onclick
onload
and not
onClick
onLoad

--

Martin Honnen
http://JavaScript.FAQTs.com/
Feb 17 '06 #9
(BTW, I happen to know that DataPower -- known for their XML/web-service
accelerators, and now part of IBM -- is looking for a few good people.)

--
Joe Kesselman / Beware the fury of a patient man. -- John Dryden
Feb 17 '06 #10

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

Similar topics

0
1081
by: haust | last post by:
Hi, for my D3D C# editor i'm using a simple panel control as the target window for rendering (the Paint method is overriden). I have a problem when it come to smoothly updating the view. I'm using a form timer 60 times per second to call a static method which invalidates the panel control. It works but the rendering is not synched with the display and the scene blinks.... Is there a clean way to update the rendering of my scene view ??
3
3040
by: David Whitney | last post by:
All: I have a control that renders a table. As the table is rendered, each row in the table is constructed by creating a run-time (dynamic) object that is derived from an HtmlTableRow. The row has three HtmlTableCell objects, and each cell contains a single control added to the HtmlTableCell's Controls collection. The basic table renders correctly, but the controls within the HtmlTableCell objects do not; the cells are just empty. (Just...
4
1765
by: Nacho Nachev | last post by:
Hello, AFIAK ASP.NET (1.1) uses a technology called 'Adpative Rendering' to output HTML that is compliant with the client browser or at least stick to HTML 4 specification or IE. This seems to be quite a problem for me. I have HTML output for Mozilla that has missing style attribute in list boxes and buttons and my layout seems crappy. If I save the HTML that comes for IE and open the file with Mozilla everything seems correct.
5
2641
by: Dave A | last post by:
I am writing an ASP.NET tool that will allow the client to create their own online froms. ie the client can add tect boxes, text, drop downs,etc with absolutely no technical skill what so ever. The form can then be deployed to their intranet. The form designer is somewhat WYSIWYG but it contains a heap of 'edit', 'delete' and reordering buttons that are not seen when the form is acutally being used. I would love to have a preview...
2
3263
by: Spotnick | last post by:
I have no idea why, but since I'm trying to recreate my website using ASP.NET 2.0 I've encountered so many performance issues that I'm about to give up and continue using v1.1 Seriously, how can a page that is not that complicated be so long to render locally, it's amazing. This is the trace info: aspx.page Begin PreInit
0
1382
by: Jeff Morgan | last post by:
I have an application that runs on ASP.NET. We have been working through performance testing and it appears that at about 40-50 users, I start to get CPU bound. The application is a three form, ASP.NET 2.0 application. A login page, and a main page, that is a frame with a header page, and the main page. On the main page, there are two datagrids that pull data from a database. The problem is that on one of the grids, the amount of rows...
0
1175
by: Rams | last post by:
hi iam writting application where rendering point by point on inkpicture captured by newpackets event in another application. i have two problems here. if i use inkpicture.creategraphics () ink is staying if i minimise or max its vanishing. suppose if i attach an image to it as inkpicture.image = new bitmap(inkpicture.height,inkpicture.width), g=graphics.fromimage(inkpicture). then i have to refresh the inkpicture after each point...
3
10107
by: ramesh | last post by:
Hi all, I am facing a problem with the rendering of html into a windows application (C# .NET). I am trying with two possible approaches: 1. Use a control that directly renders the html into windows form, but it should not be dependent on IE or mshtml. I didn't get such kind of control so far. Can any one help on this? 2. Use a third party Html to Rtf converter and render the rtf in
5
2344
by: paul.hester | last post by:
Hi all, I have a custom control with an overridden Render method. Inside this method I'm rendering each control in its collection using their RenderControl method. However, I'm running into a problem in this scenario: <myprefix:mycontrol runat="server"> <%= SomeVariable %> </myprefix:mycontrol>
3
2433
by: SAL | last post by:
Hello, I did google this issue and found some stuff related to BrowserCaps section of either web.config or machine.config but it didn't work. It seems that most pages in my webapp are okay but a couple of the Firefox is munging up. So, on my information page there is a gridview in the content section of the page. The masterpage contains searching capabilities for the gridview. The masterpage has controls contained in a panel control,...
0
9621
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10264
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. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10106
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 captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10039
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 most users, this new feature is actually very convenient. If you want to control the update process,...
0
9914
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 choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8937
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7461
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5484
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2851
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 effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.