/**
  * Removes the stylesheets reference from the template
  * 
  * @param array    The template's stylesheets
  * @param string   The contents to process
  * 
  * @return array   The processed contents
  *
  */
 public function retrieveTemplateStylesheets($contents = null)
 {
     $result = array();
     $stylesheets = $this->getStylesheetsFromContents($contents);
     // Returns the stylesheets
     $stylesheetResults = array();
     foreach ($stylesheets[0] as $stylesheet) {
         $stylesheetsAttributes = w3sCommonFunctions::getHtmlAttributes($stylesheet, 'link');
         $stylesheetResults[] = array('href' => $stylesheetsAttributes['href'], 'media' => $stylesheetsAttributes['media']);
     }
     $result = $stylesheetResults;
     return $result;
 }