Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Re: Getting Netscape to use a linked XSL stylesheet

by AlistairFromScotland (Initiate)
on Sep 23, 2002 at 20:45 UTC ( [id://200224]=note: print w/replies, xml ) Need Help??


in reply to Re: Getting Netscape to use a linked XSL stylesheet
in thread Getting Netscape to use a linked XSL stylesheet

Thanks, but I'm assuming that if Netscape 6.1 can handle the XML correctly (i.e. transform it to XHTML using the XSL file) when it loads it from a file, rather than being passed it from the CGI script, then the XML and the XHTML must be valid.

It would be nice to be able to capture the XHTML produced by the XSL file and then run it on W3C's validator to check that it's 100% valid, but the XHTML gets generated invisibly inside the browser. Doing a "View Source" just shows the XML. However, I'm pretty sure it is valid XHTML.

I've checked the Mozilla XSLT project page but it didn't help. It says that the stylesheet should be text/xml as well as the source, but if I use text/xml rather than text/xsl
a) Netscape 6.1 won't transform it, even when I load the XML from a file
b) IE won't transform it either.

I've also checked that I'm using the correct namespace for xsl (as specified on the Mozilla XSLT project page).

I've pretty much run out of ideas. Somebody else must have come up against this problem. There's got to be a solution out there.

I could of course just do it the easy way and get the Perl script to write the HTML. But I want to do the transformation on the client side. And I keep hearing how Mozilla/Netscape is All-Good and IE is the Pure Evil, so how come it works flawlessly in IE whereas Netscape 6.1 just acts dumb and shows me the XML?

Alistair

  • Comment on Re: Re: Getting Netscape to use a linked XSL stylesheet

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://200224]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (6)
As of 2024-04-25 18:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found