Information Technology Reference
In-Depth Information
XML_1. Attribute class in a XHTML document
<div class=”exercise-easy”>
<p>Look at the two images bellow.</p>
<p>Try to find all the differences.</p>
<img src=”http://domain.com/exercises/101-easy.png”>
</div>
<div class=”exercise-medium”>
<p>Look at the two images bellow.</p>
<p>Try to find all the differences.</p>
<img src=”http://domain.com/exercises/101-medium.png”>
</div>
<div class=”exercise-hard”>
<p>Look at the two images bellow.</p>
<p>Try to find all the differences.</p>
<img src=”http://domain.com/exercises/101-difficult.png”>
</div>
XML_2. SG condition exported into an IMS-LD condition
<imsld:if>
<imsld:is>
[IMS-LD condition here]
</imsld:is>
</imsld:if>
<imsld:then>
<imsld:hide>
<imsld:class class=”exercise-medium” />
</imsld:hide>
<imsld:hide>
<imsld:class class=”exercise-hard” />
</imsld:hide>
<imsld:show>
<imsld:class class=”exercise-easy” />
</imsld:show>
</imsld:then>
resource files related to the SG are stored in it.
Therefore, following an edge in a SG is trans-
lated to one <imsld:show> and N-1 <imsld:hide>
actions, where N is the total number of nodes
here. Each of these resources is wrapped in a DIV;
the value of the class attribute of that DIV is equal
to the name of the original <sg:exercise>.
The trivial case of a graph composed of only
two nodes (two <sg:exercises>) is illustrated in
Figure 4 and XML excerpt 3 for the sake of clarity.
As a side effect of this process, the hierarchy
of the SG disappears. All the nodes are exported
to activities on the same level. All edges' condi-
tions are written together in the conditions' section
Search WWH ::




Custom Search