Skip to Content
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)
colorAnswersSeparatelyAdded in 0.7.21

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.

colorCorrectnessAdded in 0.7.4

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.

maxNumAttemptsAdded in 0.7.21

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

sectionWideCheckWorkAdded in 0.7.21

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)
langAdded in 0.7.22

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
abAdded in 0.7.26Abkhazian
aceAdded in 0.7.24Acehnese
acfAdded in 0.7.26Saint Lucian Creole French (Kwéyòl)
adyAdded in 0.7.26Adyghe
afAfrikaans
akAkan
altAdded in 0.7.26Southern Altai
amAmharic (አማርኛ)
anAdded in 0.7.26Aragonese
arArabic (العربية)
arnMapuche
asAssamese (অসমীয়া)
astAsturian (asturianu)
avAdded in 0.7.26Avaric
awaAdded in 0.7.26Awadhi
ayAymara
azAzerbaijani (azərbaycan)
baAdded in 0.7.24Bashkir (башҡорт)
balAdded in 0.7.26Baluchi
banAdded in 0.7.24Balinese
barAdded in 0.7.26Bavarian
bbcAdded in 0.7.26Batak Toba
bciAdded in 0.7.24Baoulé (bci)
beBelarusian (беларуская)
bemAdded in 0.7.24Bemba (Ichibemba)
bgBulgarian (български)
bhoAdded in 0.7.24Bhojpuri (भोजपुरी)
biAdded in 0.7.26Bislama
bikAdded in 0.7.24Bikol
binAdded in 0.7.24Bini
bjnAdded in 0.7.26Banjar
bmBambara (bamanakan)
bnBangla (বাংলা)
boAdded in 0.7.24Tibetan (བོད་སྐད་)
brBreton (brezhoneg)
brhAdded in 0.7.26Brahui
brxAdded in 0.7.24Bodo (बर’)
bsBosnian (bosanski)
buaAdded in 0.7.24Buriat (буряад)
bugAdded in 0.7.26Buginese
bumAdded in 0.7.24Bulu
bzjAdded in 0.7.26Belize Kriol (Bileez Kriol)
caCatalan (català)
cabAdded in 0.7.26Garifuna
cbkAdded in 0.7.26Chavacano (cbk)
ceAdded in 0.7.24Chechen (нохчийн)
cebCebuano
cggAdded in 0.7.26Chiga (Rukiga)
chAdded in 0.7.24Chamorro
chkAdded in 0.7.26Chuukese
ckbAdded in 0.7.26Central Kurdish (کوردیی ناوەندی)
coCorsican
crhAdded in 0.7.26Crimean Tatar
csCzech (čeština)
csbAdded in 0.7.26Kashubian
cvAdded in 0.7.24Chuvash (чӑваш чӗлхи)
cyWelsh (Cymraeg)
daDanish (dansk)
dagAdded in 0.7.24Dagbani (Dagbanli)
darAdded in 0.7.26Dargwa
deGerman (Deutsch)
djeAdded in 0.7.24Zarma (Zarmaciine)
djkAdded in 0.7.26Aukan (Okanisi tongo)
dngAdded in 0.7.26Dungan (dng)
doiAdded in 0.7.24Dogri (डोगरी)
dsbAdded in 0.7.26Lower Sorbian (dolnoserbšćina)
dtpAdded in 0.7.26Central Dusun
dvAdded in 0.7.24Divehi
dyoAdded in 0.7.24Jola-Fonyi (joola)
dyuAdded in 0.7.24Dyula
dzAdded in 0.7.24Dzongkha (རྫོང་ཁ)
eeEwe (eʋegbe)
efiAdded in 0.7.24Efik
eglAdded in 0.7.26Emilian
elGreek (Ελληνικά)
esSpanish (español)
etEstonian (eesti)
euBasque (euskara)
ewoAdded in 0.7.24Ewondo (ewondo)
extAdded in 0.7.26Extremaduran
faPersian (فارسی)
ffAdded in 0.7.24Fula (Pulaar)
fiFinnish (suomi)
filFilipino
fitAdded in 0.7.26Tornedalen Finnish
fjAdded in 0.7.24Fijian
foFaroese (føroyskt)
fonAdded in 0.7.24Fon
frFrench (français)
frpAdded in 0.7.26Arpitan
frrAdded in 0.7.26Northern Frisian
furAdded in 0.7.26Friulian (furlan)
fyWestern Frisian (Frysk)
gaIrish (Gaeilge)
gaaAdded in 0.7.24Ga (Gã)
gagAdded in 0.7.26Gagauz
gbmAdded in 0.7.26Garhwali (गढ़वाली)
gcfAdded in 0.7.26Guadeloupean Creole French (kréyòl gwadloupéyen)
gcrAdded in 0.7.26Guianese Creole French (kriyòl gwiyanè)
gdScottish Gaelic (Gàidhlig)
gilAdded in 0.7.26Gilbertese
glGalician (galego)
glkAdded in 0.7.26Gilaki
gnGuarani
gorAdded in 0.7.26Gorontalo
grtAdded in 0.7.26Garo (A·chik)
gswAdded in 0.7.26Swiss German (Schwiizertüütsch)
guGujarati (ગુજરાતી)
gvAdded in 0.7.26Manx (Gaelg)
haHausa
hawHawaiian (ʻŌlelo Hawaiʻi)
hazAdded in 0.7.26Hazaragi (haz)
heHebrew (עברית)
hiHindi (हिन्दी)
hifAdded in 0.7.26Fiji Hindi
hilAdded in 0.7.24Hiligaynon
hneAdded in 0.7.26Chhattisgarhi (छत्तीसगढ़ी)
hnjHmong Njua
hrCroatian (hrvatski)
hsbAdded in 0.7.26Upper Sorbian (hornjoserbšćina)
htHaitian Creole
huHungarian (magyar)
hyArmenian (հայերեն)
ibaAdded in 0.7.26Iban
idIndonesian (Indonesia)
igIgbo
iloAdded in 0.7.24Iloko
inhAdded in 0.7.26Ingush
isIcelandic (íslenska)
itItalian (italiano)
iuAdded in 0.7.26Inuktitut
jaJapanese (日本語)
jamAdded in 0.7.26Jamaican Creole English
jvJavanese (Jawa)
kaGeorgian (ქართული)
kaaAdded in 0.7.26Kara-Kalpak
kabAdded in 0.7.24Kabyle (Taqbaylit)
kbdAdded in 0.7.26Kabardian
kbpAdded in 0.7.24Kabiyè (Kabɩyɛ)
kcaAdded in 0.7.26Khanty (хӑнты ясӑӈ)
kekAdded in 0.7.26Qʼeqchiʼ
kfyAdded in 0.7.26Kumaoni (कुमाउँनी)
kgAdded in 0.7.24Kongo
khaAdded in 0.7.26Khasi
kiAdded in 0.7.24Kikuyu (Gikuyu)
kjhAdded in 0.7.26Khakas (хакас тілі)
kkKazakh (қазақ тілі)
klAdded in 0.7.26Kalaallisut (kalaallisut)
kmKhmer (ខ្មែរ)
kmbAdded in 0.7.24Kimbundu
kmrAdded in 0.7.26Kurdish (kurdî (kurmancî))
knKannada (ಕನ್ನಡ)
koKorean (한국어)
koiAdded in 0.7.26Komi-Permyak
kokAdded in 0.7.24Konkani (कोंकणी)
kosAdded in 0.7.26Kosraean
kpeAdded in 0.7.24Kpelle
kpvAdded in 0.7.26Komi
krAdded in 0.7.24Kanuri
krcAdded in 0.7.26Karachay-Balkar
kriAdded in 0.7.24Krio
krlAdded in 0.7.26Karelian
ksAdded in 0.7.24Kashmiri (کٲشُر)
kshAdded in 0.7.26Colognian (Kölsch)
kswAdded in 0.7.26S'gaw Karen (ကညီကျိာ်)
ktuAdded in 0.7.24Kituba (Kikongo ya leta)
kumAdded in 0.7.26Kumyk
kwAdded in 0.7.26Cornish (kernewek)
kyKyrgyz (кыргызча)
ladAdded in 0.7.26Ladino
lbLuxembourgish (Lëtzebuergesch)
lbeAdded in 0.7.26Lak (лакку маз)
lezAdded in 0.7.26Lezghian
lgGanda (Luganda)
liAdded in 0.7.26Limburgish
lijAdded in 0.7.26Ligurian (ligure)
lldAdded in 0.7.26Ladin (ladin)
lmoAdded in 0.7.26Lombard
lnLingala (lingála)
loLao (ລາວ)
lomAdded in 0.7.24Loma (lom)
lrcAdded in 0.7.26Northern Luri (لۊری شومالی)
ltLithuanian (lietuvių)
luaAdded in 0.7.24Luba-Lulua
luoAdded in 0.7.24Luo (Dholuo)
lusAdded in 0.7.26Mizo
lvLatvian (latviešu)
madAdded in 0.7.24Madurese
magAdded in 0.7.26Magahi
maiAdded in 0.7.24Maithili (मैथिली)
makAdded in 0.7.26Makasar
mdfAdded in 0.7.26Moksha
menAdded in 0.7.24Mende
mgMalagasy
mhAdded in 0.7.26Marshallese
mhrAdded in 0.7.26Mari
miMāori
minAdded in 0.7.24Minangkabau
miqAdded in 0.7.26Mískito
mkMacedonian (македонски)
mlMalayalam (മലയാളം)
mnMongolian (монгол)
mniAdded in 0.7.24Manipuri (মৈতৈলোন্)
mnkAdded in 0.7.24Mandinka (Mandinkakaŋo)
mnsAdded in 0.7.26Mansi (мāньси лāтыӈ)
mnwAdded in 0.7.26Mon (ဘာသာမန်)
mosAdded in 0.7.24Mossi
mrMarathi (मराठी)
mrjAdded in 0.7.26Western Mari
mrwAdded in 0.7.26Maranao (Basa a Mëranaw)
msMalay (Melayu)
mtMaltese (Malti)
mwlAdded in 0.7.26Mirandese
mwrAdded in 0.7.26Marwari
myBurmese (မြန်မာ)
myvAdded in 0.7.24Erzya
mznAdded in 0.7.26Mazanderani (مازرونی)
nahNahuatl (Nāhuatl)
napAdded in 0.7.26Neapolitan
nbNorwegian Bokmål (norsk bokmål)
ndsLow German (Neddersass’sch)
neNepali (नेपाली)
newAdded in 0.7.26Newari
niaAdded in 0.7.26Nias
niuAdded in 0.7.26Niuean
nlDutch (Nederlands)
nnAdded in 0.7.26Norwegian Nynorsk (norsk nynorsk)
nogAdded in 0.7.26Nogai
nrfAdded in 0.7.26Norman (Nouormand)
nsoAdded in 0.7.24Northern Sotho (Sesotho sa Leboa)
nyNyanja
nynAdded in 0.7.24Nyankole (Runyankore)
ocOccitan (occitan)
ojOjibwa
oloAdded in 0.7.26Livvi-Karelian (olo)
omOromo (Oromoo)
orOdia (ଓଡ଼ିଆ)
osAdded in 0.7.24Ossetic (ирон)
paPunjabi (ਪੰਜਾਬੀ)
pagAdded in 0.7.26Pangasinan
pamAdded in 0.7.24Pampanga
papAdded in 0.7.26Papiamento
pcmAdded in 0.7.24Nigerian Pidgin (Naijíriá Píjin)
plPolish (polski)
pmsAdded in 0.7.26Piedmontese (piemontèis)
ponAdded in 0.7.26Pohnpeian
psPashto (پښتو)
ptPortuguese (português)
quQuechua (Runasimi)
qucKʼicheʼ
rarAdded in 0.7.26Rarotongan
rmRomansh (rumantsch)
rnAdded in 0.7.24Rundi (Ikirundi)
roRomanian (română)
romAdded in 0.7.26Romany
ruRussian (русский)
rueAdded in 0.7.26Rusyn
rwKinyarwanda (Ikinyarwanda)
saAdded in 0.7.24Sanskrit (संस्कृत भाषा)
sahAdded in 0.7.24Yakut (саха тыла)
satAdded in 0.7.24Santali (ᱥᱟᱱᱛᱟᱲᱤ)
scSardinian (sardu)
scnSicilian (sicilianu)
scoAdded in 0.7.26Scots
sdSindhi (سنڌي)
seNorthern Sami (davvisámegiella)
sgAdded in 0.7.24Sango (Sängö)
sghAdded in 0.7.26Shughni (sgh)
shiAdded in 0.7.24Tachelhit (ⵜⴰⵛⵍⵃⵉⵜ)
shnAdded in 0.7.26Shan (တႆး)
siSinhala (සිංහල)
sjdAdded in 0.7.26Kildin Sami (кӣллт са̄мь кӣлл)
skSlovak (slovenčina)
skrAdded in 0.7.26Saraiki (سرائیکی)
slSlovenian (slovenščina)
smSamoan
smaAdded in 0.7.26Southern Sami
smjAdded in 0.7.26Lule Sami
smnAdded in 0.7.26Inari Sami (anarâškielâ)
smsAdded in 0.7.26Skolt Sami
snShona (chiShona)
soSomali (Soomaali)
sqAlbanian (shqip)
srSerbian (српски)
srmAdded in 0.7.26Saramaccan (Saamáka tongo)
srnAdded in 0.7.26Sranan Tongo
ssAdded in 0.7.24Swati
stSouthern Sotho (Sesotho)
suSundanese (Basa Sunda)
susAdded in 0.7.24Susu
svSwedish (svenska)
swSwahili (Kiswahili)
sylAdded in 0.7.26Sylheti (সিলেটি)
szlAdded in 0.7.26Silesian (ślōnski)
taTamil (தமிழ்)
tabAdded in 0.7.26Tabasaran (tab)
tcyAdded in 0.7.26Tulu
teTelugu (తెలుగు)
temAdded in 0.7.24Timne
tetAdded in 0.7.24Tetum
tgTajik (тоҷикӣ)
thThai (ไทย)
tiTigrinya (ትግርኛ)
tivAdded in 0.7.24Tiv
tkTurkmen (türkmen dili)
tklAdded in 0.7.26Tokelauan
tlhAdded in 0.7.24Klingon
tlyAdded in 0.7.26Talysh
tnTswana (Setswana)
toAdded in 0.7.24Tongan (lea fakatonga)
tpiAdded in 0.7.24Tok Pisin
trTurkish (Türkçe)
tsAdded in 0.7.24Tsonga
tsgAdded in 0.7.26Tausug (Bahasa Sūg)
ttTatar (татар)
tttAdded in 0.7.26Muslim Tat
tvlAdded in 0.7.26Tuvalu
tyAdded in 0.7.24Tahitian
tyvAdded in 0.7.24Tuvinian (Тыва)
udmAdded in 0.7.24Udmurt
ugUyghur (ئۇيغۇرچە)
ukUkrainian (українська)
umbAdded in 0.7.24Umbundu
urUrdu (اردو)
urhAdded in 0.7.24Urhobo (urh)
uzUzbek (o‘zbek)
veAdded in 0.7.24Venda
vecAdded in 0.7.26Venetian (veneto)
vepAdded in 0.7.26Veps
viVietnamese (Tiếng Việt)
vroAdded in 0.7.26Võro
waAdded in 0.7.26Walloon
warAdded in 0.7.24Waray
wblAdded in 0.7.26Wakhi (Xik zik)
wlsAdded in 0.7.26Wallisian (Fakaʻuvea)
woWolof
xalAdded in 0.7.24Kalmyk
xhXhosa (IsiXhosa)
xogAdded in 0.7.26Soga (Olusoga)
yiYiddish (ייִדיש)
yoYoruba (Èdè Yorùbá)
yuaAdded in 0.7.26Yucatec Maya (Maayaʼ tʼàan)
zghAdded in 0.7.24Standard Moroccan Tamazight (ⵜⴰⵎⴰⵣⵉⵖⵜ)
zh-HansSimplified Chinese (简体中文)
zh-HantTraditional Chinese (繁體中文)
zuZulu (isiZulu)
zzaAdded in 0.7.26Zaza
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.colorCorrectnessAdded in 0.7.22

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.maxNumAttemptsAdded in 0.7.21

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

$d.sectionWideCheckWorkAdded in 0.7.21

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

$d.showCorrectnessAdded in 0.7.22

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 (6)
$d.creditAchieved

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

$d.localeAdded in 0.7.22

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

$d.numAttemptsLeftAdded in 0.7.21

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

$d.numSubmissionsAdded in 0.7.21

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 (5)
$d.disabled

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

$d.doenetML

text. The DoenetML source code that produced this component.

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

Last updated on