#set ($idParam = ${language.getParam("id", $item.id)})
#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 ($name = $item.name)
#if (($name and $name != "") and $item.output and $item.output.name and $item.output.name != "")
    #set ($name = $item.ouptput.name)
#end
## TODO completeButton.getOnClickScript(); should be loaded first
#set ($nameParam = ${language.getParam("ref", $name)})
<input type="submit" #if($valueParam)$valueParam#end />

<xforms:button 
    #if($idParam)$idParam#end
    #if($styleParam)$styleParam#end
    #if($nameParam)$nameParam#end 
    submitInfo = xsd:IDREF #REQUIRED
    xmlns:xforms="http://www.w3.org/2002/01/xforms">
  #if($value)
    <xforms:value xmlns:xforms="http://www.w3.org/2002/01/xforms">$value</xforms:value>
  #end
  
>
  <!-- caption, (help|hint|alert|action|extension)* -->
</xforms:submit>