Math-only EE with "Fill In"

The "Fill In" Equation Editor allows you to enter math in designated positions in a pre-existing equation "template". With "Fill in" EE's, you cannot use pre-existing classes to define the EE symbol palettes like you do for the other EE item types.

You will have to specify the MathML implementation through tags for the equation as follows:

	"math" : "<math xmlns=\"http://www.w3.org/1998/Math/MathML\">
			<apply>
				<eq/>
				<apply>
					<plus/>
					<apply>
						<power/>
						<ci>x</ci>
						<cn>2</cn>
					</apply>
					<apply>
						<times/>
						<cn>5</cn>
						<ci>x</ci>
					</apply>
						<cn>6</cn>
					</apply>
					<apply>
						<times/>
					<apply>
						<paren/>
						<apply>
							<plus/>
							<ci>x</ci>
							<apply>
								<csymbol cd=\"basic\" id=\"a\">input</csymbol>
								<apply>
									<csymbol cd=\"basic\">box</csymbol>
								</apply>
							</apply>
						</apply>
					</apply>
					<apply>
						<paren/>
						<apply>
							<plus/>
							<ci>x</ci>
							<apply>
								<csymbol cd=\"basic\" id=\"b\">input</csymbol>
								<apply>
									<csymbol cd=\"basic\">box</csymbol>
								</apply>
							</apply>
						</apply>
					</apply>
				</apply>
			</apply>
		</math>"

Where the above is a MathML representation of the equation you see in the editor. In this example, there are two editable parts in the equation to accept student entry, this can be done as follows:

	<apply>
		<csymbol cd="basic" id="a">input</csymbol>
		<apply>
			<csymbol cd="basic">box</csymbol>
		</apply>
	</apply>

Make sure that the id's for the "fill in" spaces are unique and are always 'a', 'b', 'c', 'd', etc.


Get Responses:[ Click Get Responses ]
	<?xml version="1.0" encoding="UTF-8" standalone="no"?><assessmentItem xmlns="http://www.imsglobal.org/xsd/imsqti_v2p1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" adaptive="false" identifier="custom-ee-fillin" timeDependent="false" title="custom EE - fillin" xsi:schemaLocation="http://www.imsglobal.org/xsd/imsqti_v2p1 http://www.imsglobal.org/xsd/imsqti_v2p1.xsd">
	<responseDeclaration cardinality="record" identifier="RESPONSE"/>
	<outcomeDeclaration baseType="integer" cardinality="single" identifier="SCORE"/>
	<itemBody>
	<div class="row">
		<div class="span8" style="margin-bottom:8px;">
			<p>This is a customInteraction with a equation template pre-filled into the EE.</p>
			
			<!-- This is where we insert the interaction -->
			<div id="RESPONSE" style="margin-bottom:10px;"/>
			
			<customInteraction class="tei-ee" responseIdentifier="RESPONSE">
				<customOption><![CDATA[
					{
						"div" : "RESPONSE",
						"models" : [{
							"identifier" : "RESPONSE",
							"styles" : "ee-fill-in",
							"width" : "100%",
							"height" : 300,
							"math" : "<math xmlns=\"http://www.w3.org/1998/Math/MathML\"><apply><eq/><apply><plus/><apply><power/><ci>x</ci><cn>2</cn></apply><apply><times/><cn>5</cn><ci>x</ci></apply><cn>6</cn></apply><apply><times/><apply><paren/><apply><plus/><ci>x</ci><apply><csymbol cd=\"basic\" id=\"a\">input</csymbol><apply><csymbol cd=\"basic\">box</csymbol></apply></apply></apply></apply><apply><paren/><apply><plus/><ci>x</ci><apply><csymbol cd=\"basic\" id=\"b\">input</csymbol><apply><csymbol cd=\"basic\">box</csymbol></apply></apply></apply></apply></apply></apply></math>"
						}]
					}
				]]></customOption>
			</customInteraction>			
		
		</div>
	</div>
	</itemBody>
</assessmentItem>
										

This is a customInteraction with a equation template pre-filled into the EE.