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
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--