OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [xml-dev] Mailto links in XML



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