You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by "Hewko, Doug" <Do...@ccra-adrc.gc.ca> on 2001/08/02 15:04:22 UTC
Cocoon2 changing links on me....
Why do I get
<ht...@ccra-adrc.gc.ca>
http://localhost/cocoon/%0D%0A%09%09mailto:doug.hewko@ccra-adrc.gc.ca
instead of <ma...@ccra-adrc.gc.ca>
mailto:doug.hewko@ccra-adrc.gc.ca when I am trying a href in Cocoon2? How
could I get rid of the <http://localhost/cocoon/> http://localhost/cocoon/
that is being prefixed?
Here is what my stylesheet looks like:
<xsl:template match="teammembers">
<xsl:if test="member[@contact='yes']">
If you have any questions or inquiries, d please do not hesitate to
contact
<xsl:value-of select="member/name"/>
at
<xsl:value-of select="member/phone/number"/>
, or e-mail
<a>
<xsl:attribute name="href">
<mailto:> mailto:<xsl:value-of
select="member/e_mail"/>@ccra-adrc.gc.ca</xsl:attribute>
<img src="_images/email.gif" style="cursor:hand" border="0"/>
</a>
</xsl:if>
</xsl:template>
RE: Cocoon2 changing links on me....
Posted by Vadim Gritsenko <vg...@hns.com>.
Hi,
These are basic XSLT questions, and have nothing to do with Cocoon - use
XSLT mail lists in future.
Here is an answer: you must write this in one line:
<xsl:attribute name="href">mailto:<xsl:value-of
select="member/e_mail"/>@ccra-adrc.gc.ca</xsl:attribute>
OR use <xsl:text>:
<xsl:attribute name="href">
<xsl:text>mailto:<xsl:value-of
select="member/e_mail"/>@ccra-adrc.gc.ca</xsl:text>
</xsl:attribute>
Vadim
-----Original Message-----
From: Hewko, Doug [mailto:Doug.Hewko@ccra-adrc.gc.ca]
Sent: Thursday, August 02, 2001 9:04 AM
To: 'cocoon-users@xml.apache.org'
Subject: Cocoon2 changing links on me....
Why do I get
http://localhost/cocoon/%0D%0A%09%09mailto:doug.hewko@ccra-adrc.gc.ca
instead of mailto:doug.hewko@ccra-adrc.gc.ca when I am trying a href in
Cocoon2? How could I get rid of the http://localhost/cocoon/ that is being
prefixed?
Here is what my stylesheet looks like:
<xsl:template match="teammembers">
<xsl:if test="member[@contact='yes']">
If you have any questions or inquiries, d please do not hesitate to
contact
<xsl:value-of select="member/name"/>
at
<xsl:value-of select="member/phone/number"/>
, or e-mail
<a>
<xsl:attribute name="href">
mailto:<xsl:value-of
select="member/e_mail"/>@ccra-adrc.gc.ca</xsl:attribute>
<img src="_images/email.gif" style="cursor:hand" border="0"/>
</a>
</xsl:if>
</xsl:template>