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.
Joined: Dec 12, 2006
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.