docType.toSgml(element.getLocalName()));
} else {
String exceptionMessage = String.format(
"Doctype '%s' incompatible with non-XML syntax",
docType.getName());
sgmlDoctype = new ExceptionExpression(
element.getSourcePosition(), elementSchema,
ExceptionExpression.Kind.NOT_SUPPORTED_IN_SGML_MODE,
exceptionMessage);
}
return new Conditional(element, elementSchema,