--- /dev/null
+<?xml version="1.0" encoding="utf-8"?>
+
+<!--
+ * Copyright 2004 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.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ -->
+
+<!-- $Id$ -->
+
+<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
+ "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd" [
+<!ENTITY ch.overview SYSTEM "overview.xml">
+<!ENTITY ch.preparation SYSTEM "preparation.xml">
+<!ENTITY ch.fotree SYSTEM "fotree.xml">
+<!ENTITY ch.areatree SYSTEM "areatree.xml">
+<!ENTITY ch.getnextbreakposs SYSTEM "getnextbreakposs.xml">
+<!ENTITY ch.addareas SYSTEM "addareas.xml">
+<!ENTITY ch.rendering SYSTEM "rendering.xml">
+<!ENTITY ch.foptrees SYSTEM "foptrees.xml">
+<!ENTITY ch.properties SYSTEM "properties.xml">
+<!ENTITY ch.fonts SYSTEM "fonts.xml">
+<!ENTITY ch.configuration SYSTEM "configuration.xml">
+]>
+
+<book>
+ <bookinfo>
+
+ <title>FOP's Design and Implementation</title>
+
+ <authorgroup>
+ <author>
+ <firstname>Simon</firstname>
+ <surname>Pepping</surname>
+ <affiliation>
+ <orgname>FOP team</orgname>
+ <orgdiv>Apache Software Foundation</orgdiv>
+ </affiliation>
+ </author>
+ </authorgroup>
+
+ <copyright>
+ <year>2004</year>
+ <holder>The Apache Software Foundation</holder>
+ </copyright>
+
+ <legalnotice>
+ <para>Licensed under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance with the
+License. You may obtain a copy of the License at
+
+<screen>
+ <ulink url="http://www.apache.org/licenses/LICENSE-2.0">http://www.apache.org/licenses/LICENSE-2.0</ulink>
+</screen>
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.</para>
+ </legalnotice>
+
+ <revhistory>
+ <revision>
+ <revnumber>0.x</revnumber>
+ <date>2003, 2004</date>
+ <revremark>Various early, partial versions</revremark>
+ </revision>
+ <revision>
+ <revnumber>1.0</revnumber>
+ <date>01 August 2004</date>
+ <revremark>Committed to the FOP code repository</revremark>
+ </revision>
+ </revhistory>
+
+ <abstract>
+ <simpara>FOP is a Formatting Object Processor of the Apache
+project. It aims to provide a standards compliant implementation of
+XSL-FO. It understands Unicode, has bidirectional writing
+capabilities, and implements a wide range of rendering
+formats.</simpara>
+
+ <simpara>FOP is a work in progress. Its code is under continuing
+development. This documentation describes the state of the code at the
+time the documentation was written. At the time you read this
+documentation the code may be different. Note also that different
+parts of the documentation were written or revised at different
+times.</simpara>
+
+ </abstract>
+
+ </bookinfo>
+
+&ch.overview;
+&ch.preparation;
+&ch.fotree;
+&ch.areatree;
+&ch.getnextbreakposs;
+&ch.addareas;
+&ch.rendering;
+&ch.foptrees;
+&ch.properties;
+&ch.fonts;
+&ch.configuration;
+
+</book>
+
+<!-- Local Variables: -->
+<!-- current-language-environment: UTF-8 -->
+<!-- coding: utf-8 -->
+<!-- default-input-method: TeX -->
+<!-- End: -->
# $Id$
-BOOK=book.xml
+BOOK=DnI.xml
CHAPTERS=addareas.xml areatree.xml configuration.xml fonts.xml \
foptrees.xml fotree.xml getnextbreakposs.xml overview.xml \
preparation.xml properties.xml rendering.xml
BOOKMAKER=BookMaker.java
# destinations
-BUILD_DIR=../../../../../build/
+BUILD_DIR=../../../../../build
BOOKMAKERCLASSPATH=$(BUILD_DIR)/classes
BOOKMAKER_CLASS=$(BOOKMAKERCLASSPATH)/BookMaker.class
DNI_BUILD_DIR=$(BUILD_DIR)/site/DnI
all: xhtml html pdf
-xhtml: $(XHTML_DIR)/book-xhtml.xml
-html: $(HTML_DIR)/book.html
-fo: $(PDF_DIR)/book.fo
-pdf: $(PDF_DIR)/book.pdf
+xhtml: $(XHTML_DIR)/DnI-xhtml.xml
+html: $(HTML_DIR)/DnI.html
+fo: $(PDF_DIR)/DnI.fo
+pdf: $(PDF_DIR)/DnI.pdf
-$(XHTML_DIR)/book-xhtml.xml: $(BOOK) $(CHAPTERS) $(CUSTOM_DOCBOOK_XHTML_STYLESHEET) $(BOOKMAKER_CLASS)
+$(XHTML_DIR)/DnI-xhtml.xml: $(BOOK) $(CHAPTERS) $(CUSTOM_DOCBOOK_XHTML_STYLESHEET) $(BOOKMAKER_CLASS)
[ -d $(XHTML_DIR) ] || mkdir -p $(XHTML_DIR)
java $(JAVAFLAGS) \
-classpath $(XERCESCLASSPATH):$(SAXONCLASSPATH):$(AVALONCLASSPATH):$(RESOLVERCLASSPATH):$(CLICLASSPATH):$(BOOKMAKERCLASSPATH):$(CLASSPATH) \
BookMaker $(PROGOPTS) --parameter base.dir $(XHTML_DIR)/ -xml $< -xsl $(CUSTOM_DOCBOOK_XHTML_STYLESHEET) -out $@
-$(HTML_DIR)/book.html: $(BOOK) $(CHAPTERS) $(CUSTOM_DOCBOOK_HTML_STYLESHEET) $(BOOKMAKER_CLASS)
+$(HTML_DIR)/DnI.html: $(BOOK) $(CHAPTERS) $(CUSTOM_DOCBOOK_HTML_STYLESHEET) $(BOOKMAKER_CLASS)
[ -d $(HTML_DIR) ] || mkdir -p $(HTML_DIR)
java $(JAVAFLAGS) \
-classpath $(XERCESCLASSPATH):$(SAXONCLASSPATH):$(AVALONCLASSPATH):$(RESOLVERCLASSPATH):$(CLICLASSPATH):$(BOOKMAKERCLASSPATH):$(CLASSPATH) \
BookMaker $(PROGOPTS) --parameter base.dir $(HTML_DIR)/ -xml $< -xsl $(CUSTOM_DOCBOOK_HTML_STYLESHEET) -out $@
-$(PDF_DIR)/book.fo: $(BOOK) $(CHAPTERS) $(CUSTOM_DOCBOOK_FO_STYLESHEET) $(BOOKMAKER_CLASS)
+$(PDF_DIR)/DnI.fo: $(BOOK) $(CHAPTERS) $(CUSTOM_DOCBOOK_FO_STYLESHEET) $(BOOKMAKER_CLASS)
[ -d $(PDF_DIR) ] || mkdir -p $(PDF_DIR)
java $(JAVAFLAGS) \
-classpath $(XERCESCLASSPATH):$(SAXONCLASSPATH):$(AVALONCLASSPATH):$(RESOLVERCLASSPATH):$(CLICLASSPATH):$(BOOKMAKERCLASSPATH):$(CLASSPATH) \
BookMaker $(PROGOPTS) -xml $< -xsl $(CUSTOM_DOCBOOK_FO_STYLESHEET) -out $@
-$(PDF_DIR)/book.pdf: $(BOOK) $(CHAPTERS) $(CUSTOM_DOCBOOK_FO_STYLESHEET) $(BOOKMAKER_CLASS)
+$(PDF_DIR)/DnI.pdf: $(BOOK) $(CHAPTERS) $(CUSTOM_DOCBOOK_FO_STYLESHEET) $(BOOKMAKER_CLASS)
[ -d $(PDF_DIR) ] || mkdir -p $(PDF_DIR)
java $(JAVAFLAGS) \
-classpath $(XERCESCLASSPATH):$(SAXONCLASSPATH):$(FOPCLASSPATH):$(AVALONCLASSPATH):$(RESOLVERCLASSPATH):$(CLICLASSPATH):$(BOOKMAKERCLASSPATH):$(CLASSPATH) \
The book is structured according to the Docbook XML DTD version 4.2,
top-level element book.
-The top level file is book.xml. It calls in the various chapter files.
+The top level file is DnI.xml. It calls in the various chapter files.
The book can be converted to XHTML, HTML and FO using the Docbook XSL
stylesheets. For each of these formats there are customization XSL
java $JAVAFLAGS -cp "$SAXONCLASSPATH:$CLASSPATH" \
com.icl.saxon.StyleSheet \
-o ../documentation-xhtml/book-xhtml.xml \
- book.xml cust-xhtml-docbook.xsl
+ DnI.xml cust-xhtml-docbook.xsl
java $JAVAFLAGS -cp "$SAXONCLASSPATH:$CLASSPATH" \
com.icl.saxon.StyleSheet \
-o ../documentation-html/book.html \
- book.xml cust-html-docbook.xsl
+ DnI.xml cust-html-docbook.xsl
java $JAVAFLAGS \
-cp $SAXONCLASSPATH:$FOPCLASSPATH:$AVALONCLASSPATH:$CLASSPATH \
org.apache.fop.apps.Fop \
- -xml book.xml -xsl cust-html-docbook.xsl -pdf book.pdf
+ -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.
+++ /dev/null
-<?xml version="1.0" encoding="utf-8"?>
-
-<!--
- * Copyright 2004 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.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- -->
-
-<!-- $Id$ -->
-
-<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
- "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd" [
-<!ENTITY ch.overview SYSTEM "overview.xml">
-<!ENTITY ch.preparation SYSTEM "preparation.xml">
-<!ENTITY ch.fotree SYSTEM "fotree.xml">
-<!ENTITY ch.areatree SYSTEM "areatree.xml">
-<!ENTITY ch.getnextbreakposs SYSTEM "getnextbreakposs.xml">
-<!ENTITY ch.addareas SYSTEM "addareas.xml">
-<!ENTITY ch.rendering SYSTEM "rendering.xml">
-<!ENTITY ch.foptrees SYSTEM "foptrees.xml">
-<!ENTITY ch.properties SYSTEM "properties.xml">
-<!ENTITY ch.fonts SYSTEM "fonts.xml">
-<!ENTITY ch.configuration SYSTEM "configuration.xml">
-]>
-
-<book>
- <bookinfo>
-
- <title>FOP's Design and Implementation</title>
-
- <authorgroup>
- <author>
- <firstname>Simon</firstname>
- <surname>Pepping</surname>
- <affiliation>
- <orgname>FOP team</orgname>
- <orgdiv>Apache Software Foundation</orgdiv>
- </affiliation>
- </author>
- </authorgroup>
-
- <copyright>
- <year>2004</year>
- <holder>The Apache Software Foundation</holder>
- </copyright>
-
- <legalnotice>
- <para>Licensed under the Apache License, Version 2.0 (the
-"License"); you may not use this file except in compliance with the
-License. You may obtain a copy of the License at
-
-<screen>
- <ulink url="http://www.apache.org/licenses/LICENSE-2.0">http://www.apache.org/licenses/LICENSE-2.0</ulink>
-</screen>
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.</para>
- </legalnotice>
-
- <revhistory>
- <revision>
- <revnumber>0.x</revnumber>
- <date>2003, 2004</date>
- <revremark>Various early, partial versions</revremark>
- </revision>
- <revision>
- <revnumber>1.0</revnumber>
- <date>01 August 2004</date>
- <revremark>Committed to the FOP code repository</revremark>
- </revision>
- </revhistory>
-
- <abstract>
- <simpara>FOP is a Formatting Object Processor of the Apache
-project. It aims to provide a standards compliant implementation of
-XSL-FO. It understands Unicode, has bidirectional writing
-capabilities, and implements a wide range of rendering
-formats.</simpara>
-
- <simpara>FOP is a work in progress. Its code is under continuing
-development. This documentation describes the state of the code at the
-time the documentation was written. At the time you read this
-documentation the code may be different. Note also that different
-parts of the documentation were written or revised at different
-times.</simpara>
-
- </abstract>
-
- </bookinfo>
-
-&ch.overview;
-&ch.preparation;
-&ch.fotree;
-&ch.areatree;
-&ch.getnextbreakposs;
-&ch.addareas;
-&ch.rendering;
-&ch.foptrees;
-&ch.properties;
-&ch.fonts;
-&ch.configuration;
-
-</book>
-
-<!-- Local Variables: -->
-<!-- current-language-environment: UTF-8 -->
-<!-- coding: utf-8 -->
-<!-- default-input-method: TeX -->
-<!-- End: -->