Please can someone show me how can I change the following code to only show the top 5 or whatever number of items I need from the feed ?The following code works , but it displays the whole file. Only one day spent so far on this problem and hair here is in short supply.
Thanks in advance...

Sample asp web page....
myXMLfile = ""

'Set getPage = Server.CreateObject("MSXML2.ServerXMLHTTP.4.0")
'Set getPage = Server.CreateObject("Microsoft.XMLHTTP")
Set getPage = Server.CreateObject("MSXML2.ServerXMLHTTP")

getPage.Open "GET", myXMLfile, false
getPage.SetRequestHeader "Content-type", "text/xml"

'response.write getPage.responseXML.xml '' successfully outputs xml

'Load XSL
set xsl = Server.CreateObject("Microsoft.XMLDOM")
xsl.async = false

Function RightTrimLen(theStr, leftPadding)
RightTrimLen = Right(theStr, (Len(theStr) - Len(leftPadding)))
End Function
' above function is used to get rid of encoding that is added (and causing an error)

theOutput = getPage.responseXML.transformNode(xsl)
theOutput = RightTrimLen(theOutput, "<?xml version=""1.0"" encoding=""UTF-16""?>")

response.write theOutput

Set getPage = Nothing


<xsl:stylesheet version="1.0"

<xsl:template match="/">
<xsl:for-each select="/rss/channel/item"><h2><b>
<xsl:value-of select="title" /><br /></b></h2>
<xsl:value-of select="description" /><br /><i>
Published: <xsl:value-of select="pubDate" /><br /></i>
<xsl:attribute name="href">
<xsl:value-of select="link"/>
View Story