Bug 168320 MaxRowsOfRecords of birt:report doesn't work.[0603]
Description: MaxRowsOfRecords of birt:report doesn't work. Build number:2.2.0.v20061216 Steps to reproduce: 1. New a jsp file based on birt template, input content in body as : <birt:report id="1" contextRoot= "wtp_jsp_tags" reportDesign="max_rows.rptdesign" maxRowsOfRecords="3" height="600"> </birt:report> note: report design is attached. 2. Preview the jsp file Expected result: Only display 3 data rows for table, list and chart. Actual result: All data display out. This property works well in birt:viewer tag. Error log:N/A
viewer/org.eclipse.birt.report.viewer/birt/WEB-INF/classes/org/eclipse/birt/report/taglib/ReportTag.java
while ( m.find( ) )
		{
			int start = m.end( );
			int end = content.toLowerCase( ).indexOf( "</style>", start ); 
			style = style + content.substring( start + 1, end ) + "\n"; 
		}
		
		style = style.replaceAll( ".style", ".style" + viewer.getId( ) ); 
		style = "<style type=\"text/css\">\n" + style + "\n</style>\n"; 
		return style;
	}
	/**
	 * Returns body style content
	 * 
	 * @param content
	 * @return
	 */
	protected String __handleBodyStyle( String content )
	{
		String bodyStyleId = BLANK_STRING;
		if ( content == null )
			return bodyStyleId;
		Pattern p = Pattern.compile( "<\\s*body([^\\>]*)\\>", 
				Pattern.CASE_INSENSITIVE );
		Matcher m = p.matcher( content );
		if ( m.find( ) )
		{
			for ( int i = 1; i < m.groupCount( ) + 1; i++ )
			{
				String group = m.group( i );