Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FITB: Process statement using no mode (instead of mode="body") #2367

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions xsl/pretext-runestone-fitb.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@
<xsl:text>"problemHtml": </xsl:text>
<xsl:call-template name="escape-quote-xml">
<xsl:with-param name="xml_content">
<xsl:apply-templates select="statement/*" mode="body" />
<xsl:apply-templates select="statement/*" />
<xsl:if test="$b-dynamics-static-seed">
<div>
<xsl:attribute name="id">
Expand All @@ -124,7 +124,7 @@
<xsl:text>,&#xa;"solutionHtml": </xsl:text>
<xsl:call-template name="escape-quote-xml">
<xsl:with-param name="xml_content">
<xsl:apply-templates select="solution/*" mode="body" />
<xsl:apply-templates select="solution/*" />
</xsl:with-param>
</xsl:call-template>
<!-- Add packages that need to be loaded as javascript -->
Expand Down 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