This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

string without %20 in HTML image map


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]