You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by Luke Shannon <ls...@futurebrand.com> on 2005/01/19 19:33:12 UTC
tidy error
Hello;
If this is not an appropriate forum for this please let me know.
I would like to use tidy to clean up some input before I
render my document with FOP.
I am getting the following error:
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:307)
Anyone seen this before? Below is the code for anyone that is interested.
Thanks,
Luke
private String htmlTidy(String html) {
try {
StringBufferInputStream sbis=new StringBufferInputStream(html);
ByteArrayOutputStream baos=new ByteArrayOutputStream();
Tidy tidy = new Tidy();
Trace.ENTER("FOP PDF: Tidy object created.");
//configure tidy
tidy.setQuiet(true);
tidy.setShowWarnings(false);
tidy.setXmlOut(false);
tidy.setXHTML(true);
tidy.setMakeClean(false);
tidy.setTidyMark(false);
tidy.setUpperCaseTags(false);
tidy.setUpperCaseAttrs(false);
tidy.setQuoteAmpersand(false);
tidy.setNumEntities(true);
tidy.setCharEncoding(Configuration.UTF8);
Trace.ENTER("FOP PDF: Tidy object configured.");
tidy.parse(sbis,baos);
Trace.ENTER("FOP PDF: Tidy parsing complete.");
html = baos.toString();
}
catch (Exception e) {
Trace.ENTER("FOP PDF: TIDY ERROR!!!!!!!!! " + e);
}
return html;
}
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org