cvs commit: xml-fop/src/documentation sitemap-0.5.xmap

2003-09-27 Thread gmazza
gmazza  2003/09/27 09:28:23

  Modified:src/documentation sitemap-0.5.xmap
  Log:
  Patch to sitemap to allow compliance.html to be generated in V5.0
  (w/help from Jeff Turner, Forrest Team)
  
  Revision  ChangesPath
  1.3   +2 -2  xml-fop/src/documentation/sitemap-0.5.xmap
  
  Index: sitemap-0.5.xmap
  ===
  RCS file: /home/cvs/xml-fop/src/documentation/sitemap-0.5.xmap,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- sitemap-0.5.xmap  13 Sep 2003 19:57:28 -  1.2
  +++ sitemap-0.5.xmap  27 Sep 2003 16:28:23 -  1.3
  @@ -239,7 +239,7 @@
 
   
 
  -  
  +  
   
   
   
  
  
  

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: cvs commit: xml-fop/src/documentation sitemap-0.5.xmap

2003-09-27 Thread Victor Mote
Glen Mazza wrote:

> gmazza  2003/09/27 09:28:23
>
>   Modified:src/documentation sitemap-0.5.xmap
>   Log:
>   Patch to sitemap to allow compliance.html to be generated in V5.0
>   (w/help from Jeff Turner, Forrest Team)
>
>   Revision  ChangesPath
>   1.3   +2 -2  xml-fop/src/documentation/sitemap-0.5.xmap
>
>   Index: sitemap-0.5.xmap
>   ===
>   RCS file: /home/cvs/xml-fop/src/documentation/sitemap-0.5.xmap,v
>   retrieving revision 1.2
>   retrieving revision 1.3
>   diff -u -r1.2 -r1.3
>   --- sitemap-0.5.xmap13 Sep 2003 19:57:28 -  1.2
>   +++ sitemap-0.5.xmap27 Sep 2003 16:28:23 -  1.3
>   @@ -239,7 +239,7 @@
>  
>
>  
>   -  
>   +  
>
> src="resources/stylesheets/compliance2html.xsl"/>
>
>
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

Glenn:

Thanks for working on this. I also see that the ugly formatting problems
have been fixed (presumably by the Forrest team, as I see no commits on our
side), and that you have published the web site. It looks good. Thanks for
getting all of that going again.

Victor Mote



integration progress

2003-09-27 Thread Victor Mote
FOP Dev Crew:

I am unexpectedly called away next week (should be back by about Oct 7), but
wanted to give you a progress report on the integration work. After two
somewhat useful false starts last weekend, I finally got a clean start and a
little traction three days ago. My approach is to start with a subset of the
maintenance branch code in a subdirectory in the trunk, which can be
compiled as part of trunk, then eliminate all of the classes that have
nothing to do with layout. I started out with 637 maintenance branch classes
that need to be factored out, and I am down to 330 today, but the remaining
ones will be more difficult.

In places where I know for sure that the maintenance branch code is better,
I'll port those changes to the trunk. I won't see any improvements in the
maintenance branch code that don't result in a signature change, so those
will have to be ported separately as people notice missing features.

It is too early to tell whether this will be successful, but I remain
optimistic. I will probably try to stay "underground" until resolved either
way.

BTW, noting Glen's objection to "simple" as the name for the maintenance
branch layout system, I changed it to "pioneer", which conveys the idea of
being both first and rough.

Victor Mote



cvs commit: xml-fop/src/java/org/apache/fop/fo EnumProperty.java

