Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » BIRT » Does BIRT fully support HTML tags (e.g. <style>)?
Does BIRT fully support HTML tags (e.g. <style>)? [message #547799] Mon, 19 July 2010 16:04 Go to next message
Katerina  is currently offline Katerina
Messages: 4
Registered: January 2010
Junior Member
Hi,

does BIRT 2.6 fully support HTML tags? It seems that it completely ignores the <style> tag.
For example, let's say we have a blank report with only a text field that takes HTML input. The produced pdf report does not take the declared styles into consideration...

Any idea why?

Here is an example of the HTML in the text field:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><style>
.header {
border-collapse: collapse;
border: solid black;
border-width: 1px 1px 0px 0px;
font-size: 12pt;
vertical-align:top;
padding: 2px 5px 2px 5px;
}
H1 {
font-size: 20pt;
}
H1.head {
color:#666666;
margin:0px;
padding:0px;
font-size:16pt
}
H2 {
font-size:
16pt;
}
H2.head {
margin:0px;
padding:0px;
font-size: 20pt;
}
body {
font-family: Lucida Grande, Tahoma, Arial, Verdana, sans-serif;
}
table.header {
border-width: 0px 0px 1px 1px;
}
</style>
<meta name="generator"
content="HTML Tidy for Java (vers. 2009-10-01), see jtidy.sourceforge.net" />
<title></title>
</head>
<body>
<table cellspacing="0" style="width: 800px;margin-bottom:5px" class="header"><tr><td style="vertical-align: center;" colspan="2" class="header"><table cellpadding="0" cellspacing="0" style="width:100%"><tr><td style="text-align:left"><h1 class="head">Documents</h1></td><td style="text-align:right"><img src="/Application/Images/Logos/klp.gif"></td></tr></table ></td></tr><tr><td align="left" colspan="2" class="header"><h2 class="head">003 Test</h2></td></tr><tr><td style="width:50%" class="header">Version&nbsp;3,
Revision&nbsp;5</td><td style="width:50%" class="header"></td></tr><tr><td style="width:50%" class="header">Edited: John (2010-07-19)</td><td style="width:50%" class="header"></td></tr></table>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>Whatever text here...</p>
<p>Just a test</p>
</body>
</html>

Katerina
Re: Does BIRT fully support HTML tags (e.g. <style>)? [message #547822 is a reply to message #547799] Mon, 19 July 2010 17:06 Go to previous message
Richard A. Polunsky is currently offline Richard A. Polunsky
Messages: 199
Registered: July 2009
Location: Houston TX
Senior Member

You'll need to search the forum/newsgroup for references, but this has recently been raised by others. The PDF emitter does not parse dynamically generated HTML the way you have it. Someone may have entered that as a request.
Previous Topic:cube: build indicators
Next Topic:http 401 error (xml data source) with viewer deployed in tomcat
Goto Forum:
  


Current Time: Fri Oct 24 11:41:24 GMT 2014

Powered by FUDForum. Page generated in 0.02141 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software