This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: string without %20 in HTML image map
- To: <xsl-list at mulberrytech dot com>
- Subject: RE: string without %20 in HTML image map
- From: "Jarno Elovirta" <jarno at codeonline dot com>
- Date: Thu, 20 Jul 2000 12:11:01 +0300
- Reply-To: xsl-list at mulberrytech dot com
hi
> <img src="My%20Component.png" border="0" usemap="#My%20Component">
> <map name="My Component">
> <area shape="rect" coords="..." href="..." alt="...">
> <area shape="rect" coords="..." href="..." alt="...">
> </map>
>
> SO, the image map cannot run because usemap="#My%20Component" and map
> name="My Component". It should be usemap="#My Component". What is the
> reason??? What solution?
According to the HTML spec [1], the value of the "usemap" is an URI and the
space is therefore escaped [2].If you use SAXON, you could then use the
saxon:disable-output-escaping extension when creating the "usemap" with
xsl:attribute [3]. Then the value of "usemap" would be "My Component" and
thus illegal, but it would work on a browser... I think...
[1] http://www.w3.org/TR/html401/struct/objects.html#adef-usemap
[2] http://www.ietf.org/rfc/rfc2396.txt section 2.4.3.
[3] http://users.iclway.co.uk/mhkay/saxon/extensions.html#disable
--
Jarno Elovirta jarno.elovirta@codeonline.com
CODEONLINE Ltd. http://www.codeonline.com
P.O. Box 538 (Ukonvaaja 2 A), FIN-02130 Espoo, Finland
Mobile: +358 40 772 6785 Fax: +358 9 4393 0410
"Hoc non credo; toga mea surrepta est iterum!"
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list