title: how to show last two node in xslt?
body: <p>could you please help me getting last two node in xslt .here is my code
  <a href="http://xsltransform.net/bwdwsJ/1" rel="nofollow noreferrer">http://xsltransform.net/bwdwsJ/1</a></p>
  
  <p><strong>expectoutput</strong></p>
  
  <pre><code>&lt;h1&gt;Preview your result as PDF when doctype is set to XML and your document starts with
        root element of XSL-FO. Apache FOP is used to generate the PDF
     &lt;/h1&gt;
     &lt;h1&gt;Added some links to useful XSLT sites&lt;/h1&gt;
  </code></pre>
  
  <p><strong>xslt code</strong></p>
  
  <pre><code> &lt;xsl:template match="/"&gt;
        &lt;hmtl&gt;
          &lt;head&gt;
            &lt;title&gt;New Version!&lt;/title&gt;
          &lt;/head&gt;
          &lt;xsl:for-each select="ul/li[last() &amp;gt;2]"&gt;
              &lt;h1&gt;&lt;xsl:value-of select="."/&gt;&lt;/h1&gt;
          &lt;/xsl:for-each&gt;
        &lt;/hmtl&gt;
      &lt;/xsl:template&gt;
  </code></pre>
  
  <p><strong>xml</strong></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  
      &lt;ul&gt;
          &lt;li&gt;A new XSLT engine is added: Saxon 9.5 EE, with a license (thank you Michael Kay!)&lt;/li&gt;
          &lt;li&gt;XSLT 3.0 support when using the new Saxon 9.5 EE engine!&lt;/li&gt;
          &lt;li&gt;Preview your result as HTML when doctype is set to HTML (see this example)&lt;/li&gt;
          &lt;li&gt;Preview your result as PDF when doctype is set to XML and your document starts with root element of XSL-FO. Apache FOP is used to generate the PDF&lt;/li&gt;
          &lt;li&gt;Added some links to useful XSLT sites&lt;/li&gt;
      &lt;/ul&gt;
  </code></pre>