public LSInput resolveResource(String type,
String namespaceURI,
String publicId,
String systemId,
String baseURI)
{
if (systemId.equalsIgnoreCase("http://www.w3.org/2001/xml.xsd") == true)
{
File xml = new File(this.localPath + "xml.xsd");
if (xml.exists() == true)
{
return new LocalEntityInput(xml, publicId, true);
}
else
{
System.out.print("html2epub1: Can't validate - schema 'xml.xsd' is missing.\n");
System.exit(-83);
return null;
}
}
System.out.print("html2epub1: Can't validate - unknown resource with public ID '" + publicId + "', system ID '" + systemId + "', type '" + type + "', namespace URI '" + namespaceURI + "' and base URI '" + baseURI + "'.\n");
System.exit(-84);
return null;
}
XHTMLValidator.java 文件源码
java
阅读 18
收藏 0
点赞 0
评论 0
项目:automated_digital_publishing
作者:
评论列表
文章目录