title: XSL only show 10 loops in the for-each
body: <p>My XML has 100 AgentSales nodes I only want to show the first 10 so far I have </p>
  
  <pre><code>&lt;xsl:for-each select="NewDataSet/AgentSales"&gt;
      &lt;tr&gt;
          &lt;xsl:if test="(position() mod 2 = 1)"&gt;
              &lt;xsl:attribute name="bgcolor"&gt;#cccccc&lt;/xsl:attribute&gt;
          &lt;/xsl:if&gt;
          &lt;td&gt;
              &lt;span style="font:20px arial; font-weight:bold;"&gt;
                  &lt;xsl:value-of select="AgentName"/&gt;
              &lt;/span&gt;
          &lt;/td&gt;
          &lt;td&gt;
              &lt;span style="font:20px arial; font-weight:bold;"&gt;
                  &lt;xsl:value-of select="State"/&gt;
              &lt;/span&gt;
          &lt;/td&gt;
          &lt;td&gt;
              &lt;span style="font:20px arial; font-weight:bold;"&gt;
                  &lt;xsl:value-of select="time"/&gt;
              &lt;/span&gt;
          &lt;/td&gt;
      &lt;/tr&gt;
  &lt;/xsl:for-each&gt;
  </code></pre>
  
  <p>New to the site but when I use the code brackets not all of my code shows? at least not in the preview below.  </p>