You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Alexander Weinmann <aw...@bct-technology.com> on 2000/09/15 14:23:23 UTC

Re: FOP Problem [ Cocoon 1.7.4 and FOP 0.14 ]

Please note that I did not test this, because I did not have the time.
All I did up to now was recompiling cocoon 1.7.4 and fop 0.14 as
described above.
I did no yet test if cocoon REALLY runs with fop 0.14 after that. But it
SURE cures the stack trace that you had.

If you succeed, please tell. Maybe it is also usefull for Cocoon 1.8 ??


This is the Patch for FOP:
Index: src/org/apache/fop/apps/Driver.java
===================================================================
RCS file: /home/cvspublic/xml-fop/src/org/apache/fop/apps/Driver.java,v
retrieving revision 1.11
diff -u -r1.11 Driver.java
--- src/org/apache/fop/apps/Driver.java 2000/08/29 00:46:31     1.11
+++ src/org/apache/fop/apps/Driver.java 2000/09/05 14:29:18
@@ -319,13 +319,13 @@
                    for (int i = map.getLength() - 1; i >= 0; i--) {
                        Attr att = (Attr)map.item(i);
                        currentAtts.addAttribute("",
+                         att.getLocalName(),
                          att.getName(),
-                         "",
                          "CDATA",
                          att.getValue());
                    }
                    this.treeBuilder.startElement(
-                       "", currentNode.getNodeName(), "", currentAtts);
+                       currentNode.getNamespaceURI(),
currentNode.getLocalName(), "", currentAtts);
                    break;
                }

Then I assume that you also have to patch the FO2PDFFormatter in Cocoon:
Add these these two lines to the format() method of
org.apache.cocoon.formatter.FO2PDFFormatter:
           
driver.addPropertyList("org.apache.fop.fo.StandardPropertyListMapping");
driver.addPropertyList("org.apache.fop.svg.SVGPropertyListMapping");

Then I think you also have to update  xerces to 1.2,
and maybe also Xalan.
I did not yet have the time to try this out, but I will do so soon.



Rick Tessner wrote:
> 
> On Thu, 14 Sep 2000 08:42:43 +0200, Alexander Weinmann wrote:
> 
> >I think I now have the necessary patches, but I did not yet find the
> >time to test it.
> >
> >So if somebody is interested, tell me, and I will post my patches again ...
> 
> I'd love to give the patches a shot.  If you could either post them
> here on the list or just send them to me direct, that'd be fabulous!
> 
> When you post the patches, could you also include what versions of
> Xerces, Xalan and JVM you're using as well?  Thanks!!
> 
> --
> Rick Tessner    rick@myra.com
> MYRA Systems Corp. Fone: (250) 381 1335 x125  Phax: (250) 381 1304
>                    Cell: (250) 885 9452
> 
> "Hmmm.  They have the Internet on computers now!"
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
> For additional commands, e-mail: cocoon-users-help@xml.apache.org

-- 
Alexander Weinmann | Web Developer
BCT Technology AG | D-77731 Willstätt/Germany | www.bct-technology.com
Phone +49(0)07852/996-0
Fax   +49(0)07852/996-100