<document>
<document> is a Sectional
component. It is the root component of a DoenetML document. It is used to define the document’s
structure and content. If not explicitly included by the author,
it is automatically added by the DoenetML compiler.
Attributes and Properties
Attributes for <document>
Scoring (8)
colorAnswersSeparatelyboolean. Default value: false. When section-wide check work is enabled, color each answer based on its own correctness rather than the section's overall credit.
colorCorrectnessboolean. Default value: true. Whether to color-code the answers it contains based on correctness.
displayDigitsForCreditAchievedinteger. Default value: 3. Number of significant digits to display for the credit achieved value.
maxNumAttemptsinteger. Default value: Infinity. Maximum number of times the section-wide check-work button can be submitted. Once reached, all enclosed answers are disabled.
sectionWideCheckWorkboolean. Default value: false. Whether to show a single section-wide check-work button instead of per-answer buttons.
showCorrectnessboolean. Default value: true. Whether to display correctness indicators for the answers it contains.
submitLabeltext. Default value: Check Work. Label for the section-wide submit button when correctness is shown.
submitLabelNoCorrectnesstext. Default value: Submit Response. Label for the section-wide submit button when correctness is not shown.
Other (2)
typetext. Document type identifier.
xmlnstext. XML namespace declaration (accepted for compatibility; not used).
Common to all components (4)
copyreference. Create an independent copy of another component by reference. Enter a references a $name.
extendreference. Extend another component by reference, inheriting its children and attributes. Enter a reference as $name.
fixLocationboolean. Default value: false. Whether this component's location is fixed (preventing it from being moved while still allowing other modifications).
nametext. The name used to reference this component from elsewhere in the document.
Properties for <document name="d">
Scoring (5)
$d.displayDigitsForCreditAchievedinteger. Number of significant digits to display for the credit achieved value.
$d.maxNumAttemptsinteger. Maximum number of times the section-wide check-work button can be submitted. Once reached, all enclosed answers are disabled.
$d.sectionWideCheckWorkboolean. Whether to show a single section-wide check-work button instead of per-answer buttons.
$d.submitLabeltext. Label for the section-wide submit button when correctness is shown.
$d.submitLabelNoCorrectnesstext. Label for the section-wide submit button when correctness is not shown.
Other (9)
$d.creditAchievednumber. Aggregate credit achieved (0 to 1) for scored content in the document.
$d.disabledboolean. Whether this component is disabled and cannot be interacted with.
$d.fixedboolean. Whether this component's value is fixed and cannot be modified.
$d.fixLocationboolean. Whether this component's location is fixed (preventing it from being moved while still allowing other modifications).
$d.numAttemptsLeftinteger. Remaining number of section-wide submissions before the maximum is reached.
$d.numSubmissionsinteger. Number of times the section-wide check-work button has been submitted.
$d.percentCreditAchievednumber. Aggregate credit achieved as a percentage (0 to 100) for scored content in the document.
$d.titletext. The document's title.
Common to all components (1)
$d.doenetMLtext. The DoenetML source code that produced this component.