Subject: Re: [xsl] How to create hyperlinks using XSL or XML files From: Neil Smith <neil@xxxxxxxxxxxxxxxxxxxxxxxx> Date: Thu, 12 Dec 2002 20:42:52 +0000 |
<a> <xsl:attribute name="href"> <xsl:value-of select="@URL"> </xsl:attribute> <xsl:value-of select="@URL"> </a>
HTH Neil Smith.
I want to display the URLs that I have declared in the XML document as URL="http://..." as hyperlinks on the web. Currently, the output from my stylesheet looks like this in Internet Explorer:
<snip/>
I'm thinking that I have to work with the XSL file, but so far, I only see a way to hyperlink a single URL in the stylesheet -- so that the one hyperlinked URL is used in every listing in the XML document.
Here's the relevant part of my XSLT file (the URL section). This simply displays the web address when the XML file is viewed on IE. The address is not an active hyperlink.
<xsl:for-each select="@URL"> <span style="font-family:Arial"> <xsl:value-of select=""/> </span> </xsl:for-each>
Any ideas on how to resolve this are greatly appreciated.
Thank you.
Stephanie Watson Unversity of Maine
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
======================================================== VideoChat with friends online, get Freshly Toasted every day at http://www.fresh-toast.net : NetMeeting solutions for a connected world.
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] How to create hyperlinks , Noel Golding | Thread | RE: [xsl] How to create hyperlinks , Steve Gold |
RE: [xsl] From 2 original xmls to 1, Wes Kubo | Date | Re: [xsl] About validating post xsl, Mike Brown |
Month |