[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: string without %20 in HTML image map
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|