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. If this input value is part of another input value (such as a vector or a set), then the credits of the child input values are interpreted as relative weights. That means the top level input value has the absolute credits as specified in its credits attribute and each child input value contributes to this number its credits attribute value divided by the sum of all credits attribute values of all children. |
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. |