label
is required:
<input xmlns="http://www.w3.org/2002/xforms"
model="p1"
ref="/doughnuts/quantity">
<!-- Always shown -->
<label>Quantity</label>
<!-- If the user asks -->
<help>Tell us how many doughnuts you want; e.g. 3</help>
<!-- tool tip or some such -->
<hint>They're really yummy!</hint>
<!-- If the user makes a mistake -->
<alert>
<output ref="/doughnuts/quantity"/> is not a valid number of doughnuts.
</alert>
</input>
help
, hint
, and alert
are optional
Must appear in this order:
label
, help
, hint
, and alert