D
DrTebi
Hello,
I have the following problem:
I used to "encode" my email address within links, in order to avoid (most)
email spiders. So I had a link like this:
<a
href="mailto[email protected]">DrTebi</a>
This would work like a regular mailto link in any browser, but wouldn't be
visible to spiders if they don't have a function to decode it.
The problem is if I use this in an XSL stylesheet, it gets converted to my
email address:
<a href="mailto[email protected]">DrTebi</a>
Now I tried this in the XSL stylesheet:
<a><xsl:attribute
name="href"><![CDATA[mailto[email protected]]]></xsl:attribute>DrTebi</a>
But that resulted in
<a
href="mailto:&#68;&#114;&#84;&#101;&#98;&#105;&#64;&#121;&#97;&#104;&#111;&#111;&#46;&#99;&#111;&#109;">DrTebi</a>
--which does not work in a browser as a link.
Can anyone please point me to the right direction?
Thanks,
DrTebi
P.S.: I am using PHP5 for XML/XSL transformations, which is based on
libxml2
I have the following problem:
I used to "encode" my email address within links, in order to avoid (most)
email spiders. So I had a link like this:
<a
href="mailto[email protected]">DrTebi</a>
This would work like a regular mailto link in any browser, but wouldn't be
visible to spiders if they don't have a function to decode it.
The problem is if I use this in an XSL stylesheet, it gets converted to my
email address:
<a href="mailto[email protected]">DrTebi</a>
Now I tried this in the XSL stylesheet:
<a><xsl:attribute
name="href"><![CDATA[mailto[email protected]]]></xsl:attribute>DrTebi</a>
But that resulted in
<a
href="mailto:&#68;&#114;&#84;&#101;&#98;&#105;&#64;&#121;&#97;&#104;&#111;&#111;&#46;&#99;&#111;&#109;">DrTebi</a>
--which does not work in a browser as a link.
Can anyone please point me to the right direction?
Thanks,
DrTebi
P.S.: I am using PHP5 for XML/XSL transformations, which is based on
libxml2