This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Template Rule for JavaScript Rollovers


Blond JB wrote:
> 
> It's my first word here on this list!

Well, welcome on board.

> I'am a web developper and am working hard on XSL. So let me give you my
> point of view on Daniel's template : Fine! But <img></img> is NOT HTML 4.0
> compliant!

True - but it is XML compliant, and it's perfectly legal to use it in
the way it was used in the first post. If this XSL fragment is used in
a template with <xsl:output method="html" /> (as you mentioned), this
will be processed with no problems, as there is nothing inside the
<img></img> other than attributes.

> Instead use the <xsl:element name="img"></xsl:element>

This is also legal.

-- 
Warren Hedley


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]