<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>
Scoring (8)
colorAnswersSeparatelyboolean. 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.
colorCorrectnessboolean. Default value: true. Whether to color-code the answers it contains based on correctness.
displayDigitsForCreditAchievedinteger. Default value: 3. Number of significant digits to display for the credit achieved value.
maxNumAttemptsinteger. Default value: Infinity. Maximum number of times the section-wide check-work button can be submitted. Once reached, all enclosed answers are disabled.
sectionWideCheckWorkboolean. Default value: false. Whether to show a single section-wide check-work button instead of per-answer buttons.
showCorrectnessboolean. Default value: true. Whether to display correctness indicators for the answers it contains.
submitLabeltext. Default value: Check Work. Label for the section-wide submit button when correctness is shown.
submitLabelNoCorrectnesstext. Default value: Submit Response. Label for the section-wide submit button when correctness is not shown.
Other (3)
langtext. 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.
| Value | Description |
|---|---|
en | English |
ab | Abkhazian |
ace | Acehnese |
ady | Adyghe |
af | Afrikaans |
ak | Akan |
am | Amharic (አማርኛ) |
ar | Arabic (العربية) |
arn | Mapuche |
as | Assamese (অসমীয়া) |
ast | Asturian (asturianu) |
av | Avaric |
ay | Aymara |
az | Azerbaijani (azərbaycan) |
ba | Bashkir (башҡорт) |
ban | Balinese |
bci | Baoulé (bci) |
be | Belarusian (беларуская) |
bem | Bemba (Ichibemba) |
bg | Bulgarian (български) |
bho | Bhojpuri (भोजपुरी) |
bi | Bislama |
bik | Bikol |
bin | Bini |
bm | Bambara (bamanakan) |
bn | Bangla (বাংলা) |
bo | Tibetan (བོད་སྐད་) |
br | Breton (brezhoneg) |
brx | Bodo (बर’) |
bs | Bosnian (bosanski) |
bua | Buriat (буряад) |
bum | Bulu |
ca | Catalan (català) |
ce | Chechen (нохчийн) |
ceb | Cebuano |
ch | Chamorro |
chk | Chuukese |
ckb | Central Kurdish (کوردیی ناوەندی) |
co | Corsican |
cs | Czech (čeština) |
csb | Kashubian |
cv | Chuvash (чӑваш чӗлхи) |
cy | Welsh (Cymraeg) |
da | Danish (dansk) |
dag | Dagbani (Dagbanli) |
dar | Dargwa |
de | German (Deutsch) |
dje | Zarma (Zarmaciine) |
doi | Dogri (डोगरी) |
dsb | Lower Sorbian (dolnoserbšćina) |
dv | Divehi |
dyo | Jola-Fonyi (joola) |
dyu | Dyula |
dz | Dzongkha (རྫོང་ཁ) |
ee | Ewe (eʋegbe) |
efi | Efik |
el | Greek (Ελληνικά) |
es | Spanish (español) |
et | Estonian (eesti) |
eu | Basque (euskara) |
ewo | Ewondo (ewondo) |
fa | Persian (فارسی) |
ff | Fula (Pulaar) |
fi | Finnish (suomi) |
fil | Filipino |
fit | Tornedalen Finnish |
fj | Fijian |
fo | Faroese (føroyskt) |
fon | Fon |
fr | French (français) |
fur | Friulian (furlan) |
fy | Western Frisian (Frysk) |
ga | Irish (Gaeilge) |
gaa | Ga (Gã) |
gd | Scottish Gaelic (Gàidhlig) |
gil | Gilbertese |
gl | Galician (galego) |
gn | Guarani |
gsw | Swiss German (Schwiizertüütsch) |
gu | Gujarati (ગુજરાતી) |
ha | Hausa |
haw | Hawaiian (ʻŌlelo Hawaiʻi) |
he | Hebrew (עברית) |
hi | Hindi (हिन्दी) |
hil | Hiligaynon |
hnj | Hmong Njua |
hr | Croatian (hrvatski) |
hsb | Upper Sorbian (hornjoserbšćina) |
ht | Haitian Creole |
hu | Hungarian (magyar) |
hy | Armenian (հայերեն) |
id | Indonesian (Indonesia) |
ig | Igbo |
ilo | Iloko |
inh | Ingush |
is | Icelandic (íslenska) |
it | Italian (italiano) |
ja | Japanese (日本語) |
jv | Javanese (Jawa) |
ka | Georgian (ქართული) |
kab | Kabyle (Taqbaylit) |
kbd | Kabardian |
kbp | Kabiyè (Kabɩyɛ) |
kca | Khanty (хӑнты ясӑӈ) |
kg | Kongo |
ki | Kikuyu (Gikuyu) |
kk | Kazakh (қазақ тілі) |
km | Khmer (ខ្មែរ) |
kmb | Kimbundu |
kmr | Kurdish (kurdî (kurmancî)) |
kn | Kannada (ಕನ್ನಡ) |
ko | Korean (한국어) |
koi | Komi-Permyak |
kok | Konkani (कोंकणी) |
kos | Kosraean |
kpe | Kpelle |
kpv | Komi |
kr | Kanuri |
krc | Karachay-Balkar |
kri | Krio |
krl | Karelian |
ks | Kashmiri (کٲشُر) |
ksh | Colognian (Kölsch) |
ktu | Kituba (Kikongo ya leta) |
kum | Kumyk |
ky | Kyrgyz (кыргызча) |
lb | Luxembourgish (Lëtzebuergesch) |
lbe | Lak (лакку маз) |
lez | Lezghian |
lg | Ganda (Luganda) |
li | Limburgish |
lij | Ligurian (ligure) |
ln | Lingala (lingála) |
lo | Lao (ລາວ) |
lom | Loma (lom) |
lt | Lithuanian (lietuvių) |
lua | Luba-Lulua |
luo | Luo (Dholuo) |
lv | Latvian (latviešu) |
mad | Madurese |
mai | Maithili (मैथिली) |
mdf | Moksha |
men | Mende |
mg | Malagasy |
mh | Marshallese |
mhr | Mari |
mi | Māori |
min | Minangkabau |
mk | Macedonian (македонски) |
ml | Malayalam (മലയാളം) |
mn | Mongolian (монгол) |
mni | Manipuri (মৈতৈলোন্) |
mnk | Mandinka (Mandinkakaŋo) |
mns | Mansi (мāньси лāтыӈ) |
mos | Mossi |
mr | Marathi (मराठी) |
mrj | Western Mari |
ms | Malay (Melayu) |
mt | Maltese (Malti) |
my | Burmese (မြန်မာ) |
myv | Erzya |
nah | Nahuatl (Nāhuatl) |
nap | Neapolitan |
nb | Norwegian Bokmål (norsk bokmål) |
nds | Low German (Neddersass’sch) |
ne | Nepali (नेपाली) |
niu | Niuean |
nl | Dutch (Nederlands) |
nn | Norwegian Nynorsk (norsk nynorsk) |
nog | Nogai |
nso | Northern Sotho (Sesotho sa Leboa) |
ny | Nyanja |
nyn | Nyankole (Runyankore) |
oc | Occitan (occitan) |
oj | Ojibwa |
olo | Livvi-Karelian (olo) |
om | Oromo (Oromoo) |
or | Odia (ଓଡ଼ିଆ) |
os | Ossetic (ирон) |
pa | Punjabi (ਪੰਜਾਬੀ) |
pam | Pampanga |
pcm | Nigerian Pidgin (Naijíriá Píjin) |
pl | Polish (polski) |
pms | Piedmontese (piemontèis) |
pon | Pohnpeian |
ps | Pashto (پښتو) |
pt | Portuguese (português) |
qu | Quechua (Runasimi) |
quc | Kʼicheʼ |
rar | Rarotongan |
rm | Romansh (rumantsch) |
rn | Rundi (Ikirundi) |
ro | Romanian (română) |
ru | Russian (русский) |
rue | Rusyn |
rw | Kinyarwanda (Ikinyarwanda) |
sa | Sanskrit (संस्कृत भाषा) |
sah | Yakut (саха тыла) |
sat | Santali (ᱥᱟᱱᱛᱟᱲᱤ) |
sc | Sardinian (sardu) |
scn | Sicilian (sicilianu) |
sco | Scots |
sd | Sindhi (سنڌي) |
se | Northern Sami (davvisámegiella) |
sg | Sango (Sängö) |
shi | Tachelhit (ⵜⴰⵛⵍⵃⵉⵜ) |
si | Sinhala (සිංහල) |
sjd | Kildin Sami (кӣллт са̄мь кӣлл) |
sk | Slovak (slovenčina) |
sl | Slovenian (slovenščina) |
sm | Samoan |
sma | Southern Sami |
smj | Lule Sami |
smn | Inari Sami (anarâškielâ) |
sms | Skolt Sami |
sn | Shona (chiShona) |
so | Somali (Soomaali) |
sq | Albanian (shqip) |
sr | Serbian (српски) |
ss | Swati |
st | Southern Sotho (Sesotho) |
su | Sundanese (Basa Sunda) |
sus | Susu |
sv | Swedish (svenska) |
sw | Swahili (Kiswahili) |
szl | Silesian (ślōnski) |
ta | Tamil (தமிழ்) |
tab | Tabasaran (tab) |
te | Telugu (తెలుగు) |
tem | Timne |
tet | Tetum |
tg | Tajik (тоҷикӣ) |
th | Thai (ไทย) |
ti | Tigrinya (ትግርኛ) |
tiv | Tiv |
tk | Turkmen (türkmen dili) |
tkl | Tokelauan |
tlh | Klingon |
tly | Talysh |
tn | Tswana (Setswana) |
to | Tongan (lea fakatonga) |
tpi | Tok Pisin |
tr | Turkish (Türkçe) |
ts | Tsonga |
tt | Tatar (татар) |
tvl | Tuvalu |
ty | Tahitian |
tyv | Tuvinian (Тыва) |
udm | Udmurt |
ug | Uyghur (ئۇيغۇرچە) |
uk | Ukrainian (українська) |
umb | Umbundu |
ur | Urdu (اردو) |
urh | Urhobo (urh) |
uz | Uzbek (o‘zbek) |
ve | Venda |
vec | Venetian (veneto) |
vep | Veps |
vi | Vietnamese (Tiếng Việt) |
vro | Võro |
war | Waray |
wls | Wallisian (Fakaʻuvea) |
wo | Wolof |
xal | Kalmyk |
xh | Xhosa (IsiXhosa) |
yi | Yiddish (ייִדיש) |
yo | Yoruba (Èdè Yorùbá) |
zgh | Standard Moroccan Tamazight (ⵜⴰⵎⴰⵣⵉⵖⵜ) |
zh-Hans | Simplified Chinese (简体中文) |
zh-Hant | Traditional Chinese (繁體中文) |
zu | Zulu (isiZulu) |
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">
Scoring (7)
$d.colorCorrectnessboolean. 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.displayDigitsForCreditAchievedinteger. Number of significant digits to display for the credit achieved value.
$d.maxNumAttemptsinteger. Maximum number of times the section-wide check-work button can be submitted. Once reached, all enclosed answers are disabled.
$d.sectionWideCheckWorkboolean. Whether to show a single section-wide check-work button instead of per-answer buttons.
$d.showCorrectnessboolean. 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.submitLabeltext. Label for the section-wide submit button when correctness is shown.
$d.submitLabelNoCorrectnesstext. Label for the section-wide submit button when correctness is not shown.
Other (10)
$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.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.localetext. The BCP-47 language tag in effect for the document's content.
$d.numAttemptsLeftinteger. Remaining number of section-wide submissions before the maximum is reached.
$d.numSubmissionsinteger. Number of times the section-wide check-work button has been submitted.
$d.percentCreditAchievednumber. Aggregate credit achieved as a percentage (0 to 100) for scored content in the document.
$d.titletext. The document's title.
Common to all components (1)
$d.doenetMLtext. The DoenetML source code that produced this component.