Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

XML question

Options
  • 22-11-2005 12:50pm
    #1
    Registered Users Posts: 597 ✭✭✭


    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?

    heres my xsl code:

    <?xml version="1.0" encoding="windows-1252" standalone="yes" ?>
    <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform&quot; 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&quot;/></xsl:attribute>
    <B><xsl:value-of select="Heading"/></B></A><br/>
    </xsl:template>
    </xsl:stylesheet>


    Thanks


Comments

Advertisement