Blocks within same page
Hi, How do I make sure that two blocks should always come together in one page if there is a page break in between, the print should not separate them in diff pages. I tried the keep-with-next.within-page=always for a fo:block but it doesnt seem to work, Any ideas ? Sajeesh - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Blocks within same page
Put them both in a table and set the keep-together property on both cells. One of the limitations of 0.20.5 is that only tables support keeps. Jay Bryant Bryant Communication Services (on contract at Synergistic Solution Technologies) Sajeesh N Kakkat [EMAIL PROTECTED] 01/11/2005 03:47 AM Please respond to [EMAIL PROTECTED] To [EMAIL PROTECTED] cc Subject Blocks within same page Hi, How do I make sure that two blocks should always come together in one page if there is a page break in between, the print should not separate them in diff pages. I tried the keep-with-next.within-page=always for a fo:block but it doesnt seem to work, Any ideas ? Sajeesh - 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]
avoiding empty page with page-break
Hi, in some cases a natural page-break (the end of the page is reached) and a forced page-break (page-break-after=always) collide and that causes an empty page (because that are in fact 2 page-breaks). Is there a possibilty to avoid it? thx, soenke. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Setting seperate headers - PDF generation using FO and XSLT
Hi Is there any way that I can set seperate headers for first and second pages and no header for rest of the pages. Appriciate if you could provide sample XSLT code. Rgrds Sai - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Setting seperate headers - PDF generation using FO and XSLT
On Jan 11, 2005, at 8:00 AM, [EMAIL PROTECTED] wrote: Is there any way that I can set seperate headers for first and second pages and no header for rest of the pages. Appriciate if you could provide sample XSLT code. What it sounds like you want to do is create 3 page-masters: first, second, rest. What you want to achieve is similar to the odd/even model outlined here[1]. The examples page explains the examples included with the FOP distribution. Take a look at the extensive.fo for more help... HTH! [1] http://xml.apache.org/fop/fo.html#fo-oddeven [2] http://xml.apache.org/fop/examples.html Web Maestro Clay -- [EMAIL PROTECTED] - http://homepage.mac.com/webmaestro/ My religion is simple. My religion is kindness. - HH The 14th Dalai Lama of Tibet - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Image Output issues
Hello; I am trying to dynamically create the path to my image file. I'm getting the error: org.apache.fop.apps.FOPException: The entity acirc was referenced, but not declared. I am not sure what acirc is? Here is the code(this is not the full path, i am trying to incrementally building while outputting the results): The template that will return the path: xsl:template name=image_display_and_upload xsl:param name=IP select=string($IP)/ xsl:param name=current select=string(.)/ xsl:value-of select=concat($IP, $current)/ /xsl:template The template outputting the FO: fo:table-row !-- image cell -- fo:table-cell number-columns-spanned=2 fo:block xsl:variable name=filePath xsl:call-template name=image_display_and_upload/ /xsl:variable xsl:value-of select=$filePath/ !--fo:external-graphic src=url(file://{$IP}{./@PATH}{./@FNAME}/{./DATA/VERSION/[EMAIL PROTECTED] me]/@DIR150DPI})/-- /fo:block /fo:table-cell /fo:table-row fo:table-row Any help would be greatly appreciated. Thanks, Luke - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Image Output issues
It is intentional. The variable in the url parameter are not visible from the document I am running this in. I need to calculate the path to the image in another lever and pass it back to this function. Once I can see that I have the whole path outputting correctly I can uncomment my graphics tag, drop in the variable containing the path and finally see this working the way it should. I may throw a little party in my cube to celebrate. :-) Thanks for the explanation of arirc. What still confuses me is I am not doing anything with the image file yet. So far I'm trying to concatenate the IP and along with the name of the current node into a variable and than write this into the document. Where is it getting the arirc I wonder? Thanks, Luke - Original Message - From: The Web Maestro [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, January 11, 2005 11:56 AM Subject: Re: Image Output issues Luke, The acirc entity is an 'a' with a ^ above it[1]. I suspect the binary image file is being read as text, and it happens to be the first 'bad' character the XML parser is seeing. That said, I notice you've got the fo:external-graphic.. element commented out. Is that intended? [1] http://www.uspto.gov/web/offices/ac/ido/oeip/sgml/st32/redbook/pap- v15-2001-01-31/entities/acirc.html On Jan 11, 2005, at 8:45 AM, Luke Shannon wrote: Hello; I am trying to dynamically create the path to my image file. I'm getting the error: org.apache.fop.apps.FOPException: The entity acirc was referenced, but not declared. I am not sure what acirc is? Here is the code(this is not the full path, i am trying to incrementally building while outputting the results): The template that will return the path: xsl:template name=image_display_and_upload xsl:param name=IP select=string($IP)/ xsl:param name=current select=string(.)/ xsl:value-of select=concat($IP, $current)/ /xsl:template The template outputting the FO: fo:table-row !-- image cell -- fo:table-cell number-columns-spanned=2 fo:block xsl:variable name=filePath xsl:call-template name=image_display_and_upload/ /xsl:variable xsl:value-of select=$filePath/ !--fo:external-graphic src=url(file://{$IP}{./@PATH}{./@FNAME}/{./DATA/VERSION/ [EMAIL PROTECTED] me]/@DIR150DPI})/-- /fo:block /fo:table-cell /fo:table-row fo:table-row Any help would be greatly appreciated. Thanks, Luke - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Web Maestro Clay -- [EMAIL PROTECTED] - http://homepage.mac.com/webmaestro/ My religion is simple. My religion is kindness. - HH The 14th Dalai Lama of Tibet - 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]
Table Help
Hello; I am looking for one column that only contains an image, next to it a column with 2 cells stack on top of one another. What I get with the code below is the image and only the first cell in the second row? Any ideas? Does anyone know a good online tutorial for figuring out tables? Luke xsl:template name=s2_pdf xsl:param name=imagename select=concat(string('IMAGE'),number('1')) / !-- text 1 -- fo:flow flow-name=xsl-region-body fo:table inline-progression-dimension=100% table-layout=fixed fo:table-column column-width=50% number-columns-repeated=2/ fo:table-body fo:table-row !-- image cell -- fo:table-cell number-rows-spanned=2 fo:block xsl:call-template name=image_display_and_upload xsl:with-param name=imagenode select=. / /xsl:call-template /fo:block /fo:table-cell /fo:table-row fo:table-row !-- text number one cell -- fo:table-cell fo:block font-family=Arial font-size=12pt font-weight=bold break-after=auto space-after=10pt text-align=left xsl:call-template name=text_display_and_edit xsl:with-param name=text_number select=number('1') / /xsl:call-template /fo:block /fo:table-cell !-- text number two cell -- fo:table-cell fo:block font-family=Arial font-size=12pt font-weight=bold break-after=auto space-after=10pt text-align=left xsl:call-template name=text_display_and_edit xsl:with-param name=text_number select=number('2') / /xsl:call-template /fo:block /fo:table-cell /fo:table-row /fo:table-body /fo:table /fo:flow /xsl:template - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Table Help
On Jan 11, 2005, at 11:38 AM, Luke Shannon wrote: Hello; I am looking for one column that only contains an image, next to it a column with 2 cells stack on top of one another. What I get with the code below is the image and only the first cell in the second row? Any ideas? Does anyone know a good online tutorial for figuring out tables? I'd say check out the examples/ directory in the FOP distribution you downloaded. Luke xsl:template name=s2_pdf xsl:param name=imagename select=concat(string('IMAGE'),number('1')) / !-- text 1 -- fo:flow flow-name=xsl-region-body fo:table inline-progression-dimension=100% table-layout=fixed fo:table-column column-width=50% number-columns-repeated=2/ never saw the number-columns-repeated attribute. Try this (from [1]): fo:table table-layout=fixed width=100% fo:table-column column-width=proportional-column-width(1)/ fo:table-column column-width=proportional-column-width(1)/ fo:table-body fo:table-row fo:table-cell fo:blockfoo/fo:block /fo:table-cell fo:table-cell fo:blockbar/fo:block /fo:table-cell /fo:table-row /fo:table-body /fo:table [1] http://xml.apache.org/fop/fo.html#fo-center-table-horizon fo:table-body fo:table-row !-- image cell -- fo:table-cell number-rows-spanned=2 fo:block xsl:call-template name=image_display_and_upload xsl:with-param name=imagenode select=. / /xsl:call-template /fo:block /fo:table-cell /fo:table-row fo:table-row !-- text number one cell -- fo:table-cell fo:block font-family=Arial font-size=12pt font-weight=bold break-after=auto space-after=10pt text-align=left xsl:call-template name=text_display_and_edit xsl:with-param name=text_number select=number('1') / /xsl:call-template /fo:block /fo:table-cell !-- text number two cell -- fo:table-cell fo:block font-family=Arial font-size=12pt font-weight=bold break-after=auto space-after=10pt text-align=left xsl:call-template name=text_display_and_edit xsl:with-param name=text_number select=number('2') / /xsl:call-template /fo:block /fo:table-cell /fo:table-row /fo:table-body /fo:table /fo:flow /xsl:template - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Web Maestro Clay -- [EMAIL PROTECTED] - http://homepage.mac.com/webmaestro/ My religion is simple. My religion is kindness. - HH The 14th Dalai Lama of Tibet - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[Fwd: TiffRenderer Anomaly]
Hi, all - I am evaluating the TiffRenderer written by Oleg Tkachenko, using 0.20.5, using a very simple single page of output. The transform works beautifully, and produces exactly the output that I am expecting, except for one detail - it is a negative image (black background with white letters). Has anyone seen anything like this before? Thanks, Bill - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Table Help
Hello Web Maestro Clay; Thanks for your help up to this point. It is appreciated. What I don't understand is the relationship between columns and tables. The fact that you list the columns and than in the body the rows is confusing, and the fact that there are no errors, only a blank page when I make a mistake with my table is a little frustrating. If there is one column and 2 rows, each with a cell, would it not just write one row on top of the other in the column? So if there is 2 columns and and 2 rows with 2 cells would it not write one cell into each column, with row one appearing above row two? Thanks, Luke - Original Message - From: The Web Maestro [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, January 11, 2005 2:41 PM Subject: Re: Table Help On Jan 11, 2005, at 11:38 AM, Luke Shannon wrote: Hello; I am looking for one column that only contains an image, next to it a column with 2 cells stack on top of one another. What I get with the code below is the image and only the first cell in the second row? Any ideas? Does anyone know a good online tutorial for figuring out tables? I'd say check out the examples/ directory in the FOP distribution you downloaded. Luke xsl:template name=s2_pdf xsl:param name=imagename select=concat(string('IMAGE'),number('1')) / !-- text 1 -- fo:flow flow-name=xsl-region-body fo:table inline-progression-dimension=100% table-layout=fixed fo:table-column column-width=50% number-columns-repeated=2/ never saw the number-columns-repeated attribute. Try this (from [1]): fo:table table-layout=fixed width=100% fo:table-column column-width=proportional-column-width(1)/ fo:table-column column-width=proportional-column-width(1)/ fo:table-body fo:table-row fo:table-cell fo:blockfoo/fo:block /fo:table-cell fo:table-cell fo:blockbar/fo:block /fo:table-cell /fo:table-row /fo:table-body /fo:table [1] http://xml.apache.org/fop/fo.html#fo-center-table-horizon fo:table-body fo:table-row !-- image cell -- fo:table-cell number-rows-spanned=2 fo:block xsl:call-template name=image_display_and_upload xsl:with-param name=imagenode select=. / /xsl:call-template /fo:block /fo:table-cell /fo:table-row fo:table-row !-- text number one cell -- fo:table-cell fo:block font-family=Arial font-size=12pt font-weight=bold break-after=auto space-after=10pt text-align=left xsl:call-template name=text_display_and_edit xsl:with-param name=text_number select=number('1') / /xsl:call-template /fo:block /fo:table-cell !-- text number two cell -- fo:table-cell fo:block font-family=Arial font-size=12pt font-weight=bold break-after=auto space-after=10pt text-align=left xsl:call-template name=text_display_and_edit xsl:with-param name=text_number select=number('2') / /xsl:call-template /fo:block /fo:table-cell /fo:table-row /fo:table-body /fo:table /fo:flow /xsl:template - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Web Maestro Clay -- [EMAIL PROTECTED] - http://homepage.mac.com/webmaestro/ My religion is simple. My religion is kindness. - HH The 14th Dalai Lama of Tibet - 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: Table Help
What I don't understand is the relationship between columns and tables. Well, the fo:table element requires one or more fo:table-column elements as children. In other words, you have to remember that XSL:FO requires you to specify the columns before you specify the table body. When you start specifying cells, FOP requires that each row have the same number of cells as the table has columns (though you can have one column span cells). Other processors might permit an empty cell, but FOP does no thinking for you, so it requires that you spell out everything. In the following simple example, notice that the table-column elements and the table-body element are the immediate descendents (the children) of the table element. The rows and cells are and must be, because table-body has to contain them, deeper descendents (grandchildren and great-grandchildren, as it were). fo:table table-layout=fixed fo:table-column column-width=2in/ fo:table-column column-width=2.5in/ fo:table-column column-width=2in/ fo:table-body fo:table-row fo:table-cell fo:block xsl:use-attribute-sets=footerleft Date prepared: xsl:value-of select=format-date(current-date(),'[D1] [MNn] [Y0001]')/ /fo:block /fo:table-cell fo:table-cell fo:block xsl:use-attribute-sets=footercenter Confidential and Proprietary /fo:block /fo:table-cell fo:table-cell fo:block xsl:use-attribute-sets=footerright fo:page-number/ /fo:block /fo:table-cell /fo:table-row /fo:table-body /fo:table HTH Jay Bryant Bryant Communication Services (on contract at Syngeristic Solution Technologies) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Table Help
Thank you Jay. This helps a lot. - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, January 11, 2005 3:50 PM Subject: Re: Table Help What I don't understand is the relationship between columns and tables. Well, the fo:table element requires one or more fo:table-column elements as children. In other words, you have to remember that XSL:FO requires you to specify the columns before you specify the table body. When you start specifying cells, FOP requires that each row have the same number of cells as the table has columns (though you can have one column span cells). Other processors might permit an empty cell, but FOP does no thinking for you, so it requires that you spell out everything. In the following simple example, notice that the table-column elements and the table-body element are the immediate descendents (the children) of the table element. The rows and cells are and must be, because table-body has to contain them, deeper descendents (grandchildren and great-grandchildren, as it were). fo:table table-layout=fixed fo:table-column column-width=2in/ fo:table-column column-width=2.5in/ fo:table-column column-width=2in/ fo:table-body fo:table-row fo:table-cell fo:block xsl:use-attribute-sets=footerleft Date prepared: xsl:value-of select=format-date(current-date(),'[D1] [MNn] [Y0001]')/ /fo:block /fo:table-cell fo:table-cell fo:block xsl:use-attribute-sets=footercenter Confidential and Proprietary /fo:block /fo:table-cell fo:table-cell fo:block xsl:use-attribute-sets=footerright fo:page-number/ /fo:block /fo:table-cell /fo:table-row /fo:table-body /fo:table HTH Jay Bryant Bryant Communication Services (on contract at Syngeristic Solution Technologies) - 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: Image Output issues
Luke Shannon wrote: I'm getting the error: org.apache.fop.apps.FOPException: The entity acirc was referenced, but not declared. You have an entity referene in one of the XML source files or the style sheet. Look for acirc; anywhere. I doubt this has something to do with the image path, it's more like either someone did a cutpaste from HTML source, or the authoring environment is trying to be helpful the wrong way. J.Pietschmann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [Fwd: TiffRenderer Anomaly]
Bill Jordan wrote: Hi, all - I am evaluating the TiffRenderer written by Oleg Tkachenko, using 0.20.5, using a very simple single page of output. The transform works beautifully, and produces exactly the output that I am expecting, except for one detail - it is a negative image (black background with white letters). Has anyone seen anything like this before? Try another image viewer. J.Pietschmann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
HR in FOP
Is create draw a line on the page? Thanks, Luke - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: HR in FOP
Thank you. I will look into those reference books as well. Luke - Original Message - From: The Web Maestro [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, January 11, 2005 5:32 PM Subject: Re: HR in FOP Here are a couple of options: fo:table-row border-bottom=1pt solid #00 fo:block border-bottom=1pt solid #00/ fo:external-graphic src=url('blackline.gif') width=aswideasthepagecm height=notveryhighcm/ Some good XSL-FO references (books and online too!) are available on the FOP Resources page[1]. On Jan 11, 2005, at 2:17 PM, Luke Shannon wrote: Is create draw a line on the page? Thanks, Luke Cheers! [1] http://xml.apache.org/fop/resources.html#documents Web Maestro Clay -- [EMAIL PROTECTED] - http://homepage.mac.com/webmaestro/ My religion is simple. My religion is kindness. - HH The 14th Dalai Lama of Tibet - 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: HR in FOP
Assuming you have one-inch margins and a page with of 8.5 inches, the following FO element draws a one-point black line across the page: fo:leader leader-pattern=rule rule-thickness=1.0pt leader-length=6.5in color=black/ You can also set other properties, such as space-before and space-after. Here's an example that I use for lines in footers (to separate the rest of the page from the footer): At the top of the stylesheet, I have a bunch of elements similar to this one: xsl:attribute-set name=footerleader xsl:attribute name=leader-patternrule/xsl:attribute xsl:attribute name=rule-thickness1.0pt/xsl:attribute xsl:attribute name=leader-length6.5in/xsl:attribute xsl:attribute name=space-before.optimum0pt/xsl:attribute xsl:attribute name=space-after.optimum24pt/xsl:attribute xsl:attribute name=colorblack/xsl:attribute /xsl:attribute-set That way, I can maintain styles in one place within the stylesheet (and I could maintain them in a separate file and import them, if need be). Later, when I actually want a line across the page, I then use: fo:leader xsl:use-attribute-sets=footerleader/ You do not need to use one-cell tables and external graphics to get a simple (or not-s-simple) line. HTH Jay Bryant Bryant Communication Services (on contract at Synergistic Solution Technologies) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: HR in FOP
Cool! Thanks. - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, January 11, 2005 5:54 PM Subject: Re: HR in FOP Assuming you have one-inch margins and a page with of 8.5 inches, the following FO element draws a one-point black line across the page: fo:leader leader-pattern=rule rule-thickness=1.0pt leader-length=6.5in color=black/ You can also set other properties, such as space-before and space-after. Here's an example that I use for lines in footers (to separate the rest of the page from the footer): At the top of the stylesheet, I have a bunch of elements similar to this one: xsl:attribute-set name=footerleader xsl:attribute name=leader-patternrule/xsl:attribute xsl:attribute name=rule-thickness1.0pt/xsl:attribute xsl:attribute name=leader-length6.5in/xsl:attribute xsl:attribute name=space-before.optimum0pt/xsl:attribute xsl:attribute name=space-after.optimum24pt/xsl:attribute xsl:attribute name=colorblack/xsl:attribute /xsl:attribute-set That way, I can maintain styles in one place within the stylesheet (and I could maintain them in a separate file and import them, if need be). Later, when I actually want a line across the page, I then use: fo:leader xsl:use-attribute-sets=footerleader/ You do not need to use one-cell tables and external graphics to get a simple (or not-s-simple) line. HTH Jay Bryant Bryant Communication Services (on contract at Synergistic Solution Technologies) - 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: HR in FOP
On Jan 11, 2005, at 2:54 PM, [EMAIL PROTECTED] wrote: Assuming you have one-inch margins and a page with of 8.5 inches, the following FO element draws a one-point black line across the page: fo:leader leader-pattern=rule rule-thickness=1.0pt leader-length=6.5in color=black/ That's a *great* tip, Jay... Someone (like me!) might actually use that in one of our tips FAQs section... This is also a nice way to implement the @use-attribute-sets. I also like the idea of using a fo:leader.. (which is what it's for!)... Of course, if the page already has a table covering most of it, it may make sense to use the @border-bottom or @border-top attribute. Thanks! Web Maestro Clay -- [EMAIL PROTECTED] - http://homepage.mac.com/webmaestro/ My religion is simple. My religion is kindness. - HH The 14th Dalai Lama of Tibet - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]