How to set a limit when applying template

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Hvid Hat

    #1

    How to set a limit when applying template

    Hi

    When using <xsl:apply-templates select="Documen t"I get 10 documents. How
    can I limit it to only the first 5 documents, e.g. pseduo
    <xsl:apply-templates select="Documen t[position() &lt; 6]">
  • David Carlisle

    #2
    Re: How to set a limit when applying template

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

    --

    Comment

    • David Carlisle

      #3
      Re: How to set a limit when applying template

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

      David
      --

      Comment

      Working...