Subject: RE: [xsl] xml-stylesheet in browser results / mime type association From: "Rushforth, Peter" <Peter.Rushforth@xxxxxxxxxxxxxxxxx> Date: Sat, 16 May 2009 20:29:16 -0400 |
> > I tried that too but it didn't have any effect. I think > browsers may > > be hardwired to believe the result is html in such a situation, and > > they try to interpret it as such. > > > > did you try > <xsl:output method="xml" media-type="vnd.google-earth.kml+xml" /> > > I would be mildly surprised if all browsers ignored that form. > Yes, I also tried media-type="application/vnd.google-earth.kml+xml", but it looks like the browser ignores the media type of the result of the transformation,and attempts to display the result as html, although when I take a file of the output and name it .html, and request it over http, the browser does a slightly better job of interpreting the html, actually recognising html elements, whereas the html elements in the stylesheet output are dynamically ignored (that could just be a new technical term!) and their content presented as unformatted text. In short, maybe it's not possible to get the browser to respond appropriately to the results of a transformation it enables, or maybe it's inappropriate to ask a browser to behave in that way (ie possibly a security concern). Thanks Peter
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] xml-stylesheet in browser, Michael Dykman | Thread | [xsl] Multiple Filtering of rows ba, Kamlesh Bafna |
Re: [xsl] Please look at my mini-te, Hermann Stamm-Wilbra | Date | [xsl] Excel Column Number To Column, Vyacheslav Sedov |
Month |