string without %20 in HTML image map

Subject: string without %20 in HTML image map
From: Jean-Claude Tarby <Jean-Claude.Tarby@xxxxxxxxxxxxx>
Date: Thu, 20 Jul 2000 16:55:20 +1000
Hi.

I want to produce an imagemap in HTML. In my stylesheet, when I write :

<img src="{$nameComponent}.gif" border="0" usemap="#{$nameComponent}" /> 

<map name="{$nameComponent}">
<xsl:for-each select="SubComponent">
   <area shape="rect" 
         coords="..."
         href="..."
         alt="..."/>
</xsl:for-each>
</map>

and if $nameComponent="My Component", I obtain :

<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? 


J.C.


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


Current Thread