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 :
- Code: Select all
<?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.
Thanks
Fogo