473,320 Members | 1,839 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

Netscape, xml problem

Greetings to all,

I need use different xsl stylesheet files with the same xml data. I
haven't been able to make the following xml include working under NN7:

---cut----
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="contacts.xsl"?>
<!DOCTYPE companies [
<!ENTITY contacts SYSTEM "contacts.xml">
]>

<wrapper>
&contacts;
</wrapper>
---cut----

It works in IE6.... Not that it's important ;-)

contacts.xml looks like (with no xml header):
<companies>
<company ...>
...
</company>
...
</companies>

What am I doing wrong? Or it's not supported by NN?

Any suggestions are very appreciated.
Thank you.
Pavel
Jul 20 '05 #1
3 1353


Pavel wrote:

I need use different xsl stylesheet files with the same xml data. I
haven't been able to make the following xml include working under NN7:

---cut----
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="contacts.xsl"?>
<!DOCTYPE companies [
<!ENTITY contacts SYSTEM "contacts.xml">
]>

<wrapper>
&contacts;
</wrapper>
---cut----

It works in IE6.... Not that it's important ;-)

contacts.xml looks like (with no xml header):
<companies>
<company ...>
...
</company>
...
</companies>

What am I doing wrong? Or it's not supported by NN?


Netscape's XML parser doesn't support external entities, it doesn't have
to as it is a non-validating parser:
http://www.w3.org/TR/2004/REC-xml-20040204/#proc-types

--

Martin Honnen
http://JavaScript.FAQTs.com/
Jul 20 '05 #2
Is there any way I can use the same xml file with multiple stylesheets
in NN7 w/out server side xslt processing ?
Thanks
Pavel

Netscape's XML parser doesn't support external entities, it doesn't have
to as it is a non-validating parser:
http://www.w3.org/TR/2004/REC-xml-20040204/#proc-types

Jul 20 '05 #3


Pavel wrote:
Is there any way I can use the same xml file with multiple stylesheets
in NN7 w/out server side xslt processing ?


You can script XSLT transformation, see
http://www.mozilla.org/projects/xslt/js-interface.html
that way you can certainly use different stylesheets.

--

Martin Honnen
http://JavaScript.FAQTs.com/
Jul 20 '05 #4

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

Similar topics

2
by: nanookfan | last post by:
Hi all, I'm having a bizarre problem converting XML files to HTML using an XSLT. The problem is only occuring in my Netscape 7.0 browser. What makes it more bizarre is that it is only...
4
by: Yvan J. Gagnon | last post by:
I am encountering a strange problem in Netscape 7 with a CFM file I am trying to troubleshoot (the page is working fine in NS Communicator and IE). Below is a sample of the problematic line of...
15
by: Peter Bremer | last post by:
Hi all, I've written this little piece of code, which doesn't seem to work in Mozilla 1.5. I haven't tried it on other Gecko browsers, but I've found some indication that Netscape 6+ has the...
13
by: Gaurav | last post by:
Hello, i have some java script with in html. It runs fine on IE 6.0 but doesnt run on netscape 7.1 Can someone tell me whats the problem ? And how can i solve it. here is the url ...
2
by: Kevin Ly | last post by:
Consider the test case below. The onmouseout event does NOT fire when my mouse/cusor is moved off the left side of the browser. It does if it is moved off the top, bottom, and the right side that...
18
by: Dennis | last post by:
It seems that garbage collection is somewhat flawed in Netscape as the following little script can bring a machine to its knees in about an hour when run on Netstcape 7.1. I've tried freeing the...
4
by: Wm | last post by:
I have a script that changes a main/enlarged image when you click on a thumbnail. It works fine in IE, but for some reason it won't do anything in Netscape 7.1. Does anyone know if this is a...
5
by: moondaddy | last post by:
I have a <a> element in a datagrid which wraps some asp.net labels. this element also has an onclick event which does not fire in netscape 6 (and perhaps other browsers for all I know...). Below...
4
by: Vik | last post by:
1. To show the sort order in a datagrid, a label is added to the datagrid header in the ItemCreated event (this method is taken from a book): With lblSorted ..Font.Name = "Webdings" ..Font.Size =...
5
by: Stephen | last post by:
Hi, I have a problem with Netscape. I am using javascript to pass values and redirecting to the same place. it works fine in IE and not in netscape. please suggest. function popup(WardrobeSet)...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.