csteinhilber
Programmer
I have an RSS feed that I'm transforming to HTML via an XSL stylesheet, server-side with classic ASP.
The feed is a series of news articles. And I need a top 10 view, a view all, and then a detail view which displays the content of a single article. The items in the top 10 and view all pages will link to a common asp page for a detail view.
The top 10 and view all pages were easy. But the detail page is a little tougher than I expected.
Obviously in the XSL I can XPath down to a specific article... like
that works fine.
Except (and this is why this is in the ASP forum rather than XSLT)... I obviously need to be able to dynamically determine (and populate) the value of the guid I'm looking for.
So... like:
I thought I'd be able to generate a dynamic XSL with ASP, but that doesn't seem to be working.
It seems like this should be a fairly common thing that people are doing, but I'm not finding any tips anywhere. Any help would be appreciated!
Thanks in advance,
-Carl
The feed is a series of news articles. And I need a top 10 view, a view all, and then a detail view which displays the content of a single article. The items in the top 10 and view all pages will link to a common asp page for a detail view.
The top 10 and view all pages were easy. But the detail page is a little tougher than I expected.
Obviously in the XSL I can XPath down to a specific article... like
Code:
<xsl:for-each select='rss/channel/item[position() < 8]'>
<xsl:apply-templates select="rss/channel/item[guid='12345']" />
Except (and this is why this is in the ASP forum rather than XSLT)... I obviously need to be able to dynamically determine (and populate) the value of the guid I'm looking for.
So... like:
Code:
<xsl:for-each select='rss/channel/item[position() < 8]'>
<xsl:apply-templates select="rss/channel/item[guid='<%= Request("guid"} %>']" />
It seems like this should be a fairly common thing that people are doing, but I'm not finding any tips anywhere. Any help would be appreciated!
Thanks in advance,
-Carl