aspose file tools*
The moose likes XML and Related Technologies and the fly likes XSLT Displays HTML Tags in Browser. 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 Displays HTML Tags in Browser." Watch "XSLT Displays HTML Tags in Browser." New topic
Author

XSLT Displays HTML Tags in Browser.

Jigar Naik
Ranch Hand

Joined: Dec 12, 2006
Posts: 759


I am specifying xslt while creating transformaer object.
but when i view the xml file in browser IE. I can see the HTML Tags instead of formated xml.

Can anybody tell me why this is happening ?

Bellow is how my xml file looks in browser.



Am i missing something ?

Thanks & Regards,


Jigar Naik


Jigar Naik
Ranch Hand

Joined: Dec 12, 2006
Posts: 759
Processing XSLT
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18901
    
    8

Jigar Naik wrote:Processing XSLT

Was that an answer or a follow-up question?

It doesn't answer your original question, since your code is doing a transformation on the server side and that forum thread is about how to do a transformation on the client side.

In your original post, you didn't show the code where you told the browser what was the MIME type of the data you were sending to it. If your HTML is correct but the browser is not interpreting it the way you want, there isn't much point in looking at the code which produces the correct HTML.
Jigar Naik
Ranch Hand

Joined: Dec 12, 2006
Posts: 759
Thanks for the reply.

Precessing XSLT thread solved my problem. I wanted to display formatted XML in the browser.

but if i set the content type and get the same output then what's the difference between transformation and using processing instructions.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: XSLT Displays HTML Tags in Browser.