Variable: org-html-xml-declaration

org-html-xml-declaration is a customizable variable defined in ox-html.el.gz.

Value

(("html" . "<?xml version=\"1.0\" encoding=\"%s\"?>")
 ("php"
  . "<?php echo \"<?xml version=\\\"1.0\\\" encoding=\\\"%s\\\" ?>\"; ?>"))

Documentation

The extension for exported HTML files.

%s will be replaced with the charset of the exported file.
This may be a string, or an alist with export extensions and corresponding declarations.

This declaration only applies when exporting to XHTML.

Source Code

;; Defined in /usr/src/emacs/lisp/org/ox-html.el.gz
(defcustom org-html-xml-declaration
  '(("html" . "<?xml version=\"1.0\" encoding=\"%s\"?>")
    ("php" . "<?php echo \"<?xml version=\\\"1.0\\\" encoding=\\\"%s\\\" ?>\"; ?>"))
  "The extension for exported HTML files.
%s will be replaced with the charset of the exported file.
This may be a string, or an alist with export extensions
and corresponding declarations.

This declaration only applies when exporting to XHTML."
  :group 'org-export-html
  :type '(choice
	  (string :tag "Single declaration")
	  (repeat :tag "Dependent on extension"
		  (cons (string :tag "Extension")
			(string :tag "Declaration")))))