cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stephen Elson-Education <stephen.el...@bbc.co.uk>
Subject RE: Empty attributes
Date Fri, 23 Jun 2000 09:59:01 GMT
Thanks John,

> If I have the following in my stylesheet:
> <IMG SRC="/furniture/tiny.gif" WIDTH="1" HEIGHT="1" ALT=""/>
> or:
> <IMG SRC="/furniture/tiny.gif" WIDTH="3" HEIGHT="1"><xsl:attribute
> name="alt"/></IMG>
> 
> it produces the following output:
> <IMG height="1" src="/furniture/tiny.gif" width="3" alt>

John suggests:
	
> ...using <xsl_text> in the xsl to preserve whitespace.

however, this is not a whitespace issue.  The important point is that I want
to keep the value of alt as null, not to strip its value altogether. Try and
pass 

>	<IMG alt height="1" src="/furniture/tiny.gif" width="1"> 
	
through any HTML validator, and you will see whether its good HTML or not.


If Cocoon routinely strips null values, I would classify this as a glaring
>BUG<.  This issue seems to have been ignored for some time now, but I would
say that it needs addressing urgently.  
If I specify a value as null, then I do not want Cocoon going over my head
and changing it for no good reason.

Also, anybody have any idea why the following:

<MAP NAME="navbar">
<AREA SHAPE= .../>
<AREA SHAPE= .../>
<AREA SHAPE= .../>
<AREA SHAPE= .../>
</MAP>

is stripped of the closing MAP tag when rendered as html, making it useless
in Netscape, any ideas anyone?  


Steve Elson
BBC

This e-mail, and any attachment, is confidential. If you have received it in error, please
delete it from your system, do not use or disclose the information in any way, and notify
me immediately. The contents of this message may contain personal views which are not the
views of the BBC, unless specifically stated.

Mime
View raw message