• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

XSLT Displays HTML Tags in Browser.

 
Ranch Hand
Posts: 763
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 763
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Processing XSLT
 
Marshal
Posts: 28226
95
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 763
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic