RPI/Mathactivity/XML/goal mockup

From OLPC
< RPI‎ | Mathactivity‎ | XML
Revision as of 20:53, 1 April 2008 by AllenL (talk | contribs) (Mockup by example of the goal XML format)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
<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>
<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>