[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Dillemma when creating an XSL template ... how do
Try this:
<xsl:template match="email"> <xsl:element name="a"> <xsl:attribute name="href"><xsl:value-of select="."/></xsl:attribute> <xsl:value-of select="." /> </xsl:element> </xsl:template> Same for url. Hope this helps Chris At 04:45 PM 2/13/01 -0800, you wrote: In the code snippet below, the <email> and <url> elements are inside the <contact> element, and I want to display these as HTML links, any ideas how I can accomplish this? The way it is below doesn't work. =============================================================================== "It is inhumane, in my opinion, to force people who have a genuine medical need for coffee to wait in line behind people who apparently view it as some kind of recreational activity." -- Dave Barry ------------------------------------------------------------------------------- Chris Gow Digital Fairway Corporation Software Engineer 180 Attwell Drive Suite 360 cgow@xxxxxxxxxxxxxxxxxx Etobicoke, ON M9W 6A9 http://www.digitalfairway.com 416.628.7534 =============================================================================== XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
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
|