4,10 → 4,10 |
* Coded by: Group 5, software practice summer 2003 |
* University of Bielefeld, Germany |
* |
* @version $Revision: 1.63 $ |
* @version $Revision: 1.64 $ |
* |
* Last modification: $Date: 2003/07/25 17:14:32 $ |
* $Id: OurDocument.java,v 1.63 2003/07/25 17:14:32 hjokusch Exp $ |
* Last modification: $Date: 2003/07/26 10:51:23 $ |
* $Id: OurDocument.java,v 1.64 2003/07/26 10:51:23 smcsporr Exp $ |
*/ |
|
package src.document; |
43,7 → 43,7 |
* |
* @author S. McSporran |
* |
* @version $Revision: 1.63 $ Last modification: $Date: 2003/07/25 17:14:32 $ |
* @version $Revision: 1.64 $ Last modification: $Date: 2003/07/26 10:51:23 $ |
*/ |
public class OurDocument { |
|
211,11 → 211,10 |
*/ |
public void setDomDoc(DocumentImpl document) { |
try{ |
myDocument = (DocumentImpl)document.clone(); |
myDocument = (DocumentImpl)document.clone(); |
}catch (Exception e){ |
LogInterfaceReference.log(LogInterface.TYPE_ERROR,e.getMessage()); |
} |
|
} |
|
/** |
324,8 → 323,7 |
PrintWriter outputWr = new PrintWriter(strWriter); |
StreamResult sResult = new StreamResult(outputWr); |
|
if (dtdFile == null){ |
|
if (dtdFile == null){ |
try { |
/* Transform the document, delete any DOCTYPE entry. */ |
trans.setOutputProperty(OutputKeys.STANDALONE, null); |
336,12 → 334,13 |
|
aParser.parse(bufferString); |
myDocument = aParser.getDocument(); |
|
log(LogInterface.TYPE_INFO, "DTD "+ myDocument.getDoctype() + " removed."); |
} |
|
catch (Exception e){ |
log(LogInterface.TYPE_ERROR,"Transformer Error: "+e.getMessage()); |
log(LogInterface.TYPE_INFO, "DTD is "+(myDocument.getDoctype())); |
log(LogInterface.TYPE_INFO, "DTD removed"); |
/* Catch and log transformation errors. */ |
catch (TransformerException te){ |
log(LogInterface.TYPE_ERROR,"Transformer error: " + te.getMessage()); |
} |
} else { |
|