Connecting Tech Pros Worldwide Help | Site Map

How to set a limit when applying template

  #1  
Old October 8th, 2008, 09:45 PM
Hvid Hat
Guest
 
Posts: n/a
Hi

When using <xsl:apply-templates select="Document"I get 10 documents. How
can I limit it to only the first 5 documents, e.g. pseduo
<xsl:apply-templates select="Document[position() &lt; 6]">
  #2  
Old October 9th, 2008, 01:45 AM
David Carlisle
Guest
 
Posts: n/a

re: How to set a limit when applying template


Hvid Hat wrote:
Quote:
Hi
>
When using <xsl:apply-templates select="Document"I get 10 documents. How
can I limit it to only the first 5 documents, e.g. pseduo
<xsl:apply-templates select="Document[position() &lt; 6]">
the code you suggest is the code you want, did you try it?

--
http://dpcarlisle.blogspot.com
  #3  
Old October 9th, 2008, 01:45 AM
David Carlisle
Guest
 
Posts: n/a

re: How to set a limit when applying template


Hvid Hat wrote:
Quote:
Hi
>
When using <xsl:apply-templates select="Document"I get 10 documents. How
can I limit it to only the first 5 documents, e.g. pseduo
<xsl:apply-templates select="Document[position() &lt; 6]">
the code you suggest is the code you want, did you try it?

David
--
http://dpcarlisle.blogspot.com
Closed Thread


Similar Threads
Thread Thread Starter Forum Replies Last Post
GridView Control - limiting width and overflow GregG answers 4 March 19th, 2006 07:15 PM
exception woes using fstream and .eof Greg answers 7 December 19th, 2005 07:55 PM
yet another question - how do I set error trapping to 2? windandwaves answers 3 November 13th, 2005 11:34 AM
Applying XSL templates dynamically Kimmo answers 2 July 20th, 2005 08:28 AM