FOP internet explorer
We would like definitly resolve the neverending problem about Internet explorer and pdf files. Cocoon version 1.8.2 Tomcat version 3.2.1 In our application the XML files are created by anCOCOON XMLproducer and transformed using a xslfo stylesheet. As you know,everything works fine in Netscapewhile in Internet Explorer there are some problems. It seems IE doesn't consider so much the document content type. The producer is invoked in this way: http://w2k5500/prod/comune/dummy.xml?producer=CIExslfile=tryme.xsl note that dummy.xml doesn't exist but the producer need it to start. I think the problem could be resolved calling the producer in this way http://w2k5500/prod/comune/dummy.pdf?producer=CIExslfile=tryme.xsl but explorer send me a http error 404 - File not found Is there a configuration parameter that enable me to call a producer in this way?
Re: FOP internet explorer
Mauro, I think this strang IE behaviour is fixed from IE 5.5. Anyway, some people said it would be a good idea to add info for IE to help it solving the content-type. try adding name=dummy.pdf at the end of your query string in your firt url you mentioned. I have never verified if this works but people (in this list) have said so... I hope this helps Cyril At 12:58 28/01/2002 +0100, you wrote: We would like definitly resolve the neverending problem about Internet explorer and pdf files. Cocoon version 1.8.2 Tomcat version 3.2.1 In our application the XML files are created by an COCOON XMLproducer and transformed using a xslfo stylesheet. As you know, everything works fine in Netscape while in Internet Explorer there are some problems. It seems IE doesn't consider so much the document content type. The producer is invoked in this way: http://w2k5500/prod/comune/dummy.xml?producer=CIExslfile=tryme.xsl note that dummy.xml doesn't exist but the producer need it to start. I think the problem could be resolved calling the producer in this way http://w2k5500/prod/comune/dummy.pdf?producer=CIExslfile=tryme.xsl but explorer send me a http error 404 - File not found Is there a configuration parameter that enable me to call a producer in this way? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: FOP internet explorer
Yes, it works. The query string must end with .pdf . -Original Message- From: Cyril Rognon [mailto:[EMAIL PROTECTED]] Sent: Monday, January 28, 2002 1:25 PM To: [EMAIL PROTECTED] Subject: Re: FOP internet explorer Mauro, I think this strang IE behaviour is fixed from IE 5.5. Anyway, some people said it would be a good idea to add info for IE to help it solving the content-type. try adding name=dummy.pdf at the end of your query string in your firt url you mentioned. I have never verified if this works but people (in this list) have said so... I hope this helps Cyril At 12:58 28/01/2002 +0100, you wrote: We would like definitly resolve the neverending problem about Internet explorer and pdf files. Cocoon version 1.8.2 Tomcat version 3.2.1 In our application the XML files are created by an COCOON XMLproducer and transformed using a xslfo stylesheet. As you know, everything works fine in Netscape while in Internet Explorer there are some problems. It seems IE doesn't consider so much the document content type. The producer is invoked in this way: http://w2k5500/prod/comune/dummy.xml?producer=CIExslfile=tryme.xsl note that dummy.xml doesn't exist but the producer need it to start. I think the problem could be resolved calling the producer in this way http://w2k5500/prod/comune/dummy.pdf?producer=CIExslfile=tryme.xsl but explorer send me a http error 404 - File not found Is there a configuration parameter that enable me to call a producer in this way? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
newbie needs help with relative address for image.
Everything in my XSL/FO is working perfectly except my images. The address I am supplying is a relative address (that works if I use HTML), but does not work if I use XSL/FO to PDF. I have read the archives, and I am not finding any solutions to this problem. Can anyone tell me what I am doing wrong? fo:external-graphic height=24mm width=66mm src={../companylogo/url}/ /companylogo/url gets translated into: abc\images\merchant_logo.gif If I use a full path, ie. (c:\xyz\htdocs\abc\images\mechant_logo.gif) it is fine. It is just when I specify the relative address when I get: Error while creating area : Invalid Image URL - error on relative URL : no protocol: null/abc/images/merchant_logo.gif - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: newbie needs help with relative address for image.
Set the BaseDir in userconfig.xml Michal -Original Message- From: Troy Bottger [mailto:[EMAIL PROTECTED]] Sent: Monday, January 28, 2002 2:27 PM To: '[EMAIL PROTECTED]' Subject: newbie needs help with relative address for image. Everything in my XSL/FO is working perfectly except my images. The address I am supplying is a relative address (that works if I use HTML), but does not work if I use XSL/FO to PDF. I have read the archives, and I am not finding any solutions to this problem. Can anyone tell me what I am doing wrong? fo:external-graphic height=24mm width=66mm src={../companylogo/url}/ /companylogo/url gets translated into: abc\images\merchant_logo.gif If I use a full path, ie. (c:\xyz\htdocs\abc\images\mechant_logo.gif) it is fine. It is just when I specify the relative address when I get: Error while creating area : Invalid Image URL - error on relative URL : no protocol: null/abc/images/merchant_logo.gif - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Please help...
At 9:15 am + 23/1/02, Nick Winger wrote: hi ! i have three questions using fop ( with tables ): 1. i want to generate a pdf dynamically using java. now first i write a dynamically fo file (formatted objects): on the pages there is always a text ( form start to the middle of the page) and below ( the other half os the page) an image: now when i write the text in java: how can i recognize when i reach the half of the page ? should i divide the half page points with the font-height and count the rows ? I don't think that FOP can do this. Would you get what you wanted if you put the image in a footer. I doubt that counting the rows is the way to go. 2. is it possible to have two different font-sizes in one column of a table? Yes. 3. can i turn the bottom cell line (border) of a cell off ? I don't know. Ben. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: bugger fonts still won't work desperate...
Hi Jochen, The metrics files are loaded using URI syntax, so either you specify a relative path like font metrics-file=codegen/arial.xml ... or a fully qualified path like font metrics-file=file:///d:/fop/codegen/arial.xml ... It's a bit confusing because you can specify d:/fop/codegen/Arial.ttf for the font but you are obliged to put the file:/// in front of the metrics file path. Hope it helps. regards, thierry [EMAIL PROTECTED] wrote: Ok here is the deal. I adapted the userconfigfile like this: fonts font metrics-file=d:\fop\codegen\arial.xml kerning=yes embed-file =d:\fop\codegen\Arial.ttf font-triplet name=Arial style=normal weight=normal/ /font font metrics-file=d:\fop\codegen\arialb.xml kerning=yes embed-file =d:\fop\codegen\Arialb.ttf font-triplet name=Arial style=normal weight=bold/ /font font metrics-file=d:\fop\codegen\ariali.xml kerning=yes embed-file =d:\fop\codegen\Ariali.ttf font-triplet name=Arial style=italic weight=normal/ /font font metrics-file=d:\fop\codegen\arialbi.xml kerning=yes embed-file=d:\fop\codegen\Arialbi.ttf font-triplet name=Arial style=italic weight=bold/ /font font metrics-file=d:\fop\codegen\arialn.xml kerning=yes embed-file =d:\fop\codegen\Arianl.ttf font-triplet name=Arialn style=normal weight=normal/ /font /fonts in the dir d:\fop\codegen i pasted the the generated xml-files and the ttf files but he still doesn't recognize the fonts when i render to pdf... what do i do wrong? how can i resolve it? Jochen Maes EDP departement Programmeur KBC-Securities Havenlaan 16 1080 Brussel Tel : 02/429.96.81 Fax : 02/429.17.48 E-mail : [EMAIL PROTECTED] ** This message is for the named person's use only. It may contain confidential, proprietary or legally privileged information. You must not, directly or indirectly, use, disclose, distribute, print, or copy any part of this message if you are not the intended recipient. KBC Securities reserves the right to monitor all e-mail communications through its networks. 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 any such entity. ** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: FOP internet explorer
Well. I don't know if I understand it but I can produce pdf reports with IE 5.0 and Adobe Acrobat 5.0 (in Adobe Acrobat 4.0 it works, but sometimes fail). I call a servlet that create pdf and show it on the browser... just it. Anyway, initialy I had some problems, but I solved it (I don't have an answer. I can show how I do it...) Salve Raúl - Original Message - From: Romani Mauro To: FOP mailing list (E-mail) Sent: Monday, January 28, 2002 12:58 PM Subject: FOP internet explorer We would like definitly resolve the neverending problem about Internet explorer and pdf files. Cocoon version 1.8.2 Tomcat version 3.2.1 In our application the XML files are created by anCOCOON XMLproducer and transformed using a xslfo stylesheet. As you know,everything works fine in Netscapewhile in Internet Explorer there are some problems. It seems IE doesn't consider so much the document content type. The producer is invoked in this way: http://w2k5500/prod/comune/dummy.xml?producer=CIExslfile=tryme.xsl note that dummy.xml doesn't exist but the producer need it to start. I think the problem could be resolved calling the producer in this way http://w2k5500/prod/comune/dummy.pdf?producer=CIExslfile=tryme.xsl but explorer send me a http error 404 - File not found Is there a configuration parameter that enable me to call a producer in this way?
Re: bugger fonts still won't work desperate...
thank you it worked... Jochen Maes EDP departement Programmeur KBC-Securities Havenlaan 16 1080 Brussel Tel : 02/429.96.81 Fax : 02/429.17.48 E-mail : [EMAIL PROTECTED] ** This message is for the named person's use only. It may contain confidential, proprietary or legally privileged information. You must not, directly or indirectly, use, disclose, distribute, print, or copy any part of this message if you are not the intended recipient. KBC Securities reserves the right to monitor all e-mail communications through its networks. 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 any such entity. ** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
AW: Please help...
how do i get an image in the footer ? how is the footer and header adressed ? thanks nick -Ursprüngliche Nachricht- Von: ewitness - Ben Fowler [mailto:[EMAIL PROTECTED]] Gesendet: Montag, 28. Januar 2002 14:21 An: [EMAIL PROTECTED] Betreff: Re: Please help... At 9:15 am + 23/1/02, Nick Winger wrote: hi ! i have three questions using fop ( with tables ): 1. i want to generate a pdf dynamically using java. now first i write a dynamically fo file (formatted objects): on the pages there is always a text ( form start to the middle of the page) and below ( the other half os the page) an image: now when i write the text in java: how can i recognize when i reach the half of the page ? should i divide the half page points with the font-height and count the rows ? I don't think that FOP can do this. Would you get what you wanted if you put the image in a footer. I doubt that counting the rows is the way to go. 2. is it possible to have two different font-sizes in one column of a table? Yes. 3. can i turn the bottom cell line (border) of a cell off ? I don't know. Ben. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Please help...
fo:static-content flow-name=xsl-region-after fo:block start-indent=12.5cm fo:external-graphic src=lang.jpg/ /fo:block /fo:static-content -Original Message- From: Nick Winger [mailto:[EMAIL PROTECTED]] Sent: Monday, January 28, 2002 6:26 PM To: [EMAIL PROTECTED] Subject: AW: Please help... how do i get an image in the footer ? how is the footer and header adressed ? thanks nick -Ursprüngliche Nachricht- Von: ewitness - Ben Fowler [mailto:[EMAIL PROTECTED]] Gesendet: Montag, 28. Januar 2002 14:21 An: [EMAIL PROTECTED] Betreff: Re: Please help... At 9:15 am + 23/1/02, Nick Winger wrote: hi ! i have three questions using fop ( with tables ): 1. i want to generate a pdf dynamically using java. now first i write a dynamically fo file (formatted objects): on the pages there is always a text ( form start to the middle of the page) and below ( the other half os the page) an image: now when i write the text in java: how can i recognize when i reach the half of the page ? should i divide the half page points with the font-height and count the rows ? I don't think that FOP can do this. Would you get what you wanted if you put the image in a footer. I doubt that counting the rows is the way to go. 2. is it possible to have two different font-sizes in one column of a table? Yes. 3. can i turn the bottom cell line (border) of a cell off ? I don't know. Ben. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
multiple output files
Anyone want to take a stab at this? thanks much, Hi all, A whole lotta help needed please: I need to write to a file all the 1) page-number-citations page numbers along with their corresponding ref-id's also the 2) last page of the pdf file being currently generated by FOP along with it's corresponding file name. If multiple pdf's are processed in sequence then, the page-number-citations/ref-id and last page/file name pairs for each file should be appended to the file. I am not a Java expert by any stretch of the imagination, but it seems to me that I should be able to do at least #1 each time the PageNumberCitation Status method is used. Am I mistaken in this? Where would be the best location to modify the fop src in order to achieve these results? I have no clue as to how to get #2. I am looking to spit out a file that looks something like: info x-ref id=###pg#/x-ref x-ref id=###pg#/x-ref x-ref id=###pg#/x-ref file name=goo.pdflast-page#/file x-ref id=###pg#/x-ref x-ref id=###pg#/x-ref x-ref id=###pg#/x-ref file name=goo.pdflast-page#/file /info much thanks in advance, Matthew L. Avizinis mailto:[EMAIL PROTECTED] Gleim Publications, Inc. 4201 NW 95th Blvd. Gainesville, FL 32606 (352)-375-0772 ext. 101 www.gleim.com http://www.gleim.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: AW: Please help...
hi there, for an image use this: fo:external-graphic src=file:D:/data/jochen/images/Devachan2.jpg/ footer you can access like this: (i use it successfully) fo:static-content flow-name=xsl-region-after fo:block fo:footnote fo:inline fo:block font-size=10pt font-family=Arialn xsl:text___/xsl:text /fo:block /fo:inline fo:inline fo:block font-size=10pt font-family=Arialn line-height=14pt fo:inline vertical-align=super1/fo:inline fo:inline font-size=10pt font-family=Arialn line-height=14pt Enkel schriftelijke reacties kunnen in aanmerking genomen worden./fo:inline /fo:block /fo:inline fo:inline font-size=10pt font-family=Arialn line-height=5pt vertical-align=super xsl:text __ /xsl:text /fo:inline fo:footnote-body fo:block font-size=10pt font-family=Arialn line-height=11pt fo:table fo:table-column column-width=8.5cm/ fo:table-column column-width=8.5cm/ fo:table-body fo:table-row fo:table-cell fo:block xsl:text/ /fo:block /fo:table-cell fo:table-cell fo:block xsl:text/ /fo:block /fo:table-cell /fo:table-row fo:table-row fo:table-cell fo:block text-align=start font-size=10pt font-family=Arialn xsl:textKBC Securities N.V./xsl:text /fo:block /fo:table-cell fo:table-cell fo:block text-align=end font-size=10pt font-family=Arialn xsl:textBTW BE-437.060.521/xsl:text /fo:block /fo:table-cell /fo:table-row fo:table-row fo:table-cell fo:block text-align=start font-size=10pt font-family=Arialn xsl:textHavenlaan 12/xsl:text /fo:block /fo:table-cell fo:table-cell fo:block text-align=end font-size=10pt font-family=Arialn xsl:textHandelsregister 626.457/xsl:text /fo:block /fo:table-cell /fo:table-row fo:table-row fo:table-cell fo:block text-align=start font-size=10pt font-family=Arialn xsl:textB-1080 Brussel/xsl:text /fo:block /fo:table-cell fo:table-cell fo:block text-align=end font-size=10pt font-family=Arialn xsl:textRekening KBC Bank 409-6547401-42/ xsl:text /fo:block /fo:table-cell /fo:table-row fo:table-row fo:table-cell fo:block text-align=start font-size=10pt font-family=Arialn xsl:text/ /fo:block /fo:table-cell fo:table-cell fo:block text-align=end font-size=10pt font-family=Arialn xsl:textOnze referte : /xsl:text xsl:value-of select=//Referte/ /fo:block /fo:table-cell /fo:table-row /fo:table-body /fo:table /fo:block /fo:footnote-body /fo:footnote /fo:block /fo:static-content Jochen Maes EDP departement Programmeur KBC-Securities Havenlaan 16 1080 Brussel Tel : 02/429.96.81 Fax : 02/429.17.48 E-mail : [EMAIL PROTECTED] ** This message is for the named person's use only. It may contain confidential, proprietary or legally privileged information. You must
Re: bugger fonts still won't work desperate...
continue to this question, my question , if i declare this thing in userconfig, does the usercinfig has only this thing or , something else also , becaz i define my font after that my pdf start gining problems in printing plz help me , i have to chane my code in production thanks Message History From: [EMAIL PROTECTED] on 01/28/2002 09:10 AM CET Please respond to [EMAIL PROTECTED] To: [EMAIL PROTECTED] cc: Subject: bugger fonts still won't work desperate... Ok here is the deal. I adapted the userconfigfile like this: fonts font metrics-file=d:\fop\codegen\arial.xml kerning=yes embed-file =d:\fop\codegen\Arial.ttf font-triplet name=Arial style=normal weight=normal/ /font font metrics-file=d:\fop\codegen\arialb.xml kerning=yes embed-file =d:\fop\codegen\Arialb.ttf font-triplet name=Arial style=normal weight=bold/ /font font metrics-file=d:\fop\codegen\ariali.xml kerning=yes embed-file =d:\fop\codegen\Ariali.ttf font-triplet name=Arial style=italic weight=normal/ /font font metrics-file=d:\fop\codegen\arialbi.xml kerning=yes embed-file=d:\fop\codegen\Arialbi.ttf font-triplet name=Arial style=italic weight=bold/ /font font metrics-file=d:\fop\codegen\arialn.xml kerning=yes embed-file =d:\fop\codegen\Arianl.ttf font-triplet name=Arialn style=normal weight=normal/ /font /fonts in the dir d:\fop\codegen i pasted the the generated xml-files and the ttf files but he still doesn't recognize the fonts when i render to pdf... what do i do wrong? how can i resolve it? Jochen Maes EDP departement Programmeur KBC-Securities Havenlaan 16 1080 Brussel Tel : 02/429.96.81 Fax : 02/429.17.48 E-mail : [EMAIL PROTECTED] ** This message is for the named person's use only. It may contain confidential, proprietary or legally privileged information. You must not, directly or indirectly, use, disclose, distribute, print, or copy any part of this message if you are not the intended recipient. KBC Securities reserves the right to monitor all e-mail communications through its networks. 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 any such entity. ** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] -- This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: bugger fonts still won't work desperate...
How do you call FOP? java? commandline? anyway what i see in java that is that Fop starts reading the userconfig (if i implemented it) and then starts parsing... so you should define your userconfig file first i think Jochen Maes EDP departement Programmeur KBC-Securities Havenlaan 16 1080 Brussel Tel : 02/429.96.81 Fax : 02/429.17.48 E-mail : [EMAIL PROTECTED] ** This message is for the named person's use only. It may contain confidential, proprietary or legally privileged information. You must not, directly or indirectly, use, disclose, distribute, print, or copy any part of this message if you are not the intended recipient. KBC Securities reserves the right to monitor all e-mail communications through its networks. 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 any such entity. ** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
How can I dynamically pass data to be formatted??
Hi All, Again a question...!! --- ?xml version="1.0"?> root> money> net_amount>5/net_amount> vatrate>16%/vatrate> vat>8000/vat> total_amount>58000/total_amount> currency_symbol>DM/currency_symbol> ratio>100/ratio> /money> /root> -- So I want to format the money value..I can use the format function But how can I dynamically select money value from xml file and pass to the format function of xsl? xsl:decimal-format name="eurofrmt" decimal-separator="," grouping-separator="."/> xsl:template match="/"> xsl:value-of select="format-number($net_amount, '#.###,00', 'eurofrmt')"/> /xsl:template> or xsl:template match="/"> xsl:value-of select="format-number($total_amount, '#.###,00', 'eurofrmt')"/> /xsl:template> Any suggestion is a great help for me :). best regards brahma - Brahmaiah Kurabalakota Software Developer eMIS eMerging Information Systems GmbH Am Friedrichsbrunnen D-24782 Bdelsdorf Tel.: +49 (4331) 447 1520 Mobile: +49 (172) 5372297 mailto: [EMAIL PROTECTED] www.emis-intl.com begin:vcard n:Brahmaiah;kurabalakota tel;cell:+49-1725372297 tel;work:eMIS GmbH x-mozilla-html:FALSE adr:;; version:2.1 email;internet:[EMAIL PROTECTED] fn:Brahma end:vcard - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: How can I dynamically pass data to be formatted??
if the net_amount is in the root (like shown) and yout templatematch is / then just do this: xsl:decimal-format name=eurofrmt decimal-separator=, grouping-separator=./ xsl:template match=/ xsl:value-of select=format-number(xsl:value-of select=net_amount/, '#.###,00', 'eurofrmt')/ /xsl:template that should work, or if it doesn't work put the value as shown in a xsl:variable and then use that one for your formatting regards Jochen Maes EDP departement Programmeur KBC-Securities Havenlaan 16 1080 Brussel Tel : 02/429.96.81 Fax : 02/429.17.48 E-mail : [EMAIL PROTECTED] ** This message is for the named person's use only. It may contain confidential, proprietary or legally privileged information. You must not, directly or indirectly, use, disclose, distribute, print, or copy any part of this message if you are not the intended recipient. KBC Securities reserves the right to monitor all e-mail communications through its networks. 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 any such entity. ** BRAHMA brahmaiah.kurabalakota@emisTo: [EMAIL PROTECTED] -intl.com cc: Subject: How can I dynamically pass data to be formatted?? 28-01-02 04:57 PM Please respond to fop-dev Hi All, Again a question...!! --- ?xml version=1.0? root money net_amount5/net_amount vatrate16%/vatrate vat8000/vat total_amount58000/total_amount currency_symbolDM/currency_symbol ratio100/ratio /money /root -- So I want to format the money value..I can use the format function But how can I dynamically select money value from xml file and pass to the format function of xsl? xsl:decimal-format name=eurofrmt decimal-separator=, grouping-separator=./ xsl:template match=/ xsl:value-of select=format-number($net_amount, '#.###,00', 'eurofrmt')/ /xsl:template or xsl:template match=/ xsl:value-of select=format-number($total_amount, '#.###,00', 'eurofrmt')/ /xsl:template Any suggestion is a great help for me :). best regards brahma - Brahmaiah Kurabalakota Software Developer eMIS eMerging Information Systems GmbH Am Friedrichsbrunnen D-24782 Büdelsdorf Tel.: +49 (4331) 447 1520 Mobile: +49 (172) 5372297 mailto: [EMAIL PROTECTED] www.emis-intl.com (See attached file: brahmaiah.kurabalakota.vcf) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] =?iso-8859-1?Q?brahmaiah.kurabalakota.vcf?= Description: Binary data - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: How can I dynamically pass data to be formatted??
Hi Brahma, When you dynamicaly, do you mean that depending on an external parameter you want, using the same xsl-fo file, write down either the total_amount or the net_amount? If so, you can for instance define a XML parameter file you read into your xsl-fo file with the "document(...)" fonction, and test what you want to print... Or you can pass parameters to your xsl-fo template, but I am not sure if it's possible to do it programatically to-day. Thierry BRAHMA wrote: Hi All, Again a question...!! --- ?xml version="1.0"?> root> money> net_amount>5/net_amount> vatrate>16%/vatrate> vat>8000/vat> total_amount>58000/total_amount> currency_symbol>DM/currency_symbol> ratio>100/ratio> /money> /root> -- So I want to format the money value..I can use the format function But how can I dynamically select money value from xml file and pass to the format function of xsl? xsl:decimal-format name="eurofrmt" decimal-separator="," grouping-separator="."/> xsl:template match="/"> xsl:value-of select="format-number($net_amount, '#.###,00', 'eurofrmt')"/> /xsl:template> or xsl:template match="/"> xsl:value-of select="format-number($total_amount, '#.###,00', 'eurofrmt')"/> /xsl:template> Any suggestion is a great help for me :). best regards brahma - Brahmaiah Kurabalakota Software Developer eMIS eMerging Information Systems GmbH Am Friedrichsbrunnen D-24782 Bdelsdorf Tel.: +49 (4331) 447 1520 Mobile: +49 (172) 5372297 mailto: [EMAIL PROTECTED] www.emis-intl.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: newbie needs help with relative address for image.
Does this work if I don't call it from a command line? I have uncommented the BaseDir in the userconfig.xml and re-ran my application (servlet application) and I am not seeing that this file is being used. -Original Message- From: Buchtík, Michal [mailto:[EMAIL PROTECTED]] Sent: Monday, January 28, 2002 8:51 AM To: '[EMAIL PROTECTED]' Subject: RE: newbie needs help with relative address for image. Set the BaseDir in userconfig.xml Michal -Original Message- From: Troy Bottger [mailto:[EMAIL PROTECTED]] Sent: Monday, January 28, 2002 2:27 PM To: '[EMAIL PROTECTED]' Subject: newbie needs help with relative address for image. Everything in my XSL/FO is working perfectly except my images. The address I am supplying is a relative address (that works if I use HTML), but does not work if I use XSL/FO to PDF. I have read the archives, and I am not finding any solutions to this problem. Can anyone tell me what I am doing wrong? fo:external-graphic height=24mm width=66mm src={../companylogo/url}/ /companylogo/url gets translated into: abc\images\merchant_logo.gif If I use a full path, ie. (c:\xyz\htdocs\abc\images\mechant_logo.gif) it is fine. It is just when I specify the relative address when I get: Error while creating area : Invalid Image URL - error on relative URL : no protocol: null/abc/images/merchant_logo.gif - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
keep and break questions.
hello, i have some questions with the keep and break stuff... I tried to keep a fo:block together with this code: fo:block keep-together=allways but when i render my xsl xml to a pdf (through JAVA) the block is splitted over two pages. And i don't want it. the block excists out off a table who should be together can anybody help me on this one? thanks Jochen Maes EDP departement Programmeur KBC-Securities Havenlaan 16 1080 Brussel Tel : 02/429.96.81 Fax : 02/429.17.48 E-mail : [EMAIL PROTECTED] ** This message is for the named person's use only. It may contain confidential, proprietary or legally privileged information. You must not, directly or indirectly, use, disclose, distribute, print, or copy any part of this message if you are not the intended recipient. KBC Securities reserves the right to monitor all e-mail communications through its networks. 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 any such entity. ** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: i18n in TXTRenderer
You are probably correct. The TXTRenderer probably should not use the same add method as the PCL renderer. Since it should just generate plain text, there probably is not a reason that it should not be able to support i18n. As coded however, it may be more aptly named the ASCIIRenderer (or maybe that should be PC-8). Without looking at the code, I am not sure how the TXTRenderer would handle chars instead of bytes. My guess is that some (simple) code changes would need to be made. Personally I do not know that the TXTRenderer is useful enough to be worth spending much effort on. But if the changes are simple and useful to someone... Certainly it would be good for FOP (and all of its components) to support i18n. Art -Original Message- From: Satoshi Ishigami [mailto:[EMAIL PROTECTED]] Sent: Sunday, January 27, 2002 6:35 PM To: [EMAIL PROTECTED] Subject: i18n in TXTRenderer Hi . I hacked the TXTRenderer for i18n. Currently the org.apache.fop.render.pcl.PCLStream class is used as OutputStream in TXTRenderer. The add method in PCLStream calss is as below: public void add(String str) { if (!doOutput) return; byte buff[] = new byte[str.length()]; int countr; int len = str.length(); for (countr = 0; countr len; countr++) buff[countr] = (byte)str.charAt(countr); try { out.write(buff); } catch (IOException e) { // e.printStackTrace(); // e.printStackTrace(System.out); throw new RuntimeException(e.toString()); } } I think that this algorithm is wrong for the character 127. This reason is that the literal length of char is 2 bytes and the literal length of byte is 1 byte. To avoid this problem, I think that the following algorithm is better than now. public void add(String str) { if (!doOutput) return; try { byte buff[] = str.getBytes(UTF-8); out.write(buff); } catch (IOException e) { throw new RuntimeException(e.toString()); } } This algorithm may be not good for PCLRenderer because I don't know whether the PCL printer supports the UTF-8 encoding or not. However I think that the TXTRenderer could use the multilingualable encoding because it is possible to include some languages in a same single fo file. Therere I consider that the TXTRenderer should not use the PCLStream and had better use original OutputStream (such as TXTStream). Will my thought be wrong? Best Regards. --- Satoshi Ishigami VIC TOKAI CORPORATION - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
How can I dynamically pass data to be formatted??
Hi Jochen Thierry , Thanks for the immediate reply As you said xsl:decimal-format name="eurofrmt" decimal-separator="," grouping-separator="."/> 1) select="format-number(xsl:value-of select="net_amount"/>, '#.###,00', 'eurofrmt')"/> ==> this is not working... throwing an exceptionwhich is not allowed... 2)But xsl:variable name="amount" select="net_amount"/> and using it as xsl:value-of select="format-number($amount, '#.###,00', 'eurofrmt')"/> ==> which is displaying a value as "NAN" if the following is used xsl:decimal-format name="eurofrmt" decimal-separator="," grouping-separator="." NaN=" - " zero-digit="0"/> displaying a "-" can any body help me in solving this.please... best regards brahma - [EMAIL PROTECTED] wrote: if the net_amount is in the root (like shown) and yout templatematch is "/" then just do this: xsl:decimal-format name="eurofrmt" decimal-separator="," grouping-separator="."/> xsl:template match="/"> xsl:value-of select="format-number(xsl:value-of select="net_amount"/>, '#.###,00', 'eurofrmt')"/> /xsl:template> that should work, or if it doesn't work put the value as shown in a xsl:variable and then use that one for your formatting regards Jochen Maes EDP departement Programmeur KBC-Securities Havenlaan 16 1080 Brussel Tel : 02/429.96.81 Fax : 02/429.17.48 E-mail : [EMAIL PROTECTED] ** This message is for the named person's use only. It may contain confidential, proprietary or legally privileged information. You must not, directly or indirectly, use, disclose, distribute, print, or copy any part of this message if you are not the intended recipient. KBC Securities reserves the right to monitor all e-mail communications through its networks. 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 any such entity. ** BRAHMA brahmaiah.kurabalakota@emis To: [EMAIL PROTECTED] -intl.com> cc: Subject: How can I dynamically pass data to be formatted?? 28-01-02 04:57 PM Please respond to fop-dev Hi All, Again a question...!! --- ?xml version="1.0"?> root> money> net_amount>5/net_amount> vatrate>16%/vatrate> vat>8000/vat> total_amount>58000/total_amount> currency_symbol>DM/currency_symbol> ratio>100/ratio> /money> /root> -- So I want to format the money value..I can use the format function But how can I dynamically select money value from xml file and pass to the format function of xsl? xsl:decimal-format name="eurofrmt" decimal-separator="," grouping-separator="."/> xsl:template match="/"> xsl:value-of select="format-number($net_amount, '#.###,00', 'eurofrmt')"/> /xsl:template> or xsl:template match="/"> xsl:value-of select="format-number($total_amount, '#.###,00', 'eurofrmt')"/> /xsl:template> Any suggestion is a great help for me :). best regards brahma - Brahmaiah Kurabalakota Software Developer eMIS eMerging Information Systems GmbH Am Friedrichsbrunnen D-24782 Bdelsdorf Tel.: +49 (4331) 447 1520 Mobile: +49 (172) 5372297 mailto: [EMAIL PROTECTED] www.emis-intl.com (See attached file: brahmaiah.kurabalakota.vcf) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] -- - Brahmaiah Kurabalakota Software Developer eMIS eMerging Information Systems GmbH Am Friedrichsbrunnen D-24782 Bdelsdorf Tel.: +49 (4331) 447 1520 Mobile: +49 (172) 5372297 mailto: [EMAIL PROTECTED] www.emis-intl.com begin:vcard n:Brahmaiah;kurabalakota tel;cell:+49-1725372297 tel;work:eMIS GmbH x-mozilla-html:FALSE adr:;; version:2.1 email;internet:[EMAIL PROTECTED] fn:Brahma end:vcard - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
overflow support
Folks: Is overflow=hidden supported on a block? I'm trying to get my block data to truncate at the cell boundary. TIA, -Lou - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: bugger fonts still won't work desperate...
Someone else in Belgium working with FOP I see, Jochen, I think your problem is very simple. You have created the userconfig.xml file (call it whatever you want) and now before instantiating your driver you have to create a new Options object using this userconfig.xml file. Otherwise you will still be using the default config.xml file. Greetings Manuel [EMAIL PROTECTED] From: [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: bugger fonts still won't work desperate... Date: Mon, 28 Jan 2002 16:53:55 +0100 How do you call FOP? java? commandline? anyway what i see in java that is that Fop starts reading the userconfig (if i implemented it) and then starts parsing... so you should define your userconfig file first i think Jochen Maes EDP departement Programmeur KBC-Securities Havenlaan 16 1080 Brussel Tel : 02/429.96.81 Fax : 02/429.17.48 E-mail : [EMAIL PROTECTED] ** This message is for the named person's use only. It may contain confidential, proprietary or legally privileged information. You must not, directly or indirectly, use, disclose, distribute, print, or copy any part of this message if you are not the intended recipient. KBC Securities reserves the right to monitor all e-mail communications through its networks. 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 any such entity. ** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] _ Chat on line met vrienden en probeer MSN Messenger uit: http://messenger.msn.nl - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: newbie needs help with relative address for image.
The error message complains about a missing protocol in the address. Have you tried: file:/../../companylogo/url? Manuel -Original Message- From: Troy Bottger [mailto:[EMAIL PROTECTED]] Sent: Tuesday, 29 January 2002 0:38 To: '[EMAIL PROTECTED]' Subject: RE: newbie needs help with relative address for image. Does this work if I don't call it from a command line? I have uncommented the BaseDir in the userconfig.xml and re-ran my application (servlet application) and I am not seeing that this file is being used. -Original Message- From: Buchtík, Michal [mailto:[EMAIL PROTECTED]] Sent: Monday, January 28, 2002 8:51 AM To: '[EMAIL PROTECTED]' Subject: RE: newbie needs help with relative address for image. Set the BaseDir in userconfig.xml Michal -Original Message- From: Troy Bottger [mailto:[EMAIL PROTECTED]] Sent: Monday, January 28, 2002 2:27 PM To: '[EMAIL PROTECTED]' Subject: newbie needs help with relative address for image. Everything in my XSL/FO is working perfectly except my images. The address I am supplying is a relative address (that works if I use HTML), but does not work if I use XSL/FO to PDF. I have read the archives, and I am not finding any solutions to this problem. Can anyone tell me what I am doing wrong? fo:external-graphic height=24mm width=66mm src={../companylogo/url}/ /companylogo/url gets translated into: abc\images\merchant_logo.gif If I use a full path, ie. (c:\xyz\htdocs\abc\images\mechant_logo.gif) it is fine. It is just when I specify the relative address when I get: Error while creating area : Invalid Image URL - error on relative URL : no protocol: null/abc/images/merchant_logo.gif - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
DO NOT REPLY [Bug 6083] New: - need Driver(InputSource, Writer) constructor for JSP
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6083. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE. http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6083 need Driver(InputSource, Writer) constructor for JSP Summary: need Driver(InputSource, Writer) constructor for JSP Product: Fop Version: all Platform: PC OS/Version: All Status: NEW Severity: Enhancement Priority: Other Component: pdf renderer AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] It would be Really Nice to have a constructor for Driver that takes a Writer instead of an OutputStream. Although Java servlets use ServletOutputStreams for output, they have been layered into JspWriters by the time the JSP writer gets a shot, and the servlet API has been oh-so-carefully designed to notice/complain that request.getOutputStream() has already been called by the JSP framework. My current workaround is horrid - using a ByteArrayOutputStream and invoking pageContent.getOut().write() with it. Ugh, especially given that .pdf's are typically quite large. Perhaps upgrading Fop to the Xalan2 StreamSource and StreamResult mechanisms, which work with Streams and Readers/Writers, would make things happier for all concerned. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
FOP:making language independent
Hi All , I am working on XSL-FO to generated PDF format using FOP . I want that my output should be self-regulating according to language . so I am using writing mode attribute in XSL-FO . but FOP is not supporting witting mode attribute. Basically I want to ask you that some language write right to left and top to bottom(Japanese)or top to bottom and left to right(chinese) etc. If our XML data is in Japanese language than generated PDF( Using FOP) should be written from right to left and top to bottom . How to manage this thing . Thanks in advance. Regards Rikhil - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
DO NOT REPLY [Bug 6086] New: - Incorrect attribute
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6086. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE. http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6086 Incorrect attribute Summary: Incorrect attribute Product: Fop Version: all Platform: Other OS/Version: Other Status: NEW Severity: Major Priority: Other Component: page-master/layout AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] fo:page-sequence uses master-reference NOT master-name (please refer to http://www.w3.org/TR/2001/REC-xsl-20011015/slice6.html#fo_page-sequence for attribute of fo:page-sequence) Error: 'master-name' for 'fo:page-sequence'matches no 'simple-page-master' or 'page-sequence-master' - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
DO NOT REPLY [Bug 5434] - keep-with-next, keep-with-previous do not work
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5434. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE. http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5434 keep-with-next, keep-with-previous do not work --- Additional Comments From [EMAIL PROTECTED] 2002-01-29 06:58 --- The same with FOP-0.20.3RC - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: bugger fonts still won't work desperate...
thanks, bedankt merci... And indeed, someone else in Belgium works with FOP. I think it's a great tool. but i'm a newbie in tha FOP business and still have a lot to figure out. If i ever can be off your assistence Jochen Jochen Maes EDP departement Programmeur KBC-Securities Havenlaan 16 1080 Brussel Tel : 02/429.96.81 Fax : 02/429.17.48 E-mail : [EMAIL PROTECTED] ** This message is for the named person's use only. It may contain confidential, proprietary or legally privileged information. You must not, directly or indirectly, use, disclose, distribute, print, or copy any part of this message if you are not the intended recipient. KBC Securities reserves the right to monitor all e-mail communications through its networks. 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 any such entity. ** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]