cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hewko, Doug" <Doug.He...@ccra-adrc.gc.ca>
Subject RE: Cocoon2 changing links on me....
Date Fri, 03 Aug 2001 10:54:50 GMT
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:vgritsenko@hns.com]
Sent: August 2, 2001 9:32 AM
To: cocoon-users@xml.apache.org
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:> 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:> 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>
http://localhost/cocoon/%0D%0A%09%09mailto:doug.hewko@ccra-adrc.gc.ca
instead of  <mailto:doug.hewko@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>
 

Mime
View raw message