RE: Does fo:basic-link work with 0.20.1 ?
Hi Dharmendra, Thanks for taking the time to reply to my query :-) I actually was doing the same thing but the only outstanding thing I noticed was that I was doing it within a fo:block-container and that was causing the effect of the fo:basic-link being masked () So I has to get rid of those fo:block-container tags to get the fo:basic-link to work properly. (It works perfectly now ... :-) ) If Anyone out there has actually got the fo:basic-link to work within the fo:block-container please let me know. Else should this be registered as a bug/feature I just wanted to share this experience :-) Anil. --- Sharan, Dharmendra [EMAIL PROTECTED] wrote: Hi Anil, use something like... fo:block font-size=8pt font-family=sans-serif text-align=justify fo:inline font-style=italic URL: /fo:inline !-- text-med-blue -- fo:basic-link color=#99 text-decoration=underline external-destination=[EMAIL PROTECTED] fo:inline font-size=8pt xsl:value-of select=@applicableUrl/ /fo:inline /fo:basic-link /fo:block [EMAIL PROTECTED] may be replaced with your URL...eg.http://www.oracle.com or as a variable shown in example above hth, Dharmendra -Original Message- From: Anil Pinto [mailto:[EMAIL PROTECTED] Sent: Sunday, January 27, 2002 7:53 PM To: [EMAIL PROTECTED] Subject: Does fo:basic-link work with 0.20.1 ? Hi all, I was trying out the fo:basic-link but couldn't get it to work. Was wondering if has successfully used it I am using the tag within a fo:block as follows fo:block fo:basic-link external-destination=http://www.oracle.com; color=blue text-decoration=underlineOracle fo:basic-link /fo:block any help will be greatly appreciated :-) Anil. __ Do You Yahoo!? Great stuff seeking new owners in Yahoo! Auctions! http://auctions.yahoo.com __ Do You Yahoo!? Great stuff seeking new owners in Yahoo! Auctions! http://auctions.yahoo.com
Entity references in FOP
In the interests of being typographically correct, I'm attempting to use oriented double and single quotes, ellipses, etc... These are typically referenced in HTML as ldquo; rdquo; (amp;ldquo; amp;rdquo;) and so on... however, FOP is informing me these entities are not declared. I would be curious to find a list of what entities are in and what aren't. Also, I presume I can use a numeric code (#number; - or amp;#number;) to reference the character directly. However, it seems like a list of those numbers and their corresponding characters is a little too basic for the FOP documentation or the usual reference materials. I assume there's a relevant ISO document - anybody know what it is? Or if you just have any common numbers handy I'd love to see them. :) Thanks, David
VS: Entity references in FOP
I think this depends on the encoding of the XML files and have not used those with PDF default fonts. Anyway if you are using unicode (embedded) fonts you can see http://www.unicode.org/charts/ for listings of unicode entity references. these are used like #x; , where should be the hexadecimal number. if using decimals instead the letter x should be taken away. BUT THIS IS WHEN USING UNICODE FONTS. -Teemu -Alkuperäinen viesti- Lähettäjä:David Wood [SMTP:[EMAIL PROTECTED] Lähetetty:29. tammikuuta 2002 4:09 Vastaanottaja:[EMAIL PROTECTED] Aihe: Entity references in FOP In the interests of being typographically correct, I'm attempting to use oriented double and single quotes, ellipses, etc... These are typically referenced in HTML as ldquo; rdquo; (amp;ldquo; amp;rdquo;) and so on... however, FOP is informing me these entities are not declared. I would be curious to find a list of what entities are in and what aren't. Also, I presume I can use a numeric code (#number; - or amp;#number;) to reference the character directly. However, it seems like a list of those numbers and their corresponding characters is a little too basic for the FOP documentation or the usual reference materials. I assume there's a relevant ISO document - anybody know what it is? Or if you just have any common numbers handy I'd love to see them. :) Thanks, David
FOP BUGZILLA : 0.17 is the last version
Hi Who is taking care of FOP bugzilla maintaining? 0.17 is the newest FOP version that bugzilla knows. To spare work for the bug fixers it might be good to be able to mention the real version in the bug report. -Teemu
Speed problem
Hi, i use FOP to transform an xml file into PDF and the problem is the speed of the operation. I take 25seconds for a final pdf file of 6 pages (with 335 row and 7 columns). Is it normal, can i do something to acelerate this ? Thanks ___ Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français ! Yahoo! Mail : http://fr.mail.yahoo.fr
Re: Entity references in FOP
David Wood [EMAIL PROTECTED] wrote: I would be curious to find a list of what entities are in and what aren't. Also, I presume I can use a numeric code (#number; - or amp;#number;) to reference the character directly. However, it seems like a list of those numbers and their corresponding characters is a little too basic for the FOP documentation or the usual reference materials. I assume there's a relevant ISO document - anybody know what it is? The relevant standards bodies are the Unicode Consortium and the W3C. The authoritative mapping of HTML entity names to their character code is at http://www.w3.org/TR/html4/sgml/entities.html You can cutpaste the character entites directly from that page. There may be other ressources which are more comfortable to use, look at http://www.zvon.org for example. The Unicode character index starts at http://www.unicode.org/charts/charindex.html They use hexadecimal numbers, use them like #xpaste here; Do not use amp;#whatever, this will be shown as #whatever; in your result. You might want to read the XML spec for details, http://www.w3.org/TR/2000/REC-xml-20001006#sec-references Of course, whether the characters are displayed correctly depends on the fonts installed for FOP, the font selected, and perhaps the fonts installed on the machine where the resulting PDF is finally viewed. Whether a HTML entity is defined for a particular is irrelevant. HTH J.Pietschmann
Re: multiple output files
Matthew L. Avizinis [EMAIL PROTECTED] wrote: 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. Odd subject for these questions. However, look at http://marc.theaimsgroup.com/?l=fop-devm=100747811203665w=2 and decide whether this helps you. In any case, i can't see how you can achieve your goal without fiddling with FOP internals. You might also want to educate yourself about how to write FOP extension functions. There is a brief intro in docs/html-docs/extensions.html in your FOP distribution. HTH J.Pietschmann
RE: Speed problem
Which version of Xalan do you use ??? I had the same problem or speed whith the version 2.1.0. With the version 2.2D11, it was faster !!! Solange Desseignes -Message d'origine- De : seb dupont [mailto:[EMAIL PROTECTED] Envoyé : mardi 29 janvier 2002 15:07 À : [EMAIL PROTECTED] Objet : Speed problem Hi, i use FOP to transform an xml file into PDF and the problem is the speed of the operation. I take 25seconds for a final pdf file of 6 pages (with 335 row and 7 columns). Is it normal, can i do something to acelerate this ? Thanks ___ Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français ! Yahoo! Mail : http://fr.mail.yahoo.fr
RE: multiple output files
Thanks for your response, Joerg. Read on if you think you might be able to help me further. -Original Message- From: Joerg Pietschmann [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 29, 2002 10:04 AM To: FOP User Subject: Re: multiple output files Matthew L. Avizinis [EMAIL PROTECTED] wrote: 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. Odd subject for these questions. However, look at http://marc.theaimsgroup.com/?l=fop-devm=100747811203665w=2 and decide whether this helps you. In any case, i can't see Well, yes and no. It does show how I might pull some other information out and maybe write it out to a new file. However, what I need more is the _last page number_. What method actually generates the actual page number for fo:page-number? Knowing that, even if I can't determine the last one, I could write output of all page-numbers to an xml file in addition to the pdf and then later just find the last one generated. how you can achieve your goal without fiddling with FOP internals. You might also want to educate yourself about how to write FOP extension functions. There is a brief intro in docs/html-docs/extensions.html in your FOP distribution. Judging by the (rather sparse) instructions, it seems to me that what I need is not an extension to fo but a way to grab information fop is already producing and spit it out to an xml file as it's generated, while at the same time allowing the pdf to continue to be output. So, yes it looks like I have to fiddle with the FOP internals, but the question is, Where is a logical location to begin? There's a lot of code and I'm not that really familiar with the itnernals of the project yet. At first glance, it looks like I could stick in a few lines of code in the PageNumberCitation Status method to write out the information I need to a new file (or append to an existing file). As to the getting the last page, it seems I would need to get the current PageNumber from someplace and write it out. I know that somewhere I will have to put some basic code like try { BufferedWriter out = new BufferedWriter(new FileWriter(filename,true)); out.write(the formatted information I want); out.close(); } catch (IOException e) { } to append to my temporary information file with this format 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 (or just a list of all page numbers in this pdf) 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 HTH J.Pietschmann
RE: multiple output files
Actually, now that I think of it, what I will need is a list of all the object id's that are then (or only might then be) later referenced by the PageNumberCitation ref-id. This way, when I generate a pdf that makes a PageNumberCitation to a ref-id in a pdf that was in a chapter generated in a previous pdf, I will be able to get the correct PageNumber. thanks again, 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 === computing (kum' pyoot ing) 1. n the art of calculating how much time you wasted and money you spent in a doomed attempt to master a machine with a mind of it's own. --from computing: A HACKER'S DICTIONARY -Original Message- From: Joerg Pietschmann [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 29, 2002 10:04 AM To: FOP User Subject: Re: multiple output files Matthew L. Avizinis [EMAIL PROTECTED] wrote: 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. Odd subject for these questions. However, look at http://marc.theaimsgroup.com/?l=fop-devm=100747811203665w=2 and decide whether this helps you. In any case, i can't see how you can achieve your goal without fiddling with FOP internals. You might also want to educate yourself about how to write FOP extension functions. There is a brief intro in docs/html-docs/extensions.html in your FOP distribution. HTH J.Pietschmann
RE: multiple output files
Aha, now I see what you're saying. Thanks. I'll try that. -Original Message- From: Joerg Pietschmann [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 29, 2002 11:35 AM To: FOP User Subject: Re: multiple output files Matthew L. Avizinis [EMAIL PROTECTED] wrote: Judging by the (rather sparse) instructions, it seems to me that what I need is not an extension to fo but a way to grab information fop is already producing and spit it out to an xml file as it's generated, while at the same time allowing the pdf to continue to be output. So, yes it looks like I have to fiddle with the FOP internals, but the question is, Where is a logical location to begin?[...] At first glance, it looks like I could stick in a few lines of code in the PageNumberCitation Status method to write out the information I need to a new file (or append to an existing file). I still think it is cleaner and perhaps easier to write extensions and place them into the block whose page number should be written: fo:block id=stuff myex:write-page-number/ ... Override the layout() method for actually writing the info, you can get the current page with area.getPage(), look at fo.flow.PageNumber.java for more info. Create another extension element to be placed at the end of the page flow for recording the last page. I suppose you generated the FO with XSL, in this case you shouldn't have too much trouble to insert the extension elements. HTH J.Pietschmann
RE: Speed problem
I use FOP 0.20.1 too. I have fop.jar and xalan.jar (and associated jars) separately... I don't rebuild anything to use another version of Xalan with my Fop version ! I just change the xalan.jar... -Message d'origine- De : seb dupont [mailto:[EMAIL PROTECTED] Envoyé : mardi 29 janvier 2002 17:00 À : [EMAIL PROTECTED] Objet : RE: Speed problem i use FOP 0.20.1 with Xalan 2.0.0 but when i use cocoon2 (fop 0.20.1 and xalan 2.2D13) the result is the same, fastest time at 25 s. How can i change xalan for fop ? i have to rebuild it copying xalan in the lib ? - Solange Desseignes [EMAIL PROTECTED] a écrit : Which version of Xalan do you use ??? I had the same problem or speed whith the version 2.1.0. With the version 2.2D11, it was faster !!! Solange Desseignes -Message d'origine- De : seb dupont [mailto:[EMAIL PROTECTED] Envoyé : mardi 29 janvier 2002 15:07 À : [EMAIL PROTECTED] Objet : Speed problem Hi, i use FOP to transform an xml file into PDF and the problem is the speed of the operation. I take 25seconds for a final pdf file of 6 pages (with 335 row and 7 columns). Is it normal, can i do something to acelerate this ? Thanks ___ Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français ! Yahoo! Mail : http://fr.mail.yahoo.fr ___ Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français ! Yahoo! Mail : http://fr.mail.yahoo.fr
RE: Speed problem
I can't do it because my xalan jar are named xalan2.0.0.jar and xalan2.2.0-D13.jar --- Solange Desseignes [EMAIL PROTECTED] a écrit : I use FOP 0.20.1 too. I have fop.jar and xalan.jar (and associated jars) separately... I don't rebuild anything to use another version of Xalan with my Fop version ! I just change the xalan.jar... -Message d'origine- De : seb dupont [mailto:[EMAIL PROTECTED] Envoyé : mardi 29 janvier 2002 17:00 À : [EMAIL PROTECTED] Objet : RE: Speed problem i use FOP 0.20.1 with Xalan 2.0.0 but when i use cocoon2 (fop 0.20.1 and xalan 2.2D13) the result is the same, fastest time at 25 s. How can i change xalan for fop ? i have to rebuild it copying xalan in the lib ? - Solange Desseignes [EMAIL PROTECTED] a écrit : Which version of Xalan do you use ??? I had the same problem or speed whith the version 2.1.0. With the version 2.2D11, it was faster !!! Solange Desseignes -Message d'origine- De : seb dupont [mailto:[EMAIL PROTECTED] Envoyé : mardi 29 janvier 2002 15:07 À : [EMAIL PROTECTED] Objet : Speed problem Hi, i use FOP to transform an xml file into PDF and the problem is the speed of the operation. I take 25seconds for a final pdf file of 6 pages (with 335 row and 7 columns). Is it normal, can i do something to acelerate this ? Thanks ___ Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français ! Yahoo! Mail : http://fr.mail.yahoo.fr ___ Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français ! Yahoo! Mail : http://fr.mail.yahoo.fr ___ Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français ! Yahoo! Mail : http://fr.mail.yahoo.fr
Re: Speed problem
Can you set up your own classpath on your shell's profile? Carlos On 01/29/02 9:12, seb dupont [EMAIL PROTECTED] wrote: I can't do it because my xalan jar are named xalan2.0.0.jar and xalan2.2.0-D13.jar --- Solange Desseignes [EMAIL PROTECTED] a écrit : I use FOP 0.20.1 too. I have fop.jar and xalan.jar (and associated jars) separately... I don't rebuild anything to use another version of Xalan with my Fop version ! I just change the xalan.jar... -Message d'origine- De : seb dupont [mailto:[EMAIL PROTECTED] Envoyé : mardi 29 janvier 2002 17:00 À : [EMAIL PROTECTED] Objet : RE: Speed problem i use FOP 0.20.1 with Xalan 2.0.0 but when i use cocoon2 (fop 0.20.1 and xalan 2.2D13) the result is the same, fastest time at 25 s. How can i change xalan for fop ? i have to rebuild it copying xalan in the lib ? - Solange Desseignes [EMAIL PROTECTED] a écrit : Which version of Xalan do you use ??? I had the same problem or speed whith the version 2.1.0. With the version 2.2D11, it was faster !!! Solange Desseignes -Message d'origine- De : seb dupont [mailto:[EMAIL PROTECTED] Envoyé : mardi 29 janvier 2002 15:07 À : [EMAIL PROTECTED] Objet : Speed problem Hi, i use FOP to transform an xml file into PDF and the problem is the speed of the operation. I take 25seconds for a final pdf file of 6 pages (with 335 row and 7 columns). Is it normal, can i do something to acelerate this ? Thanks ___ Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français ! Yahoo! Mail : http://fr.mail.yahoo.fr ___ Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français ! Yahoo! Mail : http://fr.mail.yahoo.fr ___ Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français ! Yahoo! Mail : http://fr.mail.yahoo.fr -- Carlos E. Araya ---+ WebCT Administrator/Trainer P | California Virtual Campus - | C/O De Anza College G | 21250 Stevens Creek Blvd ---+ Cupertino, CA 95014 email [EMAIL PROTECTED] web http://www.cvc1.org/ (work) http://www.silverwolf-net.net (personal) phone 408 257 0420 (work) PGP Fingerprint:E629 5DFD 7EAE 4995 E9D7 3D2F 5A9F 0CE7 DFE7 1756 Do not meddle in the affairs of dragonsfor you are crunchy and taste good with ketchup and mayonnaise..
Whitespace
Using 0.20.3rc, is there a way to preserve two spaces in a fo:block? Right now, it seems to be normalizing all my whitespace so my sentences run together with only one space between the punctuation and the next sentence. Scott Moore Senior Developer netDecide - http://www.netdecide.com/ 7600 Leesburg Pike, West Building - Suite 100 Falls Church, Virginia 22043 (571) 633-6134 (Work) (571) 633-6003 (Fax)
RE: Whitespace
Okay, figured it out. Sorry about the post. fo:block white-space-collapse=false Glad to see FOP supports that attribute! Scott -Original Message- From: Scott Moore [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 29, 2002 4:18 PM To: Fop User (E-mail) Subject: Whitespace Using 0.20.3rc, is there a way to preserve two spaces in a fo:block? Right now, it seems to be normalizing all my whitespace so my sentences run together with only one space between the punctuation and the next sentence.