FOP Compliance Page was: getPageCount and FOP 1.0dev

2005-07-31 Thread Manuel Mall
Got the Forrest installation and site generation sorted out.

Just as an observation the site claims to be HTML 4.01 compliant but when you 
submit it to the W3C validator it fails validation. Basically we are making 
an unsubstantiated claim on compatibility here. The problems seems however to 
be mainly in Forrest and I have lodge an issues with them. However, I do 
wonder if we have to remove the compliance claim (the W3C HTML 4.01 logo) 
until we are really compliant? BTW, the Forrest site which uses the same skin 
has the same problem.

Another observation: FOP being a project under the XML family shouldn't we 
have an XHTML compliant site? I am guessing that this is a Forrest skin issue 
as well?

Last observation: The compliance page (table columns) looks ugly under 
Firefox. Its fine under IE 6, Opera, Konqueror. The problem is the right 
floating background image under external links which Firefox seems to ignore 
when calculating cell widths causing cells to overflow into their neighbours. 
Not sure what we can do about that its just a bit sad if our site looks bad 
under the most popular open source browser.

Back to the compliance page. I assume what is required is some indication of 
1.0dev compliance vs 0.20.5 compliance. To achieve that we could:
a) Add extra columns, eg.
 Support (0.20.5)|Support (1.0dev)
Basic | Extended | Complete | Basic | Extended | Complete
...
b) Add extra columns like
   Support
 Basic  |  Extended | Complete
0.20.5| 1.0Dev | 0.20.5| 1.0Dev | 0.20.5| 1.0Dev |
...
c) Leave the column structure as is and record it in the column values, i.e. 
instead of Yes we could have a list of version numbers eg. 0.20.5, 
1.0dev. If its partial its indicated in brackets behind the version number.

Option c) is probably the easiest to manage as the table structure doesn't 
change as we add/remove releases from the table. b) is probably the easiest 
on the eye for a quick visual comparison but with each release added/removed 
the whole table structure changes making it work intensive to maintain.

Feedback please

Manuel

On Sun, 31 Jul 2005 12:51 am, Jeremias Maerki wrote:
...
 On 30.07.2005 18:38:55 Manuel Mall wrote:
...
 
  On Sat, 30 Jul 2005 10:11 pm, Jeremias Maerki wrote:
  ...
 
...
  
   The file that would need to be changed is this one:
   http://svn.apache.org/repos/asf/xmlgraphics/fop/trunk/src/documentation
  /con tent/xdocs/compliance.ihtml
  
   Stylesheets used with the above document:
   http://svn.apache.org/repos/asf/xmlgraphics/fop/trunk/src/documentation
  /res ources/stylesheets/
 
  ...

 Jeremias Maerki


Re: Element list generation for tables (special case)

2005-07-31 Thread Simon Pepping
On Sat, Jul 30, 2005 at 03:46:31PM +0200, Jeremias Maerki wrote:
 Sorry, but I have trouble understanding what you mean. Could you please
 elaborate with an example? Thanks.

 On 30.07.2005 13:54:25 Simon Pepping wrote:
  On Wed, Jul 27, 2005 at 10:40:25PM +0200, Jeremias Maerki wrote:
   I was under the impression that the breaker automatically favors break
   decisions that take up less space. It even goes so far that if you have
   a minimum=0pt and an optimum=2opt on a space-before, that it
   currently chooses 0pt which is not so good, actually.
 
  Penalties would help. If there were a penalty associated with the
  break below 'B', then the break above it becomes more favourable. I do
  not think the breaker could do that otherwise (without the newly
  proposed rule).

If there were a penalty value associated with a break that makes the
table longer, e.g. 0.1 * w, then the following list would result:

 8) box w=9600
 9) penalty p=0 w=0
10) box w=28800
11) penalty p=0 w=0
12) box w=0 //-- this is where the second row starts
13) penalty p=960 w=9600  //this penalty is due to the possible break after B
14) box w=28800
15) penalty p=0 w=0 //this is the next break poss after three lines
//due to the orphan setting
16) box w=28800

Now a break at 12 would have 960 demerits. A break at 10 would have 0
demerits, but because it would have less content on the page it would
have a larger stretch and that would itself associated demerits, say
500. Then the break at 10 would be selected.

In general, the table breaker may select breaks with a skew placement
of table contents, e.g.

xxx  |
 |
   --|-
 |
xxx' | yyy

over breaks with a more even placement of table contents, e.g.

xxx  | yyy'
 |
   --|-
 |
xxx' | yyy

