var doctypes = require('./doctypes.json');

function doctype(dt) {
	if (dt === 'html') {
		return doctypes['html5'];
	}
	if (dt === 'xhtml') {
		return doctypes['xhtml1.1'];
	}
	if (dt === 'mathml') {
		return doctypes['mathml2'];
	}
	if (dt === 'svg') {
		return doctypes['svg1.1'];
	}
	if (doctypes[dt]) {
		return doctypes[dt];
	} else {
		throw new Error('doctype "' + dt + '" not found.');
	}
}

module.exports = doctype;
@@ -276,24 +276,93 @@
 vg1.1'%5D;%0A%09%7D%0A
+%09if (dt === 'musicxml') %7B%0A%09%09return doctypes%5B'musicxml-partwise'%5D;%0A%09%7D%0A
 %09if (doctype
@@ -488,8 +488,9 @@
 doctype;
+%0A

make 'musicxml' default to 'musicxml-partwise'