fo:external-graphic does not support SVG when src is an url
Title: fo:external-graphic does not support SVG when src is an url Hi! I found a problems when using urls instead of files for fo:external-graphic's src paramater. xsl:param name=imagebasehttp://localhost:8080/img/xsl:param ... fo:external-graphic height=15pt width=180pt xsl:attribute name=srcurl('xsl:value-of select=$imagebase//SomePics.svg')/xsl:attribute /fo:external-graphic OR fo:external-graphic height=15pt width=180pt xsl:attribute name=srcxsl:value-of select=$imagebase//SomePics.svg/xsl:attribute /fo:external-graphic does not work for IIS at all. It works in 95% of all cases with APACHE. It work in 100% of all cases with files. I get no exception(s) and - no pictures. Any ideas? FOP is 0.20.5 distribution. Regards, Joachim
AW: fo:external-graphic does not support SVG when src is an url
Title: fo:external-graphic does not support SVG when src is an url Hi Gunnar! I debugged FOP source code andfound that the error is an IOException thrown by Batik. My IIS logged a http error 406. The Mime type is okay. Don't forget: it works in "most" cases with Apache. Regards, Jo -Ursprüngliche Nachricht-Von: Gunnar Liljas [mailto:[EMAIL PROTECTED]Gesendet: Donnerstag, 13. November 2003 09:59An: [EMAIL PROTECTED]Betreff: Re: fo:external-graphic does not support SVG when src is an url Make sure that the web server returns a correct content-type (MIME) for svg. image/svg+xml if I remember correctly /G - Original Message - From: Unger, Joachim To: [EMAIL PROTECTED] Sent: Wednesday, November 12, 2003 9:05 PM Subject: fo:external-graphic does not support SVG when src is an url Hi! I found a problems when using urls instead of files for fo:external-graphic's src paramater. xsl:param name="imagebase"http://localhost:8080/img/xsl:param ... fo:external-graphic height="15pt" width="180pt" xsl:attribute name="src"url('xsl:value-of select="$imagebase"//SomePics.svg')/xsl:attribute /fo:external-graphic OR fo:external-graphic height="15pt" width="180pt" xsl:attribute name="src"xsl:value-of select="$imagebase"//SomePics.svg/xsl:attribute /fo:external-graphic does not work for IIS at all. It works in 95% of all cases with APACHE. It work in 100% of all cases with files. I get no exception(s) and - no pictures. Any ideas? FOP is 0.20.5 distribution. Regards, Joachim
Time and menory consumption if big documents
Hello ! I have a problem: FOP performs PDF renditions of single, big xml-documents only if #pages ~1000. ( FOP version 0.20.5 RC 2 on Windows 2000 P, JDK 1.4.1, 512 MByte, -Xmx=512m) There are no forward references like !-- fo:page-number-citation ref-id=lastPage/-- You know that then FOP should render page after page. The only attributes we could not change are keep/within-page- Why FOP uses so much memory? Why FOP is idle (means: Use only 4 % CPU usage)? Beste regards, Joachim Unger SAG Systemhaus GmbH Hildesheimer Strasse 53 D-30169 Hannover Tel.: 0511 / 80 71 214 Fax: 0511 / 80 71 215 http : www.software-ag.de - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
FOP0.20.5rc and keep-together=retrieve-marker doesn't work corre ctly
Hi! I use two markers in a fo:table to retrieve sums for page header (region-before) and footer (region-end). for each account position ... table-row keep-together=always keep-together.within-page=always fo:table-cell fo:block text-align=center !--Marker -- fo:marker marker-class-name=subtotalvalue xsl:call-template name=soll_haben xsl:with-param name=textÜbertrag/xsl:with-param xsl:with-param name=amount xsl:choose xsl:when test=A_AMOUNT!='' xsl:value-of select=/ACCOUNTDOCUMENT/ACCOUNTSTATEMENT/TOTALSANDLIMITS/@A_SBALANCE+A_AMOU NT+sum(preceding::A_AMOUNT[.!=''])/ /xsl:when xsl:otherwise xsl:value-of select=/ACCOUNTDOCUMENT/ACCOUNTSTATEMENT/TOTALSANDLIMITS/@A_SBALANCE + sum(preceding::A_AMOUNT[.!= ''])/ /xsl:otherwise /xsl:choose /xsl:with-param xsl:with-param name=currency select=/ACCOUNTDOCUMENT/ACCOUNTSTATEMENT/ACCOUNTHEADER/@CURRENCY/ /xsl:call-template /fo:marker fo:marker marker-class-name=subtotalvalueEx xsl:call-template name=soll_haben xsl:with-param name=textÜbertrag/xsl:with-param xsl:with-param name=amount xsl:value-of select=/ACCOUNTDOCUMENT/ACCOUNTSTATEMENT/TOTALSANDLIMITS/@A_SBALANCE + sum(preceding::A_AMOUNT[.!= ''])/ /xsl:with-param xsl:with-param name=currency select=/ACCOUNTDOCUMENT/ACCOUNTSTATEMENT/ACCOUNTHEADER/@CURRENCY/ /xsl:call-template /fo:marker ... other output like A_AMOUNT ... To get the sum for the footer : fo:retrieve-marker retrieve-class-name=subtotalvalue retrieve-boundary=page retrieve-position=last-starting-within-page/ To get the sum for the header : fo:retrieve-marker retrieve-class-name=subtotalvalueEx retrieve-boundary=page retrieve-position=first-starting-within-page/ Some accountpositions have payment-notes, that are added as additional table-rows : fo:table-row xsl:attribute name=keep-with-previous.within-pagealways/xsl:attribute xsl:attribute name=keep-with-previousalways/xsl:attribute ... payment - note ... What happened is that FOP keeps blocks correctly together. (Accountposition and payment-notes should not be on separate pages) But fo:retrieve-marker sometimes fetches wrong values (from previous / following lines). As a result the sum on a page and their following may differ. Is that behavior a ( known ) mistake ? Regards Joachim Unger - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
FOP0.20.5rc and keep-together=retrieve-marker doesn't work corre ctly
Hi! I use two markers in a fo:table to retrieve sums for page header (region-before) and footer (region-end). for each account position ... table-row keep-together=always keep-together.within-page=always fo:table-cell fo:block text-align=center !--Marker -- fo:marker marker-class-name=subtotalvalue xsl:call-template name=soll_haben xsl:with-param name=textÜbertrag/xsl:with-param xsl:with-param name=amount xsl:choose xsl:when test=A_AMOUNT!='' xsl:value-of select=/ACCOUNTDOCUMENT/ACCOUNTSTATEMENT/TOTALSANDLIMITS/@A_SBALANCE+A_AMOU NT+sum(preceding::A_AMOUNT[.!=''])/ /xsl:when xsl:otherwise xsl:value-of select=/ACCOUNTDOCUMENT/ACCOUNTSTATEMENT/TOTALSANDLIMITS/@A_SBALANCE + sum(preceding::A_AMOUNT[.!= ''])/ /xsl:otherwise /xsl:choose /xsl:with-param xsl:with-param name=currency select=/ACCOUNTDOCUMENT/ACCOUNTSTATEMENT/ACCOUNTHEADER/@CURRENCY/ /xsl:call-template /fo:marker fo:marker marker-class-name=subtotalvalueEx xsl:call-template name=soll_haben xsl:with-param name=textÜbertrag/xsl:with-param xsl:with-param name=amount xsl:value-of select=/ACCOUNTDOCUMENT/ACCOUNTSTATEMENT/TOTALSANDLIMITS/@A_SBALANCE + sum(preceding::A_AMOUNT[.!= ''])/ /xsl:with-param xsl:with-param name=currency select=/ACCOUNTDOCUMENT/ACCOUNTSTATEMENT/ACCOUNTHEADER/@CURRENCY/ /xsl:call-template /fo:marker ... other output like A_AMOUNT ... To get the sum for the footer : fo:retrieve-marker retrieve-class-name=subtotalvalue retrieve-boundary=page retrieve-position=last-starting-within-page/ To get the sum for the header : fo:retrieve-marker retrieve-class-name=subtotalvalueEx retrieve-boundary=page retrieve-position=first-starting-within-page/ Some accountpositions have payment-notes, that are added as additional table-rows : fo:table-row xsl:attribute name=keep-with-previous.within-pagealways/xsl:attribute xsl:attribute name=keep-with-previousalways/xsl:attribute ... payment - note ... What happened is that FOP keeps blocks correctly together. (Accountposition and payment-notes should not be on separate pages) But fo:retrieve-marker sometimes fetches wrong values (from previous / following lines). As a result the sum on a page and their following may differ. Is that behavior a ( known ) mistake ? Regards Joachim Unger - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
repeatable-page-master-alternatives - only two alternatives of fi rst, last, rest ?
Hi ! We have a problem with first, last and others page-sequence-master. The following code should work if my understanding of page-sequence-master and the corresponding attributes is correct. Using FOP 0.20.5rc we only retrieve pages with region-after first - and others (depending of the order of conditional-page-master-reference). Any ideas? fo:layout-master-set fo:simple-page-master master-name=first-page page-width=210mm page-height=297mm margin-left=8mm margin-right=1cm margin-top=0mm margin-bottom=0mm fo:region-body margin-top=120mm margin-left=11mm margin-bottom=150mm/ fo:region-before region-name=xsl-region-before-1 extent=120mm/ fo:region-after region-name=xsl-region-after-1 extent=50mm/ /fo:simple-page-master fo:simple-page-master master-name=others page-width=210mm page-height=297mm margin-left=8mm margin-right=1cm margin-top=0mm margin-bottom=0mm fo:region-body margin-top=95mm margin-left=11mm margin-bottom=150mm/ fo:region-before region-name=xsl-region-before-2 extent=95mm/ fo:region-after region-name=xsl-region-after-2 extent=50mm/ /fo:simple-page-master fo:simple-page-master master-name=last-page page-width=210mm page-height=297mm margin-left=8mm margin-right=1cm margin-top=0mm margin-bottom=0mm fo:region-body margin-top=95mm margin-left=11mm margin-bottom=150mm/ fo:region-before region-name=xsl-region-before-3 extent=95mm/ fo:region-after region-name=xsl-region-after-3 extent=50mm/ /fo:simple-page-master fo:page-sequence-master master-name=standard fo:repeatable-page-master-alternatives fo:conditional-page-master-reference master-reference=first-page page-position=first/ fo:conditional-page-master-reference master-reference=others page-position=rest / fo:conditional-page-master-reference master-reference=last-page page-position=last / /fo:repeatable-page-master-alternatives /fo:page-sequence-master /fo:layout-master-set fo:page-sequence master-reference=standard !-- before-1 (first page) -- fo:static-content flow-name=xsl-region-before-1 fo:table ... /fo:table /fo:static-content !-- before-2 (page2 2..n-1) -- fo:static-content flow-name=xsl-region-before-2 fo:table ... /fo:table /fo:static-content !-- before-3 (last page) -- fo:static-content flow-name=xsl-region-before-3 fo:table ... /fo:table /fo:static-content !-- after (Footer page 1..) -- fo:static-content flow-name=xsl-region-after-1 fo:block-1-/fo:block xsl:call-template name=footer1 xsl:with-param name=page select=1/ /xsl:call-template /fo:static-content !-- after-2 (Footer page 2...n-1) -- fo:static-content flow-name=xsl-region-after-2 fo:block-2-/fo:block xsl:call-template name=footer1 xsl:with-param name=page select=1/
AW: calculate the length of a text
Hi Michal ! Thank You. What You describe is the aim. But how can I do that? (The Way?) Best regards Joachim -Ursprüngliche Nachricht- Von: Buchtík, Michal [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 6. Februar 2003 07:45 An: '[EMAIL PROTECTED]' Betreff: RE: calculate the length of a text This depending on font-size. You can calculate it from font-size, font-metrics (generated by TTF or PFM Reader) and length of line (in chars). You must do this in XSLT. Best regards Michal -Original Message- From: Unger, Joachim [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 05, 2003 5:02 PM To: '[EMAIL PROTECTED]' Subject: How: calculate the length of a text How can I calculate the length (in mm) of a text before output? Is there a solution für FOP? Regards, Joachim - 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]
How: calculate the length of a text
How can I calculate the length (in mm) of a text before output? Is there a solution für FOP? Regards, Joachim - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: How: calculate the length of a text
I cannot use monospaced fonts - i forgot to write that ! Joachim -Ursprüngliche Nachricht- Von: Clay Leeds [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 5. Februar 2003 17:16 An: [EMAIL PROTECTED] Betreff: Re: How: calculate the length of a text You could use a monospace font (e.g., font-family=Courier New, Courier, monospace), measure the width of each character, and then count the number of characters. Of course, the font-size, will be significant. 8pt Courier text is a little 2mm wide. You'd also have to consider that spaces at the end of a line may be removed in favor of a linefeed. Hope this helps! Web Maestro Clay Unger, Joachim wrote: How can I calculate the length (in mm) of a text before output? Is there a solution für FOP? Regards, Joachim -- 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]