[Home] [By Thread] [By Date] [Recent Entries]

  • From: Rob Lugt <roblugt@e...>
  • To: Gordon Stewart <gordon.stewart@n...>, xml-dev@l...
  • 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@n...</EMAIL>
> </address>
> <address>
>     <NAME>XML</NAME>
>     <EMAIL>xml-dev@l...</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@n...">Gordon Stewart</a>
> <p><a href="mailto:xml-dev@l...">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


Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member