From: Simon Pepping Date: Sun, 30 Jan 2005 20:00:47 +0000 (+0000) Subject: Updated the paths in the Makefile and the customization stylesheets. X-Git-Tag: Root_Temp_KnuthStylePageBreaking~165 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=765e233dfba07e79a0763dd3ba7d742b5c42dba1;p=xmlgraphics-fop.git Updated the paths in the Makefile and the customization stylesheets. Created an Ant build file. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@198342 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/documentation/content/xdocs/DnI/Makefile b/src/documentation/content/xdocs/DnI/Makefile index 7b3dbd5b4..c6e124143 100644 --- a/src/documentation/content/xdocs/DnI/Makefile +++ b/src/documentation/content/xdocs/DnI/Makefile @@ -1,4 +1,4 @@ -# Copyright 2004 The Apache Software Foundation. +# Copyright 2004-2005 The Apache Software Foundation. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -35,13 +35,14 @@ XHTML_DIR=$(DNI_BUILD_DIR)/xhtml HTML_DIR=$(DNI_BUILD_DIR)/html PDF_DIR=$(DNI_BUILD_DIR) -JAVACLASSES=/usr/local/javaclasses -FOPCLASSPATH=$(JAVACLASSES)/fop-0.20.5.jar -AVALONCLASSPATH=$(JAVACLASSES)/avalon-framework-cvs-20020806.jar -SAXONCLASSPATH=$(JAVACLASSES)/saxon.jar -RESOLVERCLASSPATH=$(JAVACLASSES)/endorsed/resolver-xml-commons.jar -XERCESCLASSPATH=$(JAVACLASSES)/endorsed/xml-apis.jar:$(JAVACLASSES)/endorsed/xercesImpl.jar -CLICLASSPATH=$(JAVACLASSES)/commons-cli-1.0.jar +JAVACLASSES=/usr/share/java +LOCALJAVACLASSES=/usr/local/javaclasses +FOPCLASSPATH=$(JAVACLASSES)/fop.jar:$(LOCALJAVACLASSES)/fop.jar +AVALONCLASSPATH=$(JAVACLASSES)/avalon-framework.jar:$(LOCALJAVACLASSES)/avalon-framework.jar +SAXONCLASSPATH=$(JAVACLASSES)/saxon.jar:$(LOCALJAVACLASSES)/saxon.jar +RESOLVERCLASSPATH=$(JAVACLASSES)/xml-commons-resolver.jar:$(LOCALJAVACLASSES)/xml-commons-resolver.jar +XERCESCLASSPATH=$(JAVACLASSES)/xml-apis.jar:$(JAVACLASSES)/xercesImpl.jar:$(LOCALJAVACLASSES)/xml-apis.jar:$(LOCALJAVACLASSES)/xercesImpl.jar +CLICLASSPATH=$(JAVACLASSES)/commons-cli.jar:$(LOCALJAVACLASSES)/commons-cli.jar all: xhtml html pdf diff --git a/src/documentation/content/xdocs/DnI/README b/src/documentation/content/xdocs/DnI/README index 16e4f1d0a..a021880e9 100644 --- a/src/documentation/content/xdocs/DnI/README +++ b/src/documentation/content/xdocs/DnI/README @@ -33,23 +33,31 @@ results using Saxon. I have used FOP-0.20.5 for FO Processor. The top-level file assumes that the docbook DTD files are located in `http://www.oasis-open.org/docbook/xml/4.2/'. The customization stylesheets assume that the docbook stylesheets are located in -`http://cvs.sourceforge.net/viewcvs.py/*checkout*/docbook/xsl/'. I am -not quite sure if the latter URL is correct. If you want to use local -files from your XML installation, you must change these paths at the -top of the top-level XML file and of each customization stylesheet. -Alternatively, you can use catalog entries to map the Public ID for -the Docbook DTD and the system id of the docbook XSL stylesheets to -your local paths. +`http://docbook.sourceforge.net/release/xsl/current/'. If you want to +use local files from your XML installation, you must change these +paths at the top of the top-level XML file and of each customization +stylesheet. Alternatively, you can use catalog entries to map the +Public ID for the Docbook DTD and the system id of the docbook XSL +stylesheets to your local paths. You can use the included java class BookMaker to generate the various forms of the documentation. Note that it requires the Jakarta Commons CLI package. Call BookMaker with the option '--help' to get a short -overview of its usage. Use the included Makefile, or learn from it how -the BookMaker class can be called. If you use the Makefile, you must -edit the class paths to reflect your java setup. Set the environment -variable PROGOPTS=--useCatalog if you want to use a catalog. I have -better results with Xerces and the catalog resolver; therefore Xerces -is placed before Saxon in the class paths. +overview of its usage. Use the included Makefile or Ant build file, or +learn from them how the BookMaker class can be called. + +Unfortunately, I do not know of a standard file system setup for java +jar files. The class paths in the Makefile reflect the java setup of a +Debian Sarge system. Moreover, it allows for the same setup in +/usr/local, for jar files installed locally. If you use the Makefile, +you must edit the class paths to reflect your own java setup. If you +want to use a catalog with the Makefile, you should set the +environment variable PROGOPTS=--useCatalog. I have better results +with Xerces and the catalog resolver; therefore Xerces is placed +before Saxon in the class paths. + +For instructions to use the Ant build file, see the comments at the +top of that file. If you do not use a catalog, you can also use Saxon and FOP from the command line. The following are typical invocations. Here the @@ -71,7 +79,4 @@ java $JAVAFLAGS \ org.apache.fop.apps.Fop \ -xml DnI.xml -xsl cust-html-docbook.xsl -pdf book.pdf -I will try to construct an ant build file and an XML catalog which -make conversion with your own XML and Java system easier. - $Id$ diff --git a/src/documentation/content/xdocs/DnI/build.xml b/src/documentation/content/xdocs/DnI/build.xml new file mode 100644 index 000000000..ae34c5959 --- /dev/null +++ b/src/documentation/content/xdocs/DnI/build.xml @@ -0,0 +1,202 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/documentation/content/xdocs/DnI/cust-fo-docbook.xsl b/src/documentation/content/xdocs/DnI/cust-fo-docbook.xsl index 503b0a81c..5cb0d063a 100644 --- a/src/documentation/content/xdocs/DnI/cust-fo-docbook.xsl +++ b/src/documentation/content/xdocs/DnI/cust-fo-docbook.xsl @@ -1,7 +1,7 @@ diff --git a/src/documentation/content/xdocs/DnI/cust-html-docbook.xsl b/src/documentation/content/xdocs/DnI/cust-html-docbook.xsl index ce688571e..7bad08772 100644 --- a/src/documentation/content/xdocs/DnI/cust-html-docbook.xsl +++ b/src/documentation/content/xdocs/DnI/cust-html-docbook.xsl @@ -1,7 +1,7 @@ diff --git a/src/documentation/content/xdocs/DnI/cust-xhtml-docbook.xsl b/src/documentation/content/xdocs/DnI/cust-xhtml-docbook.xsl index 0bfb38d6d..764e99eb9 100644 --- a/src/documentation/content/xdocs/DnI/cust-xhtml-docbook.xsl +++ b/src/documentation/content/xdocs/DnI/cust-xhtml-docbook.xsl @@ -1,7 +1,7 @@