RPI/Mathactivity/XML/goal mockup: Difference between revisions

From OLPC
< RPI‎ | Mathactivity‎ | XML
Jump to navigation Jump to search
No edit summary
Line 24: Line 24:
&lt;/problems&gt;<br />
&lt;/problems&gt;<br />
&lt;subgoals&gt;<br />
&lt;subgoals&gt;<br />
&lt;goal id=&quot;paint&quot;&gt;<br />
&lt;subgoal id="paint" /&gt;<br />
&lt;title&gt;Paint&lt;/title&gt;<br />
&lt;subgoal id="barn" /&gt;<br />
&lt;display modify=&quot;parent&quot;&gt;<br />
&lt;mod_image id=&quot;house_picture&quot;&gt;<br />
&lt;svgblock id=&quot;house_paint_color&quot;&gt;<br />
&lt;choice default=&quot;red&quot; /&gt;<br />
&lt;option id=&quot;red&quot;&gt;<br />
&lt;title&gt;Red Paint&lt;/title&gt;<br />
&lt;value&gt;#FF0000&lt;/value&gt;<br />
&lt;/option&gt;<br />
&lt;option id=&quot;green&quot;&gt;<br />
&lt;title&gt;Green Paint&lt;/title&gt;<br />
&lt;value&gt;#00FF00&lt;/value&gt;<br />
&lt;/option&gt;<br />
&lt;option id=&quot;blue&quot;&gt;<br />
&lt;title&gt;Blue Paint&lt;/title&gt;<br />
&lt;value&gt;#0000FF&lt;/value&gt;<br />
&lt;/option&gt;<br />
&lt;/choice&gt;<br />
&lt;/svgblock&gt;<br />
&lt;/mod_image&gt;<br />
&lt;/display&gt;<br />
&lt;materials&gt;<br />
&lt;material id=&quot;colored_berries&quot; quantity=&quot;10&quot; /&gt;<br />
&lt;/materials&gt;<br />
&lt;/goal&gt;<br />
&lt;goal id=&quot;barn&quot;&gt;<br />
&lt;title&gt;Barn&lt;/title&gt;<br />
&lt;display modify=&quot;self&quot;&gt;<br />
&lt;image id=&quot;barn_picture&quot; x=&quot;30&quot; y=&quot;0&quot; fixed=&quot;true&quot;&gt;<br />
&lt;svgblock&gt;<br />
#Insert SVG here<br />
&lt;/svgblock&gt;<br />
&lt;/image&gt;<br />
&lt;/display&gt;<br />
&lt;materials&gt;<br />
&lt;material id=&quot;stone&quot; quantity=&quot;5&quot; /&gt;<br />
&lt;material id=&quot;sand&quot; quantity=&quot;5&quot; /&gt;<br />
&lt;material id=&quot;wood&quot; quantity=&quot;10&quot; /&gt;<br />
&lt;/materials&gt;<br />
&lt;/goal&gt;<br />
&lt;/subgoals&gt;<br />
&lt;/subgoals&gt;<br />
&lt;/goal&gt;<br />

&lt;goal id=&quot;paint&quot; require=&quot;house&quot; &gt;<br />
&lt;title&gt;Paint&lt;/title&gt;<br />
&lt;display modify=&quot;parent&quot;&gt;<br />
&lt;mod_image id=&quot;house_picture&quot;&gt;<br />
&lt;svgblock id=&quot;house_paint_color&quot;&gt;<br />
&lt;choice default=&quot;red&quot; /&gt;<br />
&lt;option id=&quot;red&quot;&gt;<br />
&lt;title&gt;Red Paint&lt;/title&gt;<br />
&lt;value&gt;#FF0000&lt;/value&gt;<br />
&lt;/option&gt;<br />
&lt;option id=&quot;green&quot;&gt;<br />
&lt;title&gt;Green Paint&lt;/title&gt;<br />
&lt;value&gt;#00FF00&lt;/value&gt;<br />
&lt;/option&gt;<br />
&lt;option id=&quot;blue&quot;&gt;<br />
&lt;title&gt;Blue Paint&lt;/title&gt;<br />
&lt;value&gt;#0000FF&lt;/value&gt;<br />
&lt;/option&gt;<br />
&lt;/choice&gt;<br />
&lt;/svgblock&gt;<br />
&lt;/mod_image&gt;<br />
&lt;/display&gt;<br />
&lt;materials&gt;<br />
&lt;material id=&quot;colored_berries&quot; quantity=&quot;10&quot; /&gt;<br />
&lt;/materials&gt;<br />
&lt;/goal&gt;<br />
&lt;goal id=&quot;barn&quot; require=&quot;house&quot; &gt;<br />
&lt;title&gt;Barn&lt;/title&gt;<br />
&lt;display modify=&quot;self&quot;&gt;<br />
&lt;image id=&quot;barn_picture&quot; x=&quot;30&quot; y=&quot;0&quot; fixed=&quot;true&quot;&gt;<br />
&lt;svgblock&gt;<br />
#Insert SVG here<br />
&lt;/svgblock&gt;<br />
&lt;/image&gt;<br />
&lt;/display&gt;<br />
&lt;materials&gt;<br />
&lt;material id=&quot;stone&quot; quantity=&quot;5&quot; /&gt;<br />
&lt;material id=&quot;sand&quot; quantity=&quot;5&quot; /&gt;<br />
&lt;material id=&quot;wood&quot; quantity=&quot;10&quot; /&gt;<br />
&lt;/materials&gt;<br />
&lt;/goal&gt;<br />
&lt;/goal&gt;<br />

Revision as of 21:46, 1 April 2008

<goal id="house">
<title>My House</title>
<display modify="self">
<image id="house_picture" x="0" y="0" fixed="true">
<svgblock>
#Insert SVG here
</svgblock>
<svgblock id="house_paint_color">
#555555
</svgblock>
<svgblock>
#Rest of SVG here
</svgblock>
</image>
</display>
<materials>
<material id="stone" quantity="10" />
<material id="sand" quantity="10" />
<material id="wood" quantity="20" />
</materials>
<problems>
<problem id="make_house" />
</problems>
<subgoals>
<subgoal id="paint" />
<subgoal id="barn" />
</subgoals>
</goal>
<goal id="paint" require="house" >
<title>Paint</title>
<display modify="parent">
<mod_image id="house_picture">
<svgblock id="house_paint_color">
<choice default="red" />
<option id="red">
<title>Red Paint</title>
<value>#FF0000</value>
</option>
<option id="green">
<title>Green Paint</title>
<value>#00FF00</value>
</option>
<option id="blue">
<title>Blue Paint</title>
<value>#0000FF</value>
</option>
</choice>
</svgblock>
</mod_image>
</display>
<materials>
<material id="colored_berries" quantity="10" />
</materials>
</goal>
<goal id="barn" require="house" >
<title>Barn</title>
<display modify="self">
<image id="barn_picture" x="30" y="0" fixed="true">
<svgblock>
#Insert SVG here
</svgblock>
</image>
</display>
<materials>
<material id="stone" quantity="5" />
<material id="sand" quantity="5" />
<material id="wood" quantity="10" />
</materials>
</goal>