I need to create a template which formats the table cells containing the golfer's score for each hole on the course with...

* Two parameters named parScore and holeScore. The parScore parameter contains
the par for a selected hole on the course. The holeScore parameter contains the
score the golfer achieved on the hole.
* A choose element that tests whether the holeScore parameter is equal to,
less than, or greater than the parScore parameter. If holeScore is less than
parScore, write the following code:
holeScore
where holeScore is the value of the holeScore parameter. If holeScore is greater
than parScore, write the code:
holeScore
otherwise, write the code:
holeScore

The following is the code that I have written but it seems to be stuck in an infinite loop and I'm not sure if I'm calling the template properly or what the issue is?

```
<xsl:template name="formatHole">
    <xsl:param name="parScore" />
    <xsl:param name="holeScore" select="0" />

    <!-- Check to see if cells parameter is greater than 0-->
    <xsl:choose>
        <xsl:when test="$holeScore &lt; $parScore">
            <td class="low"><xsl:value-of select="$holeScore" /></td>
        </xsl:when>

        <xsl:when test="$holeScore > $parScore">
            <td class="high"><xsl:value-of select="$holeScore" /></td>
        </xsl:when>

        <xsl:otherwise>
            <td><xsl:value-of select="$holeScore" /></td>
        </xsl:otherwise>
    </xsl:choose>

    <xsl:call-template name="formatHole">
        <xsl:with-param name="parScore" select="$holeScore - 1" />
        <xsl:with-param name="holeScore" select="$parScore" />
    </xsl:call-template>    
</xsl:template>

```

The following is a snippet of the xml code...

```
<course>
   <par holeNumber="1">4</par>
   <par holeNumber="2">4</par>
   <par holeNumber="3">5</par>
   <par holeNumber="4">3</par>
   <par holeNumber="5">4</par>
   <par holeNumber="6">4</par>
   <par holeNumber="7">5</par>
   <par holeNumber="8">3</par>
   <par holeNumber="9">4</par>
   <par holeNumber="10">4</par>
   <par holeNumber="11">5</par>
   <par holeNumber="12">4</par>
   <par holeNumber="13">3</par>
   <par holeNumber="14">4</par>
   <par holeNumber="15">5</par>
   <par holeNumber="16">4</par>
   <par holeNumber="17">3</par>
   <par holeNumber="18">4</par>
</course>

<golfer>
   <name>Brett Bierson</name>
   <round roundNumber="1">
      <score holeNumber="1">4</score>
      <score holeNumber="2">4</score>
      <score holeNumber="3">5</score>
      <score holeNumber="4">2</score>
      <score holeNumber="5">4</score>
      <score holeNumber="6">4</score>
      <score holeNumber="7">5</score>
      <score holeNumber="8">4</score>
      <score holeNumber="9">4</score>
      <score holeNumber="10">4</score>
      <score holeNumber="11">3</score>
      <score holeNumber="12">4</score>
      <score holeNumber="13">3</score>
      <score holeNumber="14">4</score>
      <score holeNumber="15">5</score>
      <score holeNumber="16">5</score>
      <score holeNumber="17">3</score>
      <score holeNumber="18">3</score>
   </round>

```