From: Phillip B O. <phi...@gm...> - 2006-08-31 12:18:16
|
Ah. That'll be it then - I'm requesting the document from the REST interface, and the document uses an xsl processing instruction. This is causing a problem for me with IE, which seems to be expecting a root <HTML /> element because of the text/html mimetype, and when it doesn't get one shows an "empty" document with "<HTML> </HTML>". Is there a particular reason why its automatically output as text/html? On 8/31/06, Wolfgang Meier <wol...@gm...> wrote: > > > <xsl:output > > version="1.0" > > method="xml" > > encoding="UTF-8" > > omit-xml-declaration="no" > > indent="yes" > > media-type="text/xml" > > /> > > > > But they always come back as text/html. Is this something I'm doing > wrong, > > or is it an exist issue? > > It depends on how that stylesheet is executed. If it is applied by the > REST server, it will apply its own mime-type setting, i.e. the one > defined by the XQuery (if you called one) or text/html if you used an > xsl processing instruction. > > Wolfgang > -- Phillip B Oldham phi...@gm... +44(0)78 4110 4880 //refactored.net/ | //iyoti.com/ | //dysfunksion.co.uk/ |