This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: Mailto problem
- To: xsl-list at lists dot mulberrytech dot com
- Subject: Re: [xsl] Mailto problem
- From: David Carlisle <davidc at nag dot co dot uk>
- Date: Wed, 29 Aug 2001 23:27:40 +0100
- References: <00BB1956AE40D411B5B60050DA27311F3C6397@mail1.bluezone.net>
- Reply-To: xsl-list at lists dot mulberrytech dot com
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&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 &
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&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