6 package de.uni_hamburg.corpora.validation;
15 import java.io.IOException;
16 import java.net.MalformedURLException;
18 import java.util.Collection;
19 import javax.xml.parsers.ParserConfigurationException;
20 import javax.xml.
transform.TransformerConfigurationException;
21 import javax.xml.transform.TransformerException;
22 import javax.xml.xpath.XPathExpressionException;
23 import org.exmaralda.partitureditor.jexmaralda.JexmaraldaException;
24 import org.jdom.JDOMException;
25 import org.xml.sax.SAXException;
37 String xslpath =
"/xsl/Output_metadata_summary.xsl";
59 String result = xt.
transform(cd.toSaveableString(), xsl);
61 URL overviewurl =
new URL(cd.getParentURL(),
"curation/coma_overview.html");
64 cio.write(result, overviewurl);
66 r.
addCorrect(
function, cd,
"created html overview at " + overviewurl);
69 }
catch (TransformerConfigurationException ex) {
70 r.
addException(ex,
function, cd,
"Transformer configuration error");
71 }
catch (TransformerException ex) {
73 }
catch (MalformedURLException ex) {
75 }
catch (IOException ex) {
76 r.
addException(ex,
function, cd,
"Unknown input/output error");
77 }
catch (ParserConfigurationException ex) {
78 r.
addException(ex,
function, cd,
"Unknown Parser error");
79 }
catch (SAXException ex) {
81 }
catch (XPathExpressionException ex) {
94 cl1 = Class.forName(
"de.uni_hamburg.corpora.ComaData");
96 }
catch (ClassNotFoundException ex) {
108 String description =
"This class creates a sort- and filterable html overview in table form " 109 +
" of the content of the coma file to make error checking and harmonizing easier. ";
120 cd = c.getComaData();
121 stats =
function(cd, fix);
Collection< Class<?extends CorpusData > > getIsUsableFor()
static String InputStream2String(InputStream is)
void addCorrect(String statId, String description)
void addException(Throwable e, String description)