wood burning stoves 2.0*
The moose likes XML and Related Technologies and the fly likes Help with XSL stylesheet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Help with XSL stylesheet" Watch "Help with XSL stylesheet" New topic
Author

Help with XSL stylesheet

Michele Smith
Ranch Hand

Joined: Oct 27, 2010
Posts: 421
Hello I am working with a menu and need help.

The following code is not compatible with Mozilla Firefox or Chrome, only IE:



Do you know of a workaround solution to using a xsl stylesheet?

Thanks,
Rahul Divedi
Ranch Hand

Joined: Dec 11, 2011
Posts: 40
Michele Smith wrote:Hello I am working with a menu and need help.

The following code is not compatible with Mozilla Firefox or Chrome, only IE:


IE works well with test/xsl while Mozila requires text/xml or application/xml. Go through these two links and I hope you will find the solution-
https://developer.mozilla.org/en/XSL_Transformations_in_Mozilla_FAQ
And Chrome should also work with application/xml
http://www.mail-archive.com/catalyst@lists.rawmode.org/msg07242.html

Michele Smith
Ranch Hand

Joined: Oct 27, 2010
Posts: 421
Hello I reviewed these articles.

I am noticing that Wc3 says:

<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">


not

<?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

I did this but it does not make a difference, the links are still unnavigatable.

Do you have any other suggestions?

Thanks,
Rahul Divedi
Ranch Hand

Joined: Dec 11, 2011
Posts: 40
Michele Smith wrote:

Do you have any other suggestions?

Thanks,


Try to put it on a web server, fix the MIME types and then open instead of opening it directly. It may work.

PS: Sorry for the late response, I didn't access the forum meanwhile.
Michele Smith
Ranch Hand

Joined: Oct 27, 2010
Posts: 421
Hello, I wondered if you could please clarify for me the following:


Try to put it on a web server, fix the MIME types and then open instead of opening it directly. It may work.


I already have it on a JBoss web server, but I don't understand what you mean by fix the MIME types and could you go into more detail about what you mean by open instead of opening it directly?

Thanks,
Michele
Rahul Divedi
Ranch Hand

Joined: Dec 11, 2011
Posts: 40
Michele Smith wrote:Hello, I wondered if you could please clarify for me the following:

Michele


Do you find something like-

in your code?

Here replace text/xsl with text/xml or application/xml and then try.

Thanks!
Rahul Divedi
Ranch Hand

Joined: Dec 11, 2011
Posts: 40
Remember the code which I've mentioned above would be in your XML file, not in XSLT. If its not there then add this MIME type and try. In my opinion problem is related with MIME type only as you are already using a webserver.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Help with XSL stylesheet