How to print preprocess_html variables in page.tpl I have variable in template.php to use in different files like page.tpl, but written this in preprocess_html function as below, how can i print this in page.tpl and html.tpl file.

mytheme_preprocess_html(&amp;$variables){
      $variables['xyz'] = $xyz;
}


In page.tpl file, I tried with print $xyz; but it is not printing, where as I can able to print in html.tpl file this variable. Initially tried to add my code in preproces_page function, but I can't able to get in html.tpl file in this case.
Yet another, perhaps simpler, to add variables to multiple templates, is too use an earlier hook_preprocess


  Preprocess theme variables for templates.
  This preprocess function is the first in the sequence of preprocessing and processing functions that is called when preparing variables for a template. 


e.g:

/**
 * Implements hook_preprocess
 * @param $variables
 *   The variables array by reference.
 * @param $hook
 *   The name of the theme hook.
 */
function THEMENAME_preprocess(&amp;$variables, $hook) {
  switch($hook){
    case 'html':
    case 'page':
      $variables['foo'] = 'my special variable';
    break;
  }
}


See also: template_preprocess