public void process(WikiArticle page, Siteinfo siteinfo) throws SAXException {
if (page.isMain() || page.isCategory() || page.isProject()) {
String title = page.getTitle();
String titleURL = Encoder.encodeTitleLocalUrl(title);
String generatedHTMLFilename = htmlDirectory + titleURL + ".html";
DumpWikiModel wikiModel = new DumpWikiModel(wikiDB, siteinfo, "${image}", "${title}", imageDirectory);
DumpDocumentCreator creator = new DumpDocumentCreator(wikiModel, page);
creator.setHeader(HTMLConstants.HTML_HEADER1 + HTMLConstants.CSS_SCREEN_STYLE + HTMLConstants.HTML_HEADER2);
creator.setFooter(HTMLConstants.HTML_FOOTER);
wikiModel.setUp();
try {
creator.renderToFile(generatedHTMLFilename);
System.out.print('.');
if (++counter >= 80) {
System.out.println(' ');