|IBM developerWorks : XML : Education - Tutorials|
to your tutorial's xml file, ADD the following to the desired panel:
<self-test span="0" question="?" choice1=" " answer1=" " choice2=" " answer2=" " choice3=" " answer3=" " choice4=" " answer4=" " />
The Self-Test feature's answers can be seen by viewing the page's source.
Spans are numbered beginning with Zero. If the Self-Test is added to a page that has span tags prior to it's location, the attribute's number should be changed accordingly. Subsequent self-test elements on the same panel would likewise be incremented.
Use Entities with care. Any tags entered into the attribute values need the "left angle" to be entered as < and quotes need to be either &#39; for single or &#34; for double.
For example, the next panel has:
<self-test span="0" question="How many Files need to be changed?<br />A: the tootomatic.xsl file.<br />B: the dw-style.xsl file.<br />C: the build-individual-panels.xsl file<br />D: the dwtut.dtd and tootomatic.xsd files." choice1="only A" answer1="If you don&#39;t mind creating a zip file or having a non-functional image-link" choice2="A and B" answer2="That fixes the zip file problems but leaves a non-functional feedback form" choice3="C and D" answer3="Pragmatically, the dtd and xsd files don&#39;t need to be changed. And you still have the Zip file problem." choice4="All of them" answer4=" Correct, if you&#39;re a perfectionist." />
Avoid the "white-space" problems involved with copying the above code and Cut and Paste from the zipped Text files. The code for the self-test element for the tutorial's xml file is included in the File Modifications folder
|About IBM | Privacy | Legal | Contact|