Re: Memory consumption
Robert, Robert C. Leif wrote: Most memory leaks are the result of using pointers. If a language provides a construct that can replace the use of pointers, then this problem can be minimized. Java has significant overhead because it checks its dispatching at run-time rather than at compile time. As you may know, there are two types of memory leaks: physical leaks resulting from bad pointer handling, and logical leaks which occur as described below -- when a program holds on to data longer than it should. The classic Java example is the Map-based cache that grows forever. Java's GC automatically handles the classic pointer-related memory leaks; the logical leaks are nastier beasts to track down and require some sort of memory heap snapshot or real-time profiler. Ada, C, C++, C#, VB, Perl, Python, etc. are all susceptible to this type of memory leak, just as each of those languages are capable of storing information in arrays or array-like structures. Sadly, our FOP also suffers from one or more logical memory leaks. Tracking it down really shouldn't be that hard; someone just needs to use the JDK profiling tools, a third-party tool, or their eyes to track down where FOP isn't dereferencing the appropriate objects. It may very well be that a List or Map is hanging around someplace. Ben Bob Leif Robert C. Leif, Ph.D. Email [EMAIL PROTECTED] -Original Message- From: Ben Galbraith [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 16, 2003 8:22 AM To: [EMAIL PROTECTED] Subject: Re: Memory consumption Robert C. Leif wrote: This memory link probably would not have occurred if you had used Ada. Many If *I* had used Ada? :-) I've contributed 0.1% of the FOP code (a measly patch for CMYK images); don't look @ me! Let's not get into debates about superior languages; I think time has shown the topic to be a morass of flame wars and pointless arguments. As far as memory leaks go, the notion of a program continuing to reference memory unnecessarily is fairly language agnostic. Ben of the items that Java internally represents as pointers can be coded as Ada generics (templates), which incidentally can be combined with tagged types (classes)to provide a very flexible form of inheritance. Java is still not portable, since it requires its own environment and is not an ISO standard. Ada is an ISO standard. Even C# would have been a better choice; at least it is an ECMA standard and has a decent execution speed. Bob Leif Robert C. Leif, Ph.D. Email [EMAIL PROTECTED] -Original Message- From: Ben Galbraith [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 16, 2003 7:28 AM To: [EMAIL PROTECTED] Subject: Re: Memory consumption Folks, If you haven't figured it out yet, let me inform you: FOP suffers from large memory leaks. A memory leak in Java is nothing mysterious; it occurs because a program never dereferences objects, which prevents the Java garbage collector thread from reclaiming them. Thus, no matter how many times you try to tell the GC thread to collect (with System.gc() and other nonsense) the memory will never be reclaimed. There are only two solutions: 1. Split up FOP generation into discreet jobs, and spawn a new JVM to generate each job. You can get fancy and create a system that uses a spawned JVM until it runs out of memory -- use the Runtime objects memory methods to check. 2. Fix FOP's memory leak problem. I've had this on my to-do list to patch in maintenance for some time, but frankly, for me it was much cheaper to distribute FOP jobs across our network in parallel jobs running on multiple JVMs. Parallel computing, baby. Ben Ganesh wrote: If you can afford the gc time consumption then there is a sure way of garbage collection. This method will ensure that garbage is collected for sure...Use the Sizeof class as given in the java world article below. This is a sure way of garbage collection, but then it slows down the system ! http://www.javaworld.com/javaworld/javatips/jw-javatip130.html -Original Message- From: Dennis Myrén [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 16, 2003 7:12 PM To: [EMAIL PROTECTED] Subject: RE: Memory consumption I am not an expert in java memory handling either, But I suggest you release all handles after each run in the loop, And then perform a garbage collect. Regards, dennis.myren -Original Message- From: Timo Haberkern [mailto:[EMAIL PROTECTED] Sent: 16. september 2003 15:38 To: [EMAIL PROTECTED] snip/ I'm not really the expert on JVM Memory Management, but AFAICT these declarations belong outside the 'for'-loop. (Not sure whether this is causing memory problems, but it just seems ... more elegant. If they really do not depend on the variables changing in the loop, that is... If behaviour would be what I'm guessing, then these would consume memory - the total of which would only be released on completion of the loop...) snip/ No :-( That doesn't help anything... Any other
RE: embedding fop0.20.5 working on jdk1.3.1-linux?
java.lang.NoSuchMethodError: org.apache.batik.dom.AbstractAttr: method isReadonly()Z not found at org.apache.batik.dom.GenericAttr.(GenericAttr.java:42) at org.apache.batik.dom.AbstractAttr.setValue(AbstractAttr.java:177) at org.apache.batik.dom.svg.AbstractElement$ExtendedNamedNodeHashMap.setUns peci fiedAttribute(AbstractElement.java:238) These isReadonly error comes only when there is more than one XML parsers are available in your classpath or current directory. Check it out. Ganesh -Original Message- From: Cai, Judy [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 16, 2003 11:17 PM To: '[EMAIL PROTECTED]' Subject: RE: embedding fop0.20.5 working on jdk1.3.1-linux? I tried to trace the exception stack. But I still don't know where is going wrong. Is the problem is batik.jar or something else. Could you give me some hint? Here is the output: root cause java.lang.NoSuchMethodError: org.apache.batik.dom.AbstractAttr: method isReadonly()Z not found at org.apache.batik.dom.GenericAttr.(GenericAttr.java:42) at org.apache.batik.dom.AbstractAttr.setValue(AbstractAttr.java:177) at org.apache.batik.dom.svg.AbstractElement$ExtendedNamedNodeHashMap.setUns peci fiedAttribute(AbstractElement.java:238) at org.apache.batik.dom.svg.AbstractElement.setUnspecifiedAttribute(Abstrac tEle ment.java:149) at org.apache.batik.dom.svg.AttributeInitializer.resetAttribute(AttributeIn itia lizer.java:94) at org.apache.batik.dom.svg.AttributeInitializer.initializeAttributes(Attri bute Initializer.java:70) at org.apache.batik.dom.svg.AbstractElement.initializeAttributes(AbstractEl emen t.java:115) at org.apache.batik.dom.svg.AbstractElement.(AbstractElement.java:59) at org.apache.batik.dom.svg.SVGOMElement.(SVGOMElement.java:72) at org.apache.batik.dom.svg.SVGStylableElement.(SVGStylableElement.java:70) at org.apache.batik.dom.svg.SVGOMSVGElement.(SVGOMSVGElement.java:103) at org.apache.batik.dom.svg.SVGDOMImplementation$SvgElementFactory.create(S VGDO MImplementation.java:1508) at org.apache.batik.dom.svg.ExtensibleSVGDOMImplementation.createElementNS( Exte nsibleSVGDOMImplementation.java:212) at org.apache.batik.dom.svg.SVGOMDocument.createElementNS(SVGOMDocument.jav a:33 8) at org.apache.batik.dom.svg.SVGDOMImplementation.createDocument(SVGDOMImple ment ation.java:175) at org.apache.batik.dom.util.SAXDocumentFactory.startElement(SAXDocumentFac tory .java:471) at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source) at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source) at org.apache.xerces.impl.XMLNSDocumentScannerImpl$NSContentDispatcher.scan Root ElementHook(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDis patc her.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unkno wn Source) at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source) at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at org.apache.batik.dom.util.SAXDocumentFactory.createDocument(SAXDocumentF acto ry.java:347) at org.apache.batik.dom.util.SAXDocumentFactory.createDocument(SAXDocumentF acto ry.java:276) at org.apache.batik.dom.svg.SAXSVGDocumentFactory.createDocument(SAXSVGDocu ment Factory.java:183) at org.apache.fop.image.analyser.SVGReader.loadImage(SVGReader.java:101) at org.apache.fop.image.analyser.SVGReader.verifySignature(SVGReader.java:8 5) at org.apache.fop.image.analyser.ImageReaderFactory.Make(ImageReaderFactory .jav a:129) at org.apache.fop.image.FopImageFactory.Make(FopImageFactory.java:181) at org.apache.fop.fo.flow.ExternalGraphic.layout(ExternalGraphic.java:188) at org.apache.fop.fo.flow.Block.layout(Block.java:257) at org.apache.fop.fo.flow.TableCell.layout(TableCell.java:326) at org.apache.fop.fo.flow.TableRow.layout(TableRow.java:360) at org.apache.fop.fo.flow.AbstractTableBody.layout(AbstractTableBody.java:2 36) at org.apache.fop.fo.flow.Table.layout(Table.java:302) at org.apache.fop.fo.flow.AbstractFlow.layout(AbstractFlow.java:154) at org.apache.fop.fo.flow.AbstractFlow.layout(AbstractFlow.java:110) at org.apache.fop.fo.pagination.PageSequence.makePage(PageSequence.java:400 ) at org.apache.fop.fo.pagination.PageSequence.format(PageSequence.java:338) at org.apache.fop.apps.StreamRenderer.render(StreamRenderer.java:262) at org.apache.fop.fo.FOTreeBuilder.endElement(FOTreeBuilder.java:223) at
Hyphenation on free text
Hi all, I am using 20.4 version in Win 2K. I am trying to use en_GB to hyphenate long free text without spacing. However, I find there is a problem with the output pdf. I have made a sample.xml with a long free text as shown in the attached document (sample3.xml) with continuous character - 'AABBCCC..' and so on. I find that the appearance of the characters become dis-order after the line breaking (please find in the output.pdf). I don't know whether it is due to the xslt problem or fo problem. Please give me some suggestions. Thank for your help in advance. Sherlane __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com10 Sep 200310/09/200310-09-20032003-09-1010-SEP-2003PPPriority payment13 Dec 200213/12/200213-12-20022002-12-1313-DEC-2002 1234567 1234 12345678HKD100.0012 12 12 1212 1 212 121 121 121 121HKHBAP 222 999411B00NXQ111 112003-09-10-02.00.15.077785AABBCCDDEEFFGGHHIIJJKKLLMMNNOOPPQQRRSSTTUUVVWWXXYYZZaabbccddeeffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyy?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:template match=/ fo:root !-- defines page layout -- fo:layout-master-set fo:simple-page-master master-name=simple page-height=27.9cm page-width=21cm margin-top=1.5cm margin-bottom=1.5cm margin-left=1.5cm margin-right=1.5cm fo:region-body margin-top=2.75cm margin-bottom=3cm/ fo:region-before extent=5cm/ fo:region-after extent=3cm/ /fo:simple-page-master /fo:layout-master-set fo:page-sequence master-reference=simple initial-page-number=1 fo:flow flow-name=xsl-region-body fo:table table-layout=fixed padding-after=0.5cm fo:table-column column-width=17cm/ fo:table-body fo:table-row line-height=12pt fo:table-cell fo:block text-align=left font-size=08pt font-family=Times fo:wrapperTEST 8y xslt + xml - pdf /fo:wrapper /fo:block /fo:table-cell /fo:table-row fo:table-row fo:table-cell fo:block hyphenate=true language=en_GB text-align=left font-size=08pt font-family=Times white-space-collapse=false fo:wrapper xsl:for-each select=Advice/FreeText xsl:apply-templates/xsl:apply-templates /xsl:for-each /fo:wrapper !--xsl:value-of select=Advice/FreeText/-- /fo:block /fo:table-cell /fo:table-row /fo:table-body /fo:table /fo:flow /fo:page-sequence /fo:root /xsl:template /xsl:stylesheet Output.pdf Description: Output.pdf - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: container position=absolute seems to be off
From: Randy Paries [EMAIL PROTECTED] it seems that the first box start 1/8 to long and the 1' block-containers are actually 7/8's of an inch. So by the time we get half way down the sheet the labels are all off. Your example worked for me on FOP 0.20.5 and RenderX. Note, that you have drawn the border around the fo:block inside the container so it does look like the block-container is 7/8' but in fact this is fo:block which is inside the block-container. I did my measurements using grid view inside Acrobat reader. Are you measuring a print out? I didnt print it out. One observation is that you havent specified the margin on the page-master, which will be needed for printing as all printers have a small unprintable margin. Chris Chris _ Use MSN Messenger to send music and pics to your friends http://www.msn.co.uk/messenger - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: container position=absolute seems to be off
-Original Message- From: Chris Bowditch [mailto:[EMAIL PROTECTED] From: Randy Paries [EMAIL PROTECTED] it seems that the first box start 1/8 to long and the 1' block-containers are actually 7/8's of an inch. So by the time we get half way down the sheet the labels are all off. Your example worked for me on FOP 0.20.5 and RenderX. Note, that you have drawn the border around the fo:block inside the container so it does look like the block-container is 7/8' but in fact this is fo:block which is inside the block-container. I did my measurements using grid view inside Acrobat reader. Are you measuring a print out? I didnt print it out. One observation is that you havent specified the margin on the page-master, which will be needed for printing as all printers have a small unprintable margin. And I just want to add: Make sure that the printer's paper is the same size that is specified in the simple-page-master. Just could have sth to do with the page being stretched / shrunk to fit on the actual paper size... (had this kind of prob myself once). Greetz, Andreas Delmelle - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: fo:basic-link
From: Lucian Opris [EMAIL PROTECTED] Hi, I've tried to use fo:basic-link internal-destination= in region-start section but no result came out. It's fine if I'm using the same code in regin-body. Do you know a fix for that or is a bug? Thanks a lot Do you see any output in the console? Try running your example from the command line and post a small snippet of the console output to the list. I am just wondering whether content in your static regions is being truncated. It would also be helpful to see a small snippet of your FO document. Chris _ Tired of 56k? Get a FREE BT Broadband connection http://www.msn.co.uk/specials/btbroadband - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Hyphenation on free text
From: Sherlane Lam [EMAIL PROTECTED] Hi all, snip/ I have made a sample.xml with a long free text as shown in the attached document (sample3.xml) with continuous character - 'AABBCCC..' and so on. I find that the appearance of the characters become dis-order after the line breaking (please find in the output.pdf). I don't know whether it is due to the xslt problem or fo problem. Please give me some suggestions. I believe this behaviour was a bug in 0.20.4. Please upgrade to 0.20.5, as this problem should be fixed. Chris _ Stay in touch with absent friends - get MSN Messenger http://www.msn.co.uk/messenger 10 Sep 200310/09/200310-09-20032003-09-1010-SEP-2003PPPriority payment13 Dec 200213/12/200213-12-20022002-12-1313-DEC-2002 1234567 1234 12345678HKD100.0012 12 12 1212 1 212 121 121 121 121HKHBAP 222 999411B00NXQ111 112003-09-10-02.00.15.077785AABBCCDDEEFFGGHHIIJJKKLLMMNNOOPPQQRRSSTTUUVVWWXXYYZZaabbccddeeffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: embedding fop0.20.5 working on jdk1.3.1-linux?
Thanks, Ganesh Is XML parsers xercesImpl-2.2.1.jar? I can not find other XML Parsers in my classpath and current fop0.20.5 directory. I tried running the Sample document on the command line on the linux machine? There is also java.lang.NoSuchMethodError: org.apache.batik.dom.AbstractAttr: method isReadonly()Z not found. I narrowed down the problem to the input image file from my xsl file. If I comment fo:blockfo:external-graphic src=file:nsf_logo.svg / /fo:block from my xsl file, it did generate PDF file. Otherwise, it will cause java.lang.NoSuchMethodError method: org.apache.batik.dom.AbstractAttr: isReadonly()Z not found. But I put svg image files, xml file, xsl file, pdf file and fop.sh in the same folder fop-0.20.5. There is no reason FOP can not find the image file. Could you explain the reason? Thanks Judy Cai -Original Message- From: Ganesh [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 16, 2003 11:41 PM To: [EMAIL PROTECTED] Subject: RE: embedding fop0.20.5 working on jdk1.3.1-linux? java.lang.NoSuchMethodError: org.apache.batik.dom.AbstractAttr: method isReadonly()Z not found at org.apache.batik.dom.GenericAttr.(GenericAttr.java:42) at org.apache.batik.dom.AbstractAttr.setValue(AbstractAttr.java:177) at org.apache.batik.dom.svg.AbstractElement$ExtendedNamedNodeHashMap.setUns peci fiedAttribute(AbstractElement.java:238) These isReadonly error comes only when there is more than one XML parsers are available in your classpath or current directory. Check it out. Ganesh - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: fo:basic-link
Hi, I do not see any output in console and no errors. I've run the example from command line and I got the same result. Attached is a snippet of FO doccument. Thank you Lucian Opris -Original Message- From: Chris Bowditch [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 17, 2003 4:53 AM To: [EMAIL PROTECTED] Subject: Re: fo:basic-link From: Lucian Opris [EMAIL PROTECTED] Hi, I've tried to use fo:basic-link internal-destination= in region-start section but no result came out. It's fine if I'm using the same code in regin-body. Do you know a fix for that or is a bug? Thanks a lot Do you see any output in the console? Try running your example from the command line and post a small snippet of the console output to the list. I am just wondering whether content in your static regions is being truncated. It would also be helpful to see a small snippet of your FO document. Chris _ Tired of 56k? Get a FREE BT Broadband connection http://www.msn.co.uk/specials/btbroadband - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ?xml version=1.0? xsl:stylesheet version=1.0 xmlns:xsl=http://www.w3.org/1999/XSL/Transform; xmlns:fo=http://www.w3.org/1999/XSL/Format; xmlns:fox=http://xml.apache.org/fop/extensions; xmlns:math=http://exslt.org/math; xmlns:exsl=http://exslt.org/functions; xmlns:xalan=http://xml.apache.org/xalan; extension-element-prefixes=xalan exclude-result-prefixes=xalan !--xsl:output indent=yes/-- xsl:template match=/ fo:root fo:layout-master-set fo:simple-page-master margin-right=0mm margin-left=14mm margin-bottom=0mm margin-top=9mm page-width=215.9mm page-height=279.4mm master-name=first fo:region-before extent=35mm region-name=header-first precedence=true/ xsl:choose xsl:when test=Product/ProductStatus/@documentStatus lt; '7' fo:region-body margin-top=35mm margin-bottom=20mm margin-left=66mm margin-right=10mm background-image=/nas/web/clients/kbw/style/Draft1.gif/ /xsl:when xsl:otherwise fo:region-body margin-top=35mm margin-bottom=20mm margin-left=66mm margin-right=10mm/ /xsl:otherwise /xsl:choose fo:region-after extent=20mm region-name=footer-first precedence=true/ fo:region-start extent=63mm region-name=start-first/ /fo:simple-page-master fo:simple-page-master margin-right=0mm margin-left=14mm margin-bottom=0mm margin-top=12mm page-width=215.9mm page-height=279.4mm master-name=second fo:region-before extent=23mm region-name=header-second/ xsl:choose xsl:when test=Product/ProductStatus/@documentStatus lt; '7' fo:region-body margin-top=24mm margin-bottom=17mm margin-right=10mm background-image=/nas/web/clients/kbw/style/Draft1.gif/ /xsl:when xsl:otherwise fo:region-body margin-top=24mm margin-bottom=17mm margin-right=10mm/ /xsl:otherwise /xsl:choose fo:region-after extent=15mm region-name=footer-second/ /fo:simple-page-master fo:page-sequence-master master-name=run1 fo:repeatable-page-master-alternatives fo:conditional-page-master-reference master-reference=first page-position=first/ fo:conditional-page-master-reference master-reference=second page-position=rest/ fo:conditional-page-master-reference master-reference=second / /fo:repeatable-page-master-alternatives /fo:page-sequence-master /fo:layout-master-set fo:static-content flow-name=start-first !-- THIS PORTION IS NOT WORKING -- fo:block font-size=11pt xsl:apply-templates select=//Content/Resource/Data/body_text/H2 mode=toc/ /fo:block /fo:static-content fo:flow flow-name=xsl-region-body border-width=0.2pt !-- THIS PORTION IS WORKING -- fo:block font-size=11pt xsl:apply-templates select=//Content/Resource/Data/body_text/H2 mode=toc/ /fo:block /fo:flow /fo:page-sequence /fo:root /xsl:template xsl:template match=//Content/Resource/Data/body_text/H2 fo:table table-layout=fixed id={generate-id()} fo:table-column column-width=53mm/ fo:table-column column-width=5mm/ fo:table-column column-width=133.9mm/ fo:table-body fo:table-row fo:table-cell fo:block padding-top=1mm font-style=italic xsl:for-each select=CallOuts fo:block xsl:value-of select=./xsl:text /xsl:text /fo:block /xsl:for-each /fo:block /fo:table-cell fo:table-cell/
RE: fo:basic-link
From: Lucian Opris [EMAIL PROTECTED] Hi, I do not see any output in console and no errors. I've run the example from command line and I got the same result. I know result is same, I just wanted to know what you saw on Console. So you dont see anything like; [INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser [INFO] FOP 0.20.5 [INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser [INFO] building formatting object tree [INFO] setting up fonts [INFO] [1] [INFO] Parsing of document complete, stopping renderer It may help to post what you see here. Attached is a snippet of FO doccument. Hmmm hotmail insists that there is a virus in your attachment so I cant look at it. Could you re-send (minus virus of course)? snip/ Chris _ Get Hotmail on your mobile phone http://www.msn.co.uk/msnmobile - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: fo:basic-link
the snippet without attachment ?xml version=1.0? xsl:stylesheet version=1.0 xmlns:xsl=http://www.w3.org/1999/XSL/Transform; xmlns:fo=http://www.w3.org/1999/XSL/Format; xmlns:fox=http://xml.apache.org/fop/extensions; xmlns:math=http://exslt.org/math; xmlns:exsl=http://exslt.org/functions; xmlns:xalan=http://xml.apache.org/xalan; extension-element-prefixes=xalan exclude-result-prefixes=xalan !--xsl:output indent=yes/-- xsl:template match=/ fo:root fo:layout-master-set fo:simple-page-master margin-right=0mm margin-left=14mm margin-bottom=0mm margin-top=9mm page-width=215.9mm page-height=279.4mm master-name=first fo:region-before extent=35mm region-name=header-first precedence=true/ xsl:choose xsl:when test=Product/ProductStatus/@documentStatus lt; '7' fo:region-body margin-top=35mm margin-bottom=20mm margin-left=66mm margin-right=10mm background-image=/nas/web/clients/kbw/style/Draft1.gif/ /xsl:when xsl:otherwise fo:region-body margin-top=35mm margin-bottom=20mm margin-left=66mm margin-right=10mm/ /xsl:otherwise /xsl:choose fo:region-after extent=20mm region-name=footer-first precedence=true/ fo:region-start extent=63mm region-name=start-first/ /fo:simple-page-master fo:simple-page-master margin-right=0mm margin-left=14mm margin-bottom=0mm margin-top=12mm page-width=215.9mm page-height=279.4mm master-name=second fo:region-before extent=23mm region-name=header-second/ xsl:choose xsl:when test=Product/ProductStatus/@documentStatus lt; '7' fo:region-body margin-top=24mm margin-bottom=17mm margin-right=10mm background-image=/nas/web/clients/kbw/style/Draft1.gif/ /xsl:when xsl:otherwise fo:region-body margin-top=24mm margin-bottom=17mm margin-right=10mm/ /xsl:otherwise /xsl:choose fo:region-after extent=15mm region-name=footer-second/ /fo:simple-page-master fo:page-sequence-master master-name=run1 fo:repeatable-page-master-alternatives fo:conditional-page-master-reference master-reference=first page-position=first/ fo:conditional-page-master-reference master-reference=second page-position=rest/ fo:conditional-page-master-reference master-reference=second / /fo:repeatable-page-master-alternatives /fo:page-sequence-master /fo:layout-master-set fo:static-content flow-name=start-first !-- THIS PORTION IS NOT WORKING -- fo:block font-size=11pt xsl:apply-templates select=//Content/Resource/Data/body_text/H2 mode=toc/ /fo:block /fo:static-content fo:flow flow-name=xsl-region-body border-width=0.2pt !-- THIS PORTION IS WORKING -- fo:block font-size=11pt xsl:apply-templates select=//Content/Resource/Data/body_text/H2 mode=toc/ /fo:block /fo:flow /fo:page-sequence /fo:root /xsl:template xsl:template match=//Content/Resource/Data/body_text/H2 fo:table table-layout=fixed id={generate-id()} fo:table-column column-width=53mm/ fo:table-column column-width=5mm/ fo:table-column column-width=133.9mm/ fo:table-body fo:table-row fo:table-cell fo:block padding-top=1mm font-style=italic xsl:for-each select=CallOuts fo:block xsl:value-of select=./xsl:text /xsl:text /fo:block /xsl:for-each /fo:block /fo:table-cell fo:table-cell/ fo:table-cell fo:block space-before.optimum=4px font-family=Times font-weight=bold font-size=16px xsl:apply-templates/ /fo:block /fo:table-cell /fo:table-row /fo:table-body /fo:table /xsl:template xsl:template match=//Content/Resource/Data/body_text/H2 mode=toc fo:block fo:basic-link internal-destination={generate-id()} xsl:value-of select=./ /fo:basic-link /fo:block /xsl:template /xsl:stylesheet Lucian Opris Programmer Analyst -Original Message- From: Chris Bowditch [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 17, 2003 9:59 AM To: [EMAIL PROTECTED] Subject: RE: fo:basic-link From: Lucian Opris [EMAIL PROTECTED] Hi, I do not see any output in console and no errors. I've run the example from command line and I got the same result. I know result is same, I just wanted to know what you saw on Console. So you dont see anything like; [INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser [INFO] FOP 0.20.5 [INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser [INFO] building formatting object tree [INFO] setting up fonts [INFO] [1] [INFO] Parsing of document complete,
RE: fo:basic-link
I've notice that the actual internal link is on the same line but starts on body region and the text remains on start region. Very strange. I'm using FOP 0.20.4. Thanks Lucian Opris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: fo:basic-link
From: Lucian Opris [EMAIL PROTECTED] the snippet without attachment thanks, although you've sent XSLT not XSL-FO. big snip/ fo:static-content flow-name=start-first this might be the problem. IIRC FOP doesnt yet support referencing named regions, and only works with xsl-region-before. !-- THIS PORTION IS NOT WORKING -- fo:block font-size=11pt xsl:apply-templates select=//Content/Resource/Data/body_text/H2 mode=toc/ /fo:block /fo:static-content snip/ if the above suggestion doesnt help then its difficult to work with XSLT without the input XML. Please send the FO. if you dont know how to get FO from XSLT and XML using FOP then see here; http://xml.apache.org/fop/running.html#check-input Chris _ Sign-up for a FREE BT Broadband connection today! http://www.msn.co.uk/specials/btbroadband - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: fo:basic-link
From: Lucian Opris [EMAIL PROTECTED] I've notice that the actual internal link is on the same line but starts on body region and the text remains on start region. Very strange. I'm using FOP 0.20.4. Thanks This could be the famous Hotspot offset bug. This bug has been partly fixed in 0.20.5. I suggest you upgrade. Chris _ On the move? Get Hotmail on your mobile phone http://www.msn.co.uk/msnmobile - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
external-graphic : twice request for the same element
Hello, I'm using FOP fop-0.20.5 with fop.sh script and for all external-graphic element, I can see 2 requests in my apache log. So I lose lot of time for dynamically generated images. Is that normal ? Can I change it ? my .fo file : ?xml version=1.0 encoding=utf-8? fo:root font-family=Times Roman font-size=12pt text-align=center xmlns:fo=http://www.w3.org/1999/XSL/Format; fo:layout-master-set fo:simple-page-master margin-right=1.5cm margin-left=1.5cm margin-bottom=2cm margin-top=1cm page-width=21cm page-height=29.7cm master-name=left fo:region-body margin-top=1cm/ /fo:simple-page-master /fo:layout-master-set fo:page-sequence id=N2528 master-reference=left fo:flow flow-name=xsl-region-body fo:block fo:external-graphic width=100pt height=100pt content-width=50pt content-height=50pt src=http://agarycus/perl/mat_tests/A/A.jpg/ /fo:block /fo:flow /fo:page-sequence /fo:root Apache log : 172.16.23.6 - - [17/Sep/2003:16:01:54 +0200] GET /perl/mat_tests/A/A.jpg HTTP/1.1 200 3976 - Java1.3.1 172.16.23.6 - - [17/Sep/2003:16:01:54 +0200] GET /perl/mat_tests/A/A.jpg HTTP/1.1 200 3976 - Java1.3.1 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: fo:basic-link
Ok, I did upgrade the FOP version links are fine (not offseted) but I get another error regarding fonts embedding. Cannot extract the embedded font 'Arial, BoldItalic' Some charachters may not display or print correctly. Arial BoldItalics was fine in previous version. snippet of config.xml font metrics-file=/nas/web/fonts/arial.xml kerning=yes embed-file= font-triplet name=Arial style=normal weight=normal/ /font font metrics-file=/nas/web/fonts/arialbd.xml kerning=yes embed-file= font-triplet name=ArialBD style=normal weight=normal/ /font font metrics-file=/nas/web/fonts/arialbi.xml kerning=yes embed-file= font-triplet name=ArialBDI style=normal weight=normal/ /font font metrics-file=/nas/web/fonts/ariali.xml kerning=yes embed-file= font-triplet name=ArialI style=normal weight=normal/ /font Thanks. Lucian Opris Programmer Analyst [EMAIL PROTECTED] BlueMatrix 212 475 9330 -Original Message- From: Chris Bowditch [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 17, 2003 10:23 AM To: [EMAIL PROTECTED] Subject: RE: fo:basic-link From: Lucian Opris [EMAIL PROTECTED] I've notice that the actual internal link is on the same line but starts on body region and the text remains on start region. Very strange. I'm using FOP 0.20.4. Thanks This could be the famous Hotspot offset bug. This bug has been partly fixed in 0.20.5. I suggest you upgrade. Chris _ On the move? Get Hotmail on your mobile phone http://www.msn.co.uk/msnmobile - 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: container position=absolute seems to be off(FIXED kindof)
Wow do I feel stupid. I only noticed this when I went to the version 6 of the reader and it was printing to A scale of 94% AARG!!! Is there a way to put something in the PDF that defaults to no scaling on the printer Thanks Randy -Original Message- From: Chris Bowditch [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 17, 2003 3:41 AM To: [EMAIL PROTECTED] Subject: Re: container position=absolute seems to be off From: Randy Paries [EMAIL PROTECTED] it seems that the first box start 1/8 to long and the 1' block-containers are actually 7/8's of an inch. So by the time we get half way down the sheet the labels are all off. Your example worked for me on FOP 0.20.5 and RenderX. Note, that you have drawn the border around the fo:block inside the container so it does look like the block-container is 7/8' but in fact this is fo:block which is inside the block-container. I did my measurements using grid view inside Acrobat reader. Are you measuring a print out? I didnt print it out. One observation is that you havent specified the margin on the page-master, which will be needed for printing as all printers have a small unprintable margin. Chris Chris _ Use MSN Messenger to send music and pics to your friends http://www.msn.co.uk/messenger - 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: container position=absolute seems to be off(FIXED kindof)
-Original Message- From: Randy Paries [mailto:[EMAIL PROTECTED] Wow do I feel stupid. I only noticed this when I went to the version 6 of the reader and it was printing to A scale of 94% AARG!!! Don't! It happens even to the best sometimes :) Is there a way to put something in the PDF that defaults to no scaling on the printer You mean the 'Expand small pages to paper size' / 'Shrink oversized pages to paper size' print settings? I think these are set in the Reader, rather than the PDF itself. If you turn those options on/off they apply to all subsequent Reader sessions. The advice would be to inform the users of these labels to check these settings before printing them out. Greetz, Andreas Delmelle - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: embedding fop0.20.5 working on jdk1.3.1-linux?
I just change (fo:external-graphic src) to jpg file from svg file. Fop did work for me. Now I guess the reason why the same code works fine in jdk1.4.1 on windows XP not in jdk1.3.1 on linux. My Open BSD may not support graphical environment for SVG. Am I right? Any solution for it? Thanks Judy Cai - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: embedding fop0.20.5 working on jdk1.3.1-linux?
This may be way off base, and if so, my apologies... Cai, Judy wrote: I just change (fo:external-graphic src) to jpg file from svg file. Fop did work for me. Now I guess the reason why the same code works fine in jdk1.4.1 on windows XP not in jdk1.3.1 on linux. My Open BSD may not support graphical environment for SVG. Am I right? Any solution for it? Thanks Judy Cai Is it possible that the Linux box is running headless? If so, this might help: http://xml.apache.org/fop/graphics.html#batik - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
problem with postscript (landscape)
hello @ all! I've implemented the page-height and page-width in my stylesheet to produce a postscript-file which orientation is landscape. but if I open it with ghostview portrait is shown. is it a issue of fop or a bug of gs? thanx suse - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: problem with postscript (landscape)
Hi suse Check this out: http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21307 This may do what you need. On 17.09.2003 21:47:56 suse wrote: I've implemented the page-height and page-width in my stylesheet to produce a postscript-file which orientation is landscape. but if I open it with ghostview portrait is shown. is it a issue of fop or a bug of gs? Jeremias Maerki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]