Re: [xslt] LibXSLT adding annoying whitespace



On Wed, Jun 13, 2001 at 02:52:12PM +1000, Robert Collins wrote:
> > -----Original Message-----
> > From: Daniel Veillard [mailto:veillard@redhat.com]
> <SNIP>
> > What I can't understand is why you user agent renders:
> > 
> > <html><body><img/><br/><a><img/></a></body></html>
> > 
> > differently than
> > 
> > <html><body>
> > <img>
> > <br>
> > <a><img></a>
> > </body></html>
> 
> IE is badly broken. I had this problem not so long ago. A table
> formatted with a img in it, would mysteriously get a few pixels bigger,
> if \n was encountered during the table content.
>  
> IE follow spec? Hah!

<off-topic>
  Hum, I would not bash them on formatting issue, basically they
had to reverse engineer NS3 rendering at some point to get market
acceptance, I would be more tempted to bash people using tables for
formatting and expecting pixel accuracy using those ;-)
</off-topic>

  So one possible heuristic, would be to not add formatting spaces
in content when there is a table parent. Would this fix the problem
raised initially ? Michael is this the problem you encountered ?

Daniel

-- 
Daniel Veillard      | Red Hat Network http://redhat.com/products/network/
veillard@redhat.com  | libxml Gnome XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]