<?xml version="1.0" encoding="iso-8859-1"?>

<xsl:stylesheet version="1.0"
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  <xsl:output method="text"/>

  <xsl:template match="/data">
   
    <xsl:if test="(./InkLevelCart1 &lt;=7 and ./InkLevelPrevJobCart1 &gt;7) 
               or (./InkLevelCart2 &lt;=7 and ./InkLevelPrevJobCart2 &gt;7)
               or (./InkLevelCart3 &lt;=7 and ./InkLevelPrevJobCart3 &gt;7
                      and not (./CartridgeTypeCart3='Invalid')
                      and not (./CartridgeTypeCart3='Missing') 
                  )
               or (./InkLevelCart4 &lt;=7 and ./InkLevelPrevJobCart4 &gt;7
                      and not (./CartridgeTypeCart4='Invalid')
                      and not (./CartridgeTypeCart4='Missing') 
                  )">RECYCLEINK</xsl:if>

  </xsl:template>

</xsl:stylesheet>
