[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [xml-dev] Mailto links in XML
- From: Rob Lugt <roblugt@elcel.com>
- To: Gordon Stewart <gordon.stewart@net800.co.uk>, xml-dev@lists.xml.org
- Date: Wed, 12 Sep 2001 16:54:01 +0100
Gordon Stewart wrote
>
> I have a xml file with data in it as
>
> <address>
> <NAME>Gordon Stewart</NAME>
> <EMAIL>Gordon.stewart@net800.co.uk</EMAIL>
> </address>
> <address>
> <NAME>XML</NAME>
> <EMAIL>xml-dev@lists.xml.org</EMAIL>
> </address>
>
> what do I put in my XSL file so that I get the output to look like:
>
> <p><a href="mailto:gordon.stewart@net800.co.uk">Gordon Stewart</a>
> <p><a href="mailto:xml-dev@lists.xml.org">XML</a>
>
Gordon,
Try the following:-
<xsl:template match="address">
<p><a href="mailto:{EMAIL}"><xsl:value-of select="NAME"/></a></p>
</xsl:template>
For more qualified/experienced advice, you could try the XSLT mailing list
[1] where there are many people itching to answer questions such as this ;-)
~Rob
[1] http://www.dpawson.co.uk/xsl/list.html