> Okay, I've got a nearly-working patch for this, but I'm falling down > hard on the defcustom. Here's what I thought to do: > > #+BEGIN_SRC emacs-lisp > (defconst org-html-doctype-alist > '((html4 . "") > (html4-strict . " > \"http://www.w3.org/TR/html4/strict.dtd\"") > (xhtml . " \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">") > (html5 . "")) > "An alist mapping (x)html flavors to specific doctypes.") > > (defcustom org-html-doctype 'xhtml > "Document type definition to use for exported HTML files. > Can be set with the in-buffer HTML_DOCTYPE property or for > publishing, with :html-doctype." > :group 'org-export-html > :version "24.4" > :package-version '(Org . "8.0") > :type 'i-dont-know-how-to-work-this) > #+END_SRC > > The end result I'm after is: the user can either set org-html-doctype to > a symbol from among the cars org-html-doctype-alist, or he/she can set > it directly to the doctype string. I don't know how to represent that in > a defcustom. > > And of course, if anyone has any better approaches, then speak now or... > speak later. > > Eric