Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 236380

Summary: 1. In the HTML content, we have table,tr,td tags.BIRT doesn�t support the attributes of the below mentioned tags.
Product: z_Archived Reporter: Sankar Veeraiyan <krishna.shankar.v>
Component: BIRTAssignee: Gang Liu <hustlg>
Status: VERIFIED FIXED QA Contact: Maggie Shen <lshen>
Severity: enhancement    
Priority: P3 CC: bluesoldier, krishna.shankar.v, wenfeng.fwd, wyan
Version: 2.2.1Keywords: plan
Target Milestone: 2.5.1 RC2   
Hardware: PC   
OS: Windows XP   
Whiteboard: Autoed

Description Sankar Veeraiyan CLA 2008-06-10 03:45:17 EDT
Build ID: BIRT 2.2.1

Steps To Reproduce:
1.Use html content for generating the PDF


More information:
Ex: <table>
	<tr row span=2 border =1>

The row is getting spanned, but the border attribute is not being recognized.

	2.BIRT doesn’t support some of the style attributes like valign,char,frames,header..etc

	3.In report PDF,the spacing between the lines are more while using html content as data.Since the html content has <P>,<li> tags.

	4.Page n of m spacing issue.The spacing between the word “Page” & n.The same problem between the word “of” & m.

	5.Performance is very very slow.Please let us know the memory consumption.
Comment 1 Eclipse Webmaster CLA 2008-06-10 17:00:18 EDT
Correcting assignment since this is a BIRT bug, not a website/infra bug.

-M.
Comment 2 Wei Yan CLA 2008-06-10 22:20:50 EDT
Only limited HTML are supported in BIRT, you can see the definition in ROM.

1. BIRT doesn't support border attribute, the user can define it as CSS style.

2. those tags are not supported by BIRT.

3. I don't get what your mean about the 3rd point, can you explain it more clearly? 

4. It is a known issue, we will fix it in 2.3.1, see 236190
Comment 3 Sankar Veeraiyan CLA 2008-06-20 07:34:17 EDT
Hi,

3. we are using dynamic text in the design to add the data from the back-end.
The data is in HTML format.If the data has more than one <p></p> tags, the gap between the paragraphs is more in PDF view than in HTML view.


5.Performance is very very slow.Please let us know the memory
consumption.Is there any option to speed up the performance.I'm using BIRT 2.2.1 and weblogic 8.1 sp6.


6.Is there any option to use connection from the weblogic connection pool instead of BIRT connections?If possible please send the sample.



Comment 4 Yu Chen CLA 2009-03-18 01:33:53 EDT
3. Currently, Birt does not support collapsing margins, so the output is not consistent with web browser which follows CSS margin collapse model.

5. BIRT uses Jtidy as the HTML parser. Jtidy will cache the whole content, so the memory consumption is determined by your HTML content scale.

6. BIRT supports JNDI data sources, you can find it through Data explorer->new Data Sources->JDBC Data Source.
Comment 5 Wei Yan CLA 2009-05-11 01:43:51 EDT
defer to RC2 due to resource limitation.
Comment 6 Wei Yan CLA 2009-05-18 04:26:08 EDT
defer to 2.5.1 for resource limitation.
Comment 7 Wenfeng Li CLA 2009-05-27 20:58:41 EDT
add plan key work for more CSS feature support in html text.
Comment 8 Gang Liu CLA 2009-08-20 03:26:50 EDT
Enhance html text support in PDF report.
1.      Support css shorthand style in html text
2.      Support ‘width’ and ‘height’ in style attribute
3.      Support border, align, valign etc attributes.

Following is the list of supported tag/attribute:
tag Name  	Supported Attributes
"a" 	id, name, href, target
"address" 		
"b"
"big"
"center" 	
"code"
"col" 	width
"del"
"dd"
"div"
"dl"
"dt"
"em"
"embed" 	src, alt, height, width
"font" 	size, color, face
"h1" 	align
"h2" 	align
"h3" 	align
"h4" 	align
"h5" 	align
"h6" 	align
"hr" 	width
"i"
"img" 	src, alt, height, width, border
"ins"
"li"
"object" 	width, height, align, border
"ol"
"p" 	align
"pre"
"span" 	align
"strong"
"strike"
"small"
"sub"
"sup"
"table" 	width, border, bgcolor, cellpadding
"tbody"
"td" 	rowspan, colspan, align, valign, bgcolor
"tfoot"
"thead"
"tr" 	align, valign, bgcolor, height
"tt"
"u"
"ul"

All the supported HTML tags can use attribute "style" to specify HTML inline style information. The syntax of the style attribute value is CSS inline style syntax. The supported CSS properties are listed below:
Text and Fonts

    * font-family
    * font-size
    * font-weight
    * font-style
    * line-height
    * letter-spacing
    * word-spacing
    * text-align
    * text-decoration
    * text-indent
    * text-transform
    * vertical-align

Colors and Backgrounds

    * background-color
    * background-image
    * background-repeat

The Box Model - dimensions, padding, margin and borders

    * width, height
    * padding-top, padding-right, padding-bottom, padding-left
    * border-top, border-right, border-bottom, border-left
    * border-top-style, border-right-style, border-bottom-style, border-left-style
    * border-top-color, border-right-color, border-bottom-color, border-left-color
    * border-top-width, border-right-width, border-bottom-width, border-left-width
    * margin-top, margin-right, margin-bottom, margin-left

Positioning and Display

    * display
    * visibility

Supported css shorthand as following:
Shorthand 	Comments
"font" 	support font-style, font-weight, font-size, line-height, font-family in font shorthand, can not support system fonts such as caption, icon, menu etc
"background" 	support background-color and background-image in background shorthand
"border" 	
"border-left" 	
"border-right" 	
"border-top" 	
"border-bottom" 	
"padding" 	
"margin 	"
Comment 9 Maggie Shen CLA 2009-08-28 05:18:42 EDT
verified on build 2.5.1 v20090828-0630. Remaining issues are logged.