You are here

public function XMLSitemapWriter::writeXSL in XML sitemap 6.2

Same name and namespace in other branches
  1. 7.2 xmlsitemap.xmlsitemap.inc \XMLSitemapWriter::writeXSL()

Add the XML stylesheet to the XML page.

1 call to XMLSitemapWriter::writeXSL()
XMLSitemapWriter::startDocument in ./xmlsitemap.xmlsitemap.inc

File

./xmlsitemap.xmlsitemap.inc, line 81
XML sitemap integration functions for xmlsitemap.module.

Class

XMLSitemapWriter
Extended class for writing XML sitemap files.

Code

public function writeXSL() {
  $this
    ->writePi('xml-stylesheet', 'type="text/xsl" href="' . $this
    ->getSitemapUrl('sitemap.xsl', array(
    'protocol_relative' => TRUE,
  )) . '"');
  $this
    ->writeRaw(PHP_EOL);
}