Article View: fr.comp.text.xml
Article #9585Re: Ajouter mailto: dans l'attribut...
From: Tom.
Date: Thu, 08 Mar 2001 14:10
Date: Thu, 08 Mar 2001 14:10
24 lines
1540 bytes
1540 bytes
In <20010308045008.25875.00000239@ng-cq1.aol.com>, Lagaffe869 wrote:
> J'aimerai faire un lien mailto avec mon texte xml qui comporte une balise
> <mail>toto@com.fr<mail>
> Mais je n'arrive pas a ajouter dans l'attribut href le mailto:
>
> voici ou j'en suis....
>
> <xsl:template match="mail">
> <A>
> <xsl:attribute name="href">
> <xsl:value-of select="."/> <-- il manque un texte mailto
Normal, tu l'as pas mis (!?)
> </xsl:attribute>
> <xsl:value-of select="."/>
> </A>
> </xsl:template>
<xsl:template match="mail">
<a href="mailto:{.}"><xsl:apply-templates/></a>
</xsl:template>
Tom.
Technical Details
Message-ID:
<8pMp6.985$pN7.3298357@nnrp3.proxad.net>Path:
arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!freenix!proxad.net!feeder2.proxad.net!nnrp3.proxad.net.POSTED!not-for-mailReferences:
<20010308045008.25875.00000239@ng-cq1.aol.com>Show Full Headers
Complete Article Headers
X-Google-Language: FRENCH,ASCII-7-bit X-Google-Thread: 114f60,c3f964065cef1e9e X-Google-Attributes: gid114f60,public X-Google-ArrivalTime: 2001-03-08 06:12:08 PST Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!freenix!proxad.net!feeder2.proxad.net!nnrp3.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: <20010308045008.25875.00000239@ng-cq1.aol.com> Lines: 24 Organization: - MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit Message-ID: <8pMp6.985$pN7.3298357@nnrp3.proxad.net> Date: Thu, 08 Mar 2001 14:10:12 GMT NNTP-Posting-Host: 193.252.183.30 X-Complaints-To: abuse@proxad.net X-Trace: nnrp3.proxad.net 984060612 193.252.183.30 (Thu, 08 Mar 2001 15:10:12 CET) NNTP-Posting-Date: Thu, 08 Mar 2001 15:10:12 CET