2003-09-27 Thread pietsch
pietsch 2003/09/27 13:57:48

  Modified:test/java/org/apache/fop BasicDriverTestCase.java
   src/java/org/apache/fop/rtf/renderer RTFHandler.java
   src/java/org/apache/fop/area/extensions BookmarkData.java
   src/java/org/apache/fop/fo/extensions/svg SVGElement.java
   src/java/org/apache/fop/render/ps PSXMLHandler.java
   src/java/org/apache/fop/fo EnumProperty.java
  Log:
  Fixed Testcase.
  Some style changes.
  Replace FIXME with TODO
  
  Revision  ChangesPath
  1.2   +2 -23 xml-fop/test/java/org/apache/fop/BasicDriverTestCase.java
  
  Index: BasicDriverTestCase.java
  ===
  RCS file: /home/cvs/xml-fop/test/java/org/apache/fop/BasicDriverTestCase.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- BasicDriverTestCase.java  4 Jul 2003 20:50:29 -   1.1
  +++ BasicDriverTestCase.java  27 Sep 2003 20:57:48 -  1.2
  @@ -71,7 +71,6 @@
   import org.apache.commons.io.output.ByteArrayOutputStream;
   import org.apache.fop.apps.Driver;
   import org.apache.fop.apps.InputHandler;
  -import org.apache.fop.apps.TraxInputHandler;
   import org.apache.fop.apps.XSLTInputHandler;
   import org.w3c.dom.Document;
   
  @@ -207,29 +206,9 @@
   driver.setRenderer(Driver.RENDER_PDF);
   
   InputHandler handler = new XSLTInputHandler(xmlFile, xsltFile);
  -handler.run(driver);
  +driver.render(handler);
   
   assertTrue("Generated PDF has zero length", baout.size() > 0);
   }
  -
  -/**
  - * Tests Driver with TraxInputHandler and OutputStream.
  - * @throws Exception if anything fails
  - */
  -public void testFO2PDFWithTraxInputHandler() throws Exception {
  -File xmlFile = new File(getBaseDir(), "test/xml/1.xml");
  -File xsltFile = new File(getBaseDir(), "test/xsl/doc.xsl");
  -ByteArrayOutputStream baout = new ByteArrayOutputStream();
  -Driver driver = new Driver();
  -ContainerUtil.enableLogging(driver, this.logger);
  -driver.setOutputStream(baout);
  -driver.setRenderer(Driver.RENDER_PDF);
  -
  -InputHandler handler = new TraxInputHandler(xmlFile, xsltFile);
  -handler.run(driver);
  -
  -assertTrue("Generated PDF has zero length", baout.size() > 0);
  -}
  -
   
   }
  
  
  
  1.25  +8 -8  xml-fop/src/java/org/apache/fop/rtf/renderer/RTFHandler.java
  
  Index: RTFHandler.java
  ===
  RCS file: /home/cvs/xml-fop/src/java/org/apache/fop/rtf/renderer/RTFHandler.java,v
  retrieving revision 1.24
  retrieving revision 1.25
  diff -u -r1.24 -r1.25
  --- RTFHandler.java   21 Sep 2003 22:21:11 -  1.24
  +++ RTFHandler.java   27 Sep 2003 20:57:48 -  1.25
  @@ -151,13 +151,13 @@
