Results 1 to 4 of 4

Thread: This could be a DumbAss Question

  1. #1

    Thread Starter
    Member
    Join Date
    Feb 2002
    Posts
    52

    This could be a DumbAss Question

    Sorry if this question sounds really stupid, but that will mean that the answer is really simple which will be good for all of us.

    My question is concerning XSL
    I want to know if there is a way to count how many records have been read, and if the record is the last one using a "for each".
    I've tried incrementing a variable and coudn't get it to work (and that would help me with detecting the last record any way) so I'm clueless.

    Thanks.

  2. #2
    Fanatic Member chrismitchell's Avatar
    Join Date
    Jan 2001
    Location
    With Hobbes in New Zealand
    Posts
    568
    Do you mean XML?

  3. #3

    Thread Starter
    Member
    Join Date
    Feb 2002
    Posts
    52
    Let me explain my problem a bit better.
    I'm using ASP & XSL to search an XML document. When I display the results (using an XSL Stylesheet) I want to be able to show a message if no results were found. Also I would like to be able to only display a set number of results per page (like a proper search engine does), but I can't seem to find a way to do either of the above.

  4. #4
    Addicted Member
    Join Date
    Nov 2001
    Location
    Liverpool, England
    Posts
    155
    This might help (assuming XSLT is the same as XSL): Have a look at DevGuru. It lists all the functions. There's a count function that may be of some use and others such as Last.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width