TO BE IMPLEMENTED IN XUL

#set ($cellspacingParam = ${language.getStyleParam("cellspacing", $item.spacing)})
#set ($borderParam = ${language.getStyleParam("border", $item.borderWidth)})
#set ($alignParam = ${language.getStyleParam("text-align", $item.horizontalAlignment)})
#set ($valignParam = ${language.getStyleParam("vertical-align", $item.verticalAlignment)})
#set ($widthParam = ${language.getStyleParam("width", $item.width)})
#set ($heightParam = ${language.getStyleParam("height", $item.height)})

#set($style = "")
#if($cellspacingParam)#set($style = "$style$cellspacingParam")#end
#if($borderParam)#set($style = "$style$borderParam")#end
#if($alignParam)#set($style = "$style$alignParam")#end
#if($widthParam)#set($style = "$style$widthParam")#end
#if($heightParam)#set($style = "$style$heightParam")#end

#set ($classParam = ${language.getParam("class", $item.cssClassName)})
#set ($idParam = ${language.getParam("id", $item.id)})
#set($styleParam = ${language.getParam("style", $style)})

## TODO table.getItemValidations();
## TODO table.getInput(); may be used to iterate contents, but not yet

<xul:hbox #if($classParam)$classParam#end
    #if($idParam)$idParam#end
    #if($styleParam)$styleParam#end
    xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
  #foreach ($subItem in $item.items)
    ${language.translateItem($subItem)}
  #end
</xul:hbox>
