fogofogo Posted November 22, 2005 Share Posted November 22, 2005 Hello folks,I have an xml feed which is formated in an .xsl document and then it is displayed with a asp page.I'm trying to display the top 10 results from the feed but I'm unsure how to do this. I tried putting a loop in the asp file but it didn't work for me. So I'm guessing the loop was to be placed in the xsl document? Anyone know what the code would be or where I find further information about it? here is my .xsl code : <?xml version="1.0" encoding="windows-1252" standalone="yes" ?><xsl:stylesheet xmlns sl="http://www.w3.org/1999/XSL/Transform" version="1.0"><xsl:output method="html" indent="yes" omit-xml-declaration="no"/> <xsl:template match="InfoStreamResults"><xsl:apply-templates select="Article"/></xsl:template><xsl:template match="Article"><A><xsl:attribute name="HREF">ItemPage.asp?ItemID=<xsl:value-of select="@ID"/></xsl:attribute><B><xsl:value-of select="Heading"/></B></A><br/> </xsl:template></xsl:stylesheet> Apologies for the basic question, I'm fairly new to XML.ThanksFogo Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now