• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

XSLT Displays HTML Tags in Browser.

 
Jigar Naik
Ranch Hand
Posts: 762
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


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
Ranch Hand
Posts: 762
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Processing XSLT
 
Paul Clapham
Sheriff
Posts: 21416
33
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 762
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic