[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: 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@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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|