====== Switching to XHTML 5 ======
If you want to switch to XHTML 5 and to a ''application/xhtml+xml'' content-type, here is what to do:
Add
xmlns="http://www.w3.org/1999/xhtml" xml:lang=""
to the '''' tag and
before the doctype in
* ./lib/tpl//main.php
* ./lib/tpl//detail.php
* ./lib/tpl//mediamanager.php
* ./inc/actions.php inside ''if($act == 'export_xhtml'){'' for the "export_html" mode
===== Possible issues =====
==== Entities ====
In XML no other named entities than ''<'', ''>'', ''"'' and ''&'' should be used (otherwise it may lead to parsing errors, ie. the page won't be displayed at all).
Many entities in DokuWiki have been converted to their unicode or numeric entity equivalent, but some might be left.
==== JavaScript errors ====
There are quite a few [[bug>2550|JavaScript errors (documented in the bug tracker as well)]] when using DokuWiki with an XML content-type.
"XML parsers are permitted to silently remove the contents of comments. Therefore, you should not use comments to "hide" scripts or style sheets."
==== Check plugins and templates ====
You should also be aware of the fact that plugins and templates may not take care of strictness or validity at all. So, if your DokuWiki installation uses any of these enhancements, you need to check separately and should make sure they produce valid XHTML and don't use no named entities.
===== More =====
See also [[tips:xhtml_strict|how to switch to XHTML Strict]].