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>

Other (9)
colorCorrectness

boolean. Default value: true. Whether to color answer regions based on correctness.

displayDigitsForCreditAchieved

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

documentWideCheckWork

boolean. Default value: false. Whether to show a single check-work button for the entire document.

forceIndividualAnswerColoring

boolean. Default value: false. Whether to color individual answer regions even when document-wide check work is enabled.

showCorrectness

boolean. Default value: true. Whether to display correctness indicators next to answers.

submitLabel

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

submitLabelNoCorrectness

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

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">

Other (11)
$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.displayDigitsForCreditAchieved

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

$d.documentWideCheckWork

boolean. Whether to show a single check-work button for the entire document.

$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.percentCreditAchieved

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

$d.submitLabel

text. Label for the submit button when correctness is shown.

$d.submitLabelNoCorrectness

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

$d.title

text. The document's title.

Common to all components (1)
$d.doenetML

text. The DoenetML source code that produced this component.