This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Space at start of result.
- To: "'xsl-list at mulberrytech dot com'" <xsl-list at mulberrytech dot com>, Bruce McGuire <bmcguire at PureEdge dot com>
- Subject: RE: Space at start of result.
- From: Kay Michael <Michael dot Kay at icl dot com>
- Date: Thu, 22 Jun 2000 09:34:33 +0100
- Reply-To: xsl-list at mulberrytech dot com
> As far as why is concerned, SAXON puts a blank line at the
> beginning of its output when it does not output an XML Declaration. It
> doesn't output an XML Declaration if the output method if HTML.
Deducing the spec from an empirically observed behaviour is always likely to
give slightly wrong answers! I think what actually happens is that the blank
line is output if indent="yes", which is the default if the output method is
(explicitly or implicitly) HTML. I think I can change it easily enough to
avoid this blank line, though I agree with the view that it's not the cause
of the problem.
I would check that the MIME type in the servlet response is being set
correctly. As far as I can tell, Netscape takes the MIME type quite
seriously, but IE semes a bit inclined to second-guess the correct type from
the contents of the file, for example I've tried and failed in the past to
get it to display HTML examples as text, except by escaping all the angle
brackets. (Which is the opposite of your problem!)
Mike Kay
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list