Drop-down lists

From ISPWiki

Jump to: navigation, search

Possible values for drop-down lists are formed as follows:

<xs:element name="slist">
  <xs:complexType>
    <xs:sequence>
      <xs:element minOccurs="0" maxOccurs="unbounded" ref="msg"/>
      <xs:element minOccurs="0" maxOccurs="unbounded" ref="val"/>
    </xs:sequence>
    <xs:attribute name="name" use="required" type="xs:NCName"/>
  </xs:complexType>
</xs:element>


The slist element contains the elements that describe possible values.

the name attribute
the name of a drop-down list; should match the name attribute of the corresponding select element

The msg and val child elements

<xs:element name="msg">
  <xs:complexType>
    <xs:attribute name="key"/>
  </xs:complexType>
 </xs:element> 
<xs:element name="val">
  <xs:complexType>
    <xs:attribute name="key"/>
  </xs:complexType>
</xs:element>

The msg element describes a values for a drop-down list and contains a name of the text that will be displayed to users.

The val element describes a value for a drop-down list and contains a value that will be displayed to users.

the key attribute
the value that is returned to the control panel when selecting a corresponding item, if this attribute is not present, the returned value will equal the element's contents.

Note, if no values are specified for a drop-down list, the element will be automatically chosen from the interface.

Was this helpful? Yes | No
Views
Personal tools