String content = null;
if (page.isXHTMLPage())
content = generateXHTMLPage(page, this);
else {
HTMLElement html = getHTMLGenerator().generateHTMLforPage(page,
this);
if (html != null) {
IntroModelRoot root = getModel();
if (root!=null) {
Map props = root.getTheme()!=null?root.getTheme().getProperties():null;
if (props!=null) {
String value = (String)props.get("standardSupport"); //$NON-NLS-1$
String doctype=null;
if ("strict".equalsIgnoreCase(value)) //$NON-NLS-1$
doctype = generateDoctype(true);
else if ("loose".equalsIgnoreCase(value)) //$NON-NLS-1$
doctype = generateDoctype(false);
if (doctype!=null)
content = doctype+html.toString();
}
}
if (content==null)
content = html.toString();
}
}
if (content == null) {