AdAve
06-23-2006, 09:41 PM
Hi Again,
Does anyone have any code that will take the value of the position
<xsl:value-of select="position()" />
and allow for an if statement that would use that value?
I know I can limit the number of records by using something like
<xsl:for-each select="//*[local-name()='item'][position() < 10]">
However there are times where there is nothing in the feed (like the link below)
http://news.google.com/news?hl=en&ned=us&q=pppppppp&ie=UTF-8&output=rss
and I'd like to adjust the output accordingly
Does anyone have any code that will take the value of the position
<xsl:value-of select="position()" />
and allow for an if statement that would use that value?
I know I can limit the number of records by using something like
<xsl:for-each select="//*[local-name()='item'][position() < 10]">
However there are times where there is nothing in the feed (like the link below)
http://news.google.com/news?hl=en&ned=us&q=pppppppp&ie=UTF-8&output=rss
and I'd like to adjust the output accordingly