xforms:value

Purpose

Provides the option values associated with select controls.

Contained by

Example

<?xml version="1.0" encoding="UTF-8"?>
<html xmlns="http://www.w3.org/2002/06/xhtml2"
  xmlns:si="http://www.volantis.com/xmlns/2006/01/xdime2/si"
  xmlns:xforms="http://www.w3.org/2002/xforms">
  <head>
    <title>xforms:value</title>
    <xforms:model id="selection">
      <xforms:instance>
        <si:instance>
          <si:item name="list"/>
        </si:instance>
      </xforms:instance>
    </xforms:model>
  </head>
  <body>
    <xforms:select1 model="selection" ref="list">
      <xforms:label>Search by city</xforms:label>
      <xforms:item>
        <xforms:label>London</xforms:label>
        <xforms:value>London</xforms:value>
      </xforms:item>
      <xforms:item>
        <xforms:label>Paris</xforms:label>
        <xforms:value>Paris</xforms:value>
      </xforms:item>
      <xforms:item>
        <xforms:label>Sydney</xforms:label>
        <xforms:value>Sydney</xforms:value>
      </xforms:item>
    </xforms:select1>
  </body>
</html>

Related topics