Thanks. Sorry for the mis-post, but how do you know if it is XSL to Coccon2? The code worked perfectly when I was coding client-side. The only change was instead of having my browser parse it, Cocoon2 was. Thus, it seemed like the way Cocoon2 was handling things.
-----Original Message-----
From: Vadim Gritsenko [mailto:[EMAIL PROTECTED]]
Sent: August 2, 2001 9:32 AM
To: [EMAIL PROTECTED]
Subject: RE: Cocoon2 changing links on me....

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:[EMAIL PROTECTED]]
Sent: Thursday, August 02, 2001 9:04 AM
To: '[EMAIL PROTECTED]'
Subject: Cocoon2 changing links on me....

Why do I get http://localhost/cocoon/%0D%0A%09%09mailto:[EMAIL PROTECTED] instead of mailto:[EMAIL PROTECTED] 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>
 

Reply via email to