if (u != null) {
return CDTDParser
.parse(
"<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">",
u.toString(), new CDom2HTMLDocument());
} // end if
else {
return CDTDParser
.parse(
"<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">",
"http://www.w3.org/TRxhtml1/DTD/xhtml1-transitional.dtd",
new CDom2HTMLDocument());
} // end else
} // end if
else if ("/dtd-fr.ser".equals(name)) {
final URL u = CXmlParser.class.getResource("/dtd-fr.dtd");
if (u != null) {
return CDTDParser
.parse(
"<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Frameset//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd\">",
u.toString(), new CDom2HTMLDocument());
} // end if
else {
return CDTDParser
.parse(
"<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Frameset//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd\">",
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd",
new CDom2HTMLDocument());
} // end else
} // end else if
return null;
} // end catch