iwonder wrote
Give an example of the xsl you are using, and maybe we can sort this out...
Thanks for your reply. The specific part I use in my xsl (for the complete xsl, scroll to the bottom) that wil limit the number of items displayed is <xsl:for-each select="channel/item[position() < 4]">
It will limit the number of news items to 3... so if you apply this xsl to the google feed in my original post, you will only see 3 items instead of the usual 10 items (if I did not set the limit and just let it loop til the end by using <xsl:for-each select="channel/item">)..
My problems is that I want to display 50 items (and I know it can be done because IE7 can display 50 items using the same google feed). When I use <xsl:for-each select="channel/item">, it only displays 10 items. So I tried to specifically tell it to display 50 items. However, when I change the code to <xsl:for-each select="channel/item[position() < 51]">, it still only display 10 items.
Any ideas? Thanks.
___________________________
(below is the entire xsl)
<?xml version="1.0" encoding="utf-8"?>
<!-- Edited by Lee Sykes DNN Creative Magazine http://www.dnncreative.com -->
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html" indent="yes"/>
<xsl:param name="TITLE"/>
<xsl:template match="rss">
<!-- Do not show channel image -->
<xsl:for-each select="channel/item[position() < 16]">
<br>
<!-- to open links in a new window, change target="_main" to target="_new" -->
<strong><a href="{link}" target="_new"><xsl:value-of select="title"/></a></strong></br>
<br>
<xsl:value-of select="pubDate"/>
</br>
<!-- only display markup for description if it's present -->
<xsl:value-of disable-output-escaping="yes" select="description"/>
</xsl:for-each>
<br></br>
</xsl:template>
<xsl:template match="description">
<br>
<xsl:value-of select="."/>
</br>
</xsl:template>
</xsl:stylesheet>