Such breaks are rather ugly. They also make the table considerably
longer. One can use the extra length of the table as a measure of
skew placement and thus of ugliness and of the penalty value
associated with this break. This makes that breaks with a skew
placement of content are disfavoured, and only selected when more
even breaks have lots of demerits themselves, due to other causes.

Regards, Simon

--
Simon Pepping
home page: http://www.leverkruid.nl



Re: DO NOT REPLY [Bug 35939] New: - [PATCH] Port of 0.20.5 Driver.java class

2005-07-31 Thread Andreas L Delmelle

On Jul 30, 2005, at 17:34, Manuel Mall wrote (on bugzilla):

Manuel,
Devs,

To be able to simply replace a 0.20.5 fop.jar with 1.0dev fop.jar I 
have written
a backwards compatible apps.Driver.java class. Everything in the class 
has been

labelled as deprecated.


FWIW: Personally, besides the compatibility issue, I'm not too happy 
with the current situation where the very same class is used for both 
command-line and embedded use (Fop.java) --one class acts both as a 
standalone application and as a component.
That's considered an anti-pattern they call Subversion of Control in 
Avalon terminology[1] :-)


I've been checking the discussion on fop-dev concerning the removal of 
Driver[2]. From the looks of it, at least one developer had similar 
reservations about removing it. It's a pity the discussion itself 
remained rather superficial.



Cheers,

Andreas

[1] http://excalibur.apache.org/framework/component-design.html
[2] http://marc.theaimsgroup.com/?l=fop-devm=108942539604883w=2



Help to convert an XML document to another format

2005-07-31 Thread Jimmy Pierre





Greetings,

I am 
not a programmer, so when I encounter the type of problem that I will expose, I 
am ever so grateful 
:-)

I 
have a report per machine and the report can only be saved in 
XML.

I 
would like to now convert the report in whatever, HTML, DOC, PDF, spreadsheet 
etc. The issue is that I need to be able to exploit 
it.

I 
have posted the report on my site:

http://www.cisware.co.uk/xmlproblem its only 20 K

Anybody could give me a tool to just convert this thing? 
I am fluent in English/French.

Best 
wishes,
Jimmy


Bug report for Fop [2005/07/31]

