Getting rid of all warning messages in logs?
Sometimes FOP writes some warnings infos to my app servers log, and often they also contain some information about the actual content of the document, for example: 11.2.2008 14:29:45 org.apache.fop.layoutmgr.PageBreakingAlgorithm updateData2 WARNING: Part/page 0 overflows the available area in block-progression dimension. (fo:static-content, xx) How could I get rid of these?? I mean, I don't want that FOP writes any logging information that might contain any parts of the actual parsed document? -- View this message in context: http://www.nabble.com/Getting-rid-of-all-warning-messages-in-logs--tp15497827p15497827.html Sent from the FOP - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Getting rid of all warning messages in logs?
Not to give an obnoxious answer, but the easiest way is to fix the condition that is causing the warning to be generated. I am in the middle of on upgrade to 0.9x and I am fixing near hundreds of these types of messages generated by our reports. Most of the time it is an easy fix to a padding property or a mis-set height, but sometimes it requires going through several layers and figuring out what is adding up to cause the warning. I feel these warnings are good indicators of things that may not be just right and should be looked at to make sure they are not causing any layout problems. There is a basic wiki on this here: http://wiki.apache.org/xmlgraphics-fop/Troubleshooting/CommonLogMessages With that said, I believe you can just turn off warning messages in the logger, but then you might miss something you need. -Lou AlliumPorrum [EMAIL PROTECTED] wrote on 02/15/2008 05:28:16 AM: Sometimes FOP writes some warnings infos to my app servers log, and often they also contain some information about the actual content of the document, for example: 11.2.2008 14:29:45 org.apache.fop.layoutmgr.PageBreakingAlgorithm updateData2 WARNING: Part/page 0 overflows the available area in block-progression dimension. (fo:static-content, xx) How could I get rid of these?? I mean, I don't want that FOP writes any logging information that might contain any parts of the actual parsed document? -- View this message in context: http://www.nabble.com/Getting-rid-of- all-warning-messages-in-logs--tp15497827p15497827.html Sent from the FOP - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Table Breaking
Hi All, This is potentially a simple question but I can't find an answer. I am trying to place a table after a few paragraphs of text. If the table combined with the text is greater than the length of a single page, the table breaks onto a new page. In an act of desperation I downloaded and tried RenderX's XEP. By adding 'keep-with-previous=always' I can get the desired effect (i.e. start of the table at the end of the text, NOT on a new page). I understand that the compliance level is partial. I am reading it as ALL elements that are used with tables (body, row, cell etc) are not implemented. I am using version 0.94 but want noticed that this was available in 0.20. Is this correct? Can anyone suggest a workaround? Thanks Tyndyll -- View this message in context: http://www.nabble.com/Table-Breaking-tp15500947p15500947.html Sent from the FOP - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Table Breaking
Hi Tyndyll, We can’t really help you without an FO file to reproduce the problem. All I can say is that keep-with-previous works on tables. So please attach a small FO file (not xslt) to illustrate what you’re trying to achieve. Thanks Vincent Tyndyll wrote: Hi All, This is potentially a simple question but I can't find an answer. I am trying to place a table after a few paragraphs of text. If the table combined with the text is greater than the length of a single page, the table breaks onto a new page. In an act of desperation I downloaded and tried RenderX's XEP. By adding 'keep-with-previous=always' I can get the desired effect (i.e. start of the table at the end of the text, NOT on a new page). I understand that the compliance level is partial. I am reading it as ALL elements that are used with tables (body, row, cell etc) are not implemented. I am using version 0.94 but want noticed that this was available in 0.20. Is this correct? Can anyone suggest a workaround? Thanks Tyndyll -- Vincent HennebertAnyware Technologies http://people.apache.org/~vhennebert http://www.anyware-tech.com Apache FOP Committer FOP Development/Consulting - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Breaking table rows with colored cells
Hi! I have an application with really tall table cells -- so tall that they have to be able to break across pages. Some of the cells also need to have colored backgrounds. Is it possible to do this using fop? I've done it in TeX before, but I don't really want to have to handle the color continuations in the output routine, since the PostScript and TeX code is likely to be extremely complex Thanks! Fred Frederick H. Bartlett Lead Systems Developer / Content Technology John Wiley Sons, Inc.
Re: Breaking table rows with colored cells
On Feb 15, 2008, at 16:51, [EMAIL PROTECTED] wrote: Hi, I have an application with really tall table cells -- so tall that they have to be able to break across pages. Some of the cells also need to have colored backgrounds. Is it possible to do this using fop? How do you mean precisely? The default behavior is that the background-color specified on the table-cell will be automatically used on each page it spans. Is that what you're looking for? Cheers Andreas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Need to set a Relative font path in config file
How do I make the path in the config file relative to where fop is installed. I want to put our fonts in a directory with fop. We are doing this right now but the target directory changes at times and we want the installer to be able to install without writing the path into the config file. font metrics-url=file:///c:/ODProfessional/Fonts/arial.xml kerning=yes embed-url=file:///c:/ODProfessional/Fonts/arial.ttf font-triplet name=Arial weight=normal style=normal/ /font font metrics-url=file:///c:/ODProfessional/Fonts/arialbd.xml kerning=yes embed-url=file:///c:/ODProfessional/Fonts/arialbd.ttf font-triplet name=Arial weight=bold style=normal/ /font font metrics-url=file:///c:/ODProfessional/Fonts/ariali.xml kerning=yes embed-url=file:///c:/ODProfessional/Fonts/ariali.ttf font-triplet name=Arial weight=normal style=italic/ /font
What could be the cause of SAXException like this: Mismatch: page-number (http://www.w3.org/1999/XSL/Format) vs. page-number ()?
Hi, My XSL has entries like these: xsl:copy-of select=xalan:nodeset(ext:generateSubtree()) / Where generateSubtree() is external Java class method and returns result in form of org.w3c.dom.NodeList and inside that nodes list I have nodes like fo:page-number/ and whole XSL has such attribute specified: xmlns:fo=http://www.w3.org/1999/XSL/Format; Now when I run whole transformation process - I get: org.xml.sax.SAXException: Mismatch: page-number (http://www.w3.org/1999/XSL/Format) vs. page-number () at org.apache.fop.fo.FOTreeBuilder$MainFOHandler.endElement(FOTreeBuilder.java: 369) at org.apache.fop.fo.FOTreeBuilder.endElement(FOTreeBuilder.java:196) at org.apache.xml.serializer.ToXMLSAXHandler.endElement(ToXMLSAXHandler.java:26 1) at org.apache.xml.dtm.ref.DTMTreeWalker.endNode(DTMTreeWalker.java:373) at org.apache.xalan.transformer.TreeWalker2Result.endNode(TreeWalker2Result.jav a:85) at org.apache.xml.dtm.ref.DTMTreeWalker.traverse(DTMTreeWalker.java:116) at org.apache.xalan.transformer.TreeWalker2Result.traverse(TreeWalker2Result.ja va:72) at org.apache.xalan.templates.ElemCopyOf.execute(ElemCopyOf.java:184) ... 52 more So, which part cannot determine that proper namespace? Is it Xalan not populating result tree fragment with correct namespaces? Anything to check (version, nodes list, etc). Also, I think I had this working before in different environment, but not sure what has changed since that. Thank you, Andrejus - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Relative font path in config file
How do I make the path in the config file relative to where fop is installed. I want to put our fonts in a directory with fop. We are doing this right now but the target directory changes at times and we want the installer to be able to install without writing the path into the config file. font metrics-url=file:///c:/ODProfessional/Fonts/arial.xml kerning=yes embed-url=file:///c:/ODProfessional/Fonts/arial.ttf font-triplet name=Arial weight=normal style=normal/ /font font metrics-url=file:///c:/ODProfessional/Fonts/arialbd.xml kerning=yes embed-url=file:///c:/ODProfessional/Fonts/arialbd.ttf font-triplet name=Arial weight=bold style=normal/ /font font metrics-url=file:///c:/ODProfessional/Fonts/ariali.xml kerning=yes embed-url=file:///c:/ODProfessional/Fonts/ariali.ttf font-triplet name=Arial weight=normal style=italic/ /font
Re: What could be the cause of SAXException like this: Mismatch: page-number (http://www.w3.org/1999/XSL/Format) vs. page-number ()?
Andrejus Chaliapinas wrote: My XSL has entries like these: xsl:copy-of select=xalan:nodeset(ext:generateSubtree()) / Where generateSubtree() is external Java class method and returns result in form of org.w3c.dom.NodeList and inside that nodes list I have nodes like fo:page-number/ and whole XSL has such attribute specified: xmlns:fo=http://www.w3.org/1999/XSL/Format; Now when I run whole transformation process - I get: org.xml.sax.SAXException: Mismatch: page-number (http://www.w3.org/1999/XSL/Format) vs. page-number () It looks like Xalan passes an empty string to the endElement method, while the startElement looked correct. The most likely reason is that the namespace settings on your DOM tree are messed up, possibly during processing. It is also quite possible that you have hit a bug in Xalan. Try to find out which Xalan version you are actually using (e.g. by using system-property(xsl:vendor)), you might have to tell your JRE to use a newer one. If you serialize the result of the transformation rather then feeding it into FOP, do you also see a wrong end tag? (you might have to insert a text node into the fo:page number element to see an effect) In either case you can probably gather more useful information on the Xalan user list. J.Pietschmann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: What could be the cause of SAXException like this: Mismatch: page-number (http://www.w3.org/1999/XSL/Format) vs. page-number ()?
On Feb 15, 2008, at 22:03, Andrejus Chaliapinas wrote: Hi My XSL has entries like these: xsl:copy-of select=xalan:nodeset(ext:generateSubtree()) / Where generateSubtree() is external Java class method and returns result in form of org.w3c.dom.NodeList and inside that nodes list I have nodes like fo:page-number/ and whole XSL has such attribute specified: xmlns:fo=http://www.w3.org/1999/XSL/Format; Now when I run whole transformation process - I get: org.xml.sax.SAXException: Mismatch: page-number (http://www.w3.org/1999/XSL/Format) vs. page-number () This is weird... So, if I interpret correctly, the input fo:page-number / leads to a SAX startElement() event *with* the proper namespace, but somewhere in between (by Xalan, I presume) the namespace dissolves so that null is passed to the endElement() event... snip / So, which part cannot determine that proper namespace? Is it Xalan not populating result tree fragment with correct namespaces? Anything to check (version, nodes list, etc). Also, I think I had this working before in different environment, but not sure what has changed since that. Be sure to check very thoroughly which version of Xalan is being used, and try to play with different versions. Cheers Andreas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
show page number for a document that show a table content
Hello, i have an issue about the page number. i want to show on each pdf page the page number with the following format: page 1 of n Pretty classic, but i couldnt manage to do it. i am showing the content of a dynamic table, and i want to show the number of page of each sheet of the pdf as page 1 of n. here is how i proceed: 1- i put an end of document block: fo:block id = lastBlock/ 2- after my /fo:table/fo:table-body block, i creaated the following block to show the page number: fo:blockfo:page-number/ of fo:page-number-citation ref-id = lastBlock//fo:block the size of my table is dynamic and vary all the time. The result show page 5 of 5 on the very last page, but i dont have page 1 of 5 on the first sheet, nor page 2 of 5 on the second sheet, etc... how should i proceed to have the number of the page on the bottom of each page? thanks you, -- View this message in context: http://www.nabble.com/show-page-number-for-a-document-that-show-a-table-content-tp15512477p15512477.html Sent from the FOP - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: show page number for a document that show a table content
we didnt saw the footer tag that well on the right :) Hi and thak you for such a quick answer andrea but i tried and that doent work too, i didnt have any error message this is why i dont know where to look at. here below the code i put in the table-footer: fo:table-body ... /fo:table-body fo:table-footer fo:table-row fo:table-cell fo:block fo:page-number/ of fo:page-number-citation ref-id = lastBlock/ /fo:block /fo:table-cell /fo:table-row /fo:table-footer -- View this message in context: http://www.nabble.com/show-page-number-for-a-document-that-show-a-table-content-tp15512477p15513173.html Sent from the FOP - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: show page number for a document that show a table content
On Feb 16, 2008, at 01:32, kungouf wrote: Hi Hi and thak you for such a quick answer andrea but i tried and that doent work too, i didnt have any error message this is why i dont know where to look at. here below the code i put in the table-footer: fo:table-body ... /fo:table-body fo:table-footer The order should be modified: fo:table fo:table-column .../ ... fo:table-footer fo:table-cell fo:blockfo:page-number/ of fo:page-number-citation ref-id = lastBlock//fo:block /fo:table-cell /fo:table-footer fo:table-body /fo:table-body /fo:table HTH! Cheers Andreas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]