File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes XML and Related Technologies and the fly likes XML and JSP in Netscape Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Reply locked New topic

XML and JSP in Netscape

Gloria Soto

Joined: Jan 02, 2003
Posts: 2
Hello, i hope someone can help me with this problem:
I'm using JSP, I need the content of my page to be XML, because I must apply a xslt transformation on the client side.
To get that, I put at the beginning of the jsp page:
<%@ page contentType="text/xml"%>
<?xml version="1.0" encoding="ISO-8859-1"?>
<?xml-stylesheet type="text/xsl" href="pmathml.xsl"?>
<html xmlns="">

With IE there's no problem, everything is right, but with Netscape 7.0, my page isn't right, the page doesn't display well, I mean, the different parts of the page don't display where they're supposed to do. It is not problem of my page, because if I don't put the line
<%@ page contentType="text/xml"%>
the page displays right, but that way the stylesheet is not applied, because I haven't indicated that is a xml document. Has anyone a solution for this problem??
Thanks in advance,
Pauline McNamara

Joined: Jan 19, 2001
Posts: 4012
Welcome to JavaRanch Gloria.
Your display name doesn't quite fit the famous JavaRanch naming policy. Could you please take a minute to change your display name to show 2 names, preferably your real name. (It's all about maintaining our professional image - don't let the one-eyed moose fool you!).

Thanks and hope you'll be visiting the ranch often,
Mapraputa Is
Leverager of our synergies

Joined: Aug 26, 2000
Posts: 10065
Also, to post the same question in multiple forums is not recommended, or people will waste time answering something that was already answered in other forums. Everybody who want/can help, is welcome to do it here.
P.S. Gloria, we do not hate you, it's just our strict moral principles.

Uncontrolled vocabularies
"I try my best to make *all* my posts nice, even when I feel upset" -- Philippe Maquet
I agree. Here's the link:
subject: XML and JSP in Netscape
It's not a secret anymore!