Referencedocument

<document>

The top-level container for a DoenetML document (added implicitly if not present)

<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)
colorAnswersSeparately

boolean. 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.

colorCorrectness

boolean. Default value: true. Whether to color-code the answers it contains based on correctness.

displayDigitsForCreditAchieved

integer. Default value: 3. Number of significant digits to display for the credit achieved value.

maxNumAttempts

integer. Default value: Infinity. Maximum number of times the section-wide check-work button can be submitted. Once reached, all enclosed answers are disabled.

sectionWideCheckWork

boolean. Default value: false. Whether to show a single section-wide check-work button instead of per-answer buttons.

showCorrectness

boolean. Default value: true. Whether to display correctness indicators for the answers it contains.

submitLabel

text. Default value: Check Work. Label for the section-wide submit button when correctness is shown.

submitLabelNoCorrectness

text. Default value: Submit Response. Label for the section-wide submit button when correctness is not shown.

Other (2)
type

text. Document type identifier.

xmlns

text. XML namespace declaration (accepted for compatibility; not used).

Common to all components (4)
copy

reference. Create an independent copy of another component by reference. Enter a references a $name.

extend

reference. Extend another component by reference, inheriting its children and attributes. Enter a reference as $name.

fixLocation

boolean. Default value: false. Whether this component's location is fixed (preventing it from being moved while still allowing other modifications).

name

text. The name used to reference this component from elsewhere in the document.

Properties for <document name="d">

Scoring (5)
$d.displayDigitsForCreditAchieved

integer. Number of significant digits to display for the credit achieved value.

$d.maxNumAttempts

integer. Maximum number of times the section-wide check-work button can be submitted. Once reached, all enclosed answers are disabled.

$d.sectionWideCheckWork

boolean. Whether to show a single section-wide check-work button instead of per-answer buttons.

$d.submitLabel

text. Label for the section-wide submit button when correctness is shown.

$d.submitLabelNoCorrectness

text. Label for the section-wide submit button when correctness is not shown.

Other (9)
$d.creditAchieved

number. Aggregate credit achieved (0 to 1) for scored content in the document.

$d.disabled

boolean. Whether this component is disabled and cannot be interacted with.

$d.fixed

boolean. Whether this component's value is fixed and cannot be modified.

$d.fixLocation

boolean. Whether this component's location is fixed (preventing it from being moved while still allowing other modifications).

$d.hidden

boolean. Whether this component is hidden from the rendered output.

$d.numAttemptsLeft

integer. Remaining number of section-wide submissions before the maximum is reached.

$d.numSubmissions

integer. Number of times the section-wide check-work button has been submitted.

$d.percentCreditAchieved

number. Aggregate credit achieved as a percentage (0 to 100) for scored content in the document.

$d.title

text. The document's title.

Common to all components (1)
$d.doenetML

text. The DoenetML source code that produced this component.