28 Jul
2015
28 Jul
'15
1:16 p.m.
Hi Max,
when using 'xhtml' output method, the doctype always matches the name of the root element (instead of 'html').
Does not happen with 'html' output method.
It may come as a surprise (and I cannot give an explanation for that), but the current behavior is in compliance with the serialization spec: • XHTML: "The name following <!DOCTYPE MUST be the same as the local part of the name of the element." [1] • HTML: "The name following <!DOCTYPE MUST be HTML or html." [2] Cheers, Christian [1] http://www.w3.org/TR/xslt-xquery-serialization-31/#XHTML_DOCTYPE [2] http://www.w3.org/TR/xslt-xquery-serialization-31/#HTML_DOCTYPE