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 XSLT browser support 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 "XSLT browser support" Watch "XSLT browser support" New topic
Author

XSLT browser support

manoj pillai
Ranch Hand

Joined: Sep 16, 2002
Posts: 41
Is it possible to use xsl just like we use css for rendering pages? If so how's the browser support for the same? It would defenitely mean something if we could offload some of the formatting to the browser - considering the jsp page loading times that we have to suffer with some of the big pages sometimes.
[ July 16, 2004: Message edited by: manoj p ]

SCJP,SCJD,SCEA,SCMAD,SCDJWS,SCJP5.0
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
Yes, it is possible to defer page transformation to the browser -- assuming that you know the user's browser supports XSL transformations. The way you can accomplish this is to include a processing instruction such as
<?xml-stylesheet type="text/xsl" href="the URL for your stylesheet"?>
into the XML document you send to the browser.
[ July 19, 2004: Message edited by: Lasse Koskela ]

Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: XSLT browser support