Article View: fr.comp.text.xml
Article #9588Re: Ajouter mailto: dans l'attribut...
From: Tom.
Date: Thu, 08 Mar 2001 17:06
Date: Thu, 08 Mar 2001 17:06
34 lines
2004 bytes
2004 bytes
In <20010308112838.19797.00000256@ng-bg1.aol.com>, Lagaffe869 wrote:
> je sais bien que je ne l'ai pas ajout� (le mailto)
> mais en fait je ne sais pas comment ajouter le mailto dans le href.
Deux autres solutions :
<xsl:element name="a">
<xsl:attribute name="href">
<xsl:text>mailto:</xsl:text>
<!-- ici on utilise value-of parce qu'on veut uniquement du texte. Si
jamais il y avait des balises � l'int�rieur de l'�l�ment mail
elles seraient "oubli�es" -->
<xsl:value-of select="."/>
</xsl:attribute>
<xsl:apply-templates/>
</xsl:element/>
ou
<a>
<!-- exacement la m�me chose que pr�c�demment -->
</a>
> Dans l'exemple que tu m'as donn� j'ai juste un lien sur
> <xsl:apply-templates/> peux-tu m'expliquer comment tu fais
Avant d'aller plus loin, tu utilises quoi comme processeur XSLT ? Est-il
conforme � XSLT 1.0 ? Qu'est-ce que tu obtiens exactement avec le code que
j'avais donn� ?
> PS: es tu le tom du site php ?
de fr.comp.infosystemes.www.auteurs.php ? oui.
Tom.
Technical Details
Message-ID:
<C_Op6.2221$xT3.3127411@nnrp6.proxad.net>Path:
arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!freenix!proxad.net!feeder2.proxad.net!nnrp6.proxad.net.POSTED!not-for-mailReferences:
<8pMp6.985$pN7.3298357@nnrp3.proxad.net> <20010308112838.19797.00000256@ng-bg1.aol.com>Show Full Headers
Complete Article Headers
X-Google-Language: FRENCH,ASCII X-Google-Thread: 114f60,c3f964065cef1e9e X-Google-Attributes: gid114f60,public X-Google-ArrivalTime: 2001-03-08 09:08:05 PST Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!freenix!proxad.net!feeder2.proxad.net!nnrp6.proxad.net.POSTED!not-for-mail From: Tom. <ptittom+news@free.fr> Subject: Re: Ajouter mailto: dans l'attribut... Newsgroups: fr.comp.text.xml References: <8pMp6.985$pN7.3298357@nnrp3.proxad.net> <20010308112838.19797.00000256@ng-bg1.aol.com> Lines: 34 Organization: - MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8Bit Message-ID: <C_Op6.2221$xT3.3127411@nnrp6.proxad.net> Date: Thu, 08 Mar 2001 17:06:42 GMT NNTP-Posting-Host: 193.252.183.30 X-Complaints-To: abuse@proxad.net X-Trace: nnrp6.proxad.net 984071202 193.252.183.30 (Thu, 08 Mar 2001 18:06:42 CET) NNTP-Posting-Date: Thu, 08 Mar 2001 18:06:42 CET