2005-07-31 Thread bugzilla
+---+
| Bugzilla Bug ID   |
| +-+
| | Status: UNC=Unconfirmed NEW=New ASS=Assigned|
| | OPN=ReopenedVER=Verified(Skipped Closed/Resolved)   |
| |   +-+
| |   | Severity: BLK=Blocker CRI=CriticalMAJ=Major |
| |   |   MIN=Minor   NOR=Normal  ENH=Enhancement   |
| |   |   +-+
| |   |   | Date Posted |
| |   |   |  +--+
| |   |   |  | Description  |
| |   |   |  |  |
|  635|Opn|Nor|2001-02-18|Doesn't support id= attribute in fo:page-sequence |
|  953|Opn|Nor|2001-03-12|Incorrect hyperlinks area rendering in justified t|
| 1063|New|Nor|2001-03-21|fop does not handle large fo files|
| 1180|New|Maj|2001-04-02|Problem with monospaced font  |
| 1859|Opn|Min|2001-05-22|org.apache.fop.apps.Driver.reset() doesn't fully r|
| 1998|New|Nor|2001-06-05|linefeed-treatment not understood |
| 2150|Ass|Maj|2001-06-13|New page with  a table-header but without any tabl|
| 2475|Ass|Nor|2001-07-06|Borders don't appear to work in fo:table-row|
| 2740|New|Maj|2001-07-23|multi-page tables sometimes render badly  |
| 2909|New|Maj|2001-07-30|Gradient render error |
| 2964|Ass|Nor|2001-08-02|problems with height of cells in tables   |
| 2988|New|Maj|2001-08-03|0.19: list-item-label does not stick to list-item-|
| 3044|Ass|Maj|2001-08-08|keep-together not functioning |
| 3280|New|Nor|2001-08-27|PCL Renderer doesn't work |
| 3305|Opn|Nor|2001-08-28|list-block overlapping footnote body  |
| 3497|New|Cri|2001-09-07|id already exists error when using span=all attr|
| 3824|New|Blk|2001-09-25|MIF option with tables|
| 4030|New|Nor|2001-10-08|IOException creating Postscript with graphics on S|
| 4126|New|Nor|2001-10-12|FontState.width() returns pts instead of millipts |
| 4226|New|Nor|2001-10-17|The orphans property doesn't seem to work |
| 4388|New|Nor|2001-10-24|Nullpointer exception in the construction of new D|
| 4415|New|Nor|2001-10-25|scaling=uniform does not work on images...  |
| 4510|New|Nor|2001-10-30|fo:inline common properties ignored?  |
| 4535|New|Maj|2001-10-31|PCL renderer 1.13 not rendering SVG   |
| 4767|New|Nor|2001-11-09|SVG text is distored in PDF output|
| 5001|New|Nor|2001-11-21|content-width and content-height ignored? |
| 5010|New|Enh|2001-11-21|Better error reporting needed |
| 5124|New|Maj|2001-11-27|fo:block-container is not rendered properly using |
| 5335|Opn|Min|2001-12-10|Text with embedded CID fonts not retrievable from |
| 5655|Ass|Nor|2002-01-02|text-decoration cannot take multiple values   |
| 6094|Opn|Maj|2002-01-29|0.20.3rc hangs in endless loop|
| 6237|Opn|Nor|2002-02-05|#xFB01 (fi ligature) produces a sharp? |
| 6305|New|Nor|2002-02-07|Using fo:table-and-caption results in empty output|
| 6427|New|Enh|2002-02-13|Adding additional Type 1 fonts problem|
| 6437|New|Maj|2002-02-13|Tables without fo:table-column don't render   |
| 6483|New|Nor|2002-02-15|Table, Loop, footer could not fit on page, moving|
| 6844|New|Nor|2002-03-04|No line breaks inserted in list-item-label|
| 6918|New|Enh|2002-03-06|reference-orientation has no effect   |
| 6997|New|Nor|2002-03-09|[PATCH] Row-spanned row data breaks over a page wi|
| 7140|New|Enh|2002-03-15|page-position attribute set to last on condition|
| 7241|New|Nor|2002-03-19|keep-with-previous, keep-with-next only working on|
| 7283|New|Nor|2002-03-20|Table border misaligned when using margin-left in |
| 7337|New|Nor|2002-03-21|border around external image leaves empty space   |
| 7487|New|Nor|2002-03-26|break-before=page for table inserts empty page  |
| 7496|New|Nor|2002-03-26|The table header borders are not adjusted to the b|
| 7525|New|Cri|2002-03-27|table with spans inside a list-block  |
| 7919|New|Cri|2002-04-10|problem to use attribute linefeed-treatment and li|
| 8003|Ass|Maj|2002-04-12|FopImageFactory never releases cached images  |
| 8050|New|Nor|2002-04-13|Soft hyphen (shy;) is not handled properly   |
| 8321|New|Nor|2002-04-19|from-parent('width') returns 0 for nested tables  |
| 8463|New|Nor|2002-04-24|SVG clipping in external.fo example doc when rende|
| 

Re: Help to convert an XML document to another format

2005-07-31 Thread Carlos M. S. Bento Nogueira

Hi!
I'm using apache cocoon to pass xml documents from xml to html and from 
xml to pdf.

Check cocoon features on
http://cocoon.apache.org/2.1/features.html
and see if it fits your problem. It is not an 
easy framework for non-programmers though.


CarlosN.




On Sun, 31 Jul 2005, Jimmy Pierre wrote:


Greetings,



I am not a programmer, so when I encounter the type of problem that I will
expose, I am ever so grateful :-)



I have a report per machine and the report can only be saved in XML.



I would like to now convert the report in whatever, HTML, DOC, PDF,
spreadsheet etc. The issue is that I need to be able to exploit it.



I have posted the report on my site:



http://www.cisware.co.uk/xmlproblem http://www.cisware.co.uk/xmlproblem
it's only 20 K



Anybody could give me a tool to just convert this thing? I am fluent in
English/French..



Best wishes,

Jimmy




--


Re: FOP Compliance Page was: getPageCount and FOP 1.0dev

2005-07-31 Thread Manuel Mall
On Mon, 1 Aug 2005 09:09 am, The Web Maestro wrote:
 On Jul 31, 2005, at 4:28 PM, Manuel Mall wrote:
...
  I seems originally the compliance page was created using some XSLT
  transformations (see src/documentation/resources/stylesheets). Has this
  approach been abandoned? I can't find the input file.

 I believe it was originally, however that broke and I wasted many hours
 of time trying to get it to work. It's likely that the file
 compliance.xml is a good starting point (in xdocs/)

Do you mean src/documentation/content/xdocs? I can't find a compliance.xml 
there in SVN. Never mind, I'll take your advice that its broken any way and 
will edit the compliance.ihtml.