org.apache.fop.fo.ValidationException: fo:list-block is missing child elements

2011-07-12 Thread tecshine
I have migrated from fop 0.20.5 to FOP 1.0. I get the following exception javax.xml.transform.TransformerException: org.apache.fop.fo.ValidationException: fo:list-block is missing child elements. Required content model: marker* (list-item)+ (See position 369:112) I am aware that this kind of

Re: org.apache.fop.fo.ValidationException: fo:list-block is missing child elements

2011-07-12 Thread Pascal Sancho
Hi Swetha, FOP 1.0 is more strict than FOP 0.2x regarding the XSL-FO REC 1.1. Probably you will experiment further ValidationExceptions against FO elements or attributes (missing %block% in fo:table-cell is the most popular). The best way is to rewrite your XSL-T to produce strict XSL-FO. But

Re: org.apache.fop.fo.ValidationException: fo:list-block is missing child elements

2011-07-12 Thread tecshine
Thanks for the reply Pascal I have tried using fopFactory.setStrictValidation(false); but it doesnt solve the problem. Our entire application was based on FOP 0.20.5 and rewriting all XSLTs would mean a lot of work. Is there any other way we can resolve the issue. Pascal Sancho wrote: Hi

Re: org.apache.fop.fo.ValidationException: fo:list-block is missing child elements

2011-07-12 Thread Chris Bowditch
On 12/07/2011 09:52, tecshine wrote: Hi, Thanks for the reply Pascal I have tried using fopFactory.setStrictValidation(false); but it doesnt solve the problem. Our entire application was based on FOP 0.20.5 and rewriting all XSLTs would mean a lot of work. Is there any other way we can resolve

Re: org.apache.fop.fo.ValidationException: fo:list-block is missing child elements

2011-07-12 Thread Glenn Adams
this is not a bug, as pointed out by Pascal On Tue, Jul 12, 2011 at 5:08 AM, Chris Bowditch bowditch_ch...@hotmail.comwrote: On 12/07/2011 09:52, tecshine wrote: Hi, Thanks for the reply Pascal I have tried using fopFactory.**setStrictValidation(false); but it doesnt solve the problem.

Re: org.apache.fop.fo.ValidationException: fo:list-block is missing child elements

2011-07-12 Thread tecshine
Dear I generated the XSL-FO for my XML+XSL and the result is too big to post here.I have attached it http://old.nabble.com/file/p32045268/test.out test.out But here is an extract from it which I guess is the cause of the error: fo:list-block line-height=1.5 provisional-label-separation=1cm

RE: org.apache.fop.fo.ValidationException: fo:list-block is missing child elements

2011-07-12 Thread Kerry, Richard
Our entire application was based on FOP 0.20.5 and rewriting all XSLTs would mean a lot of work. Is there any other way we can resolve the issue. At risk of being obvious, how about : Don't try to move from 0.20 to 1.0 unless you've got time available to spend sorting out any issues

RE: org.apache.fop.fo.ValidationException: fo:list-block is missing child elements

2011-07-12 Thread Theresa Jayne Forster
I have this to come, as I have just upgraded from a customised 0.23 to 1.0 and the first problem I saw was that originally we would define the document as Xsl-region-before Xsl-region-after Xsl-region-body Now we have to have body before everything else.. Plus we had custom cmyk(12%,1%,0%,20%)

numberformatting problem (austrian format)

2011-07-12 Thread haichao . miao
I?m using fop to process PDFs. I need to format a number. code: xsl:value-of select=format-number(1, ',###.00') / The output in this case is 10,000.00 My problem is, that I need the number format in Austria, which is 10.000,00 (the comma and the point are switched) I already tried

Re: org.apache.fop.fo.ValidationException: fo:list-block is missing child elements

2011-07-12 Thread Christopher R. Maden
On 07/12/2011 08:08 AM, tecshine wrote: fo:list-block line-height=1.5 provisional-label-separation=1cm provisional-distance-between-starts=6cm fo:list-item fo:list-item-label end-indent=label-end() fo:block font-weight=bold text-align=start/ /fo:list-item-label fo:list-item-body

RE: numberformatting problem (austrian format)

2011-07-12 Thread Amick, Eric
Try the following (untested): !-The following is a top-level element (i.e., outside of template rules) -- xsl:decimal-format name=aut decimal-separator=, grouping-separator=. / Then in the template rule, use xsl:value-of select=format-number(1, ',###.00', 'aut') / Instead. Eric Amick

Re: numberformatting problem (austrian format)

2011-07-12 Thread Christopher R. Maden
On 07/12/2011 10:21 AM, haichao.m...@raibau.at wrote: I?m using fop to process PDFs. I need to format a number. code: xsl:value-of select=format-number(1, ',###.00') / The output in this case is 10,000.00 My problem is, that I need the number format in Austria, which is 10.000,00

RE: numberformatting problem (austrian format)

2011-07-12 Thread Amick, Eric
One other thing: If you need all instances of format-number to behave the same, using xsl:decimal-format decimal-separator=, grouping-separator=. / will change the default decimal formatting, and you can then leave off the third argument to format-number(). Eric Amick Systems Engineer II

Re: fop not handling svn rotated text on linux

2011-07-12 Thread Andreas L . Delmelle
On 07 Jul 2011, at 21:07, Rob Sargent wrote: Hi Rob I can't seem to get my logger setup properly. I have these in my original log4j.properties file log4j.logger.org.apache.fop=ERROR log4j.logger.org.apache.xmlgraphics=ERROR I've changed them both to DEBUG, but only the xmlgraphics

image loading callback

2011-07-12 Thread Li, Jing
Dear All, Recently I am searching an answer about the callback mechanism when loading images. I am working on a project that creates a report as PDF format, using xml + xml-fo. I am thinking Apache FOP might be a way to go. But I have hard time to find the callback mechanism. In my report, I

Re: image loading callback

2011-07-12 Thread Jeremias Maerki
Hi Jing How you approach that depends a bit on what information you need to pass from FO to your image generator. If you can fit everything in an URI (fo:external-graphic), then you could do this: - Subclass javax.xml.transform.Source and provide a BufferedImage through it. - Write a URI resolver

RE: image loading callback

2011-07-12 Thread Li, Jing
Jeremias, Thank you so much for taking time to reply me and give me the excellent advices in such short period of time. I think I will take your first approach and use ImageGraphics2D for nicer display. I read your Barcode4J source code. I think the solution fits mine. Thanks a million.