chickadee » sxml-informal » select

select name #!key options value label errorprocedure

This rule translates into a select element wrapped in the element markup described under Input Element Rules. It accepts the following additional keyword arguments:

options
an alist ((<value> <text>) ...) which is turned into the select's option elements.
value
is used to determine on which option element the selected attribute is set by comparing it to the values given in options.

The select element expansion is

   (select (@ (id <name>) (name <name>)) 
    [(option (@ (value <value>)) <text>) ...])