Is it possible to count the instances of a for-each boolean statement. for example, say you have patients in a hospital and certain criteria must be met to discharge them. 100(%0) health would equal a discharge, pseudo code would read something like this:
totalHealth - HighTemperature + medication * recoveryPeriod
could you then have a choose statement to count the number of patients discharged or still in hospital? eg
<xsl:choose> <xsl:when test="(totalHealth - HighTemperature + medication * recoveryPeriod) > = 90"> Discharged Patients - <xsl:value-of select="count(true)"/> </xsl:when> <xsl:otherwise> Current Patients - <xsl:value-of select="count(false)"/> </xsl:otherwise> <xsl:choose>
I know this code is incorrect, I just want to know if it is possible.
Thanks in advance