This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: Saxon html includes unwanted white space in anchor tag
- To: xsl-list at mulberrytech dot com
- Subject: Re: Saxon html includes unwanted white space in anchor tag
- From: Warren Hedley <w dot hedley at auckland dot ac dot nz>
- Date: Fri, 04 Feb 2000 09:33:45 +1300
- Organization: Department of Engineering Science, The University of Auckland
- References: <93CB64052F94D211BC5D0010A800133101FDE9DB@wwmess3.bra01.icl.co.uk>
- Reply-To: xsl-list at mulberrytech dot com
Kay Michael wrote:
>
> So SAXON's behaviour here is clearly wrong. I'm now wondering what algorithm
> would meet the requirement and still satisfy the implicit expectation of
> "indenting". Does anyone have any suggestions? Do I have to consider each
> element type individually?
The whitespace between <a> and <img> elements is a fairly common problem - I
know of several people in my Department alone who have been caught by it. It
shouldn't be too big a hassle to turn off indenting (and hence output no
unnecessary whitespace) while inside <a> elements. Of course, I'm not trying
to implement XSLT ;-).
The question is, can anyone suggest any other element types where this behaviour
might be necessary?
> Otherwise, I'm tempted to do the simplest thing that conforms to the letter
> of the spec and make indent="yes" a null operation.
Please, no! Indenting is a godsend when trying to debug unexpected rendering
of HTML. I've spent too many hours trying to make sense of HTML documents that
are all on one line.
--
Warren Hedley
Department of Engineering Science
Auckland University
New Zealand
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list