Einheiten
Attribute
Das unit
Element unterstützt die folgenden Attribute:
Attribut | Typ | Standardwert | Beschreibung |
---|---|---|---|
credits |
xs:nonNegativeInteger |
1 |
Number of credit points the user gets awarded for this input value. |
model |
xs:Name |
- | Name of the model to use for this input value. If this attribute is not set, the input model associated to the input field containing this input value is used. |
preferredforms |
UnitValueList | None |
- | Either the special value none or a whitespace-separated list of preferred unit values. When such a list of unit values is given, the user is expected to enter exactly one of these. If a unit value which is equivalent to the solution is entered but which is not in the list, a warning is shown to the user but the input field is considered correct. |
prefixes |
UnitPrefixList | All |
- | Whitespace-separated list of unit prefixes that the user is allowed to use, or the special value "all", which means that all unit prefixes are allowed. |
prefixeshints |
xs:boolean |
- | Whether or not to give live hints about the list of allowed unit prefixes when the user has not yet submitted the input value. |
usenot |
UnitSymbolList |
- | Whitespace-separated list of unit symbols that the user is forbidden to use. |
usenothints |
xs:boolean |
- | Whether or not to give live hints about the list of forbidden unit symbols when the user has not yet submitted the input value. |
useonly |
UnitSymbolList | All |
- | Whitespace-separated list of unit symbols that the user is allowed to use, or the special value "all", which means that all unit symbols are allowed. |
useonlyhints |
xs:boolean |
- | Whether or not to give live hints about the list of allowed unit symbols when the user has not yet submitted the input value. |