To view the XML data with styling you've added in the XSL you need to " view the
XML file" in the browser
and not the XSL. Since you refer the XSL file in the XML , browsing the XML
gives you , data and style.
Whereas in your XSL file there is no reference to the XML file , so you see
only HTML in Netscape and the source in IE.
The reason why Netscape and IE behave different for XML is IE5 has a built
in parser for XML , the older versions
of Netscape did not have a built in XML parser , I do not know about the latest
netscape navigator features.
hope that helps
Brian Lasiewski <[log in to unmask]> on 12/11/2000 04:58:25 PM
Please respond to General discussion of Extensible Markup Language
<[log in to unmask]>
To: [log in to unmask]
cc: (bcc: Santosh Daryani/IT/Aon Consulting)
Subject: XSL question
I'm really green with the whole XML scene. I've been doing the whole
tutorial and book thing for a bit and have been trying rather unsuccessfully
to get an XSL file to display with data from an associated XML file.
Today I cracked open another book, did a bunch of reading and started very
simply. Here is the XML file I am working with (it's a file called,
originally enough, "test.xml"):
<?xml version="1.0" standalone="yes"?>
<?xml-stylesheet type="text/xsl" href="chewy.xsl"?>
The XSL file (chewy.xsl) that I'm trying to get the data from the above
displayed in looks like this:
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
When I view the XSL file in Netscape (v6) I see the HTML without the XML
data. When I view the XSL file in MIE 5.5 I get the source code.
I know I'm missing something really simple here. Can someone point out where
I'm screwing this up? Thanks much,