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

<!--  Change parameters here  -->
<xsl:variable name="d1">20010508</xsl:variable>
<xsl:variable name="d2">20010512</xsl:variable>
<xsl:variable name="str1">Ship</xsl:variable>
<!--                          -->

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

    <h5 align = "center"> 
      Number of Purchase Orders between certain dates that have
      a "status" element which contains the word "Ship"   =

      <xsl:value-of select =
       "count(//POlist/PO[Id[
         contains(status,$str1) and 
         ( substring-after(date,'//') &gt; $d1 and
           substring-after(date,'//') &lt; $d2) ]])" />     
    </h5>

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