t('Sitemap file'), 'Generated by the Drupal XML sitemap module.' => t('Generated by the Drupal XML sitemap module.', array('@link-xmlsitemap' => 'http://drupal.org/project/xmlsitemap')), 'Number of sitemaps in this index' => t('Number of sitemaps in this index'), 'Click on the table headers to change sorting.' => t('Click on the table headers to change sorting.'), 'Sitemap URL' => t('Sitemap URL'), 'Last modification date' => t('Last modification date'), 'Number of URLs in this sitemap' => t('Number of URLs in this sitemap'), 'URL location' => t('URL location'), 'Change frequency' => t('Change frequency'), 'Priority' => t('Priority'), '[jquery]' => base_path() . 'misc/jquery.js', '[jquery-tablesort]' => base_path() . $module_path . '/xsl/jquery.tablesorter.min.js', '[xsl-js]' => base_path() . $module_path . '/xsl/xmlsitemap.xsl.js', '[xsl-css]' => base_path() . $module_path . '/xsl/xmlsitemap.xsl.css', ); $xsl_content = strtr($xsl_content, $replacements); // Output the XSL content. drupal_set_header('Content-type: application/xml; charset=utf-8'); drupal_set_header('X-Robots-Tag: noindex, follow'); echo $xsl_content; }