[Error] null
hi all I'm getting this rather less than helpful error message: [INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser [INFO] FOP 0.20.5 [INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser [INFO] building formatting object tree [INFO] setting up fonts [ERROR] null In the list achives there's mention of this being caused by block-container elements that are not the direct children of fo:flow, but that's not the case as the xsl-fo doesn't include any block-container elements. Any thoughts anyone? thanks Rob ** This message is sent in strict confidence for the addressee only. It may contain legally privileged information. The contents are not to be disclosed to anyone other than the addressee. Unauthorised recipients are requested to preserve this confidentiality and to advise the sender immediately of any error in transmission. This footnote also confirms that this email message has been swept for the presence of computer viruses, however we cannot guarantee that this message is free from such problems. ** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [Error] null
-Original Message- From: Agar, Robert [mailto:[EMAIL PROTECTED] Hi Rob, I'm getting this rather less than helpful error message: snip / A couple of hints: 1. try running FOP with the '-d' command line switch. This should give you more information, maybe even more helpful :-) 2. if the error still isn't obvious, try running the transformation standalone (i.e. first run the XSL transform, using the supplied xalan.bat to produce the FO). This will fail if the problem is in the stylesheet (so not really a FOP error...) And if after these two steps the error still persists, please attach the FO file (not XML + XSLT, but the result of the transformation in step 2), and we'll take a look at it. Hope this helps! Greetz, Andreas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [Error] null
Andreas: A couple of hints: 1. try running FOP with the '-d' command line switch. This should give you more information, maybe even more helpful :-) ... tracked down the error to a null pointer exception at org.apache.fop.fo.pagination.PageSequence.init(PageSequence.java:173), caused by the fo:layout-master-set element being missing. thanks very much Andreas! Rob ** This message is sent in strict confidence for the addressee only. It may contain legally privileged information. The contents are not to be disclosed to anyone other than the addressee. Unauthorised recipients are requested to preserve this confidentiality and to advise the sender immediately of any error in transmission. This footnote also confirms that this email message has been swept for the presence of computer viruses, however we cannot guarantee that this message is free from such problems. ** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [Error] null
-Original Message- From: Agar, Robert [mailto:[EMAIL PROTECTED] Hi Rob, snip / ... tracked down the error to a null pointer exception at org.apache.fop.fo.pagination.PageSequence.init(PageSequence.java :173), caused by the fo:layout-master-set element being missing. Well, it's not of much use right now, but in the current development version, the reporting of such errors is greatly improved. Something to look forward to :-) Greetz, Andreas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: FOP 0.20.5 PDF Renderer yields [INFO] 1 [ERROR] null - no FAQ or Web information available
Thank you for your help, Chris. I must have missed that item when I was going through the compliance page! Kyle Chris Bowditch wrote: snip block-containers are not fully implemented in FOP, and have some restrictions. These are listed on the compliance page: http://xml.apache.org/fop/compliance.html#fo-object-block-container Basically the error you see above is caused when the block-container is not a direct child of fo:flow. Chris /snip - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
FOP [ERROR] null
Hello, Can I get any help on the following error message: [ERROR] null All I could find is that my FO file is not valid, but as far as I can see it is... Also when there is no FOP schema provided on the apache web site (the link points to the faq). Can I get an hold on this schema to validate my source ? Regards, Boris
Re: FOP [ERROR] null
See comments below Hello, Can I get any help on the following error message: [ERROR] null All I could find is that my FO file is not valid, but as far as I can see it is... Try turning debug on, FOP should then give more information on the cause of the problem (-d on command line) Also when there is no FOP schema provided on the apache web site (the link points to the faq). RenderX provides a DTD on their website http://www.renderx.com/ but there is no official DTD, as FO cannot be fully validated using a DTD/Schema alone. Can I get an hold on this schema to validate my source ? Regards, Boris _ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: FOP [ERROR] null
Boris Rousseau wrote: Can I get any help on the following error message: [ERROR] null All I could find is that my FO file is not valid, but as far as I can see it is... Also when there is no FOP schema provided on the apache web site (the link points to the faq). You can get it from cvs, see http://cvs.apache.org/viewcvs.cgi/xml-fop/docs/foschema. Can I get an hold on this schema to validate my source ? Validation is at our todo list, but your request is important, I'll add it as user enhancement request to bugzilla. -- Oleg Tkachenko eXperanto team Multiconn Technologies, Israel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: FOP [ERROR] null
Boris Rousseau wrote: Can I get any help on the following error message: [ERROR] null While there is a variety of reasons, this is most often caused by a master-reference missing or misspelled in a conditional-page-master-reference. Check this first. J.Pietschmann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Help with [ERROR]: null
Hello, I am trying to get this style sheet to render using FOP but the error it is throwing is fairly vague. Can anyone advise me how I can debug this? I am referencing an XML file but not actually accessing any values from it so its not from that. I am using FOP 0.20.3. Thanks, Erich Fop output: [INFO]: FOP 0.20.3 [INFO]: building formatting object tree [ERROR]: null ...post processing finished Style Sheet: ?xml version=1.0 encoding=utf-8? xsl:stylesheet version=1.0 xmlns:xsl=http://www.w3.org/1999/XSL/Transform; xmlns:fo=http://www.w3.org/1999/XSL/Format; xmlns:TST=TST xmlns:java=http://xml.apache.org/xslt/java; exclude-result-prefixes=java xsl:output indent=no/ xsl:template match=text()/ xsl:template match=EROUTE fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format; fo:layout-master-set fo:simple-page-master master-name=page-first page-height=11in page-width=8.5in margin-top=.5in margin-bottom=.5in margin-left=.5in margin-right=.5in fo:region-body margin-top=4in region-name=content/ fo:region-before extent=3in region-name=header-first/ fo:region-after extent=4in region-name=footer-first/ /fo:simple-page-master fo:simple-page-master master-name=page-rest page-height=11in page-width=8.5in margin-top=.5in margin-bottom=.5in margin-left=.5in margin-right=.5in fo:region-body margin-top=1in region-name=content/ fo:region-before extent=1in region-name=header-rest/ fo:region-after extent=1.5in region-name=footer-rest/ /fo:simple-page-master fo:page-sequence-master master-name=control-page fo:repeatable-page-master-alternatives fo:conditional-page-master-reference page-position=first master-name=page-first/ fo:conditional-page-master-reference page-position=rest master-name=page-rest/ fo:conditional-page-master-reference master-name=page-rest/ /fo:repeatable-page-master-alternatives /fo:page-sequence-master /fo:layout-master-set fo:page-sequence master-reference=control-page fo:static-content flow-name=header-first fo:block text-align-last=center font-weight=bold font-size=10ptxsl:textHeader First/xsl:text/fo:block /fo:static-content fo:static-content flow-name=header-rest fo:block text-align-last=center font-weight=bold font-size=10ptxsl:textHeader Rest/xsl:text/fo:block /fo:static-content fo:static-content flow-name=footer-first fo:block text-align-last=center font-weight=bold font-size=10ptxsl:textFooter First/xsl:text/fo:block /fo:static-content fo:static-content flow-name=footer-rest fo:block text-align-last=center font-weight=bold font-size=10ptxsl:textFooter Rest/xsl:text/fo:block /fo:static-content fo:flow flow-name=content xsl:textContent goes here!/xsl:text /fo:flow /fo:page-sequence /fo:root /xsl:template /xsl:stylesheet
RE: Help with [ERROR]: null
I got it. I changed the master-name attribute to master-reference inside the fo:conditional-page-master-reference tags and it renders properly. -Original Message- From: Kilmer, Erich [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 17, 2002 3:57 PM To: '[EMAIL PROTECTED]' Subject: Help with [ERROR]: null Hello, I am trying to get this style sheet to render using FOP but the error it is throwing is fairly vague. Can anyone advise me how I can debug this? I am referencing an XML file but not actually accessing any values from it so its not from that. I am using FOP 0.20.3. Thanks, Erich Fop output: [INFO]: FOP 0.20.3 [INFO]: building formatting object tree [ERROR]: null ...post processing finished Style Sheet: ?xml version=1.0 encoding=utf-8? xsl:stylesheet version=1.0 xmlns:xsl=http://www.w3.org/1999/XSL/Transform; xmlns:fo=http://www.w3.org/1999/XSL/Format; xmlns:TST=TST xmlns:java=http://xml.apache.org/xslt/java; exclude-result-prefixes=java xsl:output indent=no/ xsl:template match=text()/ xsl:template match=EROUTE fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format; fo:layout-master-set fo:simple-page-master master-name=page-first page-height=11in page-width=8.5in margin-top=.5in margin-bottom=.5in margin-left=.5in margin-right=.5in fo:region-body margin-top=4in region-name=content/ fo:region-before extent=3in region-name=header-first/ fo:region-after extent=4in region-name=footer-first/ /fo:simple-page-master fo:simple-page-master master-name=page-rest page-height=11in page-width=8.5in margin-top=.5in margin-bottom=.5in margin-left=.5in margin-right=.5in fo:region-body margin-top=1in region-name=content/ fo:region-before extent=1in region-name=header-rest/ fo:region-after extent=1.5in region-name=footer-rest/ /fo:simple-page-master fo:page-sequence-master master-name=control-page fo:repeatable-page-master-alternatives fo:conditional-page-master-reference page-position=first master-name=page-first/ fo:conditional-page-master-reference page-position=rest master-name=page-rest/ fo:conditional-page-master-reference master-name=page-rest/ /fo:repeatable-page-master-alternatives /fo:page-sequence-master /fo:layout-master-set fo:page-sequence master-reference=control-page fo:static-content flow-name=header-first fo:block text-align-last=center font-weight=bold font-size=10ptxsl:textHeader First/xsl:text/fo:block /fo:static-content fo:static-content flow-name=header-rest fo:block text-align-last=center font-weight=bold font-size=10ptxsl:textHeader Rest/xsl:text/fo:block /fo:static-content fo:static-content flow-name=footer-first fo:block text-align-last=center font-weight=bold font-size=10ptxsl:textFooter First/xsl:text/fo:block /fo:static-content fo:static-content flow-name=footer-rest fo:block text-align-last=center font-weight=bold font-size=10ptxsl:textFooter Rest/xsl:text/fo:block /fo:static-content fo:flow flow-name=content xsl:textContent goes here!/xsl:text /fo:flow /fo:page-sequence /fo:root /xsl:template /xsl:stylesheet
Re: Error: null
I constructed my first xsl document to render a pdf using a singletemplate. This worked fine. However the form was rather large so Idecided to split certain parts of it into separate templates and now I amgetting a null error. Please help I used fop -xml TIPS.xml -xsl TIPS.xsl -pdf TIPS.pdf and get C:\dev\homelet2002\dist\libjava -cpc:\fop-0.20.1\build\fop.jar;c:\fop-0.20.1\lib\batik.jar;c:\fop-0.20.1\lib\xalan.jar;c:\fop-0.20.1\l ib\xerces.jar;c:\fop-0.20.1\lib\jimi-1.0.jar org.apache.fop.apps.Fop -xmlTIPS.xml -xsl TIPS.xsl -pdf TIPS.pdf FOP 0.20.1 ERROR: null snip/ fo:page-sequence snip/ I think you forgot the master-reference attribute on fo:page-sequence. Cheers, Jeremias Märki mailto:[EMAIL PROTECTED] OUTLINE AG Postfach 3954 - Rhynauerstr. 15 - CH-6002 Luzern Tel. +41 41 317 2020 - Fax +41 41 317 2029 Internet http://www.outline.ch
Re: Error: null
I'd put xsl:template select=Contents instead of xsl:template match=Contents which threw up the error: null. Thanks Mihael for telling me about the fop -d option Ian At 09:07 AM 3/22/2002 +0100, you wrote: I constructed my first xsl document to render a pdf using a singletemplate. This worked fine. However the form was rather large so Idecided to split certain parts of it into separate templates and now I amgetting a null error. Please help I used fop -xml TIPS.xml -xsl TIPS.xsl -pdf TIPS.pdf and get C:\dev\homelet2002\dist\libjava -cpc:\fop-0.20.1\build\fop.jar;c:\fop-0.20.1\lib\batik.jar;c:\fop-0.20.1\lib\xalan.jar;c:\fop-0.20.1\l ib\xerces.jar;c:\fop-0.20.1\lib\jimi-1.0.jar org.apache.fop.apps.Fop -xmlTIPS.xml -xsl TIPS.xsl -pdf TIPS.pdf FOP 0.20.1 ERROR: null snip/ fo:page-sequence snip/ I think you forgot the master-reference attribute on fo:page-sequence. Cheers, Jeremias Märki mailto:[EMAIL PROTECTED] OUTLINE AG Postfach 3954 - Rhynauerstr. 15 - CH-6002 Luzern Tel. +41 41 317 2020 - Fax +41 41 317 2029 Internet http://www.outline.ch
Error: null
I constructed my first xsl document to render a pdf using a single template. This worked fine. However the form was rather large so I decided to split certain parts of it into separate templates and now I am getting a null error. Please help I used fop -xml TIPS.xml -xsl TIPS.xsl -pdf TIPS.pdf and get C:\dev\homelet2002\dist\libjava -cp c:\fop-0.20.1\build\fop.jar;c:\fop-0.20.1\lib\batik.jar;c:\fop-0.20.1\lib\xalan.jar;c:\fop-0.20.1\l ib\xerces.jar;c:\fop-0.20.1\lib\jimi-1.0.jar org.apache.fop.apps.Fop -xml TIPS.xml -xsl TIPS.xsl -pdf TIPS.pdf FOP 0.20.1 ERROR: null xml: ?xml version=1.0? TIPS Details text=Your Details TextPlease print clearly. State Mr/Mrs/Miss/Ms/Other/Text Proposer text=Proposer/ CoverTextYour insurance covers you, your partner and all members of your/their family permanently living in your home. Tenants sharing a property should complete separate applications./CoverText Address text=Address Street/ City/ County/ PostCode text=Post Code/ /Address HomePhone text=Tel (Home) / WorkPhone text=Tel (Work) / /Details Policy DurationDo you require a 6 month policy/Duration etc etc xsl: ?xml version=1.0? xsl:stylesheet version=1.0 xmlns:xsl=http://www.w3.org/1999/XSL/Transform xmlns:fo=http://www.w3.org/1999/XSL/Format xsl:template match=/ xsl:apply-templates match=TIPS / /xsl:template xsl:template match=TIPS xsl:processing-instruction name=cocoon-formattype=text/xslfo/xsl:processing-instruction fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format fo:layout-master-set fo:simple-page-master page-master-name=main margin-top=5pt margin-bottom=5pt margin-left=10pt margin-right=5pt fo:region-body margin-bottom=5pt column-count=2 column-gap=15pt/ /fo:simple-page-master /fo:layout-master-set fo:page-sequence fo:flow xsl:apply-templates select=Details/ xsl:apply-templates select=Policy/ xsl:apply-templates select=Contents/ xsl:apply-templates select=Possessions/ xsl:apply-templates select=PedalCycle/ xsl:apply-templates select=PremiumTax/ xsl:apply-templates select=TotalMonthlyPrem/ xsl:apply-templates select=Payment/ xsl:apply-templates select=Questions/ xsl:apply-templates select=Disclosure/ xsl:apply-templates select=Declaration/ xsl:apply-templates select=CommenceCover/ xsl:apply-templates select=Signature/ xsl:apply-templates select=Additional/ xsl:apply-templates select=SpecialPossessions/ xsl:apply-templates select=Cycle/ xsl:apply-templates select=Footer/ xsl:apply-templates select=DirectDebit/ xsl:apply-templates select=CreditCard/ /fo:flow /fo:page-sequence /fo:root /xsl:template xsl:template match=Details fo:table space-before.optimum=10pt fo:table-column column-width=270pt/ fo:table-body fo:table-row fo:table-cell background-color=blue text-align=center color=white font-weight=bold font-size=12pt font-family=sans-serif line-height=18pt space-after.optimum=3pt padding-top=2pt padding-left=2pt fo:block xsl:value-of select=@text/ /fo:block /fo:table-cell /fo:table-row /fo:table-body /fo:table Old XSL: ?xml version=1.0? xsl:stylesheet version=1.0 xmlns:xsl=http://www.w3.org/1999/XSL/Transform xmlns:fo=http://www.w3.org/1999/XSL/Format xsl:template match=/ xsl:apply-templates select=TIPS/ /xsl:template xsl:template match=TIPS xsl:processing-instruction name=cocoon-formattype=text/xslfo/xsl:processing-instruction fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format fo:layout-master-set fo:simple-page-master page-master-name=main margin-top=5pt margin-bottom=5pt margin-left=10pt margin-right=5pt fo:region-body margin-bottom=5pt column-count=2 column-gap=15pt/ /fo:simple-page-master /fo:layout-master-set fo:page-sequence fo:flow fo:table space-before.optimum=10pt fo:table-column column-width=270pt/ fo:table-body fo:table-row fo:table-cell background-color=blue text-align=center color=white font-weight=bold font-size=12pt font-family=sans-serif line-height=18pt space-after.optimum=3pt padding-top=2pt padding-left=2pt fo:block xsl:value-of select=Details/@text/ /fo:block /fo:table-cell /fo:table-row /fo:table-body /fo:table