/**
  * Create input box using DOM tree data
  *
  * @param Object $root DOM tree node corresponding to the box being created
  * @param Pipeline $pipeline reference to current pipeline object (unused)
  *
  * @return input box
  */
 function &create(&$root, &$pipeline)
 {
     /**
      * If no "value" attribute is specified, display the default button text.
      * Note the difference between displayed text and actual field value!
      */
     if ($root->has_attribute("value")) {
         $text = $root->get_attribute("value");
     } else {
         $text = DEFAULT_SUBMIT_TEXT;
     }
     $field = $root->get_attribute('name');
     $value = $root->get_attribute('value');
     $css_state =& $pipeline->getCurrentCSSState();
     $box =& new ButtonSubmitBox($field, $value, $css_state->getProperty(CSS_HTML2PS_FORM_ACTION));
     $box->readCSS($css_state);
     $box->_setup($text, $pipeline);
     return $box;
 }