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
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
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
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
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.
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
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
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%)
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
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
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
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
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
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
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
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
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.
17 matches
Mail list logo