Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

url for element 1

Status
Not open for further replies.

dessertfox

Programmer
Jul 30, 2002
5
US
I am setting up my XML file right now, and I am trying to have a url link as one of the child element, is there anything I should do in the XSL file that is different than if it is regular data? Because when I first load the page, nothing was shown.
 
as for my previous post, here is a segment of my code:

<friend>
<name>abc</name>
<url></friend>

if I would like to have the name as an anchor that links to the url, how do I go about doing that in the xsl file?
 
<xsl:template match=&quot;friend&quot;>
<a href=&quot;{url}&quot;><xsl:value-of select=&quot;name&quot;/></a>
</xsl:template>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top