in src/main/java/org/apache/maven/doxia/book/services/renderer/XdocBookRenderer.java [291:320]
private void renderChapter( Chapter chapter, BookContext context, IndexEntry chapterIndex )
throws BookDoxiaException
{
// -----------------------------------------------------------------------
// Render the chapter index page
// -----------------------------------------------------------------------
File index = new File( context.getOutputDirectory(), chapter.getId() + ".xml" );
try
{
writeChapterIndex( index, chapter, chapterIndex, context );
}
catch ( IOException e )
{
throw new BookDoxiaException( "Error while rendering index page to: '"
+ index.getAbsolutePath() + "'.", e );
}
// -----------------------------------------------------------------------
// Render all section pages
// -----------------------------------------------------------------------
Iterator<IndexEntry> ii = chapterIndex.getChildEntries().iterator();
for ( Section section : chapter.getSections() )
{
renderSection( context, section, ii.next() );
}
}