some help..
Hi all, I have aXML file like this.. root node1 attr1="efhg" attr2="efhef"/ node2 attr2="erfje" attr3="efjef"/ /root Is there any method/function in XSL to check whether any of the attributes in the node exists.. Regards, Vinod Nayak i-flex solutions ltd. Voice: (91)-228 43 00, x 6501 Fax:(91)-22-843 13[EMAIL PROTECTED] This message contains privileged and confidential information and is intended only for the individual named.If you are not the intended recipient you should not disseminate,distribute,store,print, copy or deliver this message.Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system.E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted,corrupted,lost,destroyed,arrive late or incomplete or contain viruses.The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission. If verification is required please request a hard-copy version.
Re: some help..
you can use the "@" symbol to test the attribut, xsl:template match="node1" xsl:if test="@attr1" /*test whether has the attribute attr1 or not*/ /*do your operation at here*/ /xsl:if /xsl:template - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, June 24, 2002 1:23 PM Subject: some help.. Hi all, I have aXML file like this.. root node1 attr1="efhg" attr2="efhef"/ node2 attr2="erfje" attr3="efjef"/ /root Is there any method/function in XSL to check whether any of the attributes in the node exists.. Regards, Vinod Nayak i-flex solutions ltd. Voice: (91)-228 43 00, x 6501 Fax:(91)-22-843 13[EMAIL PROTECTED] This message contains privileged and confidential information and is intended only for the individual named.If you are not the intended recipient you should not disseminate,distribute,store,print, copy or deliver this message.Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system.E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted,corrupted,lost,destroyed,arrive late or incomplete or contain viruses.The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission. If verification is required please request a hard-copy version.
RE: Hi
Try this within your page sequence master fo:page-sequence-master master-reference=mainPage fo:static-content flow-name=xsl-region-before fo:blockHeader Appears Here/fo:block /fo:static-content fo:static-content flow-name=xsl-region-after fo:blockFooter Appears Here fo:page-number//fo:block /fo:static-content fo:flow flow-name=xsl-region-body fo:blockHello World/fo:block /fo:flow /fo:page-sequence cheers Max -Original Message- From: Durai Murugan [mailto:[EMAIL PROTECTED] Sent: Monday, June 24, 2002 11:19 AM To: [EMAIL PROTECTED] Subject: Hi Hi all, How to set Headers/Footers in FO Layout. Durai __ Do You Yahoo!? Yahoo! - Official partner of 2002 FIFA World Cup http://fifaworldcup.yahoo.com
Re: Please remove me from the mailing list!
You have to do that yourself. See http://xml.apache.org/mail.html Cheers, Jeremias Märki
RE: Hi
This seems works fine. Thank you Max. Regards Durai --- Max Dcosta [EMAIL PROTECTED] wrote: Try this within your page sequence master fo:page-sequence-master master-reference=mainPage fo:static-content flow-name=xsl-region-before fo:blockHeader Appears Here/fo:block /fo:static-content fo:static-content flow-name=xsl-region-after fo:blockFooter Appears Here fo:page-number//fo:block /fo:static-content fo:flow flow-name=xsl-region-body fo:blockHello World/fo:block /fo:flow /fo:page-sequence cheers Max -Original Message- From: Durai Murugan [mailto:[EMAIL PROTECTED] Sent: Monday, June 24, 2002 11:19 AM To: [EMAIL PROTECTED] Subject: Hi Hi all, How to set Headers/Footers in FO Layout. Durai __ Do You Yahoo!? Yahoo! - Official partner of 2002 FIFA World Cup http://fifaworldcup.yahoo.com __ Do You Yahoo!? LAUNCH - Your Yahoo! Music Experience http://launch.yahoo.com
Re:Hi
This seems works fine. Thank you Max. Regards Durai --- Max Dcosta [EMAIL PROTECTED] wrote: Try this within your page sequence master fo:page-sequence-master master-reference=mainPage fo:static-content flow-name=xsl-region-before fo:blockHeader Appears Here/fo:block /fo:static-content fo:static-content flow-name=xsl-region-after fo:blockFooter Appears Here fo:page-number//fo:block /fo:static-content fo:flow flow-name=xsl-region-body fo:blockHello World/fo:block /fo:flow /fo:page-sequence cheers Max -Original Message- From: Durai Murugan [mailto:[EMAIL PROTECTED] Sent: Monday, June 24, 2002 11:19 AM To: [EMAIL PROTECTED] Subject: Hi Hi all, How to set Headers/Footers in FO Layout. Durai __ Do You Yahoo!? Yahoo! - Official partner of 2002 FIFA World Cup http://fifaworldcup.yahoo.com __ Do You Yahoo!? LAUNCH - Your Yahoo! Music Experience http://launch.yahoo.com
RE: keep line-breaks in PDF
Thanks a lot, I translated the CR to #x2028; which worked without any problems. Kurt -Message d'origine- De : J.Pietschmann [mailto:[EMAIL PROTECTED] Envoyé : vendredi, 21. juin 2002 23:42 À : [EMAIL PROTECTED] Objet : Re: keep line-breaks in PDF Hahn Kurt (CHA) wrote: I'm generating a document from a DB which contains fields of up to 2000 characters In those fields,any line-break is stored, and if I look at my XSL-FO in a text-editor, I see that all the line-breaks are still there. They're of the form: #13;. If process the document through FOP (the contents are displayed in table cells), Acrobat seems to ignore the line-breaks completely. Does FOP strip away the #13;? Or do I have to use another line-break character? If the data is reparsed, the XML parser is oblieged to normalize a CR (U+000D) to LF (U+000A) (if you write #13; instead of putting a CR into the text you get a CR delivered to FOP). If you are passing the data in-memory, FOP will see the CR. After this, linefeeds are possibly converted to spaces, according to the value of linefeed-treatment in effect http://www.w3.org/TR/xsl/slice7.html#linefeed-treatment and then white space is collapsed, controlled by the values of white-space-treatment and white-space-collapse If you want to have your line breaks preserved, you should set linefeed-treatment to preserve. Unfortunately, FOP doesn't implement this. You can set white-space-collapse to false, which will not only keep runs of spaces but also the linefeeds intact (which is actually a bug). If you want to have white space collapsed, you can - do this at a transformation level - use a transformation which transforms each run of characters between two line bbreaks into a separate fo:block - translate the CR to #x2028; (Unicode LINE SEPARATOR) which is apparently treated specially HTH J.Pietschmann
Re: some help..
you might also try something like: xsl:template match="[EMAIL PROTECTED]|[EMAIL PROTECTED]" !-- do your operation here -- /xsl:template the brackets "perform" the test. the "|" serves as logical OR, but to make sure your XML definitly contains the node with some attribute, put some definition in your DTD. markus -Ursprüngliche Nachricht-Von: huzhl [EMAIL PROTECTED]An: [EMAIL PROTECTED] [EMAIL PROTECTED]Datum: Montag, 24. Juni 2002 07:27Betreff: Re: some help.. you can use the "@" symbol to test the attribut, xsl:template match="node1" xsl:if test="@attr1" /*test whether has the attribute attr1 or not*/ /*do your operation at here*/ /xsl:if /xsl:template - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, June 24, 2002 1:23 PM Subject: some help.. Hi all, I have aXML file like this.. root node1 attr1="efhg" attr2="efhef"/ node2 attr2="erfje" attr3="efjef"/ /root Is there any method/function in XSL to check whether any of the attributes in the node exists.. Regards, Vinod Nayak i-flex solutions ltd. Voice: (91)-228 43 00, x 6501 Fax:(91)-22-843 13[EMAIL PROTECTED] This message contains privileged and confidential information and is intended only for the individual named.If you are not the intended recipient you should not disseminate,distribute,store,print, copy or deliver this message.Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system.E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted,corrupted,lost,destroyed,arrive late or incomplete or contain viruses.The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission. If verification is required please request a hard-copy version.
What kind of TIFF does FOP support
Hello, I have to create document with TIFF illustrations. It seems that some TIFF formats are supported and thers are not ( a black area replace the illustration). Can some one tells me what kind of TIFF FOP supports ? thanks
RE: What kind of TIFF does FOP support
most renderers may support uncompressed tiffs... pls correct me if i am wrong. -Original Message- From: Rodolphe VAGNER [mailto:[EMAIL PROTECTED] Sent: Monday, June 24, 2002 3:47 PM To: [EMAIL PROTECTED] Subject: What kind of TIFF does FOP support Hello, I have to create document with TIFF illustrations. It seems that some TIFF formats are supported and thers are not ( a black area replace the illustration). Can some one tells me what kind of TIFF FOP supports ? thanks
RE: What kind of TIFF does FOP support
I would like to recall this msg posted earlier by J. Pietschmann Jimi.jar doesn't understand all possible compressions allowed in TIFF. Use uncompressed or RLE compressed TIFFs. Cheers, Max -Original Message- From: Max Dcosta [mailto:[EMAIL PROTECTED] Sent: Monday, June 24, 2002 5:10 PM To: '[EMAIL PROTECTED]' Subject: RE: What kind of TIFF does FOP support most renderers may support uncompressed tiffs... pls correct me if i am wrong. -Original Message- From: Rodolphe VAGNER [mailto:[EMAIL PROTECTED] Sent: Monday, June 24, 2002 3:47 PM To: [EMAIL PROTECTED] Subject: What kind of TIFF does FOP support Hello, I have to create document with TIFF illustrations. It seems that some TIFF formats are supported and thers are not ( a black area replace the illustration). Can some one tells me what kind of TIFF FOP supports ? thanks
Re: What kind of TIFF does FOP support
In fact the first tests I've done seem to indicate the contrary : my uncompressed file is a black area and my CCITT Gr4 or 3, and LWZ compressed files are well rendered. It's bizarre, isn'it ? What about jimy ? where can I find doc on it ? - Original Message - From: Max Dcosta [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, June 24, 2002 1:45 PM Subject: RE: What kind of TIFF does FOP support I would like to recall this msg posted earlier by J. Pietschmann Jimi.jar doesn't understand all possible compressions allowed in TIFF. Use uncompressed or RLE compressed TIFFs. Cheers, Max -Original Message- From: Max Dcosta [mailto:[EMAIL PROTECTED] Sent: Monday, June 24, 2002 5:10 PM To: '[EMAIL PROTECTED]' Subject: RE: What kind of TIFF does FOP support most renderers may support uncompressed tiffs... pls correct me if i am wrong. -Original Message- From: Rodolphe VAGNER [mailto:[EMAIL PROTECTED] Sent: Monday, June 24, 2002 3:47 PM To: [EMAIL PROTECTED] Subject: What kind of TIFF does FOP support Hello, I have to create document with TIFF illustrations. It seems that some TIFF formats are supported and thers are not ( a black area replace the illustration). Can some one tells me what kind of TIFF FOP supports ? thanks
Weird behaviour of Apache fop
Hi all, Currently we have a weird problem: when converting an XML file (or rather, an XML-ified HML source) to a FO file and converting this resulting FO file to a PDF all things are fine. However, when we try to convert the XML with the exact same XSL script into a PDF we get errors: [INFO]: FOP 0.20.3 [INFO]: building formatting object tree [INFO]: Parsing of document complete, stopping renderer [INFO]: Parsing of document complete, stopping renderer [ERROR]: / by zero As we use the same XML and XSL in both cases we're a bit confused here. Please find attached the XML and XSL we used. We're using fop version 0.20.3 on w2k. Anybody got a clue as what might go wrong here? Thanks in advance, Michiel algemeen2.xsl Description: Binary data test.xml Description: Binary data
illegal character
Hello, I am using FOP to transform some bio into pdf format. FOP generates an error when it encounters an illegal character such as the apostrophe '. Where can I find a list of illegal characters that FOP does not accept? I need to replace the illegal character with their numeric entity reference. thanks pauli __ Do You Yahoo!? Yahoo! - Official partner of 2002 FIFA World Cup http://fifaworldcup.yahoo.com
Re: Weird behaviour of Apache fop
Your xsl stylesheet is so bizarre... What are you using all these CDATA sections for? Why are you using ![CDATA[fo:block/fo:block]] instead of just fo:block/fo:block ? Actually your xsl stylesheet works if and only if transformation result (fo document) is serialized and then reparsed again, because what are you creating by all these CDATA sections are not elements, but text nodes, as it's *character data*, not elements. And text output method - that's all kind of disable-output-escaping stuff, which is optional by xslt spec and have no chance to work in a streaming environment, like fop or cocoon or mozilla, when transformation result is never serialized/reparsed again. Try to change you stylesheet to be more usual transformation, you don't need these CDATA and text output method to create xml tree. Michiel Verhoef wrote: Hi all, Currently we have a weird problem: when converting an XML file (or rather, an XML-ified HML source) to a FO file and converting this resulting FO file to a PDF all things are fine. However, when we try to convert the XML with the exact same XSL script into a PDF we get errors: [INFO]: FOP 0.20.3 [INFO]: building formatting object tree [INFO]: Parsing of document complete, stopping renderer [INFO]: Parsing of document complete, stopping renderer [ERROR]: / by zero As we use the same XML and XSL in both cases we're a bit confused here. Please find attached the XML and XSL we used. We're using fop version 0.20.3 on w2k. Anybody got a clue as what might go wrong here? Thanks in advance, Michiel -- Oleg Tkachenko Multiconn International Ltd, Israel
RE: Weird behaviour of Apache fop
Well, that was another thing. I used to write simply fo:block etc. but then the stylesheet gave loads of errors. the funny thing is: this is the first time I actually ran into this sort of problem (i've been using fop for over a year now) so I was really stupified. I'll change the stylesheet the way you suggested and see what happens (although that's how I started out) Michiel $ -Original Message- $ From: Oleg Tkachenko [mailto:[EMAIL PROTECTED] $ Sent: maandag 24 juni 2002 17:12 $ To: [EMAIL PROTECTED] $ Subject: Re: Weird behaviour of Apache fop $ $ $ Your xsl stylesheet is so bizarre... What are you using all $ these CDATA $ sections for? Why are you using $ ![CDATA[fo:block/fo:block]] $ instead of just $ fo:block/fo:block ? $ Actually your xsl stylesheet works if and only if $ transformation result (fo $ document) is serialized and then reparsed again, because what $ are you creating $ by all these CDATA sections are not elements, but text nodes, as it's $ *character data*, not elements. And text output method - $ that's all kind of $ disable-output-escaping stuff, which is optional by xslt spec $ and have no $ chance to work in a streaming environment, like fop or cocoon $ or mozilla, when $ transformation result is never serialized/reparsed again. $ Try to change you $ stylesheet to be more usual transformation, you don't need $ these CDATA and $ text output method to create xml tree. $ $ Michiel Verhoef wrote: $ Hi all, $ $ Currently we have a weird problem: when converting an XML $ file (or rather, $ an XML-ified HML source) to a FO file and $ converting this resulting FO file to a PDF all things are $ fine. However, $ when we try to convert the XML with the exact $ same XSL script into a PDF we get errors: $ $ [INFO]: FOP 0.20.3 $ [INFO]: building formatting object tree $ [INFO]: Parsing of document complete, stopping renderer $ [INFO]: Parsing of document complete, stopping renderer $ [ERROR]: / by zero $ $ As we use the same XML and XSL in both cases we're a bit $ confused here. $ $ Please find attached the XML and XSL we used. We're using $ fop version 0.20.3 $ on w2k. $ $ Anybody got a clue as what might go wrong here? $ $ Thanks in advance, $ $ $ Michiel $ $ $ $ $ -- $ Oleg Tkachenko $ Multiconn International Ltd, Israel $
Please Help
Dear Guys, Can you pls help me by telling me how to get an output like this: Room Number:255 xxx:123 Room Type: Deluxe I am calling the values from an xml file (like the code used below) but i want to know how to indent just these dynamically called values so that all the values i call can be below each other. I just want the Dynamically called values to be shifted more to the right. What can i use to achieve this. If I give margin-left=100pt to the block the entire row gets shifted towards the right. Please guide me on this one thanks max fo:block font-family=Times font-size=12pt font-weight=normal Room Number: xsl:value-of select=roomno/ /fo:block Max William D'costa | Interactive Designer | netdecisions 6th Floor, MET Building, Gen. A K Vaidya Chowk, Bandra Reclamation, Mumbai 400050, India t +91 (0)22 644 Ext: 165 f +91 (0)22 655 8048 http://www.netdecisions.com [EMAIL PROTECTED]
Re: illegal character
Xiao Yang wrote: I am using FOP to transform some bio into pdf format. FOP generates an error when it encounters an illegal character such as the apostrophe '. Where can I find a list of illegal characters that FOP does not accept? I need to replace the illegal character with their numeric entity reference. What is exactly the error? Apostrophe is not an illegal character at all, but as it's used in xml markup to delimit attribute values, it's kinda special. And you don't need numeric entity reference, because apos; is predefined entity. See xml spec for more details: http://www.w3.org/TR/2000/REC-xml-20001006#syntax -- Oleg Tkachenko Multiconn International Ltd, Israel
RE: Please Help
try fo:table -Original Message- From: Max Dcosta [mailto:[EMAIL PROTECTED] Sent: Monday, June 24, 2002 10:19 AM To: [EMAIL PROTECTED] Subject: Please Help Dear Guys, Can you pls help me by telling me how to get an output like this: Room Number: 255 xxx: 123 Room Type:Deluxe
RE: Please Help
is there a way without using tables. Is there anything which will help me push that xsl:value-of select value to the right. max -Original Message- From: Argyn Kuketayev [mailto:[EMAIL PROTECTED] Sent: Monday, June 24, 2002 7:51 PM To: '[EMAIL PROTECTED]' Subject: RE: Please Help try fo:table -Original Message- From: Max Dcosta [mailto:[EMAIL PROTECTED] Sent: Monday, June 24, 2002 10:19 AM To: [EMAIL PROTECTED] Subject: Please Help Dear Guys, Can you pls help me by telling me how to get an output like this: Room Number: 255 xxx: 123 Room Type:Deluxe
RE: Please Help
-Original Message- From: Max Dcosta [mailto:[EMAIL PROTECTED] Sent: Monday, June 24, 2002 10:22 AM To: '[EMAIL PROTECTED]' Subject: RE: Please Help is there a way without using tables. Is there anything which will help me push that xsl:value-of select value to the right. I don't know. To me, your problem is perfectly solved with fo:table.
RE: Please Help
Max- Why the reluctance to use tables? Is it a design issue, speed issue, technical issue? Generally, tables are the textbook answer to this kind of question. If your specific project has requirements that make tables inappropriate, there may be other solutions. -Jeff Mitchell Max Dcosta [EMAIL PROTECTED]To: '[EMAIL PROTECTED]' [EMAIL PROTECTED] sions.com cc: Subject: RE: Please Help 06/24/2002 10:22 AM Please respond to fop-user is there a way without using tables. Is there anything which will help me push that xsl:value-of select value to the right. max -Original Message- From: Argyn Kuketayev [mailto:[EMAIL PROTECTED] Sent: Monday, June 24, 2002 7:51 PM To: '[EMAIL PROTECTED]' Subject: RE: Please Help try fo:table -Original Message- From: Max Dcosta [mailto:[EMAIL PROTECTED] Sent: Monday, June 24, 2002 10:19 AM To: [EMAIL PROTECTED] Subject: Please Help Dear Guys, Can you pls help me by telling me how to get an output like this: Room Number: 255 xxx: 123 Room Type: Deluxe
RE: Please Help
yes jeff, i agree with you. I will use tables. Thank you so much. Max -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, June 24, 2002 8:04 PM To: [EMAIL PROTECTED] Subject: RE: Please Help Max- Why the reluctance to use tables? Is it a design issue, speed issue, technical issue? Generally, tables are the textbook answer to this kind of question. If your specific project has requirements that make tables inappropriate, there may be other solutions. -Jeff Mitchell Max Dcosta [EMAIL PROTECTED]To: '[EMAIL PROTECTED]' [EMAIL PROTECTED] sions.com cc: Subject: RE: Please Help 06/24/2002 10:22 AM Please respond to fop-user is there a way without using tables. Is there anything which will help me push that xsl:value-of select value to the right. max -Original Message- From: Argyn Kuketayev [mailto:[EMAIL PROTECTED] Sent: Monday, June 24, 2002 7:51 PM To: '[EMAIL PROTECTED]' Subject: RE: Please Help try fo:table -Original Message- From: Max Dcosta [mailto:[EMAIL PROTECTED] Sent: Monday, June 24, 2002 10:19 AM To: [EMAIL PROTECTED] Subject: Please Help Dear Guys, Can you pls help me by telling me how to get an output like this: Room Number: 255 xxx: 123 Room Type: Deluxe
RE: Please Help
Max- No problem. But the thanks goes to Argyn, since he beat me to the punch. Good luck on your project. -Jeff Max Dcosta [EMAIL PROTECTED]To: '[EMAIL PROTECTED]' [EMAIL PROTECTED] sions.com cc: Subject: RE: Please Help 06/24/2002 10:40 AM Please respond to fop-user yes jeff, i agree with you. I will use tables. Thank you so much. Max -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, June 24, 2002 8:04 PM To: [EMAIL PROTECTED] Subject: RE: Please Help Max- Why the reluctance to use tables? Is it a design issue, speed issue, technical issue? Generally, tables are the textbook answer to this kind of question. If your specific project has requirements that make tables inappropriate, there may be other solutions. -Jeff Mitchell Max Dcosta [EMAIL PROTECTED]To: '[EMAIL PROTECTED]' [EMAIL PROTECTED] sions.com cc: Subject: RE: Please Help 06/24/2002 10:22 AM Please respond to fop-user is there a way without using tables. Is there anything which will help me push that xsl:value-of select value to the right. max -Original Message- From: Argyn Kuketayev [mailto:[EMAIL PROTECTED] Sent: Monday, June 24, 2002 7:51 PM To: '[EMAIL PROTECTED]' Subject: RE: Please Help try fo:table -Original Message- From: Max Dcosta [mailto:[EMAIL PROTECTED] Sent: Monday, June 24, 2002 10:19 AM To: [EMAIL PROTECTED] Subject: Please Help Dear Guys, Can you pls help me by telling me how to get an output like this: Room Number: 255 xxx: 123 Room Type: Deluxe
RE: Please Help
yes yes, thank you Argyn, You guys are a great help. God bless you guys. cheers, Max -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, June 24, 2002 8:21 PM To: [EMAIL PROTECTED] Subject: RE: Please Help Max- No problem. But the thanks goes to Argyn, since he beat me to the punch. Good luck on your project. -Jeff Max Dcosta [EMAIL PROTECTED]To: '[EMAIL PROTECTED]' [EMAIL PROTECTED] sions.com cc: Subject: RE: Please Help 06/24/2002 10:40 AM Please respond to fop-user yes jeff, i agree with you. I will use tables. Thank you so much. Max -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, June 24, 2002 8:04 PM To: [EMAIL PROTECTED] Subject: RE: Please Help Max- Why the reluctance to use tables? Is it a design issue, speed issue, technical issue? Generally, tables are the textbook answer to this kind of question. If your specific project has requirements that make tables inappropriate, there may be other solutions. -Jeff Mitchell Max Dcosta [EMAIL PROTECTED]To: '[EMAIL PROTECTED]' [EMAIL PROTECTED] sions.com cc: Subject: RE: Please Help 06/24/2002 10:22 AM Please respond to fop-user is there a way without using tables. Is there anything which will help me push that xsl:value-of select value to the right. max -Original Message- From: Argyn Kuketayev [mailto:[EMAIL PROTECTED] Sent: Monday, June 24, 2002 7:51 PM To: '[EMAIL PROTECTED]' Subject: RE: Please Help try fo:table -Original Message- From: Max Dcosta [mailto:[EMAIL PROTECTED] Sent: Monday, June 24, 2002 10:19 AM To: [EMAIL PROTECTED] Subject: Please Help Dear Guys, Can you pls help me by telling me how to get an output like this: Room Number: 255 xxx: 123 Room Type: Deluxe
Joke Dehond/Inventive Designers is out of the office.
I will be out of the office starting 19/06/2002 and will not return until 01/07/2002. I will be out of the office and will have no access to my email. I will respond to your message when I return. Regards, Joke Dehond
Re: fo:marker - how to show the broken secion on the next page
Argyn, (This is a work-around until markers are fixed.) What you need to do is put one marker at the beginning of the block and another at the end. FOP complains about this with a warning but still processes it. You can then use fo:retrieve-marker retrieve-class-name=className retrieve-position=first-including-carryover/ Chuck Argyn Kuketayev wrote: I have a block. Whenever the page breakes it, I want to show its title on the continuing page. I tried fo:marker. Unfortunately, it doesn't do what I want. I tried different bounadries and positions, but none of them works. It shows me the block which was started on the page, it doesn't see the block which was started on the previous page Need some help. Argyn
Re: Weird behaviour of Apache fop
Michiel Verhoef wrote: Hi all, Currently we have a weird problem: when converting an XML file (or rather, an XML-ified HML source) to a FO file and converting this resulting FO file to a PDF all things are fine. However, when we try to convert the XML with the exact same XSL script into a PDF we get errors: [INFO]: FOP 0.20.3 [INFO]: building formatting object tree [INFO]: Parsing of document complete, stopping renderer [INFO]: Parsing of document complete, stopping renderer [ERROR]: / by zero Are you running JDK1.4? J.Pietschmann
Re: Hi
Durai Murugan wrote: I would like to know, how to set fonts for our special requirements in the output. Read docs/html-docs/fonts.html from the FOP distribution. J.Pietschmann
Re: What kind of TIFF does FOP support
Rodolphe VAGNER wrote: In fact the first tests I've done seem to indicate the contrary : my uncompressed file is a black area and my CCITT Gr4 or 3, and LWZ compressed files are well rendered. It's bizarre, isn'it ? What about jimy ? where can I find doc on it ? Ok, here it goes. The Jimi home page is http://java.sun.com/products/jimi/ You can download the whole package there, including Source, JavaDoc and, most valuable, additional docs describing supported file and image formats. For TIFF, the following compression schemes are supported - Uncompressed images - CCITT compressed Bi-level images with CCITT RLE, CCITT Group 3 1D Fax, CCITT Group 3 2D Fax, CCITT Group 4 Fax - CCITT Class F Fax - Packbits compressed images (a simple RLE type compression) - LZW Compressed images JPEG compression is not supported. The TIFF spec is available from http://partners.adobe.com/asn/developer/PDFS/TN/TIFF6.pdf Compression schemes are Packbits: run length encoding (Sec. 9) CCITT G3 Fax (Sec. 10) CCITT Bilevel (Sec. 11) LZW (Sec. 13) JPEG (Sec. 22) CCITT Class F compression is apparently defined in a RFC, for example available here: http://www.zvon.org/tmRFC/RFC2306/Output/chapter3.html It is also mentioned that Jimi does only understand black and white (bilevel), grayscale (palette) and RGB (palette and direct color). CMYK, Cie L*a*b* and YCbCr color models are not implemented. It is not mentioned whether compression predictors are supported, I supposed not (does anybody use them?). It is also not explicitely noted how Jimi deals with alpha channels. If uncompressed TIFF comes out black, probably the color model or palette size is inconvenient for Jimi. J.Pietschmann
Re: Why changes encoding of Symbol font ?
Nguyen Nam wrote: Helllo , Could somone tell why does Fop v.0.23 change the encoding of the Symbol Font ? Where did you get the 0.23 version? Seriously: Because it was not conforming to the standard. Many Symbol characters becomes so invalid with this version wherase they are valid in the version 0.21. Is there any workaround ? FOP used native encoding. Now it uses Unicode encoding, as it should. Look up the Unicode codepoints to use for example at the Unicode consortium http://www.unicode.org/charts/charindex.html or run docs/examples/fo/fonts.fo through FOP, choose the glyph and look up the corresponding character reference in the FO source. J.Pietschmann
Memory usage w/ FOP
Hi - If I'm using an XSL Transformer and an XML ByteArrayOutputStream to create a FO formatted document which is rendered as PDF or printed, what is a good assumption to make about the memory utilization? Is the entire merged FO document stored in memory or can the FO processor stream out the PDF or printed page? Are there any good rules of thumb? Thanks - Phil
Re: Memory usage w/ FOP
Philip S. Constantinou wrote: Hi - If I'm using an XSL Transformer and an XML ByteArrayOutputStream to create a FO formatted document which is rendered as PDF or printed, what is a good assumption to make about the memory utilization? Is the entire merged FO document stored in memory or can the FO processor stream out the PDF or printed page? I'm not sure where the XML ByteArrayOutputStream comes into play. As for FOP itself: the processor has limited capabilities for streaming, it also depends on the layout. FOP starts reading the FO into an internal tree. After the end of a page sequence, it starts rendering pages, which can use a huge amount of memory. If you use forward references to page numbers (like page X of N), every page from the reference on is held in memory until the element the reference points to is rendered. Elements spanning multiple pages, in particular tables, are also held in memory at least until the page it ends is completed. Large images are also known as memory hogs. Some rules of thumb (roughly in this order) - Don't use forward references. Put TOCs at the end. - Use multiple page sequences. - Avoid large images, scale them before feeding them to FOP (unless print quality matters). For some formats, in particular JPEG, the file size matters, not the height*width, therefore choosing a higher compression can help. - Avoid large tables spanning multiple pages, use multiple tables instead. HTH J.Pietschmann
Re: Memory usage w/ FOP
This really helps... One of the things that I need to do is a mail merge creating thousands of one page letters. If the pages are simple with no table of contents/references/page numbers. Is it safe to assume that the FO processor will use roughly the same memory printing 10 letters as 1000? - Original Message - From: J.Pietschmann [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, June 24, 2002 1:44 PM Subject: Re: Memory usage w/ FOP Philip S. Constantinou wrote: Hi - If I'm using an XSL Transformer and an XML ByteArrayOutputStream to create a FO formatted document which is rendered as PDF or printed, what is a good assumption to make about the memory utilization? Is the entire merged FO document stored in memory or can the FO processor stream out the PDF or printed page? I'm not sure where the XML ByteArrayOutputStream comes into play. As for FOP itself: the processor has limited capabilities for streaming, it also depends on the layout. FOP starts reading the FO into an internal tree. After the end of a page sequence, it starts rendering pages, which can use a huge amount of memory. If you use forward references to page numbers (like page X of N), every page from the reference on is held in memory until the element the reference points to is rendered. Elements spanning multiple pages, in particular tables, are also held in memory at least until the page it ends is completed. Large images are also known as memory hogs. Some rules of thumb (roughly in this order) - Don't use forward references. Put TOCs at the end. - Use multiple page sequences. - Avoid large images, scale them before feeding them to FOP (unless print quality matters). For some formats, in particular JPEG, the file size matters, not the height*width, therefore choosing a higher compression can help. - Avoid large tables spanning multiple pages, use multiple tables instead. HTH J.Pietschmann
Re: Memory usage w/ FOP
Philip S. Constantinou wrote: This really helps... One of the things that I need to do is a mail merge creating thousands of one page letters. If the pages are simple with no table of contents/references/page numbers. Is it safe to assume that the FO processor will use roughly the same memory printing 10 letters as 1000? It would be very hard to optimize momery consuption for one page documents. Apart from this, it depends whether you do it in parallel or sequentially. In case of the latter, FOP should always consume the same amount of memory if the documents are similar enough, regardless of complexity. If you do it in parallel, be prepared that 1000 parallel runs use 100 times the memory of 10 parallel runs. J.Pietschmann