Re: [xslt] LibXSLT adding annoying whitespace
- From: Liam Quin <liam holoweb net>
- To: xslt gnome org
- Subject: Re: [xslt] LibXSLT adding annoying whitespace
- Date: Wed, 13 Jun 2001 15:09:07 -0400
On Wed, Jun 13, 2001 at 02:05:00PM -0400, Daniel Veillard wrote:
> <html><body>
> <img>
> <br>
> <a><img></a>
> </body></html>
>
> generates the large gap, while
The HTML rendering model assumes that an element is either "block" or
"inline". You can put a newline after a block element, but spaces
around inline elements are significant.
It is not just img.
It is any element that can occur in mixed (#PCDATA) content and that does
not cause a line break in the CSS formatting.
A partial list includes A I EM STRONG B IMG INPUT TT FONT etc.
Lee
--
Liam Quin - Barefoot in Toronto - liam@holoweb.net - http://www.holoweb.net/
Ankh: irc.sorcery.net www.valinor.sorcery.net irc.gnome.org www.advogato.org
Author, Open Source XML Database Toolkit, Wiley August 2000
Co-author: The XML Specification Guide, Wiley 1999; Mastering XML, Sybex 2001
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]