Little problems with absolute positioning
Hi, I had a very little problem creating a PDF from fo with a very intensive use of positioning=absolute. I put more than a block-container, each with a string, on on the same line (the same attribute top=...); if I declare a node BC2 before a node BC1 and BC1 should be on the left of BC2 (BC1.leftbc2.left) sometimes (not always) the two texts result overlapped at BC2 position. By the way, also with an intensive use of positioning=absolute with hundreds of texts and rectangles it woks very very fine! Thank you Roberto Calanca == RC Software di Roberto Calanca Consulenza informatica e Sviluppo Software Via della Vite, 7 41041 Casinalbo (Mo) e-mail [EMAIL PROTECTED] www.rc-software.it - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: block-containers and absolute positioning
De : J.Pietschmann [mailto:[EMAIL PROTECTED] David Neary wrote: fo:block-container font-size=20pt text-align-last=center fo:block left=0pt top=0pt width=20mm height=20mm position=absolute Specifying position on fo:block has no effect in FOP, it only works on fo:block-container. You have to use two containers: Thanks a lot - that works great, and has given bme a much better idea of what's happening. Dave Neary. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
block-containers and absolute positioning
Hi, I have a feeling this is probably very easy, but I have had some trouble doing it. I'm pretty hopeful that one of ye can point out the obvious mistake I'm making :) I'm using fop 0.20.4 on Win32. I would like to lay out a letterhead type thing which looks something like this... ++ || Name || Address 1 | Logo | Address 2 || Phone || Fax ++ I think that this should be a block container with two blocks in it - one containing the external-graphic and one containing the rest of the letterhead (I guess I could do it with a table too). Then the right-hand block would contain one block each for each of the different data items in the letterhead. So what I ended up with is fo:static-content flow-name=xsl-region-before fo:block-container font-size=20pt text-align-last=center fo:block left=0pt top=0pt width=20mm height=20mm position=absolute fo:external-graphic width=20mm height=20mm src=url(http://www.linux.ie/images/tux.gif)/ /fo:block fo:block left=20mm top=0pt width=180mm height=20mm position=absolute fo:blockTom Jones/fo:block fo:block17 Rugby Street/fo:block fo:blockCardiff CA12 14GC/fo:block /fo:block /fo:block-container /fo:static-content The only problem is it doesn't work :) Either I put the two blocks in a block, and I get classic block behaviour (logo first, then text beneath) or I put them in a block-container, and noting gets displayed. For information, in the page-master, the extent of the before is set to 4cm (for testing purposes). Can anyone help me lay out the header? Cheers, and thanks for the help, Dave. -- David Neary Phenix Engineering 110 ave Jean Jaures, 69007 Lyon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: block-containers and absolute positioning
David Neary wrote: I'm using fop 0.20.4 on Win32. I would like to lay out a letterhead type thing which looks something like this... ++ || Name || Address 1 | Logo | Address 2 || Phone || Fax ++ I think that this should be a block container with two blocks in it - one containing the external-graphic and one containing the rest of the letterhead (I guess I could do it with a table too). A table would indeed be the more recommended solution. fo:block-container font-size=20pt text-align-last=center fo:block left=0pt top=0pt width=20mm height=20mm position=absolute Specifying position on fo:block has no effect in FOP, it only works on fo:block-container. You have to use two containers: fo:static-content flow-name=xsl-region-before fo:block-container left=0pt top=0pt width=20mm height=20mm position=absolute font-size=20pt text-align-last=center fo:external-graphic width=20mm height=20mm src=url(http://www.linux.ie/images/tux.gif)/ /fo:block-container fo:block-container left=20mm top=0pt width=180mm height=20mm position=absolute font-size=20pt text-align-last=center fo:blockTom Jones/fo:block fo:block17 Rugby Street/fo:block fo:blockCardiff CA12 14GC/fo:block /fo:block-container /fo:static-content J.Pietschmann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Absolute positioning
Hi all, Firstly I want to apologise in advance for asking many questions. :) It has been some time since I used fop and fo (I think the last version i used was 0.17..) 1. Is there another way to use absolute positioning without using the fo:block-container tag. With the text I have I don't have any width/height variables available. It does work with the fo:block tag. 2. Is there a way to specify the orientation for each individual page. Lastly I would appreciate any online references regarding fo elements/attributes. Thanks in advance. Regards, Ricardo Coutinho Odyssey Group Software Engineer 52 Avenue de la gare Luxembourg Tel : +352 26 29 77 33 Email : [EMAIL PROTECTED] Internet : http://www.odyssey-group.com
Re: Absolute positioning
Hi Ricardo: Regarding references for FO elements and attributes. I guess you have already checked the W3C recommendation? The pdf version has an easy bookmark to a FO properties summary. If you check the xml cover pages site http://xml.coverpages.org/ there might be something else. I know theres a company selling quick references for xml,xsl, ecma script, etc. ($5 US each) but I can't remember the URL. Matthew - Original Message - From: Ricardo Coutinho [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, April 30, 2002 10:08 PM Subject: Absolute positioning Hi all, Firstly I want to apologise in advance for asking many questions. :) It has been some time since I used fop and fo (I think the last version i used was 0.17..) 1. Is there another way to use absolute positioning without using the fo:block-container tag. With the text I have I don't have any width/height variables available. It does work with the fo:block tag. 2. Is there a way to specify the orientation for each individual page. Lastly I would appreciate any online references regarding fo elements/attributes. Thanks in advance. Regards, Ricardo Coutinho Odyssey Group Software Engineer 52 Avenue de la gare Luxembourg Tel : +352 26 29 77 33 Email : [EMAIL PROTECTED] Internet : http://www.odyssey-group.com
Re: Absolute positioning
Ricardo Coutinho wrote: 1. Is there another way to use absolute positioning without using the fo:block-container tag. Not yet. 2. Is there a way to specify the orientation for each individual page. No yet. J.Pietschmann
RE: Absolute positioning?
Hello, I tried using the bottom attribute in a block-container with position=absolute but doesnt work like I wished. This snippet puts a red box at the top of the page, I expected it to come aligned with the bottom of the region-before which I defined with fo:region-before extent=113.51mm/ Any ideas ? Is this a FOP problem or is my FO wrong ? fo:static-content flow-name=xsl-region-before fo:block-container height=25mm width=190mm bottom=0mm left=0mm text-align=center position=absolute border=solid 1px red /fo:block-container /fo:static-content Dipl. Inform. Patrick Chaumette T-Systems ITS GmbH Service Prozesse Retail Hausanschrift: Fasanenweg 9, 70771 Leinfelden-Echterdingen Postanschrift: Postfach 100258, 70746 Leinfelden-Echterdingen Telefon: (0711)972-2437 Telefax: (0711)972-1949 E-Mail: [EMAIL PROTECTED] Internet: http://www.t-systems.de -Ursprüngliche Nachricht- Von: Chuck Paussa [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 16. April 2002 19:41 An: [EMAIL PROTECTED] Betreff: Re: Absolute positioning? Patrick, Sounds good to me. Try it and see if it works. (Then write to the list to tell us if it does.) The bottom attribute is definately part of the spec. Chuck
RE: Absolute positioning?
Hello Jerome, do you put the position attribute on a block-container or a block ? In fact I would like to be able to put a block in the bottom of a static xsl-region-before so that it glues with the start of the xsl-region-body. I thought of using a block-container with absolute-position=fixed bottom=0cm and thus get my block at the bottom of the xsl-region-before and fitting right above the beginning of the region-body. The body contains a table whose header should be tight to the bottom of a table in the region-before. Someone has a solution for this with FOP ? Thanks, greetings, Patrick Dipl. Inform. Patrick Chaumette T-Systems ITS GmbH Service Prozesse Retail Hausanschrift: Fasanenweg 9, 70771 Leinfelden-Echterdingen Postanschrift: Postfach 100258, 70746 Leinfelden-Echterdingen Telefon: (0711)972-2437 Telefax: (0711)972-1949 E-Mail: [EMAIL PROTECTED] Internet: http://www.t-systems.de -Ursprüngliche Nachricht- Von: Jerome Siour [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 16. April 2002 16:46 An: FO Cc: Esteban Gonzalez Betreff: RE: Absolute positioning? [INFO]: FOP 0.20.3 fo:block-container absolute-position=fixed top=240mm left=100mm FOP web site indicates that this attribute (absolute-position) is not supported (http://xml.apache.org/fop/implemented.html, but is the list up to date?) However, the position attribute seams to be allowed (for value fixed). May be should you try it... Hope this helps... Jerome.
Re: Absolute positioning?
Patrick, First. Don't cross post to the dev and user list! This is a user list question and the user list is a great resource for your answers. Don't annoy the developers. Next. Try this or something like it. fo:block-container height=8mm width=190mm top=0mm left=0mm text-align=center position=absolute border=solid 1px white Chuck Chaumette, Patrick wrote: Hello Jerome, do you put the position attribute on a block-container or a block ? In fact I would like to be able to put a block in the bottom of a static xsl-region-before so that it glues with the start of the xsl-region-body. I thought of using a block-container with absolute-position=fixed bottom=0cm and thus get my block at the bottom of the xsl-region-before and fitting right above the beginning of the region-body. The body contains a table whose header should be tight to the bottom of a table in the region-before. Someone has a solution for this with FOP ? Thanks, greetings, Patrick -Ursprüngliche Nachricht- Von: Jerome Siour [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 16. April 2002 16:46 Cc: Esteban Gonzalez Betreff: RE: Absolute positioning? [INFO]: FOP 0.20.3 fo:block-container absolute-position=fixed top=240mm left=100mm FOP web site indicates that this attribute (absolute-position) is not supported (http://xml.apache.org/fop/implemented.html, but is the list up to date?) However, the position attribute seams to be allowed (for value fixed). May be should you try it... Hope this helps... Jerome.
RE: Absolute positioning?
Hi Chuck, thanks for the information, I thought it was some FOP implementation specific problem so I posted it into dev. Will try to do better next time, sorry. I tried like below your tipp but did do nothing. It only shows the first Test on the top of the page. Doesnt bottom refer to the distance between the bottom of the xsl-region and the bottom of the block-container ? Any ideas ? Greetings, Patrick fo:static-content flow-name=xsl-region-before fo:block-container height=8mm width=190mm bottom=0mm left=0mm text-align=center position=absolute border=solid 1px white fo:block border=solid Test /fo:block fo:block border=solidTest2 /fo:block fo:block border=solidTest3 /fo:block /fo:block-container /fo:static-content Dipl. Inform. Patrick Chaumette T-Systems ITS GmbH Service Prozesse Retail Hausanschrift: Fasanenweg 9, 70771 Leinfelden-Echterdingen Postanschrift: Postfach 100258, 70746 Leinfelden-Echterdingen Telefon: (0711)972-2437 Telefax: (0711)972-1949 E-Mail: [EMAIL PROTECTED] Internet: http://www.t-systems.de -Ursprüngliche Nachricht- Von: Chuck Paussa [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 16. April 2002 18:11 An: [EMAIL PROTECTED] Betreff: Re: Absolute positioning? Patrick, First. Don't cross post to the dev and user list! This is a user list question and the user list is a great resource for your answers. Don't annoy the developers. Next. Try this or something like it. fo:block-container height=8mm width=190mm top=0mm left=0mm text-align=center position=absolute border=solid 1px white Chuck Chaumette, Patrick wrote: Hello Jerome, do you put the position attribute on a block-container or a block ? In fact I would like to be able to put a block in the bottom of a static xsl-region-before so that it glues with the start of the xsl-region-body. I thought of using a block-container with absolute-position=fixed bottom=0cm and thus get my block at the bottom of the xsl-region-before and fitting right above the beginning of the region-body. The body contains a table whose header should be tight to the bottom of a table in the region-before. Someone has a solution for this with FOP ? Thanks, greetings, Patrick -Ursprüngliche Nachricht- Von: Jerome Siour [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 16. April 2002 16:46 Cc: Esteban Gonzalez Betreff: RE: Absolute positioning? [INFO]: FOP 0.20.3 fo:block-container absolute-position=fixed top=240mm left=100mm FOP web site indicates that this attribute (absolute-position) is not supported (http://xml.apache.org/fop/implemented.html, but is the list up to date?) However, the position attribute seams to be allowed (for value fixed). May be should you try it... Hope this helps... Jerome.
Re: Absolute positioning?
Patrick, The block container size needs to be big enough to fit the contents. Any contents that don't fit in the height and width get cut off. Make the height 24mm. The border attribute needs all 3 components, solid 1px black I'm not sure if bottom is implemented. You can calculate the top by using (region-before-height - block-container-height) I haven't gotten to the position elements in my testing. Chuck Chaumette, Patrick wrote: Hi Chuck, I tried like below your tipp but did do nothing. It only shows the first Test on the top of the page. Doesnt bottom refer to the distance between the bottom of the xsl-region and the bottom of the block-container ? Any ideas ? Greetings, Patrick fo:static-content flow-name=xsl-region-before fo:block-container height=8mm width=190mm bottom=0mm left=0mm text-align=center position=absolute border=solid 1px white fo:block border=solid Test /fo:block fo:block border=solidTest2 /fo:block fo:block border=solidTest3 /fo:block /fo:block-container /fo:static-content Dipl. Inform. Patrick Chaumette T-Systems ITS GmbH -Ursprüngliche Nachricht- Von: Chuck Paussa [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 16. April 2002 18:11 An: [EMAIL PROTECTED] Betreff: Re: Absolute positioning? Patrick, Try this or something like it. fo:block-container height=8mm width=190mm top=0mm left=0mm text-align=center position=absolute border=solid 1px white Chuck Chaumette, Patrick wrote: Hello Jerome, do you put the position attribute on a block-container or a block ? In fact I would like to be able to put a block in the bottom of a static xsl-region-before so that it glues with the start of the xsl-region-body. I thought of using a block-container with absolute-position=fixed bottom=0cm and thus get my block at the bottom of the xsl-region-before and fitting right above the beginning of the region-body. The body contains a table whose header should be tight to the bottom of a table in the region-before. Someone has a solution for this with FOP ? Patrick -Ursprüngliche Nachricht- Von: Jerome Siour [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 16. April 2002 16:46 Cc: Esteban Gonzalez Betreff: RE: Absolute positioning? [INFO]: FOP 0.20.3 fo:block-container absolute-position=fixed top=240mm left=100mm FOP web site indicates that this attribute (absolute-position) is not supported (http://xml.apache.org/fop/implemented.html, but is the list up to date?) However, the position attribute seams to be allowed (for value fixed). May be should you try it... Hope this helps... Jerome.
RE: Absolute positioning?
Hi Chuck, sure I can set the top attribute, but then I will have to take care that the table in the block container will have to fit 100% with the start of the table of the xsl-region-body. I hoped with using bottom I was always sure to get the bottom of the last block element in xsl-region-before attached correctly to the first block of xsl-region-body. What do you think ? Dipl. Inform. Patrick Chaumette T-Systems ITS GmbH Service Prozesse Retail Hausanschrift: Fasanenweg 9, 70771 Leinfelden-Echterdingen Postanschrift: Postfach 100258, 70746 Leinfelden-Echterdingen Telefon: (0711)972-2437 Telefax: (0711)972-1949 E-Mail: [EMAIL PROTECTED] Internet: http://www.t-systems.de -Ursprüngliche Nachricht- Von: Chuck Paussa [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 16. April 2002 18:38 An: [EMAIL PROTECTED] Betreff: Re: Absolute positioning? Patrick, The block container size needs to be big enough to fit the contents. Any contents that don't fit in the height and width get cut off. Make the height 24mm. The border attribute needs all 3 components, solid 1px black I'm not sure if bottom is implemented. You can calculate the top by using (region-before-height - block-container-height) I haven't gotten to the position elements in my testing. Chuck Chaumette, Patrick wrote: Hi Chuck, I tried like below your tipp but did do nothing. It only shows the first Test on the top of the page. Doesnt bottom refer to the distance between the bottom of the xsl-region and the bottom of the block-container ? Any ideas ? Greetings, Patrick fo:static-content flow-name=xsl-region-before fo:block-container height=8mm width=190mm bottom=0mm left=0mm text-align=center position=absolute border=solid 1px white fo:block border=solid Test /fo:block fo:block border=solidTest2 /fo:block fo:block border=solidTest3 /fo:block /fo:block-container /fo:static-content Dipl. Inform. Patrick Chaumette T-Systems ITS GmbH -Ursprüngliche Nachricht- Von: Chuck Paussa [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 16. April 2002 18:11 An: [EMAIL PROTECTED] Betreff: Re: Absolute positioning? Patrick, Try this or something like it. fo:block-container height=8mm width=190mm top=0mm left=0mm text-align=center position=absolute border=solid 1px white Chuck Chaumette, Patrick wrote: Hello Jerome, do you put the position attribute on a block-container or a block ? In fact I would like to be able to put a block in the bottom of a static xsl-region-before so that it glues with the start of the xsl-region-body. I thought of using a block-container with absolute-position=fixed bottom=0cm and thus get my block at the bottom of the xsl-region-before and fitting right above the beginning of the region-body. The body contains a table whose header should be tight to the bottom of a table in the region-before. Someone has a solution for this with FOP ? Patrick -Ursprüngliche Nachricht- Von: Jerome Siour [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 16. April 2002 16:46 Cc: Esteban Gonzalez Betreff: RE: Absolute positioning? [INFO]: FOP 0.20.3 fo:block-container absolute-position=fixed top=240mm left=100mm FOP web site indicates that this attribute (absolute-position) is not supported (http://xml.apache.org/fop/implemented.html, but is the list up to date?) However, the position attribute seams to be allowed (for value fixed). May be should you try it... Hope this helps... Jerome.
Re: Absolute positioning?
Patrick, Sounds good to me. Try it and see if it works. (Then write to the list to tell us if it does.) The bottom attribute is definately part of the spec. Chuck Chaumette, Patrick wrote: Hi Chuck, sure I can set the top attribute, but then I will have to take care that the table in the block container will have to fit 100% with the start of the table of the xsl-region-body. I hoped with using bottom I was always sure to get the bottom of the last block element in xsl-region-before attached correctly to the first block of xsl-region-body. What do you think ? -Ursprüngliche Nachricht- Von: Chuck Paussa [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 16. April 2002 18:38 An: [EMAIL PROTECTED] Betreff: Re: Absolute positioning? Patrick, The block container size needs to be big enough to fit the contents. Any contents that don't fit in the height and width get cut off. Make the height 24mm. The border attribute needs all 3 components, solid 1px black I'm not sure if bottom is implemented. You can calculate the top by using (region-before-height - block-container-height) I haven't gotten to the position elements in my testing. Chuck Chaumette, Patrick wrote: Hi Chuck, I tried like below your tipp but did do nothing. It only shows the first Test on the top of the page. Doesnt bottom refer to the distance between the bottom of the xsl-region and the bottom of the block-container ? Any ideas ? Greetings, Patrick fo:static-content flow-name=xsl-region-before fo:block-container height=8mm width=190mm bottom=0mm left=0mm text-align=center position=absolute border=solid 1px white fo:block border=solid Test /fo:block fo:block border=solidTest2 /fo:block fo:block border=solidTest3 /fo:block /fo:block-container /fo:static-content Dipl. Inform. Patrick Chaumette T-Systems ITS GmbH -Ursprüngliche Nachricht- Von: Chuck Paussa [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 16. April 2002 18:11 An: [EMAIL PROTECTED] Betreff: Re: Absolute positioning? Patrick, Try this or something like it. fo:block-container height=8mm width=190mm top=0mm left=0mm text-align=center position=absolute border=solid 1px white Chuck Chaumette, Patrick wrote: Hello Jerome, do you put the position attribute on a block-container or a block ? In fact I would like to be able to put a block in the bottom of a static xsl-region-before so that it glues with the start of the xsl-region-body. I thought of using a block-container with absolute-position=fixed bottom=0cm and thus get my block at the bottom of the xsl-region-before and fitting right above the beginning of the region-body. The body contains a table whose header should be tight to the bottom of a table in the region-before. Someone has a solution for this with FOP ? Patrick -Ursprüngliche Nachricht- Von: Jerome Siour [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 16. April 2002 16:46 Cc: Esteban Gonzalez Betreff: RE: Absolute positioning? [INFO]: FOP 0.20.3 fo:block-container absolute-position=fixed top=240mm left=100mm FOP web site indicates that this attribute (absolute-position) is not supported (http://xml.apache.org/fop/implemented.html, but is the list up to date?) However, the position attribute seams to be allowed (for value fixed). May be should you try it... Hope this helps... Jerome.