Re: Fop examples up on web
FO source is linked in now. Not sure if all browsers can view it, but it shows up fine on Mozilla 1.2 and IE6. Darrel Oleg Tkachenko wrote: www.webappcore.com/fop That's great, Darrel! We definitely have to update http://xml.apache.org/fop/examples.html page to link this one. One small feature request - it would be nice to have link to a fo file along with pdf. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
displaying 2 texts side by side
Hi all, In a table column, I need to display 2 texts from 2 different nodes side by side. If I use 2 blocks, 2 texts gets displayed one below the other.. if I write the 2 texts within the same block, no space is included between them. Please suggest some solution. Regards, Vinod. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: displaying 2 texts side by side
Hi all, In a table column, I need to display 2 texts from 2 different nodes side by side. If I use 2 blocks, 2 texts gets displayed one below the other.. if I write the 2 texts within the same block, no space is included between them. Please suggest some solution. I would suggest a table with different cells for the texts. You can give those cells a spacing to have more space between them. Harald - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: displaying 2 texts side by side
Hi Oleg, Will you tell me how can I do this.. within a block I have to write 2 texts.. one from xml node and another is constant SPACE [i.e., ' '] [SPACE should not be ignored] Regards, Vinod. -Original Message- From: Oleg Tkachenko [mailto:[EMAIL PROTECTED] Sent: Monday, January 06, 2003 2:08 PM To: [EMAIL PROTECTED] Subject: Re: displaying 2 texts side by side [EMAIL PROTECTED] wrote: In a table column, I need to display 2 texts from 2 different nodes side by side. If I use 2 blocks, 2 texts gets displayed one below the other.. if I write the 2 texts within the same block, no space is included between them. Please suggest some solution. What's wrong with a table? -- Oleg Tkachenko eXperanto team Multiconn Technologies, Israel - 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]
AW: displaying 2 texts side by side
Thanks Herald, but the thing is that, I not sure of only 2 texts. There may be more than 2. And the final width of the cell in which these texts are displayed should be constant. It may be possible to have a query in your XSL to determin how many texts there will be... One more thing is that the cell has border color. There should not be borders between the texts.. No problem. You can set the spacing to 0 ... so there will be no border. Harald - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: displaying 2 texts side by side
[EMAIL PROTECTED] wrote: Will you tell me how can I do this.. within a block I have to write 2 texts.. one from xml node and another is constant SPACE [i.e., ' '] [SPACE should not be ignored] According your description it shouldn't be a problem: fo:block xsl:value-of select=foo/ fo:inline white-space-collapse=false /fo:inline /fo:block But why do you need such a quirk? -- Oleg Tkachenko eXperanto team Multiconn Technologies, Israel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: displaying 2 texts side by side
Hi Oleg, it is not working.. Part of my xsl code[after including the code you've given] is.. xsl:template match=//OPTION xsl:choose xsl:when test=@VALUE=1 fo:external-graphic src=file:checked.gif/ /xsl:when xsl:otherwise fo:external-graphic src=file:uncheck.gif/ /xsl:otherwise /xsl:choose xsl:value-of select=@TITLE/ fo:inline white-space-collapse=false /fo:inline /xsl:template !-- End of Option template -- In a block, I am displaying many check boxes with the title.. and between each check box I wish to display a space.. Regards, Vinod. -Original Message- From: Oleg Tkachenko [mailto:[EMAIL PROTECTED] Sent: Monday, January 06, 2003 3:12 PM To: [EMAIL PROTECTED] Subject: Re: displaying 2 texts side by side [EMAIL PROTECTED] wrote: Will you tell me how can I do this.. within a block I have to write 2 texts.. one from xml node and another is constant SPACE [i.e., ' '] [SPACE should not be ignored] According your description it shouldn't be a problem: fo:block xsl:value-of select=foo/ fo:inline white-space-collapse=false /fo:inline /fo:block But why do you need such a quirk? -- Oleg Tkachenko eXperanto team Multiconn Technologies, Israel - 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: displaying 2 texts side by side
[EMAIL PROTECTED] wrote: In a block, I am displaying many check boxes with the title.. and between each check box I wish to display a space.. Now it's clear. You should use fo:leader to achieve such a formatting, that's exactly what it's designed for: fo:external-graphic src=url(file:///d:/xslt.jpg)/ fo:leader leader-length=1cm/ fo:external-graphic src=url(file:///d:/xslt.jpg)/ -- Oleg Tkachenko eXperanto team Multiconn Technologies, Israel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: displaying 2 texts side by side
Thanks a lot great Oleg.. Regards, Vinod. -Original Message- From: Oleg Tkachenko [mailto:[EMAIL PROTECTED] Sent: Monday, January 06, 2003 3:43 PM To: [EMAIL PROTECTED] Subject: Re: displaying 2 texts side by side [EMAIL PROTECTED] wrote: In a block, I am displaying many check boxes with the title.. and between each check box I wish to display a space.. Now it's clear. You should use fo:leader to achieve such a formatting, that's exactly what it's designed for: fo:external-graphic src=url(file:///d:/xslt.jpg)/ fo:leader leader-length=1cm/ fo:external-graphic src=url(file:///d:/xslt.jpg)/ -- Oleg Tkachenko eXperanto team Multiconn Technologies, Israel - 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]
Can FOP indent tables (say, with start-indent)?
Can FOPindent tables? I'm using a page layout that defines a startindent for the body text column (the headings are "outdented"). I'd like some tables to be "column width" (in line with the body text), others to be "page width" (margin-to-margin). After experimenting, I can indent the table contents, but the borders are stuck at the left margin. Any ideas? I'm using FOP 2.0.4. (With apologies if this is a well-known issue: I'm a new user. I've searched the FOP open bug list, and googled, but I've not yet seen this explicitly confirmed/denied.) Graham Hannington
RE: Fop examples up on web
See them at: www.webappcore.com/fop giro.fo gives me the file is damaged and couldn't be repaired when viewing with IE5.5 and Acrobat 5.0. Everything else seems OK. Thanks for the effort. Regards Roger - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Fop examples up on web
Darrel, Thanks for putting this stuff up. It's a great reference. Would it be helpfulif someone put PDF versions of these files rendered in 0.20.4 (the current stable version)? Also, do you have a script which output these, or did you render them individually, one at a time? BTW, forgive my nitpicky-ness (please!), but although you indicate 2.0.5rc the version of FOP you are running is probably 0.20.5rc (unless I missed a few versions :-). Thanks again! Web Maestro Clay At 06:41 PM 1/4/2003, you wrote: See them at: www.webappcore.com/fop I'd be happy to throw some other FO's on my server if anyone would like to provide some. Just make sure they run on the version of FOP I'm using (currently 2.0.5rc). Send them to [EMAIL PROTECTED] Enjoy! Darrel Jeremias Maerki wrote: I don't think the Apache XML FOP site generates the PDF for the examples, so I was thinking of giving the world a wonderful new gift, my first struts webapp that lets the masses see the fop examples in all their glory. ;) However, if there are already sites around that do this, I won't bother publishing it on my public server. Please do! That would be real nice! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Clay Leeds - Web Developer - [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Problem: Expanding tables and background colours
I have a table of fixed height which can contain a varying number of lines of data. I've set the background colour of some columns in order to highlight them. I need a way to make sure the highlighting of the columns continues all the way to the bottom of the table. Unless there is a line of data the background colour doesn't appear. I've currently written a template which counts the number of lines and then prints the correct number of blank lines out. This works to a point but fails as soon as the descriptions in the lines get too long, they then wrap over onto the next line, then when I print the blank lines out there are too many and the table expands. I've also tried to do the background colour in a seperate static- content via fo:block-container but it places the block of colour above the text not behind it! (z-index is not implemented yet!) So I need a way to stop the fo:table height=120mm from expanding, or print one extra blank line out at the end of the table which expands to fill the whole of the rest of the table and so show the background colour, or set a background block of colour which is behind the text or another solution? Any ideas? Thanks, Chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem: Expanding tables and background colours
Chris, I don't know if/how this'll help, but here's how I force EMPTY content to have at least a non-breaking space: xsl:call-template name=EMPTYCHECK xsl:with-param name=counter select=NODE/TO/SELECT/ /xsl:call-template xsl:template name=EMPTYCHECK !-- replaces empty element(s) with non-breaking space character - #160; -- xsl:param name=counter/ xsl:choose xsl:when test=$counter !='' fo:block xsl:value-of select=$counter/ /fo:block /xsl:when xsl:otherwise fo:block#160;/fo:block /xsl:otherwise /xsl:choose /xsl:template I also have one which does not place a BREAK: xsl:template name=EMPTYCHECKNOBREAK !-- replaces empty element(s) with non-breaking space character - #160; -- xsl:param name=counter/ xsl:choose xsl:when test=$counter !='' xsl:value-of select=$counter/ /xsl:when xsl:otherwise#160;/xsl:otherwise /xsl:choose /xsl:template Have you tried putting the content in the block (not block-container) and set the background-color of that block? Something like this: fo table-column/ fo table-body fo table-row fo table-cell fo block background-color:pink xsl:call-template name=EMPTYCHECK xsl:with-param name=counter select=NODE/TO/SELECT/ /xsl:call-template /fo block background-color=pink /fo table-cell /fo table-row /fo table-body I don't know how this'll handle the counting, but you might find a portion of this useful. Cheers, Web Maestro Clay At 08:42 AM 1/6/2003, you wrote: I have a table of fixed height which can contain a varying number of lines of data. I've set the background colour of some columns in order to highlight them. I need a way to make sure the highlighting of the columns continues all the way to the bottom of the table. Unless there is a line of data the background colour doesn't appear. I've currently written a template which counts the number of lines and then prints the correct number of blank lines out. This works to a point but fails as soon as the descriptions in the lines get too long, they then wrap over onto the next line, then when I print the blank lines out there are too many and the table expands. I've also tried to do the background colour in a seperate static- content via fo:block-container but it places the block of colour above the text not behind it! (z-index is not implemented yet!) So I need a way to stop the fo:table height=120mm from expanding, or print one extra blank line out at the end of the table which expands to fill the whole of the rest of the table and so show the background colour, or set a background block of colour which is behind the text or another solution? Any ideas? Thanks, Chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Clay Leeds - Web Developer - [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem: Expanding tables and background colours
Thanks for the quick response. I have a template which prints blank lines, the problem is knowing how many to print. If one line has a long description then it wraps over to the next line, so even though I'm printing just one text element I'm taking up two lines on the page. I could estimate by the number of characters how many lines a description text element would take but I was hoping for an exact method. Or I need a away to force the last row to stretch to the full height of the table so the background colour goes all the way to the bottom. Cheers, Chris - Original Message - from: Clay Leeds [EMAIL PROTECTED] date: Monday, January 6, 2003 4:57 pm subject: Re: Problem: Expanding tables and background colours Chris, I don't know if/how this'll help, but here's how I force EMPTY content to have at least a non-breaking space: xsl:call-template name=EMPTYCHECK xsl:with-param name=counter select=NODE/TO/SELECT/ /xsl:call-template xsl:template name=EMPTYCHECK !-- replaces empty element(s) with non-breaking space character - #160; -- xsl:param name=counter/ xsl:choose xsl:when test=$counter !='' fo:block xsl:value-of select=$counter/ /fo:block /xsl:when xsl:otherwise fo:block#160;/fo:block /xsl:otherwise /xsl:choose /xsl:template I also have one which does not place a BREAK: xsl:template name=EMPTYCHECKNOBREAK !-- replaces empty element(s) with non-breaking space character - #160; -- xsl:param name=counter/ xsl:choose xsl:when test=$counter !='' xsl:value-of select=$counter/ /xsl:when xsl:otherwise#160;/xsl:otherwise /xsl:choose /xsl:template Have you tried putting the content in the block (not block- container) and set the background-color of that block? Something like this: fo table-column/ fo table-body fo table-row fo table-cell fo block background-color:pink xsl:call-template name=EMPTYCHECK xsl:with-param name=counter select=NODE/TO/SELECT/ /xsl:call-template /fo block background-color=pink /fo table-cell /fo table-row /fo table-body I don't know how this'll handle the counting, but you might find a portion of this useful. Cheers, Web Maestro Clay At 08:42 AM 1/6/2003, you wrote: I have a table of fixed height which can contain a varying number of lines of data. I've set the background colour of some columns in orderto highlight them. I need a way to make sure the highlighting of the columns continues all the way to the bottom of the table. Unless there is a line of data the background colour doesn't appear. I've currently written a template which counts the number of lines and then prints the correct number of blank lines out. This works to a point but fails as soon as the descriptions in the lines get too long,they then wrap over onto the next line, then when I print the blank lines out there are too many and the table expands. I've also tried to do the background colour in a seperate static- content via fo:block-container but it places the block of colour above the text not behind it! (z-index is not implemented yet!) So I need a way to stop the fo:table height=120mm from expanding, or print one extra blank line out at the end of the table which expands to fill the whole of the rest of the table and so show the background colour, or set a background block of colour which is behind the text or another solution? Any ideas? Thanks, Chris -- --- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Clay Leeds - Web Developer - [EMAIL PROTECTED] --- -- 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: Problem: Expanding tables and background colours
Chris, I haven't used fo:leader too much, but I think it'll do what you require _horizontally_. Perhas you might find it'll work for you _vertically_ as well? Good luck! Web Maestro Clay At 09:48 AM 1/6/2003, you wrote: Thanks for the quick response. I have a template which prints blank lines, the problem is knowing how many to print. If one line has a long description then it wraps over to the next line, so even though I'm printing just one text element I'm taking up two lines on the page. I could estimate by the number of characters how many lines a description text element would take but I was hoping for an exact method. Or I need a away to force the last row to stretch to the full height of the table so the background colour goes all the way to the bottom. Cheers, Chris - Original Message - from: Clay Leeds [EMAIL PROTECTED] date: Monday, January 6, 2003 4:57 pm subject: Re: Problem: Expanding tables and background colours Chris, I don't know if/how this'll help, but here's how I force EMPTY content to have at least a non-breaking space: xsl:call-template name=EMPTYCHECK xsl:with-param name=counter select=NODE/TO/SELECT/ /xsl:call-template xsl:template name=EMPTYCHECK !-- replaces empty element(s) with non-breaking space character - #160; -- xsl:param name=counter/ xsl:choose xsl:when test=$counter !='' fo:block xsl:value-of select=$counter/ /fo:block /xsl:when xsl:otherwise fo:block#160;/fo:block /xsl:otherwise /xsl:choose /xsl:template I also have one which does not place a BREAK: xsl:template name=EMPTYCHECKNOBREAK !-- replaces empty element(s) with non-breaking space character - #160; -- xsl:param name=counter/ xsl:choose xsl:when test=$counter !='' xsl:value-of select=$counter/ /xsl:when xsl:otherwise#160;/xsl:otherwise /xsl:choose /xsl:template Have you tried putting the content in the block (not block- container) and set the background-color of that block? Something like this: fo table-column/ fo table-body fo table-row fo table-cell fo block background-color:pink xsl:call-template name=EMPTYCHECK xsl:with-param name=counter select=NODE/TO/SELECT/ /xsl:call-template /fo block background-color=pink /fo table-cell /fo table-row /fo table-body I don't know how this'll handle the counting, but you might find a portion of this useful. Cheers, Web Maestro Clay At 08:42 AM 1/6/2003, you wrote: I have a table of fixed height which can contain a varying number of lines of data. I've set the background colour of some columns in orderto highlight them. I need a way to make sure the highlighting of the columns continues all the way to the bottom of the table. Unless there is a line of data the background colour doesn't appear. I've currently written a template which counts the number of lines and then prints the correct number of blank lines out. This works to a point but fails as soon as the descriptions in the lines get too long,they then wrap over onto the next line, then when I print the blank lines out there are too many and the table expands. I've also tried to do the background colour in a seperate static- content via fo:block-container but it places the block of colour above the text not behind it! (z-index is not implemented yet!) So I need a way to stop the fo:table height=120mm from expanding, or print one extra blank line out at the end of the table which expands to fill the whole of the rest of the table and so show the background colour, or set a background block of colour which is behind the text or another solution? Any ideas? Thanks, Chris -- --- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Clay Leeds - Web Developer - [EMAIL PROTECTED] --- -- 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] - Clay Leeds - Web Developer - [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Fop examples up on web
I fixed giro.fo and fop version mistake. Going to fix a few other minor problems (image paths) before pushing to my public server, so those fixes won't show up until later today. Darrel Jeremias Maerki wrote: That's probably the master-name attribute on one of the page-sequence elements that should actually be a master-reference. That's fixed in CVS. But the FO Darrel uses still has this problem. Darrel, could you fix that? On 06.01.2003 13:24:40 Varley, Roger wrote: See them at: www.webappcore.com/fop giro.fo gives me the file is damaged and couldn't be repaired when viewing with IE5.5 and Acrobat 5.0. Everything else seems OK. Thanks for the effort. Jeremias Maerki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Fop examples up on web
Clay Leeds wrote: Thanks for putting this stuff up. It's a great reference. Would it be helpfulif someone put PDF versions of these files rendered in 0.20.4 (the current stable version)? Also, do you have a script which output these, or did you render them individually, one at a time? Hi Clay, Unless there is considerable public out-cry from the FOP community, I don't plan on moving back to 0.20.4. I thought 0.20.5rc was pretty stable, but I could be wrong. I'll upgrade to 0.20.5 as soon as its available. Here's how it works--when you pick an FO file, my struts action class checks to see if the PDF has been generated yet. If not, it passes it to FOP and generates it. If so, it serves up the existing PDF. So, as people hit all the examples, the website should get faster. :) BTW, forgive my nitpicky-ness (please!), but although you indicate 2.0.5rc the version of FOP you are running is probably 0.20.5rc (unless I missed a few versions :-). That will be fixed next time I push it, probably later today. Thanks for the comments. Darrel - Clay Leeds - Web Developer - [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Fop examples up on web
Darrel, At 10:49 AM 1/6/2003, you wrote: Here's how it works--when you pick an FO file, my struts action class checks to see if the PDF has been generated yet. If not, it passes it to FOP and generates it. If so, it serves up the existing PDF. So, as people hit all the examples, the website should get faster. :) Are you saying, that your web site generates these PDF files from FO files on the fly? That's bitchin/nifty/cool! The pic of the Tiger is pretty s-uh-weet too! Wow! I didn't really understand just how useful SVG was until I saw that. I figured it was useful for charts such. Thanks for this great resource. - Clay Leeds - Web Developer - [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Fop examples up on web
Clay Leeds wrote: Are you saying, that your web site generates these PDF files from FO files on the fly? That's bitchin/nifty/cool! The pic of the Tiger is pretty s-uh-weet too! Wow! I didn't really understand just how useful SVG was until I saw that. I figured it was useful for charts such. Thanks for this great resource. Thanks. Btw, the directory navigation is all dynamic too, so droping in a new example fo would be as easy as copying the fo to the directory structure. Thats why I'm more than willing to add other example fo's to the site if anyone has any. I'm planning on making all the src and scripts for this website available for an example of how to integrate FOP into webapps. But not for while, until I can clean it up and document it. Darrel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
blanks and TXTRenderer
Hi, i've problems with the layout using the txt-renderer. sometimes one blank comes to 3, sometimes to 10, sometimes to one. Sometimes empty lines were inserted. When i use the pdf or the awt renderer it works fine. has anybody an idea? alex -- +++ GMX - Mail, Messaging more http://www.gmx.net +++ NEU: Mit GMX ins Internet. Rund um die Uhr für 1 ct/ Min. surfen! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: blanks and TXTRenderer
alex elsholz wrote: i've problems with the layout using the txt-renderer. sometimes one blank comes to 3, sometimes to 10, sometimes to one. Sometimes empty lines were inserted. When i use the pdf or the awt renderer it works fine. has anybody an idea? See http://xml.apache.org/fop/output.html#N100FF. This is probably a fixable issue, but I doubt that it is high on anybody's priority list. Victor Mote - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Can FOP indent tables (say, with start-indent)?
On Monday 06 January 2003 12:02, Graham Hannington wrote: Can FOP indent tables? I don't think so. Two simple workarounds 1. Use an additional column (without borders) for indentation, for example for a 2 column table indented by 6pt fo:table layout=fixed fo:table-column comlumn-width=6pt fo:table-column comlumn-width=5cm fo:table-column comlumn-width=5cm fo:table-body fo:table-row fo:table-cell/ fo:table-cell border=../fo:table-cell fo:table-cell border=../fo:table-cell /fo:table-row 2. Put the table in another blind table with an additional column for indentation similar to the point above. Either approach has its merits. I'm using FOP 2.0.4. Really? J.Pietschmann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]