You are here

public function XMLSitemapWriter::writeXSL in XML sitemap 7.2

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

Add the XML stylesheet to the XML page.

@codingStandardsIgnoreStart

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

File

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

Class

XMLSitemapWriter
Extended class for writing XML sitemap files.

Code

public function writeXSL() {

  // @codingStandardsIgnoreEnd
  $this
    ->writePi('xml-stylesheet', 'type="text/xsl" href="' . $this
    ->getSitemapUrl('sitemap.xsl', array(
    'absolute' => FALSE,
  )) . '"');
  $this
    ->writeRaw(PHP_EOL);
}