<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>
Other (9)
colorCorrectnessboolean. Default value: true. Whether to color answer regions based on correctness.
displayDigitsForCreditAchievedinteger. Default value: 3. Number of significant digits to display for credit achieved.
documentWideCheckWorkboolean. Default value: false. Whether to show a single check-work button for the entire document.
forceIndividualAnswerColoringboolean. Default value: false. Whether to color individual answer regions even when document-wide check work is enabled.
showCorrectnessboolean. Default value: true. Whether to display correctness indicators next to answers.
submitLabeltext. Default value: Check Work. Label for the submit button when correctness is shown.
submitLabelNoCorrectnesstext. Default value: Submit Response. Label for the submit button when correctness is not shown.
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">
Other (11)
$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.displayDigitsForCreditAchievedinteger. Number of significant digits to display for credit achieved.
$d.documentWideCheckWorkboolean. Whether to show a single check-work button for the entire document.
$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.percentCreditAchievednumber. Aggregate credit achieved as a percentage (0 to 100) for scored content in the document.
$d.submitLabeltext. Label for the submit button when correctness is shown.
$d.submitLabelNoCorrectnesstext. Label for the submit button when correctness is not shown.
$d.titletext. The document's title.
Common to all components (1)
$d.doenetMLtext. The DoenetML source code that produced this component.