cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vadim Gritsenko" <vgritse...@hns.com>
Subject RE: Cocoon2 changing links on me....
Date Thu, 02 Aug 2001 13:32:12 GMT
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>


Mime
View raw message