You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by "Typrowicz, Jim" <ji...@gwl.com> on 2001/01/09 19:31:41 UTC

HTML Map Tag

I am having a problem with XSL and the HTML Map tag.

I have the following XSL:

	<IMG ...><MAP ...><AREA ...></AREA></MAP></IMG>

I'm using Cocoon/Xalan to transform this XSL into HTML. The problem is that
the end tags are stripped out.  This is fine except for the </MAP> end tag
which is required for Netscape (IE seems to be more forgiving).  Netscape
won't recognize the Map tag without an end tag.

Is this a know problem?  Any workarounds?


Re: HTML Map Tag

Posted by Johannes Koch <ko...@pixelpark.com>.
Hi Jim,

> "Typrowicz, Jim" schrieb:
> 
> I am having a problem with XSL and the HTML Map tag.
> 
> I have the following XSL:
> 
>         <IMG ...><MAP ...><AREA ...></AREA></MAP></IMG>
> 
> I'm using Cocoon/Xalan to transform this XSL into HTML. The problem is
> that the end tags are stripped out.  This is fine except for the
> </MAP> end tag which is required for Netscape (IE seems to be more
> forgiving).  Netscape won't recognize the Map tag without an end tag.

You know, that in HTML img is an _empty_(*) element, don't you?
Have a look at
<http://www.w3.org/TR/html401/struct/objects.html#h-13.6.1> for more
information on client-side image maps.

(*) empty elements don't have content.
-- 
Johannes Koch  . IT Developer
Pixelpark AG   . http://www.pixelpark.com
Rotherstraße 8 . 10553 Berlin  .  Germany
phone: +49 30 5058 - 1288  .  fax: - 1355