I wrote a servlet. It is sending XML data as response object. The XML file is displayed fine. But now I want to add a style sheet to this XML file.

Arun Bharathan

It seems that you are trying to access your XSL through HTTP where as the request for the XML was generated in HTTPS and a warning as such is generated by the browser.

There are two ways to solve this. Move your XSL into a secure area. (ie, XSL should be served through secure layer) Or do the transforms using a XSLT (like xalan) on the server side itself and serve the generated page. (This works in all browsers and does not depend on XML aware browsers.)

0 Comments  (click to add your comment)
Comment and Contribute






(Maximum characters: 1200). You have 1200 characters left.



About | Sitemap | Contact