* @see org.apache.fop.fo.FOInputHandler#startDocument()
*/
   public void startDocument() throws SAXException {
  -// FIXME sections should be created
  +// TODO sections should be created
   try {
   rtfFile = new RtfFile(new OutputStreamWriter(os));
   docArea = rtfFile.startDocumentArea();
   } catch (IOException ioe) {
  -// FIXME could we throw Exception in all FOInputHandler events?
  -throw new SAXException("IOException: " + ioe);
  +// TODO could we throw Exception in all FOInputHandler events?
  +throw new SAXException(ioe);
   }
   }
   
  @@ -168,8 +168,8 @@
   try {
   rtfFile.flush();
   } catch (IOException ioe) {
  -// FIXME could we throw Exception in all FOInputHandler events?
  -throw new SAXException("IOException: " + ioe);
  +// TODO could we throw Exception in all FOInputHandler events?
  +throw new SAXException(ioe);
   }
   }
   
  @@ -184,9 +184,9 @@
   bHeaderSpecified = false;
   bFooterSpecified = false;
   } catch (IOException ioe) {
  -// FIXME could we throw Exception in all FOInputHandler events?
  +// TODO could we throw Exception in all FOInputHandler events?
   log.error("startPageSequence: " + ioe.getMessage());
  -throw new Error("IOException: " + ioe);
  +//TODO throw new FOPException(ioe);
   }
   }
   
  @@ -311,7 +311,7 @@
   
   builderContext.pushContainer(para);
   } catch (IOException ioe) {
  -// FIXME could we throw Exception in all FOInputHandler events?
  +// TODO could we throw Exception in all FOInputHandler events?
   log.error("startBlock: " + ioe.getMessage());
   throw new Error("IOException: " + ioe);
   } catch (Exception e) {
  
  
  

cvs commit: xml-fop/test/java/org/apache/fop GenericFOPTestCase.java

2003-09-27 Thread pietsch
pietsch 2003/09/27 15:22:18

  Added:   test/java/org/apache/fop GenericFOPTestCase.java
  Log:
  Redfactored generic FOP test to self-contained JUnit test.
  More to add.
  
  Revision  ChangesPath
  1.1  xml-fop/test/java/org/apache/fop/GenericFOPTestCase.java
  
  Index: GenericFOPTestCase.java
  ===
  /*
   * $Id: GenericFOPTestCase.java,v 1.1 2003/09/27 22:22:18 pietsch Exp $
   * 
   *The Apache Software License, Version 1.1
   * 
   * 
   * Copyright (C) 1999-2003 The Apache Software Foundation. All rights reserved.
   * 
   * Redistribution and use in source and binary forms, with or without modifica-
   * tion, are permitted provided that the following conditions are met:
   * 
   * 1. Redistributions of source code must retain the above copyright notice,
   *this list of conditions and the following disclaimer.
   * 
   * 2. Redistributions in binary form must reproduce the above copyright notice,
   *this list of conditions and the following disclaimer in the documentation
   *and/or other materials provided with the distribution.
   * 
   * 3. The end-user documentation included with the redistribution, if any, must
   *include the following acknowledgment: "This product includes software
   *developed by the Apache Software Foundation (http://www.apache.org/)."
   *Alternately, this acknowledgment may appear in the software itself, if
   *and wherever such third-party acknowledgments normally appear.
   * 
   * 4. The names "FOP" and "Apache Software Foundation" must not be used to
   *endorse or promote products derived from this software without prior
   *written permission. For written permission, please contact
   *[EMAIL PROTECTED]
   * 
   * 5. Products derived from this software may not be called "Apache", nor may
   *"Apache" appear in their name, without prior written permission of the
   *Apache Software Foundation.
   * 
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES,
   * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
   * FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
   * APACHE SOFTWARE FOUNDATION OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
   * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLU-
   * DING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
   * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
   * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
   * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
   * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   * 
   * 
   * This software consists of voluntary contributions made by many individuals
   * on behalf of the Apache Software Foundation and was originally created by
   * James Tauber <[EMAIL PROTECTED]>. For more information on the Apache
   * Software Foundation, please see .
   */
  package org.apache.fop;
  
  import java.io.ByteArrayOutputStream;
  import java.io.StringReader;
  import java.security.DigestOutputStream;
  import java.security.MessageDigest;
  import java.util.Date;
  
  import javax.xml.parsers.SAXParserFactory;
  
  import junit.framework.Test;
  import junit.framework.TestCase;
  import junit.framework.TestSuite;
  
  import org.apache.fop.apps.Driver;
  import org.apache.fop.render.pdf.PDFRenderer;
  import org.apache.fop.util.DigestFilter;
  import org.xml.sax.InputSource;
  
  /**
   * Framework for simple regression testing.
   * The testcase reads a control XML file which specifies a FO source,
   * a MD5 for the source to help diferentiating failures caused by causal
   * source modification from failures caused by regression, a renderer (only
   * PDF currently supported) and a MD5 for the result.
   *  
   */
  public final class GenericFOPTestCase extends TestCase {
  
  protected SAXParserFactory parserFactory;
  
  public static Test suite() {
  TestSuite suite = new TestSuite(GenericFOPTestCase.class);
  suite.setName("Fop regression tests");
  return suite;
  }
  
  /**
   * Constructor for FopTest.
   * @param name the name of the test suite
   */
  public GenericFOPTestCase(String name) {
  super(name);
  }
  
  /* (non-Javadoc)
   * @see junit.framework.TestCase#setUp()
   */
  protected void setUp() throws Exception {
  parserFactory = SAXParserFactory.newInstance();
  parserFactory.setNamespaceAware(true);
  }
  
  public final void testSimpl

DO NOT REPLY [Bug 13592] - Converting a FO document with PNG images into PS

2003-09-27 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
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=13592

Converting a FO document with PNG images into PS





--- Additional Comments From [EMAIL PROTECTED]  2003-09-28 06:08 ---

Works for me with fop 0.20.5 and CVS snapshots of xercesImpl.jar, xml-apis.jar
from xml-xerces and xalan.jar from xml-xalan.

[EMAIL PROTECTED]:~/work/faxadvance/xslt-order$ /usr/local/j2sdk/bin/java
-Xbootclasspath/p:/home/ilgiz/xml-xerces/java/build/xercesImpl.jar:/home/ilgiz/xml-xerces/java/build/xml-apis.jar:/home/ilgiz/xml-xalan/java/build/xalan.jar:/usr/share/java/avalon-framework.jar:/usr/share/java/batik.jar:/usr/local/java/jimi.jar
-jar /home/ilgiz/fop-0.20.5/build/fop.jar -xml batch.xml -xsl batch-fo.xsl -ps f.ps
[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
[INFO] [1]
[INFO] JAI support was not installed (read: not present at build time). Trying
to use Jimi instead
[INFO] [2]
[INFO] Parsing of document complete, stopping renderer
[EMAIL PROTECTED]:~/work/faxadvance/xslt-order$ gv f.ps