Netscape, xml problem

P

Pavel

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
 
M

Martin Honnen

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
 
P

Pavel

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,483
Members
44,901
Latest member
Noble71S45

Latest Threads

Top