<?xml version="1.0" ?> 
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output method="html" indent="yes" />

<xsl:variable name="d1">20010508</xsl:variable>
<xsl:variable name="d2">20010512</xsl:variable>

<!-- This counts the number of Purchase Orders between certain dates -->

<xsl:template match="/">
  <html>
  <body>

    <h4> Number of Purchase Orders between 05-09-2001 and 05-11-2001 =
    <xsl:value-of select =
       "count(//POlist/PO[Id[substring-after(date,'//') &gt; $d1 and
                substring-after(date,'//') &lt; $d2]])" />
    </h4>

  </body>
  </html>
</xsl:template>
</xsl:stylesheet>
