Re: Saxon html includes unwanted white space in anchor tag

Subject: Re: Saxon html includes unwanted white space in anchor tag
From: Warren Hedley <w.hedley@xxxxxxxxxxxxxx>
Date: Fri, 04 Feb 2000 09:33:45 +1300
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


Current Thread