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 (3)
lang

text. BCP-47 language tag for the document's content, e.g. "es" or "es-MX". Overrides the locale supplied by the hosting page. Any language tag may be used; the suggested values are the languages DoenetML ships translations for, and content in any other language still renders with its computed prose in English.

ValueDescription
enEnglish
abAbkhazian
aceAcehnese
adyAdyghe
afAfrikaans
akAkan
amAmharic (አማርኛ)
arArabic (العربية)
arnMapuche
asAssamese (অসমীয়া)
astAsturian (asturianu)
avAvaric
ayAymara
azAzerbaijani (azərbaycan)
baBashkir (башҡорт)
banBalinese
bciBaoulé (bci)
beBelarusian (беларуская)
bemBemba (Ichibemba)
bgBulgarian (български)
bhoBhojpuri (भोजपुरी)
biBislama
bikBikol
binBini
bmBambara (bamanakan)
bnBangla (বাংলা)
boTibetan (བོད་སྐད་)
brBreton (brezhoneg)
brxBodo (बर’)
bsBosnian (bosanski)
buaBuriat (буряад)
bumBulu
caCatalan (català)
ceChechen (нохчийн)
cebCebuano
chChamorro
chkChuukese
ckbCentral Kurdish (کوردیی ناوەندی)
coCorsican
csCzech (čeština)
csbKashubian
cvChuvash (чӑваш чӗлхи)
cyWelsh (Cymraeg)
daDanish (dansk)
dagDagbani (Dagbanli)
darDargwa
deGerman (Deutsch)
djeZarma (Zarmaciine)
doiDogri (डोगरी)
dsbLower Sorbian (dolnoserbšćina)
dvDivehi
dyoJola-Fonyi (joola)
dyuDyula
dzDzongkha (རྫོང་ཁ)
eeEwe (eʋegbe)
efiEfik
elGreek (Ελληνικά)
esSpanish (español)
etEstonian (eesti)
euBasque (euskara)
ewoEwondo (ewondo)
faPersian (فارسی)
ffFula (Pulaar)
fiFinnish (suomi)
filFilipino
fitTornedalen Finnish
fjFijian
foFaroese (føroyskt)
fonFon
frFrench (français)
furFriulian (furlan)
fyWestern Frisian (Frysk)
gaIrish (Gaeilge)
gaaGa (Gã)
gdScottish Gaelic (Gàidhlig)
gilGilbertese
glGalician (galego)
gnGuarani
gswSwiss German (Schwiizertüütsch)
guGujarati (ગુજરાતી)
haHausa
hawHawaiian (ʻŌlelo Hawaiʻi)
heHebrew (עברית)
hiHindi (हिन्दी)
hilHiligaynon
hnjHmong Njua
hrCroatian (hrvatski)
hsbUpper Sorbian (hornjoserbšćina)
htHaitian Creole
huHungarian (magyar)
hyArmenian (հայերեն)
idIndonesian (Indonesia)
igIgbo
iloIloko
inhIngush
isIcelandic (íslenska)
itItalian (italiano)
jaJapanese (日本語)
jvJavanese (Jawa)
kaGeorgian (ქართული)
kabKabyle (Taqbaylit)
kbdKabardian
kbpKabiyè (Kabɩyɛ)
kcaKhanty (хӑнты ясӑӈ)
kgKongo
kiKikuyu (Gikuyu)
kkKazakh (қазақ тілі)
kmKhmer (ខ្មែរ)
kmbKimbundu
kmrKurdish (kurdî (kurmancî))
knKannada (ಕನ್ನಡ)
koKorean (한국어)
koiKomi-Permyak
kokKonkani (कोंकणी)
kosKosraean
kpeKpelle
kpvKomi
krKanuri
krcKarachay-Balkar
kriKrio
krlKarelian
ksKashmiri (کٲشُر)
kshColognian (Kölsch)
ktuKituba (Kikongo ya leta)
kumKumyk
kyKyrgyz (кыргызча)
lbLuxembourgish (Lëtzebuergesch)
lbeLak (лакку маз)
lezLezghian
lgGanda (Luganda)
liLimburgish
lijLigurian (ligure)
lnLingala (lingála)
loLao (ລາວ)
lomLoma (lom)
ltLithuanian (lietuvių)
luaLuba-Lulua
luoLuo (Dholuo)
lvLatvian (latviešu)
madMadurese
maiMaithili (मैथिली)
mdfMoksha
menMende
mgMalagasy
mhMarshallese
mhrMari
miMāori
minMinangkabau
mkMacedonian (македонски)
mlMalayalam (മലയാളം)
mnMongolian (монгол)
mniManipuri (মৈতৈলোন্)
mnkMandinka (Mandinkakaŋo)
mnsMansi (мāньси лāтыӈ)
mosMossi
mrMarathi (मराठी)
mrjWestern Mari
msMalay (Melayu)
mtMaltese (Malti)
myBurmese (မြန်မာ)
myvErzya
nahNahuatl (Nāhuatl)
napNeapolitan
nbNorwegian Bokmål (norsk bokmål)
ndsLow German (Neddersass’sch)
neNepali (नेपाली)
niuNiuean
nlDutch (Nederlands)
nnNorwegian Nynorsk (norsk nynorsk)
nogNogai
nsoNorthern Sotho (Sesotho sa Leboa)
nyNyanja
nynNyankole (Runyankore)
ocOccitan (occitan)
ojOjibwa
oloLivvi-Karelian (olo)
omOromo (Oromoo)
orOdia (ଓଡ଼ିଆ)
osOssetic (ирон)
paPunjabi (ਪੰਜਾਬੀ)
pamPampanga
pcmNigerian Pidgin (Naijíriá Píjin)
plPolish (polski)
pmsPiedmontese (piemontèis)
ponPohnpeian
psPashto (پښتو)
ptPortuguese (português)
quQuechua (Runasimi)
qucKʼicheʼ
rarRarotongan
rmRomansh (rumantsch)
rnRundi (Ikirundi)
roRomanian (română)
ruRussian (русский)
rueRusyn
rwKinyarwanda (Ikinyarwanda)
saSanskrit (संस्कृत भाषा)
sahYakut (саха тыла)
satSantali (ᱥᱟᱱᱛᱟᱲᱤ)
scSardinian (sardu)
scnSicilian (sicilianu)
scoScots
sdSindhi (سنڌي)
seNorthern Sami (davvisámegiella)
sgSango (Sängö)
shiTachelhit (ⵜⴰⵛⵍⵃⵉⵜ)
siSinhala (සිංහල)
sjdKildin Sami (кӣллт са̄мь кӣлл)
skSlovak (slovenčina)
slSlovenian (slovenščina)
smSamoan
smaSouthern Sami
smjLule Sami
smnInari Sami (anarâškielâ)
smsSkolt Sami
snShona (chiShona)
soSomali (Soomaali)
sqAlbanian (shqip)
srSerbian (српски)
ssSwati
stSouthern Sotho (Sesotho)
suSundanese (Basa Sunda)
susSusu
svSwedish (svenska)
swSwahili (Kiswahili)
szlSilesian (ślōnski)
taTamil (தமிழ்)
tabTabasaran (tab)
teTelugu (తెలుగు)
temTimne
tetTetum
tgTajik (тоҷикӣ)
thThai (ไทย)
tiTigrinya (ትግርኛ)
tivTiv
tkTurkmen (türkmen dili)
tklTokelauan
tlhKlingon
tlyTalysh
tnTswana (Setswana)
toTongan (lea fakatonga)
tpiTok Pisin
trTurkish (Türkçe)
tsTsonga
ttTatar (татар)
tvlTuvalu
tyTahitian
tyvTuvinian (Тыва)
udmUdmurt
ugUyghur (ئۇيغۇرچە)
ukUkrainian (українська)
umbUmbundu
urUrdu (اردو)
urhUrhobo (urh)
uzUzbek (o‘zbek)
veVenda
vecVenetian (veneto)
vepVeps
viVietnamese (Tiếng Việt)
vroVõro
warWaray
wlsWallisian (Fakaʻuvea)
woWolof
xalKalmyk
xhXhosa (IsiXhosa)
yiYiddish (ייִדיש)
yoYoruba (Èdè Yorùbá)
zghStandard Moroccan Tamazight (ⵜⴰⵎⴰⵣⵉⵖⵜ)
zh-HansSimplified Chinese (简体中文)
zh-HantTraditional Chinese (繁體中文)
zuZulu (isiZulu)
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 (7)
$d.colorCorrectness

boolean. Whether the answers this section contains are color-coded by correctness, after combining the attribute with any enclosing section's setting and with whether correctness is shown at all.

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

boolean. Whether correctness is shown for the answers this section contains, after combining the attribute with any enclosing section's setting and with the activity-wide flag.

$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 (10)
$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.locale

text. The BCP-47 language tag in effect for the document's content.

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