public abstract void renderXML()

in src/main/java/org/apache/maven/doxia/book/services/renderer/AbstractITextBookRenderer.java [184:219]


    public abstract void renderXML( File iTextFile, File iTextOutput )
        throws IOException;

    // ----------------------------------------------------------------------
    // Private
    // ----------------------------------------------------------------------

    /**
     * Write a chapter.
     *
     * @param writer the writer.
     * @param chapter the Chapter.
     * @param context the BookContext.
     * @throws BookDoxiaException if the chapter cannot be written.
     */
    private void renderChapter( Sink sink, PrettyPrintXMLWriter writer, Chapter chapter, BookContext context )
        throws BookDoxiaException
    {
        writer.startElement( "chapter" );
        writer.addAttribute( "numberdepth", "1" );
        writer.addAttribute( "depth", "1" );
        writer.addAttribute( "indent", "1" );

        startTitle( writer, "36.0", "Helvetica", "24.0", "normal", "255", "0", "0" );
        chunk( writer, chapter.getTitle(), "Helvetica", "24.0", "normal", "255", "0", "0" );
        writer.endElement(); // title

        //        writer.startElement( "sectioncontent" );
        for ( Section section : chapter.getSections() )
        {
            renderSection( sink, writer, section, context );
        }
        //        writer.endElement(); // sectioncontent

        writer.endElement(); // chapter
    }