if ( fromDepth > toDepth )
{
return;
}
IndexEntry index = new IndexEntry( "index" );
IndexingSink tocSink = new IndexingSink( index );
try
{
parser.parse( new StringReader( source ), tocSink );
}
catch ( ParseException e )
{
throw new MacroExecutionException( "ParseException: " + e.getMessage(), e );
}
if ( index.getChildEntries().size() > 0 )
{
sink.list( getAttributesFromMap( request.getParameters() ) );
int i = 1;
for ( IndexEntry sectionIndex : index.getChildEntries() )
{
if ( ( i == section ) || ( section == 0 ) )
{
writeSubSectionN( sink, sectionIndex, 1 );
}