public void generateHTMLHostPage(Document cruxPageDocument,Writer out) throws ViewParserException {
  try {
    if (!xhtmlInput) {
      throw new ViewParserException("Can not generate an HTML host page for a non XHTML document.");
    }
    this.cruxPageDocument=cruxPageDocument;
    this.htmlDocument=createHTMLDocument(cruxPageDocument);
    translateHTMLHostDocument();
    write(htmlDocument,out);
  }
 catch (  IOException e) {
    throw new ViewParserException(e.getMessage(),e);
  }
}

public void generateHTMLHostPage ( Document cruxPageDocument , Writer out ) throws ViewParserException { try { if ( ! xhtmlInput ) { throw new ViewParserException ( "Can not generate an HTML host page for a non XHTML document." ) ; } this . cruxPageDocument = cruxPageDocument ; this . htmlDocument = createHTMLDocument ( cruxPageDocument ) ; translateHTMLHostDocument ( ) ; write ( htmlDocument , out ) ; } catch ( IOException e ) { throw new ViewParserException ( e . getMessage ( ) , e ) ; } }
generates the html page from the given . crux . xml page .
