Connecting Tech Pros Worldwide Forums | Help | Site Map

How to set a limit when applying template

Hvid Hat
Guest
 
Posts: n/a
#1: Oct 8 '08
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]">

David Carlisle
Guest
 
Posts: n/a
#2: Oct 9 '08

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
David Carlisle
Guest
 
Posts: n/a
#3: Oct 9 '08

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