File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes XML and Related Technologies and the fly likes Cross Browser Compatibility Issues 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 "Cross Browser Compatibility Issues" Watch "Cross Browser Compatibility Issues" New topic
Author

Cross Browser Compatibility Issues

Michele Smith
Ranch Hand

Joined: Oct 27, 2010
Posts: 380
Hello I am working with some code which was created a few years ago.

It is not cross browser compliant. The only browser it works on is IE.

I was wondering if you could direct me to some resources where I could find some information about cross-browser compatibility for this site.

I noticed that these pages have this at the top of the xsl pages:

<xsl:output method="html"/>

If I remove that, then I get a description for products, however, it is in html instead of in plain text.

Thanks,

Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60058
    
  65

I assume that that's the line that instructs XSL to convert the document. Without it, the document is unlikely to be converted. Is that what's going on? I'm not sure I see what that has to do with browser compatibility.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Michele Smith
Ranch Hand

Joined: Oct 27, 2010
Posts: 380
The following is an example. There is no syntax referring to XSLProcessor in the entire project. Neither is there any reference to processXSL.

However, the xsl might say something like this:



This works on IE but not on Chrome or Firefox. (the "Name" value of the xsl).

Thanks,
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60058
    
  65

XSL is a subject better discussed in the XML forum, so I have moved this topic there.

If what you are really having problems with is the HTML or JavaScript that's being generated after the XSL processing, then post back with the rendered source that you are having problems with.
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18140
    
    8

Bear Bibeault wrote:I assume that that's the line that instructs XSL to convert the document. Without it, the document is unlikely to be converted.


It's the line that instructs XSLT to convert the document to HTML. Without it, the document will be converted to XML unless the document is "recognizably HTML", i.e. its root node is an <html> element. (That's a rough approximation of what the spec says.)
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60058
    
  65

I guess I'm still kind of confused about what the real issue is. Is it that the XSL is not working as expected, or is it that the rendered HTML and script is not working correctly after the conversion?

If the former, I seem to recall that XSL is not automatically triggered in any browser but IE? But I could be completely wet as I left XSL back in 1998 (where I think it still belongs ).
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18140
    
    8

Yeah, XSLT in the browser is definitely one of those "It seemed like a good idea at the time" architectures, and you don't hear much about it any more, but I do think that browsers other than IE were made to implement it quite a few years ago.

Of course what I'm thinking of is the architecture where you send an XML document to the browser, and that XML document has a processing-instruction at the beginning linking to an XSLT document which is supposed to be used to transform the XML document to HTML for the browser to display. But from what I've seen in this thread, I have no idea whether that's the concept being asked about.
Michele Smith
Ranch Hand

Joined: Oct 27, 2010
Posts: 380
Paul:

Is this what you mean?

http://docs.oracle.com/cd/B10501_01/appdev.920/a96621/adx05xsj.htm#1012620

Thanks,
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18140
    
    8

No, that wasn't at all what I meant. And it doesn't mention browsers at all, so surely it wasn't what you meant either?
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18140
    
    8

This is what I meant: http://www.w3schools.com/xsl/xsl_transformation.asp... scroll down to the section headed "Link the XSL Style Sheet to the XML Document".

But what I meant is not very relevant. This is your thread, so we need to know what you meant.
Michele Smith
Ranch Hand

Joined: Oct 27, 2010
Posts: 380
The following are empty when I preview in Firefox or Chrome:

Local Name
Local Description
Wholesale
THUMBNAIL IMAGE

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Cross Browser Compatibility Issues
 
Similar Threads
JavaScript's which not supported by firefox
jQuery in Action - is jQuery an abstraction
Question on jQuery ajax functionality & troubleshooting called bean in JSF page
Developing apps for iPhone and other smart phones
Site unaccessible after Firefox update