#set ($idParam = ${language.getParam("id", $item.id)})
#set ($nameParam = ${language.getParam("ref", $item.name)})
#set ($width = ${language.getStyleParam("width", $item.width)})
#set ($height = ${language.getStyleParam("height", $item.height)})
#set ($style = $width + $height)
#set ($styleParam = ${language.getParam("style", $style)})
#set ($checked = "")
#if ($item.checked) 
    #set ($checked = "true")
#end
#set ($checkedParam = ${language.getParam("checked", $checked)})
#set ($valueParam = ${language.getParam("value", $item.formValue)})
#if($item.input)
  #if($item.input.name)
    #set($aux = $item.input.name)
    #set($aux2 = ${language.asFtlVar($aux)})
    #set($valueParam = ${language.getParam("value", $aux2)})
  #end
#end
<xforms:select selectUI="checkbox" #if($idParam)$idParam#end#if($nameParam)$nameParam#end#if($styleParam)$styleParam#end xmlns:xforms="http://www.w3.org/2002/01/xforms"> 
  #if($valueParam)
    <xforms:item xmlns:xforms="http://www.w3.org/2002/01/xforms">
      <xforms:caption xmlns:xforms="http://www.w3.org/2002/01/xforms">$valueParam</xforms:caption>
      <xforms:value xmlns:xforms="http://www.w3.org/2002/01/xforms" #if($checkedParam)$checkedParam#end>$valueParam</xforms:value>
    </xforms:item>
  #end
</xforms:select>
