File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Help with XSL stylesheet

 
Michele Smith
Ranch Hand
Posts: 421
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 40
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 421
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 40
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 421
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 40
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 40
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic