[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: string without %20 in HTML image map

Subject: RE: string without %20 in HTML image map
From: "Jarno Elovirta" <jarno@xxxxxxxxxxxxxx>
Date: Thu, 20 Jul 2000 12:11:01 +0300
html imag
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@xxxxxxxxxxxxxx
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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.