Ok:
I have done small level Xml stuff and am just now starting to understand
some of the plumbing involved. I've done a lot of .NET programming for SQL
Server, but little for Xml data stores.
I am currently just interested in using the .xsl file that I have being
applied to a source .xml file through ASP classic. Here's what I have:
XSL file
----------------------------------------------------------------------------
---
<?xml version="1.0" ?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html" encoding="utf-8" />
<xsl:template match="/rss/channel">
<xsl:for-each select="item">
<div class="content" style="padding:5px;"><u><b><xsl:value-of
select="title" /></b></u></div>
<div class="bodysm" style="padding:5px;"><xsl:value-of
select="pubDate" /></div><br />
<div class="content" style="padding:5px;">
<xsl:value-of select="description" />
</div><br />
<!-- ***** Line of Interest Below ***** -->
<div class="content" style="border-bottom:1px solid
#ACACAC;padding:5px;"><b><a href=""><xsl:value-of select="link"
/></a></b></div><br />
</xsl:for-each>
<div class="content"
style="color:#ACACAC;padding:5px;text-align:right;">
<i><xsl:value-of select="copyright" /></i><br />
<!-- ***** Line of Interest Below ***** -->
<a href="" style="color:#ACACAC;"><xsl:value-of select="link" /></a>
</div>
</xsl:template>
</xsl:stylesheet>
XML File
----------------------------------------------------------------------------
---
<?xml version="1.0" ?>
<rss version="2.0">
<channel>
<title>Test Feed</title>
<link>http://www.grannet.net/rss/rss.xml</link>
<description></description>
<copyright>Copyright (c) 2004 Grant Harmeyer</copyright>
<item>
<title>First Entry in RSS</title>
<link>http://www.hatfish.com/dvd.htm</link>
<pubDate>Fri, 05 Dec 2003 16:26:36 CST</pubDate>
<description>
<![CDATA[
]]>
</description>
</item>
</channel>
</rss>
The ASP code is written in JScript and works just fine, my question is this,
on the Xsl I have commented 2 "Lines of Interest". How do I take the data
that is stored in the <link /> child node of an <item /> and use it as the
target of the output HTML <a /> tag? I.E.: <a href="<link />"><link /></a>
I am sure this is 1 of 2 things. Extremely easy, or not possible given my
current route of implementation, and I guess it's the first of these 2.
Thanks in advance.
Grant Harmeyer