external-graphic and caption
Hi, Is it possible to add a caption to an external-graphic without putting it in a table? My goal is to have multiple graphics within a block so they will be put on one line untill there is no more space and then the next will be shown on the next line.. Regards, Wouter
Solution to extra blank pages when you add page breaks
Hi, I found a way of solving the problem, where FOP adds extra blank pages when you add a page break. Simple remove the break-after=page or break-before=page from the fo:table or fo:table-row tag and add the following condition to it. BREAK-AFTER xsl:if test=position() != last()xsl:attribute name=break-afterpage/xsl:attribute/xsl:if BREAK-BEFORE xsl:if test=position() != 1xsl:attribute name=break-beforepage/xsl:attribute/xsl:if. EG: fo:table-row element-id=authchk_163 xsl:if test=position() != last()xsl:attribute name=break-afterpage/xsl:attribute/xsl:if Regards, Chanaka - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Removing white space
snip/ And I want to avoid the newlines to be passed through to the output. The output must be: bla,bla,whatever and NOT bla ,bla ,whatever There are many factors that cause this is to happen. First of all I need to see a bit of more of your XSL (not too big please) How - please? white-space-collapse ? There is a section on the website about this: http://xml.apache.org/fop/fo.html#fo-preformat Chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: fop ant task: change working directory?
Hi, I face the same problem but I don't understand your workaround. Ant says to me that target has no basedir attribute. I've tryed to give fop a config file with the userconfig attribute but it's not taken into account. Any idea? Marc. S. Alan Ezust wrote: No worries - I figured out that target basedir=blah fop something / /target does the trick. Basic question, I know.. But I was learning ant. cheers --alan On February 2, 2004 03:22 pm, J.Pietschmann wrote: S. Alan Ezust wrote: I'm not sure if this is an ant question or a fop question, but I was trying to use the fop custom task, and I want to set the current working directory that fop runs from. How does one do that with fop ant task? Do I set a property somewhere? I'm notsure what you mean by working directory. Ant has the concept of project directory, and relative pathnames used in tasks are resolved agains this. If you mean the base directory FOP uses for resolving relative URLs in the external graphics src, I think the task has a parameter for it. If not, well, check the source whether it sets the base directory to the base directory of the currently processed FO document, as it actually should. Now that I think of it, the task should be updated to have a parameter for the font base directory as well. J.Pietschmann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Removing white space
E S wrote: Now the source is: t bla /t [snip] And I want to avoid the newlines to be passed through to the output. The output must be: bla,bla,whatever and NOT bla ,bla ,whatever How - please? white-space-collapse ? By default, newlines are *not* formatted as line breaks. Did you actually try running FOP? If you have to normalize whitespace during the transformation, make yourself familiar with the normalize-space() function http://www.w3.org/TR/xpath#section-String-Functions J.Pietschmann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: external-graphic and caption
Wouter de Vaal wrote: Is it possible to add a caption to an external-graphic without putting it in a table? It depends on what you mean by add a caption to an external-graphic. My goal is to have multiple graphics within a block so they will be put on one line untill there is no more space and then the next will be shown on the next line.. You can mix text and graphics in one line. Gotchas: - You can't control vertical alignment well. Graphics alignment is by default top, and can only be adjusted with vertical-align sub and super - If the graphics is higher than the line height, it will overlap subsequent lines. FOP 0.20.5 is not able to automatically adjust line height, it will always use the line height specified on the block or implicitely derived from the font size in effect on the block. J.Pietschmann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
repeatable header (implemented with table) at top of every page?
hi all, i have spent 2 hours looking for an example. I am sure one exists so i apologize in advance for asking this lame question. I hate bothering people but am at my wits end. I need some example code that will give a repeatable header at top of every page. I have it printing out a one liner like Billing Invoice on everypage reliably, but when i changed this to be a table with a few rows (like the header example below), it puts rob walkeraccount # on first page at top then 123 lane bill period xyz on the second page at the top, then city, state, myzip on the third page at top instead of (my table unit in one contiguous block in each page's header) rob walkeraccount # 123 lane bill period xyz city, state, myzip surly this has been done ooodle of time, i apologize for asking I want a page(s) to look like this === rob walkeraccount # 123 lane bill period xyz city, state, myzip body of bill . . . page 1 of 5 === and the second page to === rob walkeraccount # 123 lane bill period xyz city, state, myzip more contents from xml xformed . . . page 2 of 5 === - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: repeatable header (implemented with table) at top of every page?
-Original Message- From: [EMAIL PROTECTED] I need some example code that will give a repeatable header at top of every page. I have it printing out a one liner like Billing Invoice on everypage reliably, but when i changed this to be a table with a few rows (like the header example below), So you are using tables in a static content I presume? Is the height of the corresponding region set to a size large enough to contain all the rows? For this effect: snip / page 1 of 5 === check the examples that came with fop, under FOP_HOME/examples/fo/markers/hide.fo (and also http://xml.apache.org/fop/fo.html#fo-total-pages ) Hope this helps! Cheers, Andreas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]