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

From OLPC
< RPI‎ | Mathactivity‎ | XML
Jump to navigation Jump to search
(Mockup by example of the goal XML format)
 
m (added a problem section)
Line 20: Line 20:
&lt;material id=&quot;wood&quot; quantity=&quot;20&quot; /&gt;<br />
&lt;material id=&quot;wood&quot; quantity=&quot;20&quot; /&gt;<br />
&lt;/materials&gt;<br />
&lt;/materials&gt;<br />
&lt;problems&gt;<br />
&lt;problem id=&quot;make_house&quot; /&gt;<br />
&lt;/problems&gt;<br />
&lt;subgoals&gt;<br />
&lt;subgoals&gt;<br />
&lt;goal id=&quot;paint&quot;&gt;<br />
&lt;goal id=&quot;paint&quot;&gt;<br />

Revision as of 20:59, 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>
<goal id="paint">
<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">
<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>
</subgoals>
</goal>