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]

Re: Mailto problem



   Karlo, 

   instead of:

   >       <A><xsl:attribute name='HREF'>
   > mailto:abc@xyz.com?subject=order&body=send%20current-issue
   >           </xsl:attribute>
   >      </A>


   use

   <a><xsl:attriubte name="href">
   <xsl:text disable-output-escaping='true'>
   mailto:abc@xyz.com?subject=order&amp;body=send%20current-issue
   </xsl:text>
   </xsl:attriubte>
   </a>

   The problem is that you were using an & for something other than starting an
   entity. This will fix your problem. 


No. It won't fix anything. Please read the FAQ. The & in the URL should,
like any other ampersand in an XMl document, be quoted as &amp;
The XSL system ensures that the output is well formed. Using
disable-output-encoding as above just enables some XSL systems to
produce an incorrect result.

there's no need to use xsl:attribute at all, just

<a href="mailto:abc@xyz.com?subject=order&amp;body=send%20current-issue";>..</a>

is all that's required.

David
 

_____________________________________________________________________
This message has been checked for all known viruses by Star Internet
delivered through the MessageLabs Virus Scanning Service. For further
information visit http://www.star.net.uk/stats.asp or alternatively call
Star Internet for details on the Virus Scanning Service.

 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]