How to use fo:page-number/ in xsl:if? Eg. if page == 1.
Can anyone help with this? I'm trying to print an address element only on the first page of a document: fo:static-content flow-name=xsl-region-before fo:block font-weight=bold Invoice page fo:page-number/ /fo:block xsl:if test=fo:page-number = 1 xsl:call-template name=address / /xsl:if /fo:static-content The page number prints correctly, but the xsl:if is always false. I've tried a lot of googling, but even seemingly on-point posts such as http://www.dpawson.co.uk/xsl/sect3/N8703.html don't work with my fop 0.20.5 -- View this message in context: http://www.nabble.com/How-to-use-%3Cfo%3Apage-number-%3E-in-%3Cxsl%3Aif%3E---Eg.-%22if-page-%3D%3D-1%22.-tf3421094.html#a9535255 Sent from the FOP - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
I know it's been asked before - getting fop-0.20.5 to not print [1]
Other than piping to /dev/null, is it possible to get fop to not print [1] to the console, for each page rendered, of a multipage document? I'm sure it's been asked before, but google seems to not like googling [1] :-) -- View this message in context: http://www.nabble.com/I-know-it%27s-been-asked-before---getting-fop-0.20.5-to-not-print--1--tf3406399.html#a9488654 Sent from the FOP - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How do I get the .xsl line number which caused an error in fop .93?
Is it possible to get fop to tell me what line number, in the original xsl, is causing a particular exception? I get lots of mysteries like: Feb 14, 2007 9:34:56 AM org.apache.fop.layoutmgr.inline.LineLayoutManager$LineBreakingAlgorithm updateData2 WARNING: Line 1 of a paragraph overflows the available area. (fo:block, no context info available) Which is fine, but what paragraph? Or: WARNING: Mismatch: table-body (http://www.w3.org/1999/XSL/Format) vs. table (http://www.w3.org/1999/XSL/Format) Feb 14, 2007 9:34:56 AM org.apache.fop.fo.FOTreeBuilder$MainFOHandler endElement Again, fine, but I have a lot of tables in a big xsl file. I have searched the FAQ, but can't find any reference to this topic. My worst one is: Feb 14, 2007 9:34:56 AM org.apache.fop.cli.Main startFOP SEVERE: Exception javax.xml.transform.TransformerException: org.apache.fop.fo.ValidationException: Error(Unknown location): fo:table-body is missing child elements. Required Content Model: marker* (table-row+|table-cell+) at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:168) at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:115) at org.apache.fop.cli.Main.startFOP(Main.java:160) at org.apache.fop.cli.Main.main(Main.java:191) Which I think might be this table, but I can't tell for sure without what amounts to a binary search, removing tables one by one until the error goes away: fo:table space-after=0pt space-before=12pt table-layout=fixed width=100% fo:table-column column-width=.25in / fo:table-column column-width=3.00in / fo:table-body font-family=sans-serif font-weight=normal font-size=8.5pt xsl:for-each select=text4 fo:table-row line-height=9pt fo:table-cell padding=1mm display-align=before fo:block text-align=start fo:external-graphic height=0.25in width=0.25in src=url(green_chevron.png) / /fo:block /fo:table-cell fo:table-cell padding=1mm display-align=before fo:block text-align=start xsl:value-of select=. / /fo:block /fo:table-cell /fo:table-row /xsl:for-each /fo:table-body /fo:table /fo:block-container -- View this message in context: http://www.nabble.com/How-do-I-get-the-.xsl-line-number-which-caused-an-error-in-fop-.93--tf3228637.html#a8969802 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: 7 page FOP postscript file only shows first page in GhostScript, etc.
Encapsulating Encapsulated Postscript be deprecated, but it is not clear there is a viable alternative. What I start with is Illustrator files. EPS is a reasonably automated export. And my target is a postscript based format. What am I supposed to do instead? Any idea if the GhostScript people removed EPS support deliberately? Or is a reportable bug? Jeremias Maerki-2 wrote: As for your question about producing a PDF file: http://xmlgraphics.apache.org/fop/0.20.5/graphics.html#eps tells you why. It should theoretically show up in GhostScript but it seems newer GhostScript versions don't support showing the EPS anymore. Please note that embedding EPS files in PDF is deprecated and should not be done anymore. Keywords: GhostScript EPS invisible FOP embedded Adobe Illustrator PDF -- View this message in context: http://www.nabble.com/7-page-FOP-postscript-file-only-shows-first-page-in-GhostScript%2C-etc.-tf3204281.html#a8934843 Sent from the FOP - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]