RE: How can I rotate text for a 90o sidebar?
Nice. I'll check this out. -Lou Rymasz Jacky [EMAIL PROTECTED] To: fop-users@xmlgraphics.apache.org decaux.fr cc: Subject: RE: How can I rotate text for a 90o sidebar? 03/29/2005 03:39 Please respond to fop-users Here a bit of code which scatter each letter of a string into a vertical set of blocks (ie: vertical string): xsl:template name=scatter-string xsl:paramname=text/ xsl:paramname=rotated/ xsl:variable name=lenxsl:value-of select=string-length($text)//xsl:variable !-- Concat the blocks containing each letters -- xsl:value-of disable-output-escaping=yes select=$rotated/ xsl:choose xsl:when test=$len 0 xsl:variable name=vrotated xsl:text lt;fo:blockgt;/xsl:text xsl:value-of select=substring($text,1,1)/ xsl:text lt;/fo:blockgt;/xsl:text /xsl:variable xsl:call-template name=scatter-string xsl:with-param name=text xsl:value-of select=substring($text, 2)/ /xsl:with-param xsl:with-param name=rotated xsl:value-of select=$vrotated/ /xsl:with-param /xsl:call-template /xsl:when xsl:otherwise /xsl:otherwise /xsl:choose /xsl:template I hope this could help ;) Jack -Message d'origine- De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Envoyé : lundi 28 mars 2005 15:57 À : fop-users@xmlgraphics.apache.org Objet : RE: How can I rotate text for a 90o sidebar? The following code prints top to bottom, but the letters are stacked. It's a starting point. svg:text x=1 y=1 writing-mode=tb glyph-orientation-vertical=0 YOUR TEXT HERE /svg:text -Lou Andreas L. DelmelleTo: fop-users@xmlgraphics.apache.org [EMAIL PROTECTED] cc: ndora.beSubject: RE: How can I rotate text for a 90o sidebar? 03/27/2005 06:30 Please respond to fop-users -Original Message- From: Tommy Reynolds [mailto:[EMAIL PROTECTED] Hi, I'm trying to insert some text into xsl-region-start and I'd like it rotated 90-degrees to you'd have to tilt your head sideways to read it. I think the reference-orientation property is the right approach but it isn't implemented in FOP. Is there a work-around? The only workaround I know of would be to use SVG to draw the rotated text... HTH! Greetz, Andreas - 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] - 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: How can I rotate text for a 90o sidebar?
The following code prints top to bottom, but the letters are stacked. It's a starting point. svg:text x=1 y=1 writing-mode=tb glyph-orientation-vertical=0 YOUR TEXT HERE /svg:text -Lou Andreas L. DelmelleTo: fop-users@xmlgraphics.apache.org [EMAIL PROTECTED] cc: ndora.beSubject: RE: How can I rotate text for a 90o sidebar? 03/27/2005 06:30 Please respond to fop-users -Original Message- From: Tommy Reynolds [mailto:[EMAIL PROTECTED] Hi, I'm trying to insert some text into xsl-region-start and I'd like it rotated 90-degrees to you'd have to tilt your head sideways to read it. I think the reference-orientation property is the right approach but it isn't implemented in FOP. Is there a work-around? The only workaround I know of would be to use SVG to draw the rotated text... HTH! Greetz, Andreas - 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: xml, xsl = html
A snippet of a very simple XSL that produces HTML is inlined below: ?xml version=1.0 encoding=utf-8? xsl:stylesheet version=1.0 xmlns:xsl=http://www.w3.org/1999/XSL/Transform; xmlns:fo=http://www.w3.org/1999/XSL/Format; xsl:output method=html indent=yes encoding=utf-8/ xsl:template match=/ xsl:apply-templates/ /xsl:template xsl:template match=report html head title xsl:value-of select=reportsubtitle/ /title /head style TD.header {font-weight: bold; color: black} TD.normal {} /style body font face=Tahoma,Courier,Verdana,Arial size=3 div align=left style=float:left; xsl:apply-templates select=logoURL/ br clear=left/ xsl:apply-templates select=reportheader/ br clear=left/ xsl:apply-templates select=versionInfo/ br clear=left/ /div div align=center br clear=left/ xsl:apply-templates select=reporttitle/ br clear=left/ xsl:apply-templates select=reportcustomer/ br clear=left/ xsl:apply-templates select=reportsubtitle/ br clear=left/ xsl:apply-templates select=reportparms/ /div br / br / xsl:apply-templates select=details/ br / br / div align=center style=float:center; xsl:apply-templates select=logoCopyURL/ /div /font /body /html /xsl:template snip/ Is this enough or do you need the complete file? -Lou ~~ LOG-NET, Inc. The Logistics Network Management System ~~ 230 Half Mile Road Third Floor Red Bank, NJ 07701 PH: 732-758-6800 FAX: 732-747-7497 http://www.LOG-NET.com ~~ CONFIDENTIAL PRIVILEGED Unless otherwise indicated or if obvious from the nature of the content, the information contained herein is privileged and confidential information/work product. The communication is intended for the use of the individual or entity named above. If the reader of this transmission is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify the sender immediately by telephone (732-758-6800) or by electronic mail ([EMAIL PROTECTED]), and destroy any copies, electronic, paper or otherwise, which you may have of this communication. Thank you. ~~ Tommy Reynolds [EMAIL PROTECTED] To: [EMAIL PROTECTED] aCoder.com cc: Subject: Re: xml, xsl = html 03/09/2005 09:16 Please respond to fop-user Uttered Arun Sinha [EMAIL PROTECTED], spake thus: You can achieve it without using fop. Simply outout the tags html in your xsl. Link your xsl to xml and call the XML directly in browser. Do you have a short example? I'd love to see it. Cheers (See attached file: attg4xc7.dat) attg4xc7.dat Description: Binary data
Re: Interesting question
It looks like you are using a Windows based machine. If you need a quick command line to accomplish a mass FOP, you can try the following: for %x in (*.fo) do fop.bat -fo %x %~nx.pdf This will run the fop.bat file for every fo file in a given directory. Also, using the 'for' command like this may be limited to only certain Windows OS's -Lou ~~ LOG-NET, Inc. The Logistics Network Management System ~~ 230 Half Mile Road Third Floor Red Bank, NJ 07701 PH: 732-758-6800 FAX: 732-747-7497 http://www.LOG-NET.com ~~ CONFIDENTIAL PRIVILEGED Unless otherwise indicated or if obvious from the nature of the content, the information contained herein is privileged and confidential information/work product. The communication is intended for the use of the individual or entity named above. If the reader of this transmission is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify the sender immediately by telephone (732-758-6800) or by electronic mail ([EMAIL PROTECTED]), and destroy any copies, electronic, paper or otherwise, which you may have of this communication. Thank you. ~~ Miroslav PukhalskyTo: [EMAIL PROTECTED] [EMAIL PROTECTED] cc: ft.com.ua Subject: Interesting question 03/04/2005 12:13 Please respond to fop-user Hi there! Can I do something like this fop.bat -fo *.fo -pdf *.pdf and got the same quantity of PDF files from some quantity of FO files? Or is it impossible for FOP 0.20.5? Or exists another way for do this? Miroslav - 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: External link
I use the following with no problems: fo:basic-link color=black external-destination=http://www.log-net.com;Copyright #169; 1993-2005 LOG-NET, INC. Confidential/fo:basic-link -Lou ~~ LOG-NET, Inc. The Logistics Network Management System ~~ 230 Half Mile Road Third Floor Red Bank, NJ 07701 PH: 732-758-6800 FAX: 732-747-7497 http://www.LOG-NET.com ~~ CONFIDENTIAL PRIVILEGED Unless otherwise indicated or if obvious from the nature of the content, the information contained herein is privileged and confidential information/work product. The communication is intended for the use of the individual or entity named above. If the reader of this transmission is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify the sender immediately by telephone (732-758-6800) or by electronic mail ([EMAIL PROTECTED]), and destroy any copies, electronic, paper or otherwise, which you may have of this communication. Thank you. ~~ [EMAIL PROTECTED] ampf.de To: [EMAIL PROTECTED] cc: 03/02/2005 07:53 Subject: External link Please respond to fop-user How can I link to a external dokument with FOP fo:basic-link external-destination=http://www.google.com Google/fo:basic-link doesent work. Acrobat Reader says No URI plugin - 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: XML --- PDF Japanese
Manoj: Try to load your fonts without the userconfig.xml file and see if it works (change were necessary): //config fonts Vector allFonts = new Vector(); Vector allTrips = new Vector(); //name weight style allTrips.add(new FontTriplet(MS Song,normal,normal)); allTrips.add(new FontTriplet(MS Song,bold,normal)); allTrips.add(new FontTriplet(MS Song,normal,italic)); allTrips.add(new FontTriplet(MS Song,bold,italic)); FontInfo fontInfo = new FontInfo(MS SONG,/fonts/mssong.xml,true,allTrips,/fonts/mssong.ttf); allFonts.add(fontInfo); Configuration.put(fonts, allFonts); Then at least you will know if your font files are working. -Lou ~~ LOG-NET, Inc. The Logistics Network Management System ~~ 230 Half Mile Road Third Floor Red Bank, NJ 07701 PH: 732-758-6800 FAX: 732-747-7497 http://www.LOG-NET.com ~~ CONFIDENTIAL PRIVILEGED Unless otherwise indicated or if obvious from the nature of the content, the information contained herein is privileged and confidential information/work product. The communication is intended for the use of the individual or entity named above. If the reader of this transmission is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify the sender immediately by telephone (732-758-6800) or by electronic mail ([EMAIL PROTECTED]), and destroy any copies, electronic, paper or otherwise, which you may have of this communication. Thank you. ~~ [EMAIL PROTECTED] ony.com To: [EMAIL PROTECTED] cc: 02/02/2005 18:28 Subject: Re: XML --- PDF Japanese Please respond to fop-user Jay Thanks for that tip. My machine has the MSGothic.ttc font file which I understand is used for Japanese characters. 1) From the MSGothic.ttc file, I created the MSGothic.xml file in the /conf/ directory. 2) I changed the userconfig.xml file to have the Japanese fonts defined as font metrics-file=msgothic.xml embed-file=D:\winnt\font\msgothic.ttc kerning=yes font-triplet name=Gothic style=normal weight=normal/ font-triplet name=Gothic style=normal weight=bold/ font-triplet name=Gothic style=italic weight=normal/ font-triplet name=Gothic style=italic weight=bold/ /font font metrics-file=msmincho.xml embed-file=Cyberbit.ttf kerning=yes font-triplet name=Mincho style=normal weight=normal/ font-triplet name=Mincho style=normal weight=bold/ font-triplet name=Mincho style=italic weight=normal/ font-triplet name=Mincho style=italic weight=bold/ /font 3) In my case FOP is called on the server side ( weblogic ) which has FOP.JAR in classpath. XSLTInputHandler input = new XSLTInputHandler(xmlFile, new File(xslParam)); try { ByteArrayOutputStream out = new ByteArrayOutputStream(); response.setContentType(CONTENT_TYPE); Driver driver = new Driver(); String OS = System.getProperty(os.name); driver.setLogger(log); driver.setRenderer(Driver.RENDER_PDF); driver.setOutputStream(out); driver.render(input.getParser(), input.getInputSource()); byte[] content = out.toByteArray(); response.setContentLength(content.length); response.getOutputStream().write(content); response.getOutputStream().flush(); System.out.println(renderXML done); } catch (Exception ex) { ex.printStackTrace(); throw new ServletException(ex); } My question is how would FOP on weblogic know how to use the new userconfig.xml file. I tried to add / update the MSGothic.xml /
Re: Page Sequence Master
Kumar: Victor answered my similar question last month (snipped below). Louis.Masters wrote: In order to get around some memory issues, I am creating multiple page sequences on my reports. The problem is, every time a new page sequence is created, a new page is created. Is there any way I can tell FOP not to insert the page break after the page sequence? I know it sounds _funny_ to not have page breaks when there is a new page sequence, but I am just using the page sequences to break up the memory use in FOP. No, there is no way to do what you are trying to do. Even putting the practical aspects aside (which are overwhelming), it would be a violation of the XSL-FO standard. Victor Mote -Lou ~~ LOG-NET, Inc. The Logistics Network Management System ~~ 230 Half Mile Road Third Floor Red Bank, NJ 07701 PH: 732-758-6800 FAX: 732-747-7497 http://www.LOG-NET.com ~~ CONFIDENTIAL PRIVILEGED Unless otherwise indicated or if obvious from the nature of the content, the information contained herein is privileged and confidential information/work product. The communication is intended for the use of the individual or entity named above. If the reader of this transmission is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify the sender immediately by telephone (732-758-6800) or by electronic mail ([EMAIL PROTECTED]), and destroy any copies, electronic, paper or otherwise, which you may have of this communication. Thank you. ~~ Puppala, Kumar (LNG-DAY) To: '[EMAIL PROTECTED]' [EMAIL PROTECTED] [EMAIL PROTECTED] cc: snexis.com Subject: Page Sequence Master 02/03/2005 10:19 Please respond to fop-user I have a page sequence master defined as shown below: fo:page-sequence-master master-name=my-sequence fo:single-page-master-reference master-reference=first-body-page/ fo:repeatable-page-master-reference master-reference=middle-body-pages/ /fo:page-sequence-master This sequence holds good for each individual document in my application. But there are times when I need to generate multiple documents within a job and so I use this sequence repeatedly and it works fine. The only problem is that each time a new document is generated, it starts on a new page (since we are starting a new sequence for this document). I am looking at some option to control this. In some cases I want each individual document to start on a new page but in other cases I would like my next document to start off on the remaining empty page left out by my previous document. Going with one big sequence containing all the documents might work but it will be a performance issue as our documents can get real big. Any help to solve this problem is greatly appreciated. Thanks, Kumar Puppala - 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]
multiple page sequence without page breaks
In order to get around some memory issues, I am creating multiple page sequences on my reports. The problem is, every time a new page sequence is created, a new page is created. Is there any way I can tell FOP not to insert the page break after the page sequence? I know it sounds _funny_ to not have page breaks when there is a new page sequence, but I am just using the page sequences to break up the memory use in FOP. Thanks, Lou - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [fop] linefeed-treatment=preserve doesn't preserve the linefeed
Gunter: In 20.3, I use 'white-space-collapse' to keep my linefeeds intact: fo:block white-space-collapse=false xsl:value-of select=Quote/descr/ /fo:block Give it a try. -Lou Gunter D'Hondt [EMAIL PROTECTED] To: [EMAIL PROTECTED] ofico.becc: Subject: [fop] linefeed-treatment=preserve doesn't preserve the linefeed 11/23/2004 06:34 Please respond to fop-user Hello, FOP 0.20.4 I've got the following xml (also tried to put it into a cdata block): Quote descrLine1 Line2/descr /Quote and the following xsl-fo: . fo:block linefeed-treatment=preservexsl:value-of select=Quote/descr//fo:block . which still outputs Line1Line2 so it replaces the newline character instead of preserving it Anybody who gots an idea what I'm doing wrong here? Any help is welcome... Regards, Gunter D'Hondt - 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: text in vertical direction
I use SVG text to do this. For example: fo:instream-foreign-object svg:svg width=150 height=150 xmlns=http://www.w3.org/2000/svg; svg:text x=1 y=1 writing-mode=tb glyph-orientation-vertical=0!--this does it-- FRONT /svg:text /svg:svg /fo:instream-foreign-object -Lou Dirk Sonne [EMAIL PROTECTED] To: [EMAIL PROTECTED] ag.com cc: Subject: text in vertical direction 11/23/2004 09:47 Please respond to fop-user Hello List, I have a little problem. I want to write some text in a vertical direction. FOP don't supports writing-mode. Is there a little fix? Thank you. -- Dipl.-Inf. Dirk Sonne Project Development/IT GETAG www.get-ag.com Karl-Heine-Straße 99 04229 Leipzig mail: [EMAIL PROTECTED] fon: +49 (0) 341 - 49 12 450 fax: +49 (0) 341 - 49 12 451 mob: +49 (0) 163 - 49 12 473 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem with SVG
I did not realize you were reading in the svg from a file. This is somewhat new territory for me as all of my svg's are in the XSL. I don't think you can use an SVG as a source for an external graphic (it's designed for GIFs and the like). Try using an instream-foreign-object with your svg and see if you get the same error. If I am wrong about the external graphic, someone please correct me. -Lou Johannes Franz johannes.franz@ To: [EMAIL PROTECTED] rub.de cc: Subject: Re: Problem with SVG 10/28/2004 07:25 Please respond to fop-user Ok, this are my sample files. My commandline is: .../fop.sh -xml diagram.xml -xsl protocol-extern.xsl test.pdf Am Donnerstag, 28. Oktober 2004 16:36 schrieb [EMAIL PROTECTED]: I can open this OK in Adobe's viewer. The only error I get is bad CSS selector. Can you send your command line? I'll try it on my side. -Lou Johannes Franz johannes.franz@ To: [EMAIL PROTECTED] rub.de cc: Subject: Re: Problem with SVG 10/28/2004 06:34 Please respond to fop-user Perhaps the problem lies in the svg itself. So i attach it to this email. Am Montag, 25. Oktober 2004 17:31 schrieb [EMAIL PROTECTED]: Add the batik.jar to your classpath. Here is a sample batch file that I use with FOP 0.20.3 on Windows 2000: set ppp=.;\bin\deploy\batik.jar;\bin\deploy\logkit-1.0.jar;\bin\deploy\avalon-f ramework-4.0.jar;\bin\deploy\xerces-1.2.3.jar;\bin\deploy\xalan-2.0.0.jar; \b in\deploy\fop.jar java -cp %ppp% org.apache.fop.apps.Fop -s -d -xml %1 -xsl %2 -pdf debug.pdf -c userconfig.xml Hope this helps. -Lou Johannes Franz johannes.franz@ To: [EMAIL PROTECTED] rub.de cc: Subject: Re: Problem with SVG 10/25/2004 10:32 Please respond to fop-user Ok, i have to include Batik. Could you perhaps explain how to do this? I don't exactly understand the faq. - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, October 25, 2004 1:30 PM Subject: Re: Problem with SVG SVG is not natively supported through FOP - it requires Batik. Don't forget to include the Batik jar that came with your FOP distribution. See http://xml.apache.org/fop/graphics.html#batik or http://xml.apache.org/fop/graphics.html#svg -Lou Johannes Franz johannes.franz@ To: [EMAIL PROTECTED] rub.de cc: Subject: Problem with SVG 10/25/2004 03:41 Please respond to fop-user Hi there, i wanted to know how many svg images fop can embed before the outofmemory-error occurs. So i searched the web for a SVG, which is about 70kb large. But when i run fop i get the following error message: [ERROR] Batik not in class path [ERROR] Error while creating area : No ImageReader for this type of image (file:/home/johannes/AT_PI.vdo/diagram.svg) What's the problem? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem with SVG
I can open this OK in Adobe's viewer. The only error I get is bad CSS selector. Can you send your command line? I'll try it on my side. -Lou Johannes Franz johannes.franz@ To: [EMAIL PROTECTED] rub.de cc: Subject: Re: Problem with SVG 10/28/2004 06:34 Please respond to fop-user Perhaps the problem lies in the svg itself. So i attach it to this email. Am Montag, 25. Oktober 2004 17:31 schrieb [EMAIL PROTECTED]: Add the batik.jar to your classpath. Here is a sample batch file that I use with FOP 0.20.3 on Windows 2000: set ppp=.;\bin\deploy\batik.jar;\bin\deploy\logkit-1.0.jar;\bin\deploy\avalon-f ramework-4.0.jar;\bin\deploy\xerces-1.2.3.jar;\bin\deploy\xalan-2.0.0.jar;\b in\deploy\fop.jar java -cp %ppp% org.apache.fop.apps.Fop -s -d -xml %1 -xsl %2 -pdf debug.pdf -c userconfig.xml Hope this helps. -Lou Johannes Franz johannes.franz@ To: [EMAIL PROTECTED] rub.de cc: Subject: Re: Problem with SVG 10/25/2004 10:32 Please respond to fop-user Ok, i have to include Batik. Could you perhaps explain how to do this? I don't exactly understand the faq. - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, October 25, 2004 1:30 PM Subject: Re: Problem with SVG SVG is not natively supported through FOP - it requires Batik. Don't forget to include the Batik jar that came with your FOP distribution. See http://xml.apache.org/fop/graphics.html#batik or http://xml.apache.org/fop/graphics.html#svg -Lou Johannes Franz johannes.franz@ To: [EMAIL PROTECTED] rub.de cc: Subject: Problem with SVG 10/25/2004 03:41 Please respond to fop-user Hi there, i wanted to know how many svg images fop can embed before the outofmemory-error occurs. So i searched the web for a SVG, which is about 70kb large. But when i run fop i get the following error message: [ERROR] Batik not in class path [ERROR] Error while creating area : No ImageReader for this type of image (file:/home/johannes/AT_PI.vdo/diagram.svg) What's the problem? - 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] - 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] (See attached file: diagram.svg) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] diagram.svg Description: Binary data - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Help required for Japanese FOP
I agree with Rob. As I mentioned in my barcode thread, once you have the metrics file generated, embed the font and then reference it in your stylesheet. For example, I did some work with embedding Chinese characters in a document: Vector allFonts = new Vector(); Vector allTrips = new Vector(); allTrips.add(new FontTriplet(MS Song,normal,normal)); FontInfo fontInfo = new FontInfo(MS SONG,/fonts/mssong.xml,true,allTrips,/fonts/mssong.ttf); allFonts.add(fontInfo); Configuration.put(fonts, allFonts); Referenced in XSL: fo:block font-family=MS Song padding-bottom=1mm #x51fa;#x53e3;#x65e5;#x671f; /fo:block Does this help? -Lou Rob Stote [EMAIL PROTECTED] To: [EMAIL PROTECTED] ltech.com cc: Subject: RE: Help required for Japanese FOP 10/26/2004 11:33 Please respond to fop-user I'm jumping in here last minute but... I am a little confused as to why you are building FOP. We currently are dealing with Japanese customers, and have had no issues. Here is What I did: Generate the appropriate font metrics file Configure FOP via the fop-config.xml file to use and embed the font Reference the font-family in your stylesheet I might be missing something... Why are you trying to build FOP. I can't speck for the developers, but I am assuming FOP was designed in such a way that you use fonts regardless of language, country etc... And you don't have to rebuild FOP to do so. Rob -Original Message- From: Sanket Desai [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 26, 2004 10:45 AM To: [EMAIL PROTECTED] Subject: Re: Help required for Japanese FOP Hi Balaji, Your artical is very informative. Thanks for it. I referred to your artical. But, I am still facing problems. Bascially, my problem is related to building FOP with Japanese support (MSGothic) fonts. As per my previous mail, I generated font metrics file. But in that so many parameters are missing. For example class-name, embedFileName, embedResourceFile etc.. This thing I came to know when I looked into the MSGothic.java file. Apart from this, there are other parameters (actually variables in MSGothic.java file) like lastChar, firstChar are also not initialized. So, it is basically problem of generated wrong .java file (i.e. MSGothic.java). I don't know from where will I get resource file and values for these parameters. So, if you can guide me then I will be very thankful to you. I hope you can understand my problem. thanks, Sanket. On Tue, 26 Oct 2004 06:26:53 +1000 (EST), Balaji Loganathan [EMAIL PROTECTED] wrote: Hi Sanket, See whether this article helps you ?? http://www.javaranch.com/journal/200409/Journal200409.jsp#a9 --- John Mok [EMAIL PROTECTED] wrote: Sanket Desai wrote: Hi John Mok, Thanks for your reply. I tried to make font metrics for MSGothic fonts. I used msgothic.ttf (It is TTF and not TTC). That generated msgothic.xml also. But when I tried to build the whole FOP, I came to know that class for MSGothic doesn't have any name. If you succeeded to generated the font metrics file, e.g. msgothic.xml or any name you like, then you have to register the font metrics file in a config. file referenced by your application or servlet, e.g. the a config file at /usr/local/fop-0.20.5/userconfig.xml, in which you build the mappings for font MSGothic in reference to the font metrics file. Please refer to the section Register Fonts with FOP at :- http://xml.apache.org/fop/fonts.html For further details, please find the program examples in the FOP package. John Mok
Re: how to add a font to generate bar codes in my pdfs?
It looks like you have the font file ready to go. To get a barcode in the PDF, I did the following: 1. First, here is some sample java code to configure the fonts (you would probably want to do this dynamically (read better): Vector allFonts = new Vector();//you may have more than one Vector allTrips = new Vector(); allTrips.add(new FontTriplet(fre3of9x,normal,normal)); allTrips.add(new FontTriplet(fre3of9x,bold,normal)); allTrips.add(new FontTriplet(fre3of9x,normal,italic)); allTrips.add(new FontTriplet(fre3of9x,bold,italic)); FontInfo fontInfo = new FontInfo(3OF9X,/fonts/fre3of9x.xml ,true,allTrips,/fonts/fre3of9x.ttf);//sample font allFonts.add(fontInfo); Configuration.put(fonts, allFonts); 2. Next, create a text block that uses your barcode font family: fo:block font-size=10pt color=black font-family=fre3of9x 112233 /fo:block This works for me. -Lou Raúl Herranz Serrano To: [EMAIL PROTECTED] [EMAIL PROTECTED] cc: es Subject: how to add a font to generate bar codes in my pdfs? 10/25/2004 11:06 Please respond to fop-user Hi there! I have the following method in a Servlet that helps me to output pdf files: private ByteArrayOutputStream transform(Source xmlSrc, Source xslSrc) throws TransformerConfigurationException, TransformerException { ByteArrayOutputStream out = new ByteArrayOutputStream(); org.apache.fop.configuration.Configuration.put(baseDir, BASE_DIR); Driver driver = new Driver(); Logger logger = new Log4JLogger(log4j); MessageHandler.setScreenLogger(logger); driver.setLogger(logger); driver.setRenderer(Driver.RENDER_PDF); driver.setOutputStream(out); TransformerFactory transformerFactory = TransformerFactory.newInstance(); Transformer transformer = transformerFactory.newTransformer(xslSrc); Result res = new SAXResult(driver.getContentHandler()); transformer.transform(xmlSrc, res); return out; } The problem is that right now I need to generate some bar codes in my pdfs and I have think to embed a ttf font in my pdfs that I can use to generate those barcodes. I have the ttf font file and the xml font metrics file but right now I don´t know what must I add to the code to be able to use this font in my pdfs... can you help me? Thanks a lot!! Raul (Spain) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: how to add a font to generate bar codes in my pdfs?
I have never had a problem with losing default fonts when I add my custom fonts in the manner described (if I am wrong I am certain I will be corrected). As an alternative, you can add the font to your userconfig.xml file, in the fonts section: fonts font metrics-file=fre3of9x.xml embed-file=fre3of9x.ttf kerning=yes font-triplet name=BarCode style=normal weight=normal/ font-triplet name=BarCode style=normal weight=bold/ font-triplet name=BarCode style=italic weight=normal/ font-triplet name=BarCode style=italic weight=bold/ /font /fonts -Lou Raúl Herranz Serrano To: [EMAIL PROTECTED] [EMAIL PROTECTED] cc: es Subject: Re: how to add a font to generate bar codes in my pdfs? 10/25/2004 11:56 Please respond to fop-user Thanks for your answer... but I have got a question: Do I overwrite the rest of the fonts (the deafult fonts, I mean...) with the line Configuration.put(fonts, allFonts);? Thanks again! Raul (Spain) - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, October 25, 2004 5:17 PM Subject: Re: how to add a font to generate bar codes in my pdfs? It looks like you have the font file ready to go. To get a barcode in the PDF, I did the following: 1. First, here is some sample java code to configure the fonts (you would probably want to do this dynamically (read better): Vector allFonts = new Vector();//you may have more than one Vector allTrips = new Vector(); allTrips.add(new FontTriplet(fre3of9x,normal,normal)); allTrips.add(new FontTriplet(fre3of9x,bold,normal)); allTrips.add(new FontTriplet(fre3of9x,normal,italic)); allTrips.add(new FontTriplet(fre3of9x,bold,italic)); FontInfo fontInfo = new FontInfo(3OF9X,/fonts/fre3of9x.xml ,true,allTrips,/fonts/fre3of9x.ttf);//sample font allFonts.add(fontInfo); Configuration.put(fonts, allFonts); 2. Next, create a text block that uses your barcode font family: fo:block font-size=10pt color=black font-family=fre3of9x 112233 /fo:block This works for me. -Lou Raúl Herranz Serrano To: [EMAIL PROTECTED] [EMAIL PROTECTED] cc: es Subject: how to add a font to generate bar codes in my pdfs? 10/25/2004 11:06 Please respond to fop-user Hi there! I have the following method in a Servlet that helps me to output pdf files: private ByteArrayOutputStream transform(Source xmlSrc, Source xslSrc) throws TransformerConfigurationException, TransformerException { ByteArrayOutputStream out = new ByteArrayOutputStream(); org.apache.fop.configuration.Configuration.put(baseDir, BASE_DIR); Driver driver = new Driver(); Logger logger = new Log4JLogger(log4j); MessageHandler.setScreenLogger(logger); driver.setLogger(logger); driver.setRenderer(Driver.RENDER_PDF); driver.setOutputStream(out); TransformerFactory transformerFactory = TransformerFactory.newInstance(); Transformer transformer = transformerFactory.newTransformer(xslSrc); Result res = new SAXResult(driver.getContentHandler()); transformer.transform(xmlSrc, res); return out; } The problem is that right now I need to generate some bar codes in my pdfs and I have think to embed a ttf font in my pdfs that I can use to generate those barcodes. I have the ttf font file and the xml font
Re: Retrieve-marker problem. Can anyone help with wrapper workaround?
John: Here is my marker code (FOP 0.20.3): !--parse out the markers-- fo:inline font-size=7pt color=black font-weight=normal white-space-collapse=true xsl:for-each select=@*[starts-with(name(.),'marker__')] fo:inlinefo:marker marker-class-name={name(.)}xsl:value-of select=.//fo:marker/fo:inline /xsl:for-each /fo:inline !--parse out the markers-- The inner inline was to fix the fo:marker must be an initial child,and 'marker-class-name' must be unique for same parent messages. The for loop is because I have multiple dynamically generated markers in a given area. Hope this helps. -Lou |-+ | | John Burgess | | | [EMAIL PROTECTED]| | | isions.com | | || | | 10/22/2004 05:13 | | | Please respond to| | | fop-user | | || |-+ ---| | | |To: [EMAIL PROTECTED] | |cc: | |Subject: Retrieve-marker problem. Can anyone help with wrapper workaround?| ---| I am trying to use maker and retrieve-marker to put the title of the current chapter into the header of my documents. I have this working BUT the formatting of the chapter title in the header is the same as where the marker is i.e. Large and Bold, appropriately for the title of a chapter bit not for a running header. I know this is a known problem with fop (I am using 0.20.5 by the way). However, in the mailing list archive I saw amongst the messages dealing with this problem one from Andreas L. Delmelle saying: Oh, another detail: there's a nasty bug with markers that renders them with the same properties as the region/block where they are defined, so to make it work correctly, you have to add an fo:wrapper around the marker to set the font-size/-weight etc. to the same values they have in the static content... For more info: check the examples for markers that came with FOP (FOP_HOME/examples/fo/markers) --- I think I have probably misunderstood what Andreas means. What I did was to have fo:block use-attribute-set=chapter-heading !-- sets 20 point, bold font -- fo:wrapper use-attribute-set=headers-footers !-- sets 8 point light -- fo:marker marker-class-name=chapterIntroduction/fo:marker /fo:wrapper But while that meant the header was in the correct font etc., the chapter title was then very small. Is there a workaround for this situation? Best Wishes John Burgess Risk Decisions Limited T: 01865 718666 F: 01865 718600 [EMAIL PROTECTED] http://www.riskdecisions.com/ --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.776 / Virus Database: 523 - Release Date: 16/10/04 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: write in vertical mode
Here is some sample SVG code to write vertically: fo:instream-foreign-object svg:svg width=152 height=60 xmlns=http://www.w3.org/2000/svg; svg:g font-size=5 font-family=sans-serif fill=black svg:text x=2 y=1 writing-mode=tb glyph-orientation-vertical=0 FRONT /svg:text /svg:g /svg:svg /fo:instream-foreign-object Note the writing-mode attrib: tb - top to bottom -Lou Jon Alegria Esarte To: [EMAIL PROTECTED] [EMAIL PROTECTED] cc: ia.com Subject: write in vertical mode 10/18/2004 14:09 Please respond to fop-user Hi How can i write in vertical mode in pdf using fop? Thanks FOP 0.18 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: fo:marker initial child error
Here is a sample table cell from the xalan processor (I stripped out almost anything that might cause an issue): fo:table-row fo:table-cell fo:marker marker-class-name=bill_of_ladingRBHZamp;P00111/fo:markerfo:marker marker-class-name=carrier/fo:marker marker-class-name=vesselVoyage//fo:marker /fo:table-cell /fo:table-row I get the following errors: [ERROR]: fo:marker must be an initial child,and 'marker-class-name' must be unique for same parent [ERROR]: fo:marker must be an initial child,and 'marker-class-name' must be unique for same parent It looks like the first marker is OK, but anything after that generates the error. Anything stand out? -Lou J.Pietschmann [EMAIL PROTECTED] To: [EMAIL PROTECTED] de cc: Subject: Re: fo:marker initial child error 06/27/2004 18:01 Please respond to fop-user [EMAIL PROTECTED] wrote: I'm having a problem with my markers in fop 0.20.3. The marker data displays correctly in the PDF, but I get a log full of the following message: 1088163278596 - ERROR [fop]:fo:marker must be an initial child,and 'marker-class-name' must be unique for same parent The most common reason for the must be an initial child message is that there is whitespace before the marker. Your code snippet doesn't give hints for this though. Try to run the XSL transformation standalone and check the result. J.Pietschmann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: fo:marker initial child error
OK, I can get it to work if I manually remove the carriage returns and place the marker inside an inline: fo:inlinefo:marker marker-class-name=marker__bill_of_ladingRBHZamp;P00111/fo:marker/fo:inline fo:inlinefo:marker marker-class-name=marker__carrier//fo:inline However, xalan will not let me do this. When run the code through it, I get: fo:inline fo:marker marker-class-name=marker__bill_of_ladingRBHZamp;P00111/fo:marker /fo:inline fo:inline fo:marker marker-class-name=marker__carrier/ /fo:inline Which generates the error. It looks like I might have to move this discussion to the xalan group or try to implement what Clay showed on an earlier thread. -Lou J.Pietschmann [EMAIL PROTECTED] To: [EMAIL PROTECTED] de cc: Subject: Re: fo:marker initial child error 07/01/2004 13:13 Please respond to fop-user [EMAIL PROTECTED] wrote: Here is a sample table cell from the xalan processor (I stripped out almost anything that might cause an issue): fo:table-row fo:table-cell fo:marker I'd suspect the line feed before the fo:marker might cause the problem. Every marker will trigger this. I also suggest to put the markers into a fo:block in the cell (there must be at least one anyway, I vaguely remember problems if a marker was an immediate child of a fo:table-row or fo:table-cell. J.Pietschmann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: add watermark to generated PDF using FOP
Just some sample code for using SVG for a watermark: fo:instream-foreign-object xmlns:svg=http://www.w3.org/2000/svg; svg:svg width=285 height=70 svg:g transform=rotate(-5) svg:text x=10 y=60 style=font-family:Courier;font-size:40;font-weight:normal;stroke-width:0.5;fill:none;stroke:lightgray;stroke-opacity:0.75; xsl:value-of select=$watermarkText/ /svg:text /svg:g /svg:svg /fo:instream-foreign-object -Lou Clay Leeds [EMAIL PROTECTED] To: [EMAIL PROTECTED] om cc: Subject: Re: add watermark to generated PDF using FOP 04/16/2004 16:37 Please respond to fop-user On Apr 16, 2004, at 1:22 PM, David Beck wrote: I used FOP and JAI to render PDF. I did not use configuration class to set baseDir. In my case, do you think if there is a way to pass this draft.jpg image into XSL and display it on each pdf as background? Or can I use fo:external-graphic src=... inside /fo:region-body or use transformer.setParameterto refer to this draft image? thanks, Jerry I thought this would be in the FAQ, but it's not there (yet ;-) ) http://xml.apache.org/fop/output.html#pdf-postprocess http://xml.apache.org/fop/output.html#pdf-watermark Clay Leeds - [EMAIL PROTECTED] -- Web Developer - Medata, Inc. - http://www.medata.com/ PGP Public Key: https://mail.medata.com/pgp/cleeds.asc - 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]
altering space between wrapped lines
(Apologies in advance if this is the wrong group for this question...) Is there any way to specify the space between wrapped lines? For example, say I have the line: This is a very long line that should wrap. Normal wrapping in a small table cell will produce something like: This is a very long line that should wrap. What if I needed it to look like: This is a very long line that should wrap. Am I missing something simple? Thanks, Lou - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: extra page from app, not from commandline
That's old, you should upgrade. Also, without even a small code snippet, it is quite hard to guess where the problem could be. I'd love to, but can't - waiting for bug 16156 to be fixed. We require SVG images and I can't upgrade my jdk yet. There seem to be differences. Are you sure you are processing exactly the same data, including any graphics and fonts? You're right. I have my table columns generated dynamically and another developer changed the column specs when I was testing. I think I found the issue, although I still do not know why it was working on the command line only. I have an empty block wrapping my main data table in my report: fo:block fo:table table-layout=fixed width=100% snip/ /fo:table /fo:block For some reason, there is padding/space from this block overlapping onto another page. I'm removing the wrapper block for now. Just thought I would share my results. -Lou |-+--- | | J.Pietschmann | | | [EMAIL PROTECTED]| | | de | | | | | | 09/03/2003 15:56| | | Please respond | | | to fop-user | | | | |-+--- ---| | | |To: [EMAIL PROTECTED] | |cc: | |Subject: Re: extra page from app, not from commandline | ---| [EMAIL PROTECTED] wrote: FOP 0.20.3 That's old, you should upgrade. Also, without even a small code snippet, it is quite hard to guess where the problem could be. Also: 1062605170037 - WARN [fop]:Sum of fixed column widths 685974 and [WARN]: Sum of fixed column widths 742666 greater than There seem to be differences. Are you sure you are processing exactly the same data, including any graphics and fonts? J.Pietschmann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
extra page from app, not from commandline
I am running into an issue where an extra page gets generated if the data in my table falls too close to the end of the page. A first thought would be that there is some padding or spacing causing this - but I have gone through and checked this. What is very peculiar is that when I run the same XML file, XSL file and config file from the command line, the page is not produced. I have included my debug outs as proof: ***Through my app: snip/ 1062605169436 - WARN [fop]:property - show-destination is not implemented yet. 1062605169496 - ERROR [fop]:fo:marker must be an initial child,and 'marker-class-name' must be unique for same parent 1062605169977 - ERROR [fop]:fo:marker must be an initial child,and 'marker-class-name' must be unique for same parent 1062605170007 - INFO [fop]:[1] 1062605170037 - WARN [fop]:Sum of fixed column widths 685974 greater than maximum specified IPD 0 1062605170588 - WARN [fop]:Sum of fixed column widths 71 greater than maximum specified IPD 0 1062605170588 - WARN [fop]:Sum of fixed column widths 71 greater than maximum specified IPD 0 1062605173292 - INFO [fop]:[2] 1062605177067 - DEBUG [fop]:Last page-sequence produced 2 pages. 1062605177067 - INFO [fop]:Parsing of document complete, stopping renderer 1062605177077 - DEBUG [fop]:Initial heap size: 5398Kb 1062605177077 - DEBUG [fop]:Current heap size: 12075Kb 1062605177077 - DEBUG [fop]:Total memory used: 6677Kb 1062605177077 - DEBUG [fop]: Memory use is indicative; no GC was performed 1062605177077 - DEBUG [fop]: These figures should not be used comparatively 1062605177077 - DEBUG [fop]:Total time used: 9914ms 1062605177077 - DEBUG [fop]:Pages rendererd: 2 1062605177077 - DEBUG [fop]:Avg render time: 4957ms/page ***From the command line: snip/ [WARN]: property - show-destination is not implemented yet. [ERROR]: fo:marker must be an initial child,and 'marker-class-name' must be unique for same parent [ERROR]: fo:marker must be an initial child,and 'marker-class-name' must be unique for same parent [INFO]: [1] [WARN]: Sum of fixed column widths 742666 greater than maximum specified IPD 0 [WARN]: Sum of fixed column widths 71 greater than maximum specified IPD 0 [WARN]: Sum of fixed column widths 71 greater than maximum specified IPD 0 [DEBUG]: Last page-sequence produced 1 pages. [INFO]: Parsing of document complete, stopping renderer [DEBUG]: Initial heap size: 2260Kb [DEBUG]: Current heap size: 9189Kb [DEBUG]: Total memory used: 6928Kb [DEBUG]: Memory use is indicative; no GC was performed [DEBUG]: These figures should not be used comparatively [DEBUG]: Total time used: 9324ms [DEBUG]: Pages rendererd: 1 [DEBUG]: Avg render time: 9324ms/page Any thoughts? Something stupid that I am missing? Is there an easy way to find overflowing padding/spacing/data? FOP 0.20.3 jdk 1.3 Thanks, Lou - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: table-cell suggestion
What version of FOP is this? I currently have developers that do this all of the time and it looks like FOP just ignores it. I am using FOP 0.20.3. If a newer version if throwing an exception it would be good to know now. -Lou [EMAIL PROTECTED] rama.com To: [EMAIL PROTECTED] cc: 05/15/2003 Subject: table-cell suggestion 11:45 Please respond to fop-user I was getting a crash in FOP. This happened when I would declare a table with a given amount of columns, and one of my rows did not specify enough columns. I would get a npe on the getTableCell method. Perhaps the code can be modified to catch this exception and proceed with the processing of the document. Catch the exception and continue processing as if the missing table cells were present and empty? Just some thoughts. Sorry no code. For example: fo:table fo:table-column column-width=5cm/ fo:table-column column-width=5cm/ fo:table-body fo:table-row fo:table-cell Column 1 /fo:table-cell /fo:table-row /fo:table-body /fo:table - 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]
embedded SVG in XML not showing up
I am running into an issue displaying SVG graphics. If I directly embed svg code in ml XSL, the graphic displays fine. When I have SVG code in the XML file that I want transformed, it does not show up on the PDF. For example, my XML looks like this: tablecell egraphic svg width=800 height=400 xmlns=http://www.w3.org/2000/svg; g stroke=black stroke-width=1 rect x=1 y=1 width=798 height=398 fill=none/ /g /svg /egraphic /tablecell If this is more of an XPath/Xalan issue, just say so and I will send it to their newsgroup. I just wanted to see if this is an issue with PDFs or something special I have to do to get this to render. -Lou - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: accessing attributes in xml
How about (loop): xsl:for-each select=[EMAIL PROTECTED]'SALES'] xsl:call-template name=processIt/ /xsl:for-each -Lou Torsten Erler [EMAIL PROTECTED] on 04/24/2003 09:03:20 Please respond to [EMAIL PROTECTED] To: Fop-User \(E-mail\) [EMAIL PROTECTED] cc: Subject: accessing attributes in xml Hi all, I've an xml like: ... defaultContactPerson type=PROOF/ defaultContactPerson type=BILL/ defaultContactPerson type=SALESHans Friedrich Mueller/defaultContactPerson defaultContactPerson type=MAIL/ defaultContactPerson type=KEY/ Now I've to check inside the xsl this: xsl:if test=??? //[EMAIL PROTECTED] != '' ??? !-- do something here if the sales contact isn't empty-- xsl:value-of select=??? //[EMAIL PROTECTED] ???/ /xsl Can anyone help me how to check the value for the tag where the attribute is 'SALES' and how to access this value. ThanX in Advance cu Torsten - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: text-decoration=underline
Can you use the bottom border of the cell? -Lou Prabhat Kumar (IT) [EMAIL PROTECTED] on 04/23/2003 12:45:50 Please respond to [EMAIL PROTECTED] To: [EMAIL PROTECTED] cc: Subject: RE: text-decoration=underline I used the fo:leader before switching to using the fo:block itself. But users do not want the 'underline' to appear on its own row. We need the underline to appear in the same row as the text that's being printed. -Original Message- From: Clay Leeds [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 23, 2003 12:22 PM To: [EMAIL PROTECTED] Subject: Re: text-decoration=underline Prabhat Kumar (IT) wrote: I'm using the text-decoration=underline attribute for an fo:block. It prints out the underline as expected for the enclosed text. I need the underline to be printed out across the entire fo:table-cell in which the fo:block is enclosed. Is this doable? How should I go about it? Something like this: fo:leader leader-pattern=rule rule-thickness=.5pt leader-length.optimum=6.5cm leader-length.maximum=6.5cm leader-length.minimum=.5cm/ You can read up more about this here: http://www.zvon.org/HowTo/Output/FOP0.18.1_examples_leader.php?el=leader Here's an example: http://www.zvon.org/HowTo/Output/FOP0.18.1_examples_leader.php?el=leader#d665e2067 -- Clay Leeds - [EMAIL PROTECTED] Web Developer - Medata, Inc. - http://www.medata.com PGP Public Key: https://mail.medata.com/pgp/cleeds.asc - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: justification
To justify, you can use the text-align attrib: xsl:attribute name=text-align xsl:choose xsl:when test=@textAlignment='left'start/xsl:when xsl:when test=@textAlignment='start'start/xsl:when xsl:when test=@textAlignment='right'end/xsl:when xsl:when test=@textAlignment='end'end/xsl:when xsl:when test=@textAlignment='center'center/xsl:when xsl:otherwisexsl:textstart/xsl:text/xsl:otherwise /xsl:choose /xsl:attribute Is this what you needed? -Lou Todtenhaupt, Susann [EMAIL PROTECTED] on 04/22/2003 10:04:10 Please respond to [EMAIL PROTECTED] To: '[EMAIL PROTECTED]' [EMAIL PROTECTED] cc: Subject: justification Hi @ all! Is there any possibility to drive a string in a fo:block into justification? Mit freundlichen Grüßen / Best regards Susann Todtenhaupt Astrium GmbH 88039 Friedrichshafen, Germany Phone +49 7545 8-2618 Fax +49 7545 8-5526 Email [EMAIL PROTECTED] This mail is for information only and does not imply any formal commitment by Astrium GmbH. - 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: Illegal 'retrieve-boundary' value error after upgrading to 0.20.5rc2
They all look fine in the FO, i.e.: fo:blockManifest ID: fo:retrieve-marker retrieve-position =first-including-carryover retrieve-boundary=page retrieve-class-name =marker__manifest_id/ Any other thoughts? J.Pietschmann [EMAIL PROTECTED] on 04/17/2003 16:53:31 Please respond to [EMAIL PROTECTED] To: [EMAIL PROTECTED] cc: Subject: Re: Illegal 'retrieve-boundary' value error after upgrading to 0.20.5rc2 [EMAIL PROTECTED] wrote: OK, I am having another problem with upgrading from .3 to .5rc2. On any stylesheet with markers, I get the following error: [ERROR] org.apache.fop.apps.FOPException: Illegal 'retrieve-boundary' value org.apache.fop.apps.FOPException: org.apache.fop.apps.FOPException: Illegal 'ret rieve-boundary' value It seems you generate empty values for retrieve-boundary properties. Run the transformation alone http://xml.apache.org/fop/running.html#running_xalan and check the resulting FO document J.Pietschmann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Illegal 'retrieve-boundary' value error after upgrading to 0.20.5rc2
OK. Thanks for getting back to me. I'll probably roll back to 20.3 for now as many of our reports use running headers (by page). -Lou J.Pietschmann [EMAIL PROTECTED] on 04/18/2003 08:12:40 Please respond to [EMAIL PROTECTED] To: [EMAIL PROTECTED] cc: Subject: Re: Illegal 'retrieve-boundary' value error after upgrading to 0.20.5rc2 [EMAIL PROTECTED] wrote: They all look fine in the FO, i.e.: fo:blockManifest ID: fo:retrieve-marker retrieve-position =first-including-carryover retrieve-boundary=page retrieve-class-name =marker__manifest_id/ Ouch, I misread the message. You triggered a bug in 0.20.5rc2. This happens if retrieve-boundary=page but no matching marker could be retrieved from the page. Remember that first-including-carryover does not work porperly. For example for fo:block fo:marker marker-class=A.../fo:marker foo fo:block break-after=page/ bar /fo:block on the page wit bar on it the A marker should be retrieved but this doesn't work. The problem with the exception is fixed, but you'll still get nothing instead of the desired marker. There is no good workaround for this problem. You can try to use retrieve-boundary=document. J.Pietschmann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Illegal 'retrieve-boundary' value error after upgrading to 0.20.5rc2
OK, I am having another problem with upgrading from .3 to .5rc2. On any stylesheet with markers, I get the following error: [ERROR] org.apache.fop.apps.FOPException: Illegal 'retrieve-boundary' value org.apache.fop.apps.FOPException: org.apache.fop.apps.FOPException: Illegal 'ret rieve-boundary' value at org.apache.fop.apps.Driver.render(Driver.java:462) at org.apache.fop.apps.CommandLineStarter.run(CommandLineStarter.java:69 ) at org.apache.fop.apps.Fop.main(Fop.java:19) - java.lang.RuntimeException: org.apache.fop.apps.FOPException: Illegal 'retrieve- boundary' value at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:965) at org.apache.xalan.transformer.TrAXFilter.parse(TrAXFilter.java:134) at org.apache.fop.apps.Driver.render(Driver.java:457) at org.apache.fop.apps.CommandLineStarter.run(CommandLineStarter.java:69 ) at org.apache.fop.apps.Fop.main(Fop.java:19) - java.lang.RuntimeException: org.apache.fop.apps.FOPException: Illegal 'retrieve- boundary' value at org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java :3407) at org.apache.xalan.transformer.TransformerHandlerImpl.endDocument(Trans formerHandlerImpl.java:433) at org.apache.xerces.parsers.SAXParser.endDocument(SAXParser.java:1225) at org.apache.xerces.validators.common.XMLValidator.callEndDocument(XMLV alidator.java:760) at org.apache.xerces.framework.XMLDocumentScanner$EndOfInputDispatcher.d ispatch(XMLDocumentScanner.java:1546) at org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentS canner.java:381) at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:948) at org.apache.xalan.transformer.TrAXFilter.parse(TrAXFilter.java:134) at org.apache.fop.apps.Driver.render(Driver.java:457) at org.apache.fop.apps.CommandLineStarter.run(CommandLineStarter.java:69 ) at org.apache.fop.apps.Fop.main(Fop.java:19) I ran java org.apache.xalan.xslt.EnvironmentCheck and it said all was well (from its point of view). Could this be a jar file mixup? I'm running jdk1.3, jaxp(newest and whatever files came with the FOP 20.5rc2 distribution. Thanks, Lou - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: xsl:import error with new jaxp and fop 0.20.5rc2
Thanks. You are correct - this should have been sent to the Xalan list - I just thought I had misconfigured my jar files. Anyway, your suggestion did get me past the XSL error, but I am now seeing the following: Dumping configuration: [ERROR] Unknown formatting object ^layout-master-set [ERROR] Unknown formatting object ^simple-page-master [ERROR] Unknown formatting object ^region-before [ERROR] Unknown formatting object ^region-after [ERROR] Unknown formatting object ^region-body [ERROR] Unknown formatting object ^page-sequence-master [ERROR] Unknown formatting object ^repeatable-page-master-reference [ERROR] Unknown formatting object ^page-sequence [ERROR] Unknown formatting object ^static-content [ERROR] Unknown formatting object ^block [ERROR] Unknown formatting object ^external-graphic [ERROR] Unknown formatting object ^table [ERROR] Unknown formatting object ^table-column [ERROR] Unknown formatting object ^table-body [ERROR] Unknown formatting object ^table-row [ERROR] Unknown formatting object ^table-cell [ERROR] Unknown formatting object ^page-number [ERROR] Unknown formatting object ^page-number-citation [ERROR] Unknown formatting object ^basic-link [ERROR] Unknown formatting object ^flow [ERROR] Unknown formatting object ^table-header [ERROR] Unknown formatting object ^inline [ERROR] Unknown formatting object ^leader I'll look into why this is happening. Thanks for your help. -Lou Jeremias Maerki [EMAIL PROTECTED] on 04/15/2003 15:59:20 Please respond to [EMAIL PROTECTED] To: [EMAIL PROTECTED] cc: Subject: Re: xsl:import error with new jaxp and fop 0.20.5rc2 According to the non-normative DTD fragment in the XSLT spec xsl:import must occur at the very beginning withing the xsl:stylesheet element. Only xsl:include instances may occur later. Your new version has probably started checking for these rules where older versions did not. Please realize that this was a question better directed at the Xalan User mailing list. I hope this helps anyway. !ENTITY % top-level (xsl:import*, (xsl:include | xsl:strip-space | xsl:preserve-space | xsl:output | xsl:key | xsl:decimal-format | xsl:attribute-set | xsl:variable | xsl:param | xsl:template | xsl:namespace-alias %non-xsl-top-level;)*) On 15.04.2003 20:15:40 Louis.Masters wrote: I just upgraded to fop 0.20.5rc2 and switched to jaxp (newest version) and now all of my stylesheets transformations fail with the following: javax.xml.transform.TransformerException: xsl:import is not allowed in this position in the stylesheet! at org.apache.xalan.processor.StylesheetHandler.error(StylesheetHandler.java:951) at snip/ I think it has something to do with the jar files - can someone please send me a jar file version list for this version of FOP and/or any suggestions on how to fix this. Jeremias Maerki - 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: xsl:import error with new jaxp and fop 0.20.5rc2
Bingo. Several of my imported stylesheets just had the xsl namespace and not the fo one. The earlier parser I was using must have handled this differently. Thanks again. -Lou Jeremias Maerki [EMAIL PROTECTED] on 04/16/2003 07:54:22 Please respond to [EMAIL PROTECTED] To: [EMAIL PROTECTED] cc: Subject: Re: xsl:import error with new jaxp and fop 0.20.5rc2 Looks like you forgot to declare the XSL-FO namespace. The top-level element in your XSLT must look approximately like this, if you use the often-used fo namespace prefix: xsl:stylesheet version=1.1 xmlns:xsl= http://www.w3.org/1999/XSL/Transform; xmlns:fo= http://www.w3.org/1999/XSL/Format; If that's not the problem there must be a problem with namespaces in the XML parser you're using. On 16.04.2003 13:55:09 Louis.Masters wrote: Thanks. You are correct - this should have been sent to the Xalan list - I just thought I had misconfigured my jar files. Anyway, your suggestion did get me past the XSL error, but I am now seeing the following: Dumping configuration: [ERROR] Unknown formatting object ^layout-master-set [ERROR] Unknown formatting object ^simple-page-master [ERROR] Unknown formatting object ^region-before [ERROR] Unknown formatting object ^region-after [ERROR] Unknown formatting object ^region-body [ERROR] Unknown formatting object ^page-sequence-master [ERROR] Unknown formatting object ^repeatable-page-master-reference [ERROR] Unknown formatting object ^page-sequence [ERROR] Unknown formatting object ^static-content [ERROR] Unknown formatting object ^block [ERROR] Unknown formatting object ^external-graphic [ERROR] Unknown formatting object ^table [ERROR] Unknown formatting object ^table-column [ERROR] Unknown formatting object ^table-body [ERROR] Unknown formatting object ^table-row [ERROR] Unknown formatting object ^table-cell [ERROR] Unknown formatting object ^page-number [ERROR] Unknown formatting object ^page-number-citation [ERROR] Unknown formatting object ^basic-link [ERROR] Unknown formatting object ^flow [ERROR] Unknown formatting object ^table-header [ERROR] Unknown formatting object ^inline [ERROR] Unknown formatting object ^leader I'll look into why this is happening. Jeremias Maerki - 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]
xsl:import error with new jaxp and fop 0.20.5rc2
I just upgraded to fop 0.20.5rc2 and switched to jaxp (newest version) and now all of my stylesheets transformations fail with the following: javax.xml.transform.TransformerException: xsl:import is not allowed in this position in the stylesheet! at org.apache.xalan.processor.StylesheetHandler.error(StylesheetHandler.java:951) at org.apache.xalan.processor.StylesheetHandler.getProcessorFor(StylesheetHandler.java:428) at org.apache.xalan.processor.StylesheetHandler.startElement(StylesheetHandler.java:662) at org.apache.xerces.parsers.SAXParser.startElement(SAXParser.java:1371) at org.apache.xerces.validators.common.XMLValidator.callStartElement(XMLValidator.java:840) at org.apache.xerces.framework.XMLDocumentScanner.scanElement(XMLDocumentScanner.java:1853) at org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(XMLDocumentScanner.java:1234) at org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.java:381) at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:948) at org.apache.xalan.processor.TransformerFactoryImpl.newTemplates(TransformerFactoryImpl.java:972) at org.apache.xalan.processor.TransformerFactoryImpl.newTransformer(TransformerFactoryImpl.java:788) I think it has something to do with the jar files - can someone please send me a jar file version list for this version of FOP and/or any suggestions on how to fix this. Thanks, Lou - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: spanning rows across pages
I added all three keeps and this seems to fix it - thanks much!!! -Lou J.Pietschmann [EMAIL PROTECTED] on 04/02/2003 16:29:28 Please respond to [EMAIL PROTECTED] To: [EMAIL PROTECTED] cc: Subject: Re: spanning rows across pages [EMAIL PROTECTED] wrote: I'm running into a problem with using row spanning with a row that breaks across pages. I have the following table layout: ... FOP 0.20.3 jdk 1.4 There have been fixes in more recent releases, so upgrading is recommended. Row spanning cells which break across pages are still fraught with problems. You can try keep-with-next=always on the relevant rows, altough this may introduce other problems. J.Pietschmann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
spanning rows create a page with just the table header
I ran into the following issue: If my spanned rows stay on one page, they work as desired. If the data in the spanned rows is very long and it forces the rows onto a new page, I get the correct two pages, BUT they are preceded by a page that just has the table headers. For example: Working Scenario (single page, A D are spanned): Page 1 |Head1|Head2 |Head3 |Head4| |A|B |C |D| | |B |C | | | |B |C | | | |B |C | | | |B |C | | | |B |C | | Not-working scenario (should be two pages, A D are spanned): Page 1 |Head1|Head2 |Head3 |Head4| Page 2 |Head1|Head2 |Head3 |Head4| |A|B |C |D| | |B |C | | | |B |C | | | |B |C | | | |B |C | | | |B |C | | Page 3 |Head1|Head2 |Head3 |Head4| | |B |C | | | |B |C | | FOP 0.20.3 jdk 1.4 Is this fixed in a later version of FOP? -Lou - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
spanning rows across pages
I'm running into a problem with using row spanning with a row that breaks across pages. I have the following table layout: |Col1|Col2|Col3|Col4| |A |B |C |D | | |B |C | | | |B |C | | | |B |C | | | |B |C | | | |B |C | | This works fine as long as it fits on one page. When the data gets too large and causes it to flow to the next page, I get the following: |Col1|Col2|Col3|Col4| |A |B |C |D | | |B |C | | | |B |C | | | |B |C | | | |B |C | | | |B |C | | -page break |B |C | | | |B |C | | | Any ideas? FOP 0.20.3 jdk 1.4 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
what would cause height attr to be ignored
Anyone have an idea as to what would cause the height attribute to be ignored. I have the following code: fo:block height=145mm border-style=solid border-color=blue border-width=1pt fo:table table-layout=fixed width=100% height=145mm border-style= solid border-color=red border-width=1pt ... /fo:table /fo:block When it renders, the table and block collapse up to the tallest column. The last page, and only the last page, works fine (block and table are set to the correct height). I have tried it with different heights for both the block and table, but only the last page will work correctly. I have other tables working fine, but this one seems to not want to cooperate. Any hints would be appreciated. Using FOP 0.20.3 and jdk 1.4. -Lou - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
wrapping xsl-region-after
This may seem like a strange request, but I have a user asking if the footer (xsl-region-after) of a report page can wrap to the next page if there is too much data to fit into the context area. The only solution I could come up with would be moving the footer information into the xsl-region-body, but this will yield strange results when the actual detail data also wraps. Just thought I would throw it out there to see if anyone else has run into something like this. -Lou - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Page headers and footers
Without trying your code, I have seen some strange page numbers when the data in the extent is too big and causes the header to wrap on to the next page. As a test, set the size of the header to be very large and see if your page numbers start working. -Lou Granchak, Tanya [EMAIL PROTECTED] on 03/14/2003 08:07:14 Please respond to [EMAIL PROTECTED] To: [EMAIL PROTECTED] cc: Subject: Page headers and footers Hello! I'm using Fop 0.20.5. I use the following fo:page-sequence-master for the page sequence: fo:simple-page-master master-name=DefaultPage-first margin-top=0.5in margin-bottom=0.5in margin-left=1in margin-right=1in page-height=11in page-width=8.5in fo:region-body margin-top=0.3in margin-bottom=0.5in/fo:region-body fo:region-before region-name=xsl-region-before-first extent=0.4in display-align=before/fo:region-before fo:region-after region-name=xsl-region-after-first extent=0.4in display-align=after/fo:region-after /fo:simple-page-master fo:simple-page-master master-name=DefaultPage-rest margin-top=0.5in margin-bottom=0.5in margin-left=1in margin-right=1in page-height=11in page-width=8.5in fo:region-body margin-top=0.3in margin-bottom=0.5in/fo:region-body fo:region-before region-name=xsl-region-before extent=0.4in display-align=before/fo:region-before fo:region-after region-name=xsl-region-after extent=0.4in display-align=after/fo:region-after /fo:simple-page-master fo:page-sequence-master master-name=DefaultPage fo:repeatable-page-master-alternatives fo:conditional-page-master-reference master-reference=DefaultPage-first page-position=first /fo:conditional-page-master-reference fo:conditional-page-master-reference master-reference=DefaultPage-rest page-position=rest /fo:conditional-page-master-reference /fo:repeatable-page-master-alternatives /fo:page-sequence-master fo:page-sequence contains: fo:page-sequence id=XSLTbook120120 hyphenate=true master-reference=DefaultPage language=en format=1 fo:static-content flow-name=xsl-region-after-first fo:block font-family=serif margin-left=-4pc margin-right=-4pc /fo:block /fo:static-content fo:static-content flow-name=xsl-region-after fo:block font-family=serif margin-left=-4pc margin-right=-4pc fo:table table-layout=fixed width=100% border-top-width=0.5pt border-top-style=solid border-top-color=black fo:table-column column-number=1 column-width=33%/fo:table-column fo:table-column column-number=2 column-width=34%/fo:table-column fo:table-column column-number=3 column-width=33%/fo:table-column fo:table-body fo:table-row height=14pt fo:table-cell text-align=left relative-align=baseline display-align=after fo:block fo:block/fo:block /fo:block /fo:table-cell fo:table-cell text-align=center relative-align=baseline display-align=after fo:block fo:block fo:page-number/fo:page-number /fo:block /fo:block /fo:table-cell fo:table-cell text-align=right relative-align=baseline display-align=after fo:block fo:block/fo:block /fo:block /fo:table-cell /fo:table-row /fo:table-body /fo:table /fo:block /fo:static-content fo:flow flow-name=xsl-region-body .. Page numbers are generated for the pages: 2, 5, 8, 11, and so on. It is incorrect. What is the reason for the problem? Regards, Tanya Granchak - 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: dynamic table
Sample code for this below: xsl:for-each select=reportcols fo:table-column column-width=[EMAIL PROTECTED]/ /xsl:for-each -Lou [EMAIL PROTECTED] on 03/17/2003 10:12:58 Please respond to [EMAIL PROTECTED] To: [EMAIL PROTECTED] cc: Subject: Re: dynamic table do a xml-for each on the xmltag that specifies the table, when setting the fo:column column-width and around the table-cells... Jochen Maes ICT Development KBC Securities (kbcsecurities.com) Havenlaan 12 Avenue du Port SIF 8683 B-1080 Brussels Belgium Tel: +32 2 429 96 81 GSM: +32 496 57 90 99 E-mail : [EMAIL PROTECTED] This message and any attachments hereto are for the named person's use only. It may contain confidential, proprietary or legally privileged information. You may not, directly or indirectly, use, disclose, distribute, print, or copy any part of this message if you are not the intended recipient. If you have received this e-mail message without being the intended recipient, please notify KBC Securities promptly and delete this e-mail. Any views expressed in this message are those of the individual sender, except where the message states otherwise and the sender is authorised to state them to be the views of KBC Securities. KBC Securities reserves the right to monitor all e-mail communications through its networks and any messages addressed to, received or sent by KBC Securities or its employees are deemed to be professional in nature. The sender or recipient of any messages to or of KBC Securities agrees that those may be read by other employees of KBC Securities than the stated recipient or sender in order to ensure the continuity of work-related activities and allow supervision thereof. KBC Securities does not accept liability for the correct and complete transmission of the information, nor for any delay or interruption of the transmission, nor for damages arising from the use of, or reliance on, the information. patrick-peter.mannhar [EMAIL PROTECTED]To: [EMAIL PROTECTED] cc: 17/03/2003 16:09 Subject: dynamic table Please respond to fop-user Hi, does smoebody knows how I can generate dynamical Tables (esp. rows!) in XSL-FO? For ex. I def. a table with 4 columns, but the number of rows isn't well-known at the moment? Thank's for help regards patrick - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: number-rows-spanned
I use number-rows-spanned in 0.20.3: fo:table-cell number-rows-spanned=2 /fo:table-cell -Lou Clay Leeds [EMAIL PROTECTED] on 03/17/2003 11:47:37 Please respond to [EMAIL PROTECTED] To: FOP-User [EMAIL PROTECTED] cc: Subject: number-rows-spanned I successfully use number-columns-spanned in my XSL-FO files. However, I can not figure out how to do number-rows-spanned correctly. I now see in the FOP:Implemented:Properties section, that number-columns-spanned is cited but number-rows-spanned is not. This may account for my difficulties. Has the functionality for number-rows-spanned been added to FOP while the maintainer of the Implemented list was asleep (wishful thinking-to-be-sure). I wonder what other features have been added while no one was looking. Is there some type of search engine in CVS which could be used to output Implemented list to ensure we're not missing some object|property that's been implemented, or is that wishful thinking too ;-)? -- Clay Leeds - [EMAIL PROTECTED] Web Developer - Medata, Inc. - http://www.medata.com PGP Public Key: https://mail.medata.com/pgp/cleeds.asc - 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: number-rows-spanned
1. No idea - I have not tried to upgrade yet. 2. OK, I didn't actually run this, but it should work: fo:table-row fo:table-cell/ fo:table-cell/ fo:table-cell number-rows-spanned=2/ /fo:table-row fo:table-row fo:table-cell/ fo:table-cell/ /fo:table-row fo:table-row fo:table-cell number-columns-spanned=2/ fo:table-cell/ /fo:table-row Try it out and let me know. If it doesn't work, I'll send you the complete xsl file that we use. -Lou Clay Leeds [EMAIL PROTECTED] on 03/17/2003 11:57:05 Please respond to [EMAIL PROTECTED] To: [EMAIL PROTECTED] cc: Subject: Re: number-rows-spanned Lou, Thanks for the quick reply. That's GREAT! A couple of questions: 1. Does it work in 0.20.4 and/or 0.20.5x? 2. Can you give me an example? I'd like to do something like this: |===| | | | | | | | | | | | | |===| | | | | | | | | | | | | | |===| | | | | | | | | | |===| Many thanks! [EMAIL PROTECTED] wrote: I use number-rows-spanned in 0.20.3: fo:table-cell number-rows-spanned=2 /fo:table-cell -Lou -- Clay Leeds - [EMAIL PROTECTED] Web Developer - Medata, Inc. - http://www.medata.com PGP Public Key: https://mail.medata.com/pgp/cleeds.asc - 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: Cyrillic Characters not showing on PDF with Cyrillic Font
I just went through implementing a doc in Chinese and the first place I always looked for font issues was the system.out. Most of the time when I was getting # instead of the characters I wanted, there was an error pointing me in the right direction in my system.out log. -Lou Daniel, Gillian [EMAIL PROTECTED] on 02/11/2003 09:54:37 Please respond to [EMAIL PROTECTED] To: [EMAIL PROTECTED] cc: Subject: Cyrillic Characters not showing on PDF with Cyrillic Font Hi there, I am sorry to bother you all again about my Cyrillic Font problem, but I have gotten further now and think that perhaps someone might have a better idea of what I can do now. I have checked the various stages, from creating an XML file with castor with all the information from the database to be included in the PDF, to transforming this XML file and my XSL file to the input required to create the PDF with javax.xml.transform.Transformer. In the files, you can see the Russian Characters which are supposedly viewable on my PDF. I have downloaded various TTF fonts, which are meant to be able to handle Cyrillic characters. I followed the instructions on how to create an metrics.xml file for each one and have declared them in my userconfig.xml file. The only problem is, I still get instead of the words, or nothing at all. I have no idea what to do now, and was hoping perhaps someone could point me to a font that will work, or tell me exactly what I am doing wrong. I can provide any other information you might require. I am a novice at this, as this is my first job since graduating from university, so any help would be so very gratefully appreciated. Your hopefully Gillian Daniel - 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: embed Fonts in FOP (not from the command line)
Actually, I don't use the userconfig.xml file anymore. I set most of my config info in my java class. For example: Configuration.put(baseDir, file: + new File(.).getAbsolutePath()); or Configuration.put(fonts, allFonts); Check out FontTriplet and FontInfo in the API. -Lou Noel Golding [EMAIL PROTECTED] on 02/05/2003 13:14:43 Please respond to [EMAIL PROTECTED] To: [EMAIL PROTECTED] cc: Subject: embed Fonts in FOP (not from the command line) I need to create a pdf that embeds the fonts. From what I could find in order to use the userconfig.xml file you need to use the command line. I have embeded FOP into a JAVA application and I am not sure how to proceed setit to use the config file. I am using FOP 2.0.1 Thank you Noel Golding - 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: external-graphic problem
Here is our working code: xsl:if test=@isrc!='' fo:external-graphic scaling=uniform height=auto width=auto content-width=auto content-height=auto src=[EMAIL PROTECTED]/ /xsl:if If I remember right, you also have to set the basedir (either in your userconfig.xml or via Java): Configuration.put(baseDir, file: + imgSrcDir); -Lou Mihael Knezevic [EMAIL PROTECTED] on 02/04/2003 07:56:52 Please respond to [EMAIL PROTECTED] To: [EMAIL PROTECTED] cc: Subject: external-graphic problem hi, i think i got a simple problem and probably everybody will point me to the fop faq but i need an example (hopefully a working one). i want to have one pic on one page. i got the following xml file: Bericht Bild source=wgr-50.jpg / Bild source=wgr-60.jpg / Bild source=wgr-70.jpg / Bild source=wgr-80.jpg / ... /Bericht i got the following xsl line in my xsl file: fo:external-graphic src=@source / but i get the error message: [ERROR]: Error while creating area : Error with image URL: @source (Das System kann die angegebene Datei nicht finden) and no base directory is specified can anybody help? thanx mk - 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]
embedded vs not doc size
Hmmm... I have just finished embedded Chinese characters in a document using the MS Song font and the file comes to about 55K. When I remove the embedding line in userconfig, the file becomes 141K. Can someone explain this to me? Thanks, -Lou - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
which is more efficient - empty cells or spanned empty cell
Does anyone have any opinion on what is more efficient in FOP: 1. Having one empty cell spanning several cells or 2. Having multiple non-spanned cells ? For example: #1: fo:table-cell number-columns-spanned=3/ or #2: fo:table-cell/ fo:table-cell/ fo:table-cell/ I'm guessing it is #1 since it will probably need to process less and have a smaller tag tree. Thanks, Lou - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Embedding a table in a table-row
Here is my code: fo:table-cell fo:block xsl:call-template name = processSubTable xsl:with-param name=tableheight select=auto/ /xsl:call-template ... with the template looking like: xsl:template name=processSubTable xsl:param name=tableheight auto /xsl:param fo:table space-before.optimum=3pt space-after.optimum=3pt width=100% height={$tableheight} fo:table-column ... /fo:table-column fo:table-header ... /fo:table-header fo:table-body ... /fo:table-body /fo:table /xsl:template -Lou Hahn Kurt (CHA) [EMAIL PROTECTED] on 06/12/2002 04:45:33 AM Please respond to [EMAIL PROTECTED] To: [EMAIL PROTECTED] cc: Subject: Embedding a table in a table-row I'm trying to embed a table in a table row. It seems to work, but my text isn't displayed (not even the test block text I inserted): What I'm seeing is two thick lines, and I'm suspecting each line represents one row (because I should get two rows with the template below).Why are they compressed like this? Do I need to use some other property in order to be able to display an embedded table? Or is just some error in my code? Thanks in advance The definition of the wrapping table: fo:table border-style=solid font-size=10pt fo:table-column column-width=17cm/ fo:table-body xsl:apply-templates select=//eleTexte:listeAffaires/ /fo:table-body /fo:table and here goes the template that should fill one row of the table: xsl:template match=eleTexte:soustitre1 fo:table-row font-size=14pt font-weight=bold height=40pt fo:table-cell fo:table border-style=solid font-size=10pt fo:table-column column-width=0.8cm/ fo:table-column column-width=16.2cm/ fo:table-row height=30pt fo:table-cellfo:blocktext/fo:block fo:blockxsl:value-of select=.//fo:block /fo:table-cell fo:table-cell fo:blockxsl:value-of select=../eleTexte:soustitre1_text//fo:block /fo:table-cell /fo:table-row /fo:table /fo:table-cell /fo:table-row /xsl:template
servlet called twice and subsequence error
I'm running into the issue of the fop servlet being called twice and I am getting the following error: ERROR [fop]:Page subsequences exhausted. Using previous subsequence. Anyone have any ideas what this means? Thanks, Lou