Re: [xsl] Mailto problem

Subject: Re: [xsl] Mailto problem
From: David Carlisle <davidc@xxxxxxxxx>
Date: Wed, 29 Aug 2001 23:27:40 +0100
   Karlo, 

   instead of:

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


   use

   <a><xsl:attriubte name="href">
   <xsl:text disable-output-escaping='true'>
   mailto:abc@xxxxxxx?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@xxxxxxx?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


Current Thread