title: XSLT Pagination
body: <p>I have created a xslt document which formats an xml document, but I would like the results  from the xslt sheet to be paginated.</p>
  
  <p>here is the orginal xlst document </p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"&gt;
  &lt;xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/&gt;
  
  &lt;xsl:template match="/"&gt;
    &lt;xsl:for-each select="musicInformation/musicdetails"&gt;
   &lt;label for="artistname{position()}" id="artistnameLabel{position()}"&gt;Artist Name:&lt;/label&gt; 
   &lt;span  id ="artistname{position()}"&gt;&lt;xsl:value-of select="artistname" /&gt;&lt;/span&gt; 
   &lt;br/&gt; 
   &lt;label for="recordname{position()}" id="recordnameLabel{position()}"&gt;Record Name:&lt;/label&gt; 
   &lt;span  id ="recordname{position()}"&gt;&lt;xsl:value-of select="recordname" /&gt;&lt;/span&gt; 
   &lt;br/&gt; 
   &lt;label for="recordtype{position()}" id="recordtypeLabel{position()}"&gt;Record Type:&lt;/label&gt; 
   &lt;span  id ="recordtype{position()}"&gt;&lt;xsl:value-of select="recordtype" /&gt;&lt;/span&gt; 
   &lt;br/&gt; 
   &lt;label for="format{position()}" id="formatLabel{position()}"&gt;Format:&lt;/label&gt; 
   &lt;span  id ="format{position()}"&gt;&lt;xsl:value-of select="format" /&gt;&lt;/span&gt; 
   &lt;br/&gt; 
   &lt;a href="xmlDetail.php?mid={@m_id}" &gt;See Details&lt;/a&gt;
    &lt;br/&gt;&lt;br/&gt; 
    &lt;/xsl:for-each&gt;   
    &lt;/xsl:template&gt;
  &lt;/xsl:stylesheet&gt;
  </code></pre>