@Override
		public InputSource resolveEntity(String publicId, String systemId) throws SAXException, IOException {
			if (publicId != null) {
				if (publicId.equals("-//W3C//DTD XHTML 1.0 Transitional//EN")) {
					return XHtmlUtils.getInputSource("xhtml1-transitional.dtd");
				} else if (publicId.equals("-//W3C//ENTITIES Latin 1 for XHTML//EN")) {
					return XHtmlUtils.getInputSource("xhtml-lat1.ent");
				} else if (publicId.equals("-//W3C//ENTITIES Symbols for XHTML//EN")) {
					return XHtmlUtils.getInputSource("xhtml-symbol.ent");
				} else if (publicId.equals("-//W3C//ENTITIES Special for XHTML//EN")) {
					return XHtmlUtils.getInputSource("xhtml-special.ent");
				}
			}
			if (parent != null) {
				return parent.resolveEntity(publicId, systemId);
			} else {
				logger.debugf("can't resolve %s %s", publicId, systemId);
				return null;
			}
		}