Re[2]: replacement for linefeed-treatment
Hi J.Pietschmann, JP Ingo Bruell wrote: Hi, which tag or function i should use instead of linefeed-treatment. Because it is not implemented yet and the text i printout should be formatted as is JP http://marc.theaimsgroup.com/?l=fop-devm=101914568126394w=2 I have tried that, the linefeeds are preserved but the text is reformatted and aligned to one site. Is there a way to leave things as they are ? so long Ingo Bruell --- [EMAIL PROTECTED] [EMAIL PROTECTED] ICQ# 40377720 OldenburgPGP-Fingerprint: CB01 AE12 B359 87C4 BF1C 953C 8FE7 C648 169E E5FC Germany PGP-Public-Key available at pgpkeys.mit.edu
FOP 0.20.3 - master reference issue
Hi all I've updated my version of FOP to 0.20.3 (from Fop 0.20.1) and immediately got an issue with an existing .fo which was working nicely for a while there. The error I'm getting when kicking FOP into gear is: [INFO]: FOP 0.20.3 [INFO]: building formatting object tree [ERROR]: 'master-reference' for 'fo:page-sequence' matches no 'simple-page-master' or 'page-sequence-master' I take this to mean that either a reference name in my .fo is wrong or missing but the relevant bit of the .fo looks like this: ?xml version=1.0 encoding=UTF-8? fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format; fo:layout-master-set fo:simple-page-master master-name=main margin-right=1cm margin-left=1cm margin-bottom=1.5cm margin-top=1cm page-width=21cm page-height=29.7cm fo:region-before extent=3cm/ fo:region-after extent=2.5cm/ fo:region-body margin-top=4cm margin-bottom=3.5cm margin-left=0cm margin-right=0cm/ /fo:simple-page-master /fo:layout-master-set fo:page-sequence master-name=main fo:static-content flow-name=xsl-region-before fo:table Am I missing something obvious here or has FOP changed the way it works in some subtle way? Thanks Josh ZYPE - Graphical Interface Design Phone: 03 963 3735 Mobile: 021 400 472 Web: www.zype.co.nz
multiple page table
I have a table that spans several pages in my document. I want to have the table header repeated on every page that the table spans. How is it done? Harald
Re: Multi columns for a text
Thank you very much for your response, I understood and succeeded with multi-column body region, but it didn't fit my needs. In fact I need multi column in block containers or tables, because i need two columns on the left and a third one completly independant in the right in a page and i need a two columns area and a third columns area in the same page. Do you have simple examples or urls to manage multi columns in block-containers or tables ? Thank you for your help Xavier J.Pietschmann wrote: Xavier DAMAY wrote: I want to generate dynamically a multicolumn area for a press-like Pdf. Does a solution exist ? I tried fo:block and i'm not confortable with tables. I will appriciate any help, You can create a multi-column body region by specifying the column-count property: http://www.w3.org/TR/xsl/slice6.html#fo_region-body You can have only one multi-column-area. There is a possibility to put a span=all for blocks which you want to have to span all columns (mainly intended for headlines). This would give you a layout as in a multi-column book. If you want to have a complex newspaper-like layout, with a grid with various possibly multi-column articles, you have to do it manually, either by using a blind table for the grid, or by using block-containers on absolute positions. J.Pietschmann
Re: multiple page table
I have a table that spans several pages in my document. I want to have the table header repeated on every page that the table spans. How is it done? Use a fo:table-header. http://www.w3.org/TR/xsl/slice6.html#fo_table-header Ralf
Re: FOP 0.20.3 - master reference issue
Hi, can somebody provide the structure for a simple alternating page layout (odd/even)? My previous working example broke with 0.20.3, could be halfway fixed, but doesn't alternate anymore, because I am only able to reference simple-page-master's in page-sequence, and not page-sequence-master's, which do the alternating stuff, anymore. markus -Ursprüngliche Nachricht- Von: Peter B. West [EMAIL PROTECTED] An: [EMAIL PROTECTED] [EMAIL PROTECTED] Datum: Mittwoch, 24. April 2002 06:23 Betreff: Re: FOP 0.20.3 - master reference issue Josh, There was a change in the spec. Page-masters (like simple-page-master) have a master-name. Things that refer to page-masters (like page-sequence) now have a master-reference instead of a master-name. You will have to change your fo:s and whatever is generating them to conform. Peter Josh wrote: [ERROR]: 'master-reference' for 'fo:page-sequence' matches no 'simple-page-master' or 'page-sequence-master'
Re: page count
I put this in my xsl:region-after fo:block font-size=9pt line-height=11pt text-align=end Page no: fo:page-number/ of fo:page-number-citation ref-id = lastBlock/ /fo:block where the last block in the document looks like this fo:block id = lastBlock/ Hope this helps Ian At 12:54 PM 4/24/2002 +0200, you wrote: Hello, I want to write something like page x of y where y is the number of pages in my document. x is generated by fo:page-number/ but how do I get y?? Harald
Border after fo:table-row
Hi, I want to add a border after each fo:table-row in my fo:table. Is this possible? /Emma
Re: Border after fo:table-row
You want to specify these attributes for the fo:table-cell element: border-start-style=solid border-start-color=black border-start-width=1pt border-top-style=solid border-top-color=black border-top-width=1pt border-end-style=solid border-end-width=1pt border-end-color=black border-bottom-style=solid border-bottom-width=1pt border-bottom-color=black This will give your cell a 1-point thick, black border. By setting only the border-bottom-style/width/color for a cell you would achieve a border-like thing. hth/// Magnus Emma Larsson wrote: Hi, I want to add a border after each fo:table-row in my fo:table. Is this possible? /Emma -- Secode - Total Internet Security Magnus Sjöberg Research And Development email: [EMAIL PROTECTED] cell: +46 709 150 710 POTS: +46 8 564 875 05 http://www.secode.com Internet is to be a safe area for business, transactions and information exchange
Re: Border after fo:table-row
Ok.. But then I have to set these attributes for each cell in each row? There is now way to set the border on the entire row at once? /Emma - Original Message - From: Magnus Sjöberg [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, April 24, 2002 2:50 PM Subject: Re: Border after fo:table-row You want to specify these attributes for the fo:table-cell element: border-start-style=solid border-start-color=black border-start-width=1pt border-top-style=solid border-top-color=black border-top-width=1pt border-end-style=solid border-end-width=1pt border-end-color=black border-bottom-style=solid border-bottom-width=1pt border-bottom-color=black This will give your cell a 1-point thick, black border. By setting only the border-bottom-style/width/color for a cell you would achieve a border-like thing. hth/// Magnus Emma Larsson wrote: Hi, I want to add a border after each fo:table-row in my fo:table. Is this possible? /Emma -- Secode - Total Internet Security Magnus Sjöberg Research And Development email: [EMAIL PROTECTED] cell: +46 709 150 710 POTS: +46 8 564 875 05 http://www.secode.com Internet is to be a safe area for business, transactions and information exchange
Re: Border after fo:table-row
Emma Larsson wrote: I want to add a border after each fo:table-row in my fo:table. Is this possible? The proper attribute is border-bottom, but AFAIK the border atribute for table-row is not implemented yet so you must use border-bottom=... for each cell in row. But may be I am wrong, I worked with this some 5 months ago so it may work now. Regards, J.Ch. -- Ing. Jozef Chocholacek Qbizm Technologies, Inc. Chief Project Analyst ... the art of internet. Kralovopolska 139 tel: +420 5 4124 2414 601 12 Brno, CZ http://www.qbizm.com fax: +420 5 4121 2696
FOP 0.20.3 - master reference issue
Hi, example given, should result in an alternating odd/even layout by referencing the page-sequence-master with the master-reference=basic but fo:page-sequence master-reference=basic will show: [INFO]: FOP 0.20.3 [INFO]: building formatting object tree [ERROR]: 'master-reference' for 'fo:page-sequence'matches no 'simple-page-master ' or 'page-sequence-master' ?xml version=1.0 encoding=ISO-8859-1? xsl:stylesheet xmlns:xsl=http://www.w3.org/1999/XSL/Transform; xmlns:fo=http://www.w3.org/1999/XSL/Format; version=1.0 xsl:template match=/ fo:root fo:layout-master-set fo:simple-page-master master-name=even page-height=29.7cm page-width=21cm margin-top=1cm margin-bottom=1cm margin-left=3cmmargin-right=2cm fo:region-body margin-top=1cm margin-bottom=2cm/ fo:region-before extent=1cm/ fo:region-after extent=1.5cm/ /fo:simple-page-master fo:simple-page-master master-name=odd page-height=29.7cm page-width=21cm margin-top=1cm margin-bottom=1cm margin-left=2cmmargin-right=3cm fo:region-body margin-top=1cm margin-bottom=2cm/ fo:region-before extent=1cm/ fo:region-after extent=1.5cm/ /fo:simple-page-master fo:page-sequence-master master-reference=basic fo:repeatable-page-master-alternatives fo:conditional-page-master-reference master-name=even odd-or-even=even/ fo:conditional-page-master-reference master-name=odd odd-or-even=odd/ fo:conditional-page-master-reference master-name=odd/ /fo:repeatable-page-master-alternatives /fo:page-sequence-master /fo:layout-master-set xsl:apply-templates select=java2cert/ !-- my XML-root Element -- /fo:root /xsl:template xsl:template match=java2cert fo:page-sequence initial-page-number=1 master-reference=even !-- I'd like to reference basic here, to achieve alternating page-masters in 0.20.2 OK, probably because I didn't need to set 'master-reference', [ERROR] happens if you change to: master-reference=basic -- fo:flow flow-name=xsl-region-body xsl:apply-templates select=chapter/ /fo:flow /fo:page-sequence /xsl:template Thanks for your attention markus
Re: FOP 0.20.3 - master reference issue
Markus, Could it be that you haven't completely fixed the master-name/master-reference issues? simple-page-master master-name page-sequence-master master-name simple-page-master-reference master-reference repeatable-page-master-reference master-reference conditional-page-master-reference master-reference Peter Markus Wiese wrote: Hi, can somebody provide the structure for a simple alternating page layout (odd/even)? My previous working example broke with 0.20.3, could be halfway fixed, but doesn't alternate anymore, because I am only able to reference simple-page-master's in page-sequence, and not page-sequence-master's, which do the alternating stuff, anymore.
XML Schema and XSLT design tools
Any of you folks know of good tools to do XML Schema design and XSLT development? -sb
TIFF output format
Hello Everybody, for my application I created output from FOP to multipage TIFF images. I have a need in this format to fax documents, created by FOP. I think FOP developers can be interested in possibility to add to existing output formats the formats supported by Java Advanced Imaging (JAI) - BMP, JPEG, PNG, PNM and TIFF. TIFF is widely used for faxing, in image-processing systems. Other image formats can be useful to create read-only copy of the document, show FOP output in standard browsers. If FOP developers are not interested, my experience at least will be useful for some FOP users. Number of image processing can be reduced if AWTRenderer will allow to specify image type for the output images. When using image type BufferedImage.TYPE_BYTE_GRAY you don't need to convert image to gray. When using image type BufferedImage.TYPE_BYTE_BINARY there is also no need in binarization. Note, this type can't be used with current version of JAI, because it crashes on inverting big images of this type. This bug is already reported to the JAI developers and I hope will be fixed in future releases. The double invert operation on the image is a workaround of problems with photometric interpretation in TIFF images. The code is released under the same license as FOP itself. It works well for me, but I do not give any guarantees about its usefulness. I used JAI 1.1.1, FOP 20.3. The images were generated for faxing by RightFax 7.2 fax server with using their Java API. Regards, Andriy Palamarchuk fo2image.tar.gz Description: GNU Zip compressed data
RE: How to use vertical-align=middle in a table
Did you try display-align? Brian -Original Message- From: David Calles [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 24, 2002 10:12 AM To: [EMAIL PROTECTED] Subject: How to use vertical-align=middle in a table Hi, I have a table and with FOP, I try to make a vertical alignement of the text Although the sintaxis is accepted by FOP, the text is not vertically centerd on the cell. I have tried to put the vertical-align=iddle in the fo:table, in the fo:table-row and in the fo:table-cell and it is always the same. I don't specify the height of the cell, and it is dinamically adjusted because of the length of the text. Is that an inconvenient to center the text ? Thank you a lot.
RE: How to use vertical-align=middle in a table
Hi David, as of FOP release 0.20 I experienced many of the fo:table* attributes not to work as before. My usual workaround for a task like the mentioned is to place fo:blocks within the fo:table-cells and apply the formatting to the block. Con: more code. Pro: table structures have a somewhat clearer appearance. Have fun [ofi] -Original Message- From: David Calles [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 24, 2002 4:12 PM To: [EMAIL PROTECTED] Subject: How to use vertical-align=middle in a table Hi, I have a table and with FOP, I try to make a vertical alignement of the text Although the sintaxis is accepted by FOP, the text is not vertically centerd on the cell. I have tried to put the vertical-align=middle in the fo:table, in the fo:table-row and in the fo:table-cell and it is always the same. I don't specify the height of the cell, and it is dinamically adjusted because of the length of the text. Is that an inconvenient to center the text ? Thank you a lot.
Multi-page marker
Hi, I would like to use a marker that can be retrieved from a different page, ie till I don't get a new title I want the same title rendered in the footer part. So I used marker and retrieve marker but I get a NPE If I put retrieve-boundary="page", it works on the first page but on the second page I don't get anything... Pierre-Yves. xsl: fo:page-sequence master-reference="all" format="1" initial-page-number="1"!-- zone d'en-tête --fo:static-content flow-name="xsl-region-before"fo:block text-align="center" font-size="30pt" font-family="serif" font-weight="bold"Ordre Client/fo:block/fo:static-content!-- zone de bas de page--fo:static-content flow-name="xsl-region-after"fo:block text-align="start" font-size="10pt" font-family="serif" line-height="1em + 2pt" Title of the book : fo:retrieve-marker retrieve-class-name="title" retrieve-boundary="page-sequence"/ /fo:block/fo:static-contentfo:flow flow-name="xsl-region-body"xsl:for-each select="book"fo:block break-before="page"xsl:apply-templates select="."//fo:block/xsl:for-each/fo:flow/fo:page-sequence/fo:root/xsl:templatexsl:template match="book"fo:marker marker-class-name="title"xsl:value-of select="title"//fo:markerfo:list-block provisional-distance-between-starts="47mm" provisional-label-separation="4mmfo:list-item space-after="2mm"fo:list-item-labelfo:blockTitle : /fo:block/fo:list-item-labelfo:list-item-body start-indent="body-start()" end-indent="5mm"fo:blockxsl:value-of select="title"//fo:block/fo:list-item-body/fo:list-item/fo:list-blockfo:block break-before="page" font-weight="bold" font-size="16pt" border-after-style="solid" border-after-color="blue" border-after-width="2pt" space-after="3mm"C'est un beau livre mais dont on ne sait pas la fin/fo:block Exception : - javax.xml.transform.TransformerException at org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.java:1212) at org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:2894) at java.lang.Thread.run(Unknown Source)-java.lang.NullPointerException at org.apache.fop.fo.flow.RetrieveMarker.searchPage(RetrieveMarker.java:89) at org.apache.fop.fo.flow.RetrieveMarker.layout(RetrieveMarker.java:70) at org.apache.fop.fo.flow.Block.layout(Block.java:262) at org.apache.fop.fo.flow.StaticContent.layout(StaticContent.java:79) at org.apache.fop.fo.pagination.PageSequence.layoutStaticContent(PageSequence.java:415) at org.apache.fop.fo.pagination.PageSequence.formatStaticContent(PageSequence.java:377) at org.apache.fop.fo.pagination.PageSequence.format(PageSequence.java:304) at org.apache.fop.apps.StreamRenderer.render(StreamRenderer.java:200) at org.apache.fop.fo.FOTreeBuilder.endElement(FOTreeBuilder.java:182) at org.apache.xalan.transformer.ResultTreeHandler.endElement(ResultTreeHandler.java:284) at org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:749) at org.apache.xalan.templates.ElemForEach.transformSelectedNodes(ElemForEach.java:495) at org.apache.xalan.templates.ElemApplyTemplates.execute(ElemApplyTemplates.java:193) at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2154) at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2097) at org.apache.xalan.transformer.TransformerImpl.applyTemplateToNode(TransformerImpl.java:2029) at org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.java:1189) at org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:2894) at java.lang.Thread.run(Unknown Source)
Re: XML Schema and XSLT design tools
Buonincontri, Steve (CAP, MMF, ITSS) wrote: Any of you folks know of good tools to do XML Schema design and XSLT development? xml spy (xmlspy.com) is not bad tool. anti-offtopicIt even works with fop/anti-offtopic. -- Oleg Tkachenko Multiconn International, Israel
How to prevent external-graphic resize itself.
Hi, When I try to put an image in a cell of a table, and I don't specify any dimensions (width= and height=), because I don't know them, the image gets the maximum space it can in the cell. Is it exists any parameter to use with external-graphic to format images with the original size? Thank you a lot.
printout text as is
Hi, i am using docbook to generate a book and have the problem that my programlistings (examples) will not look as i have entered. Docbook generates the following fo's: --- snip --- fo:block space-before.minimum=0.8em space-before.optimum=1em space-before.maximum=1.2em font-family=Courier font-size=10.8pt wrap-option=no-wrap white-space-collapse=false linefeed-treatment=preserve lt;[EMAIL PROTECTED] uri=/WEB-INF/struts-bean.tld prefix=bean %gt; lt;[EMAIL PROTECTED] uri=/WEB-INF/struts-layout.tld prefix=layout %gt; lt;layout:form align=center action=/account.do reqCode=create styleClass=FORMgt; lt;layout:text key=account.username property=userName styleClass=LABEL/gt; lt;layout:password key=account.password property=password styleClass=LABEL/gt; lt;layout:text key=account.username property=firstName styleClass=LABEL/gt; lt;layout:text key=account.username property=lastName styleClass=LABEL/gt; lt;layout:text key=account.username property=matriculation styleClass=LABEL/gt; lt;layout:text key=account.username property=email styleClass=LABEL/gt; lt;layout:formActionsgt; lt;layout:submitgt; lt;bean:message key=button.edit/gt; lt;/layout:submitgt; lt;layout:resetgt; lt;bean:message key=button.reset/gt; lt;/layout:resetgt; lt;layout:cancelgt; lt;bean:message key=button.cancel/gt; lt;/layout:cancelgt; lt;/layout:formActionsgt; lt;/layout:formgt; /fo:block --- snap --- Most of the text is aligned right, sometimes one word is aligned left and the rest of the line is aligned right. Is there somethinh i could do ? so long Ingo Bruell --- [EMAIL PROTECTED] [EMAIL PROTECTED] ICQ# 40377720 OldenburgPGP-Fingerprint: CB01 AE12 B359 87C4 BF1C 953C 8FE7 C648 169E E5FC Germany PGP-Public-Key available at pgpkeys.mit.edu
Re: printout text as is
Hi Ingo, I remember having changed the value of the alignment parameter in the param.xsl file to the value left. Thus the alignment parameter im my file is now: xsl:param name=alignmentleft/xsl:param This changes the default alignment to left and should solve your problem. This is not a FOP issue ;-) Regards, Devendra - Original Message - From: Ingo Bruell [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, April 24, 2002 2:45 PM Subject: printout text as is Hi, i am using docbook to generate a book and have the problem that my programlistings (examples) will not look as i have entered. Docbook generates the following fo's: --- snip --- fo:block space-before.minimum=0.8em space-before.optimum=1em space-before.maximum=1.2em font-family=Courier font-size=10.8pt wrap-option=no-wrap white-space-collapse=false linefeed-treatment=preserve lt;[EMAIL PROTECTED] uri=/WEB-INF/struts-bean.tld prefix=bean %gt; lt;[EMAIL PROTECTED] uri=/WEB-INF/struts-layout.tld prefix=layout %gt; lt;layout:form align=center action=/account.do reqCode=create styleClass=FORMgt; lt;layout:text key=account.username property=userName styleClass=LABEL/gt; lt;layout:password key=account.password property=password styleClass=LABEL/gt; lt;layout:text key=account.username property=firstName styleClass=LABEL/gt; lt;layout:text key=account.username property=lastName styleClass=LABEL/gt; lt;layout:text key=account.username property=matriculation styleClass=LABEL/gt; lt;layout:text key=account.username property=email styleClass=LABEL/gt; lt;layout:formActionsgt; lt;layout:submitgt; lt;bean:message key=button.edit/gt; lt;/layout:submitgt; lt;layout:resetgt; lt;bean:message key=button.reset/gt; lt;/layout:resetgt; lt;layout:cancelgt; lt;bean:message key=button.cancel/gt; lt;/layout:cancelgt; lt;/layout:formActionsgt; lt;/layout:formgt; /fo:block --- snap --- Most of the text is aligned right, sometimes one word is aligned left and the rest of the line is aligned right. Is there somethinh i could do ? so long Ingo Bruell --- [EMAIL PROTECTED] [EMAIL PROTECTED] ICQ# 40377720 OldenburgPGP-Fingerprint: CB01 AE12 B359 87C4 BF1C 953C 8FE7 C648 169E E5FC Germany PGP-Public-Key available at pgpkeys.mit.edu
rendering xml escape characters in svg
Is there a way to get xml escaped characters to render in svg's? All my xml escapes of foreign language chars in svg's render as literal question marks. (The same escapes render fine when in xsl:fo). help ... -- Eric Smith
Adding Fonts to userconfig...
I'm attempting to add a font to my userconfig.xml file. I'm using fop version 0.20.1. I've followed the directions at apache for adding fonts - http://xml.apache.org/fop/fonts.html I'm using VisualAge for Java running in the Websphere test environment on windows 2000. In my Java I've specified the option of the userconfig file with the API: //Set the User Config File which includes the company font File userConfigFile = new File(C: \\Fop-0.20.1\\conf\\userconfig.xml); //temp hardcode Options options = new Options(userConfigFile); When I don't specify a path to where my metrics and ttf file are located I get the following error: reading user configuration file building formatting object tree setting up fonts [1Failed to read font metrics file complogoTTF.xml : File file:///C:/IBMVJava353/ide/tools/com-ibm-ivj-ui-webcontrolcenter/complogoTTF.xml not found. [2java.lang.RuntimeException: java.lang.NullPointerException So I placed my metrics file and ttf file in the C:/IBMVJava353/ide/tools/com-ibm-ivj-ui-webcontrolcenter folder and everything works like it should. Here is the userconfig.xml file I used: configuration fonts font metrics-file=complogoTTF.xml kerning=yes embed-file= complogo.ttf font-triplet name=Complogo style=normal weight=normal / font-triplet name=ComplogoMT style=normal weight=normal / /font /fonts /configuration BUT - Obviously I'd like to have more control where I put my font and metric files so I've attempted numerous ways of specifying a specific path to locate these files and every combination I've tried has failed. Here is an example I've tried and the error I get when I run it: configuration fonts font metrics-file=C:\Fop-0.20.1\conf\complogoTTF.xml kerning=yes embed-file=C:\Fop-0.20.1\conf\complogo.ttf font-triplet name=Complogo style=normal weight=normal / font-triplet name=ComplogoMT style=normal weight=normal / /font /fonts /configuration reading user configuration file building formatting object tree setting up fonts [1Failed to read font metrics file C:\Fop-0.20.1\conf\complogoTTF.xml : File C:\Fop-0.20.1\conf\complogoTTF.xml not found. [2java.lang.RuntimeException: java.lang.NullPointerException I've checked and rechecked and had others check and recheck that there are no spelling mistakes in this path. I've pasted it into a command line and the file opens up - i.e. the path is correct. I've tried every combination of forward and back slashes I could think of. I'm sure I've missed a few - at least the one that works :). Any Suggestions? Or, do I simply have to accept that FOP will determine where these files are located on my server? Any help would be greatly appreciated! Shawn Lindstrom
Re: Multi columns for a text
Xavier DAMAY wrote: I understood and succeeded with multi-column body region, but it didn't fit my needs. In fact I need multi column in block containers or tables, because i need two columns on the left and a third one completly independant in the right in a page and i need a two columns area and a third columns area in the same page. As far as i have understood the spec, you can't define an arbitrary area and have multi-column flowing text in it in XSLFO. Study it yourself, maybe i've overlooked something. Do you have simple examples or urls to manage multi columns in block-containers or tables ? If you mean text flowing automatically from column to column, there aren't any. Block containers can't have multiple columns for itself. The purpose of block containers is mainly changing block progression direction, for example having text flow from bottom to top in an otherwise top-to bottom text, although they are also often used simply to group blocks for positioning and similar tasks. In tables, you can have multiple columns, but you have to distribute the text across columns by yourself, it won't flow automatically, and there are no mechanisms to make balanced columns easily. You can try to produce balanced columns at the XSLT level. J.Pietschmann
Re: replacement for linefeed-treatment
Ingo Bruell wrote: JP http://marc.theaimsgroup.com/?l=fop-devm=101914568126394w=2 I have tried that, the linefeeds are preserved but the text is reformatted and aligned to one site. Is there a way to leave things as they are ? Setting white-space-collapse to false works for me. Did you use a monospaced font, such as Courier? In a proportional font, spaces do not have the same width as most characters, and characters may have varying width. If this still doesn't work, post a trimmed down FO snippet which demonstrates the problem. J.Pietschmann
Re: Multi-page marker
Pierre-Yves Chauveau wrote: I would like to use a marker that can be retrieved from a different page, ie till I don't get a new title I want the same title rendered in the footer part. So I used marker and retrieve marker but I get a NPE The current implementation can only get markers from the same page. It's noted somewhere in the documentation distributed with FOP. It will take some time to get the full spec implemented. J.Pietschmann
Re: AW: Font-Smoothing of embedded SVG in fop
Sam Prokop wrote: Thanx, it works, but i get the following Error: [ERROR]: unknown font dialog,italic,bold so defaulted font on any I have no trouble with sans-serif fonts. Does it work if you switch off bold and italics? (by the way i tried font-family:helvetica, too) Try Helvetica (capital H). Details matter, sometimes :-) J.Pietschmann
Re: Border after fo:table-row
Emma Larsson wrote: Ok.. But then I have to set these attributes for each cell in each row? There is now way to set the border on the entire row at once? Yes, setting border properties on a row is not implemented, one reason being a pending clarification of the spec. You have to set the border attributes on each cell, and shift any margins and padding cells might have to the blocks within the cells. J.Pietschmann
Re: Adding Fonts to userconfig...
[EMAIL PROTECTED] wrote: I'm attempting to add a font to my userconfig.xml file. I'm using fop version 0.20.1. Unless you have reasons to stay with 0.20.1, you should upgrade to 0.20.3. BUT - Obviously I'd like to have more control where I put my font and metric files so I've attempted numerous ways of specifying a specific path to locate these files and every combination I've tried has failed. You can set the baseDir in the userconfig: entry keybaseDir/key valueC:\Fop-0.20.1\conf\/value /entry configuration fonts font metrics-file=C:\Fop-0.20.1\conf\complogoTTF.xml kerning=yes The value for the metrics-file attribute should be an URL, try font metrics-file=file:///C:/Fop-0.20.1/conf/complogoTTF.xml kerning=yes HTH J.Pietschmann
Re: rendering xml escape characters in svg
Eric Smith wrote: Is there a way to get xml escaped characters to render in svg's? All my xml escapes of foreign language chars in svg's render as literal question marks. (The same escapes render fine when in xsl:fo). I suppose you mean character references, like #x2022;. You can try to select a font which has glyphs for the characters in question. Standard fonts usually don't have glyphs for what are probably foreign characters to you (there will be people for which they aren't foreign). AFAIK Batik, which is used in FOP for rendering SVG, uses Java fonts for rendering, check with the Batik people for how to check for and install the fonts you want. It may be possible to use FOP fonts by setting strokeSVGText to false, see http://marc.theaimsgroup.com/?l=fop-devm=100525746417127w=2 J.Pietschmann
RE: Spaces and precedence
-Original Message- From: J.Pietschmann [mailto:[EMAIL PROTECTED] Sent: April 24, 2002 5:17 PM To: [EMAIL PROTECTED] Subject: Re: Spaces and precedence Ralf Steppacher wrote: I have a short question about spaces and precedences: What I want is to suppress additional space if one headline directly follows another. To achieve this I wrote the template with FOs below but it does not work (I played a bit with attributes and values and could not find any other working solution using precendences). Could anybody please tell me whether my FO is wrong or this is a limitation of FOP? After having read the spec several times, i got the impression that space-*.precedence is for prioritizing space reservations coming from stuff from the same area. Roughly: fo:block space-before=10pt precedence=1 fo:block space-before=5pt precedence=2 stuff ... will put stuff 5pt after preceding content. This means, precedence can't be used to collapse space-after and space-before of consecutive blocks. Assuming Western reference-orienattion and writing mode, clause 3a of Section 4.2.5 indicates that if the border-after-width and padding-after of the first block are zero, and the border-before-width and padding-before of the second block are zero, that we have a block-stacking constraint. In which case the precedence on the space-fater of the one and the space-before of the other can be used precisely to achieve this collapsing effect. Regards, Arved Sandstrom
RE: Spaces and precedence
-Original Message- From: Arved Sandstrom [mailto:[EMAIL PROTECTED] Sent: April 24, 2002 6:38 PM To: [EMAIL PROTECTED] Subject: RE: Spaces and precedence -Original Message- From: J.Pietschmann [mailto:[EMAIL PROTECTED] Sent: April 24, 2002 5:17 PM To: [EMAIL PROTECTED] Subject: Re: Spaces and precedence Ralf Steppacher wrote: I have a short question about spaces and precedences: What I want is to suppress additional space if one headline directly follows another. To achieve this I wrote the template with FOs below but it does not work (I played a bit with attributes and values and could not find any other working solution using precendences). Could anybody please tell me whether my FO is wrong or this is a limitation of FOP? After having read the spec several times, i got the impression that space-*.precedence is for prioritizing space reservations coming from stuff from the same area. Roughly: fo:block space-before=10pt precedence=1 fo:block space-before=5pt precedence=2 stuff ... will put stuff 5pt after preceding content. This means, precedence can't be used to collapse space-after and space-before of consecutive blocks. Assuming Western reference-orienattion and writing mode, clause 3a of Section 4.2.5 indicates that if the border-after-width and padding-after of the first block are zero, and the border-before-width and padding-before of the second block are zero, that we have a block-stacking constraint. In which case the precedence on the space-fater of the one and the space-before of the other can be used precisely to achieve this collapsing effect. Regards, Arved Sandstrom Read orientation and space-after :-) orienattion is one of my top mistyping words (like retrun), but fater is new. :-) Normally I don't have 2 in one post. Drives me nuts. AHS