There seems to be a small issue with ExampleXML2PDF. It looks for stylesheet projectteam2FO.xsl, but the file is named projectteam2fo.xsl in the repository. That fails on case-sensitive file systems.

Patch attached.

- Heikki
? examplefix.patch
? foo.pdf
? foo.ps
? foo.txt
? foobar.pdf
? examples/embedding/java/out
? examples/embedding/java/embedding/ExampleXML2PDF.class
Index: examples/embedding/java/embedding/ExampleXML2PDF.java
===================================================================
RCS file: 
/home/cvspublic/xml-fop/examples/embedding/java/embedding/ExampleXML2PDF.java,v
retrieving revision 1.14
diff -u -r1.14 ExampleXML2PDF.java
--- examples/embedding/java/embedding/ExampleXML2PDF.java       15 Aug 2004 09:46:46 
-0000      1.14
+++ examples/embedding/java/embedding/ExampleXML2PDF.java       30 Aug 2004 20:11:14 
-0000
@@ -55,7 +55,7 @@
 
             // Setup input and output files            
             File xmlfile = new File(baseDir, "xml/xml/projectteam.xml");
-            File xsltfile = new File(baseDir, "xml/xslt/projectteam2FO.xsl");
+            File xsltfile = new File(baseDir, "xml/xslt/projectteam2fo.xsl");
             File pdffile = new File(outDir, "ResultXML2PDF.pdf");
 
             System.out.println("Input: XML (" + xmlfile + ")");
@@ -92,7 +92,7 @@
             } finally {
                 out.close();
             }
-            
+           
             System.out.println("Success!");
         } catch (Exception e) {
             e.printStackTrace(System.err);

Reply via email to