Skip to content

Commit

Permalink
FITB: corrections to default correct test behavior (PR #2367)
Browse files Browse the repository at this point in the history
  • Loading branch information
dbrianwalton authored and rbeezer committed Jan 17, 2025
1 parent 3b8fa73 commit 7ff115d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions xsl/pretext-runestone-fitb.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -428,9 +428,7 @@
<xsl:when test="exsl:node-set($check)/evaluate/test[@correct='yes']">
<xsl:copy-of select="exsl:node-set($check)/evaluate/test[@correct='yes']"/>
</xsl:when>
<xsl:otherwise>
<xsl:copy-of select="exsl:node-set($check)/evaluate/test[position()=1]"/>
</xsl:otherwise>
<!-- If no test matches @correct='yes', then use the default answer. Leave blank. -->
</xsl:choose>
</xsl:variable>
<xsl:if test="$blankNum > 1">
Expand All @@ -442,7 +440,7 @@
<xsl:when test="string-length($multiAns)>0">
<xsl:value-of select="$multiAns"/>
</xsl:when>
<xsl:when test="$checkCorrectTest">
<xsl:when test="string-length($checkCorrectTest) > 0">
<xsl:apply-templates select="exsl:node-set($checkCorrectTest)/test" mode="create-test-feedback">
<xsl:with-param name="fillin" select="$curFillIn" />
<xsl:with-param name="b-correct" select="'yes'" />
Expand All @@ -459,10 +457,12 @@
<xsl:value-of select="exsl:node-set($curFillIn)/@answer"/>
<xsl:text>,</xsl:text>
<xsl:value-of select="exsl:node-set($curFillIn)/@answer"/>
<xsl:text>]</xsl:text>
</xsl:when>
<xsl:when test="$curFillIn/@mode='string'">
<xsl:text>"regex": </xsl:text>
<xsl:text>"regex": "</xsl:text>
<xsl:value-of select="exsl:node-set($curFillIn)/@answer"/>
<xsl:text>"</xsl:text>
</xsl:when>
</xsl:choose>
</xsl:when>
Expand Down

0 comments on commit 7ff115d

Please sign in to comment.