title: paging xml data
body: <p>how do i implement paging on xml data which is being called through php. i've been trying various jquery pagination on the xml file with no luck.</p>
  
  <p>html/php code reading the xml data:</p>
  
  <pre><code>&lt;div id="display"&gt;
          &lt;?php
          error_reporting(E_ALL);
          ini_set("display_errors", 1);
  
              $xmldoc = new DOMDocument();
              if(!file_exists('test.xml')){
                echo "Sorry this file does not exists!";
                exit();
              } else {
                  $xmldoc-&gt;load('test.xml', LIBXML_NOBLANKS);
  
                 // Load up the XSL file
                  $xslDoc = new DomDocument;
                  $xslDoc-&gt;load("test.xsl");
                  $xsl = new XSLTProcessor;
                  $xsl-&gt;importStyleSheet($xslDoc);
  
                  // apply the transformation
                  echo $xsl-&gt;transformToXml($xmldoc);
              } 
           ?&gt;
      &lt;/div&gt;
  </code></pre>
  
  <p>script [<a href="http://plugins.jquery.com/project/jquery-pagination" rel="nofollow noreferrer">one example</a>]:</p>
  
  <pre><code>&lt;script type="text/javascript" src="jquery-1.4.2.js"&gt;&lt;/script&gt;
  &lt;script type="text/javascript" src="paginator.js"&gt;&lt;/script&gt;
  &lt;script type="text/javascript"&gt;
      $(function(){ $("#display").pagination(); });
  &lt;/script&gt;
  </code></pre>