[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: DOE an attribute to prevent spam?

Subject: RE: DOE an attribute to prevent spam?
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Fri, 5 Oct 2007 14:18:41 +0100
RE:  DOE an attribute to prevent spam?
disable-output-escaping is defined to work only on text nodes, not on
attribute nodes.

Michael Kay
http://www.saxonica.com/ 

> -----Original Message-----
> From: Phill [mailto:phill@xxxxxxxxxxxxxxxxxxxxxxx] 
> Sent: 05 October 2007 13:20
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject:  DOE an attribute to prevent spam?
> 
> Hi all
> 
> There's a common trick to prevent bots scanning sites and 
> collecting email addresses which involves xml-encoding all 
> the characters in the href attribute of links. We've been 
> using it in production for a while, and haven't seen any 
> problems with it.
> 
> We're trying to use this technique within our XSL 
> stylesheets, and have found that DOE doesn't work at all, 
> even when using the following format:
> 
> <a>
>     <xsl:attribute name="href">
>         <xsl:value-of select="$encodedemail" 
> disable-output-escaping="yes" />
>     </xsl:attribute>
>     <xsl:value-of select="$encodedemail" 
> disable-output-escaping="yes" /> </a>
> 
> The link value is correctly encoded, but the href also 
> encodes the ampersand. I've tried tweaking the output, but 
> can't seem to get it to format correctly.
> 
> We're using XSL1.0 and PHP5, with some EXSLT functionality.
> 
> Any ideas how I can get this working?

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.