iBooks Author: Creating Review questions with XML
iBooks Author can import XML files to create a Review widget.
In a plain text editor, such as TextEdit, you can create an XML document containing questions and answers for a Review widget in iBooks Author.
Use these elements to create your document:
Element | Attributes | Notes |
---|---|---|
review | Enter the elements of your Review widget in this element. | |
question | type | Enter the elements of your question. These values are supported for this attribute:
|
text | alt | Enter the text of your question in this element. Optional: Use alt to specify accessibility text, if different from the regular text. |
main-image | src alt | Specify the filename of the main image in your question. Not used for multiple-choice or multiple-choice-images. Optional: Use alt to specify accessibility text. |
choice | correct-answer src target-x target-y alt target-alt | Enter the attributes and text (or image) of the answer.
|
line-break | This element does not have any content, so empty-element syntax is recommended. It specifies a line break in your question or answer text. |
For example, a Review with a multiple-choice-images question, a drag-label-to-target question, and a multiple-choice question may look like this:
<review>
<question type="multiple-choice-images">
<text>Which of the following do <line-break />all living things need to survive?</text>
<choice image-src="oxygen.gif" alt="Oxygen" />
<choice image-src="water.jpg" alt="Water" correct-answer="yes" />
<choice image-src="carbondioxide.jpeg" alt="Carbon Dioxide" />
</question>
<question type="drag-label-to-target">
<text>Drag the labels to the appropriate area of the atom</text>
<main-image src="atom.jpg" alt="Picture of an atom" />
<choice target-x="0.23" target-y="0.34">Neutron</choice>
<choice target-x="0.61" target-y="0.75">Electron</choice>
<choice target-x="0.12" target-y="0.34">Proton</choice>
</question>
<question type="multiple-choice">
<text>What is the world’s largest body of water?</text>
<choice> The Arctic Ocean </choice>
<choice> The Mediterranean Sea </choice>
<choice correct-answer="yes"> The Pacific Ocean </choice>
<choice> The Atlantic Ocean </choice>
</question>
</review>
Once you've created your XML document:
Save the file as a plain-text document with a .review filename extension. Save it or move it to a folder.
Then, copy each image you used in your Review widget to the same folder that contains the .review file.
Drag just the .review file into your iBooks Author book where you want the review to appear. iBooks Author will create the Review widget where the you dropped the XML file.
You can also continue editing your Review widget with the Widget inspector in iBooks Author.
Apple이 제조하지 않은 제품에 관한 정보 또는 Apple의 관리 또는 테스트 대상이 아닌 독립적인 웹 사이트는 권장 또는 보증 없이 제공되는 것입니다. Apple은 타사 웹 사이트 또는 제품에 대한 선택, 성능 및 사용과 관련하여 발생하는 결과에 대해 책임을 지지 않습니다. Apple은 타사 웹 사이트의 정확성 또는 신뢰도에 대해 어떠한 언급도 하지 않습니다. 자세한 내용은 해당 업체에 문의하시기 바랍니다.