You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@uima.apache.org by sc...@apache.org on 2007/04/06 23:06:42 UTC

svn commit: r526279 [1/3] - in /incubator/uima/uimaj/trunk/uima-docbook-tool: build/ build/samples/ catalog/ catalog/docbook.version_4.4/ catalog/docbook.version_4.5/ properties/ properties/samples/ styles/ styles/common/ styles/common/samples/ styles/...

Author: schor
Date: Fri Apr  6 14:06:38 2007
New Revision: 526279

URL: http://svn.apache.org/viewvc?view=rev&rev=526279
Log:
This is a repackaging of just the tooling part
of uima-docbooks.  uima-docbooks will be reworked 
to make use of this.  The new packaging supports
multiple versions of docbook xml, docbook xsl, 
saxon, fop, and jai.  It also now will no longer
have these components in the project (except for fop), but will offer 
to download them for the user the first time they're
needed.  A limited amount of logic to bypass parts 
of docbook processing not needed because targets
are up to date has been added, more to come.

Added:
    incubator/uima/uimaj/trunk/uima-docbook-tool/build/
    incubator/uima/uimaj/trunk/uima-docbook-tool/build/build-docbook.xml
    incubator/uima/uimaj/trunk/uima-docbook-tool/build/samples/
    incubator/uima/uimaj/trunk/uima-docbook-tool/build/samples/build_book-name.xml
    incubator/uima/uimaj/trunk/uima-docbook-tool/catalog/
    incubator/uima/uimaj/trunk/uima-docbook-tool/catalog/docbook.version_4.4/
    incubator/uima/uimaj/trunk/uima-docbook-tool/catalog/docbook.version_4.4/CatalogManager.properties
    incubator/uima/uimaj/trunk/uima-docbook-tool/catalog/docbook.version_4.4/xml-catalog.xml
    incubator/uima/uimaj/trunk/uima-docbook-tool/catalog/docbook.version_4.5/
    incubator/uima/uimaj/trunk/uima-docbook-tool/catalog/docbook.version_4.5/CatalogManager.properties
    incubator/uima/uimaj/trunk/uima-docbook-tool/catalog/docbook.version_4.5/xml-catalog.xml
    incubator/uima/uimaj/trunk/uima-docbook-tool/properties/
    incubator/uima/uimaj/trunk/uima-docbook-tool/properties/default.docbook.properties
    incubator/uima/uimaj/trunk/uima-docbook-tool/properties/samples/
    incubator/uima/uimaj/trunk/uima-docbook-tool/properties/samples/local.docbook.properties
    incubator/uima/uimaj/trunk/uima-docbook-tool/styles/
    incubator/uima/uimaj/trunk/uima-docbook-tool/styles/common/
    incubator/uima/uimaj/trunk/uima-docbook-tool/styles/common/samples/
    incubator/uima/uimaj/trunk/uima-docbook-tool/styles/common/samples/sample-html-chunked.xsl
    incubator/uima/uimaj/trunk/uima-docbook-tool/styles/common/samples/sample-html-single.xsl
    incubator/uima/uimaj/trunk/uima-docbook-tool/styles/common/samples/sample-pdf.xsl
    incubator/uima/uimaj/trunk/uima-docbook-tool/styles/uima-style/
    incubator/uima/uimaj/trunk/uima-docbook-tool/styles/uima-style/common/
    incubator/uima/uimaj/trunk/uima-docbook-tool/styles/uima-style/common/html-pdf.xsl
    incubator/uima/uimaj/trunk/uima-docbook-tool/styles/uima-style/common/html.xsl
    incubator/uima/uimaj/trunk/uima-docbook-tool/styles/uima-style/css/
    incubator/uima/uimaj/trunk/uima-docbook-tool/styles/uima-style/css/stylesheet-html.css
    incubator/uima/uimaj/trunk/uima-docbook-tool/styles/uima-style/titlepage/
    incubator/uima/uimaj/trunk/uima-docbook-tool/styles/uima-style/titlepage/titlepage-html.xml
    incubator/uima/uimaj/trunk/uima-docbook-tool/styles/uima-style/titlepage/titlepage-pdf.xml
    incubator/uima/uimaj/trunk/uima-docbook-tool/styles/uima-style/titlepage/titlepage-pdf.xsl
    incubator/uima/uimaj/trunk/uima-docbook-tool/styles/uima-style/top/
    incubator/uima/uimaj/trunk/uima-docbook-tool/styles/uima-style/top/html-single.xsl
    incubator/uima/uimaj/trunk/uima-docbook-tool/styles/uima-style/top/pdf.xsl
    incubator/uima/uimaj/trunk/uima-docbook-tool/tools/
    incubator/uima/uimaj/trunk/uima-docbook-tool/tools/common-lib/
    incubator/uima/uimaj/trunk/uima-docbook-tool/tools/common-lib/LICENSES
    incubator/uima/uimaj/trunk/uima-docbook-tool/tools/common-lib/LICENSES-APACHE.txt
    incubator/uima/uimaj/trunk/uima-docbook-tool/tools/common-lib/avalon-framework-api-4.3.jar   (with props)
    incubator/uima/uimaj/trunk/uima-docbook-tool/tools/common-lib/avalon-framework-impl-4.3.jar   (with props)
    incubator/uima/uimaj/trunk/uima-docbook-tool/tools/common-lib/batik-all-1.6.jar   (with props)
    incubator/uima/uimaj/trunk/uima-docbook-tool/tools/common-lib/commons-io-1.1.jar   (with props)
    incubator/uima/uimaj/trunk/uima-docbook-tool/tools/common-lib/commons-logging-1.0.4.jar   (with props)
    incubator/uima/uimaj/trunk/uima-docbook-tool/tools/common-lib/xercesImpl-2.7.1.jar   (with props)
    incubator/uima/uimaj/trunk/uima-docbook-tool/tools/common-lib/xml-apis-1.3.02.jar   (with props)
    incubator/uima/uimaj/trunk/uima-docbook-tool/tools/common-lib/xml-resolver-1.1.jar   (with props)
    incubator/uima/uimaj/trunk/uima-docbook-tool/tools/docbook-versions/
    incubator/uima/uimaj/trunk/uima-docbook-tool/tools/docbook-versions/docbook-xml-4.4/
    incubator/uima/uimaj/trunk/uima-docbook-tool/tools/docbook-versions/docbook-xml-4.5/
    incubator/uima/uimaj/trunk/uima-docbook-tool/tools/docbook-versions/docbook-xsl-1.70.0/
    incubator/uima/uimaj/trunk/uima-docbook-tool/tools/docbook-versions/docbook-xsl-1.72.0/
    incubator/uima/uimaj/trunk/uima-docbook-tool/tools/fop-versions/
    incubator/uima/uimaj/trunk/uima-docbook-tool/tools/fop-versions/fop-0.20.5/
    incubator/uima/uimaj/trunk/uima-docbook-tool/tools/fop-versions/fop-0.20.5/fonts/
    incubator/uima/uimaj/trunk/uima-docbook-tool/tools/fop-versions/fop-0.20.5/fonts/palatino-bold-italic.xml
    incubator/uima/uimaj/trunk/uima-docbook-tool/tools/fop-versions/fop-0.20.5/fonts/palatino-bold.xml
    incubator/uima/uimaj/trunk/uima-docbook-tool/tools/fop-versions/fop-0.20.5/fonts/palatino-italic.xml
    incubator/uima/uimaj/trunk/uima-docbook-tool/tools/fop-versions/fop-0.20.5/fonts/palatino.xml
    incubator/uima/uimaj/trunk/uima-docbook-tool/tools/fop-versions/fop-0.20.5/fop-config.xml
    incubator/uima/uimaj/trunk/uima-docbook-tool/tools/fop-versions/fop-0.20.5/fop.jar   (with props)
    incubator/uima/uimaj/trunk/uima-docbook-tool/tools/fop-versions/fop-0.93/
    incubator/uima/uimaj/trunk/uima-docbook-tool/tools/fop-versions/fop-0.93/README.txt
    incubator/uima/uimaj/trunk/uima-docbook-tool/tools/fop-versions/fop-0.93/fonts/
    incubator/uima/uimaj/trunk/uima-docbook-tool/tools/fop-versions/fop-0.93/fonts/FOP_TT_font_metric_generation.xml
    incubator/uima/uimaj/trunk/uima-docbook-tool/tools/fop-versions/fop-0.93/fonts/FOP_Type1_font_metric_generation.xml
    incubator/uima/uimaj/trunk/uima-docbook-tool/tools/fop-versions/fop-0.93/fonts/palatino-bold-italic.xml
    incubator/uima/uimaj/trunk/uima-docbook-tool/tools/fop-versions/fop-0.93/fonts/palatino-bold.xml
    incubator/uima/uimaj/trunk/uima-docbook-tool/tools/fop-versions/fop-0.93/fonts/palatino-italic.xml
    incubator/uima/uimaj/trunk/uima-docbook-tool/tools/fop-versions/fop-0.93/fonts/palatino.xml
    incubator/uima/uimaj/trunk/uima-docbook-tool/tools/fop-versions/fop-0.93/fop-config.xml
    incubator/uima/uimaj/trunk/uima-docbook-tool/tools/fop-versions/fop-0.93/fop.jar   (with props)
    incubator/uima/uimaj/trunk/uima-docbook-tool/tools/fop-versions/fop-0.93/xmlgraphics-commons-1.1.jar   (with props)
    incubator/uima/uimaj/trunk/uima-docbook-tool/tools/jai-versions/
    incubator/uima/uimaj/trunk/uima-docbook-tool/tools/jai-versions/jai-1.1.3/
    incubator/uima/uimaj/trunk/uima-docbook-tool/tools/saxon-versions/
    incubator/uima/uimaj/trunk/uima-docbook-tool/tools/saxon-versions/saxon-6.5.5/

Added: incubator/uima/uimaj/trunk/uima-docbook-tool/build/build-docbook.xml
URL: http://svn.apache.org/viewvc/incubator/uima/uimaj/trunk/uima-docbook-tool/build/build-docbook.xml?view=auto&rev=526279
==============================================================================
--- incubator/uima/uimaj/trunk/uima-docbook-tool/build/build-docbook.xml (added)
+++ incubator/uima/uimaj/trunk/uima-docbook-tool/build/build-docbook.xml Fri Apr  6 14:06:38 2007
@@ -0,0 +1,598 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+   Licensed to the Apache Software Foundation (ASF) under one
+   or more contributor license agreements.  See the NOTICE file
+   distributed with this work for additional information
+   regarding copyright ownership.  The ASF licenses this file
+   to you 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.
+-->
+
+	<!-- ==  ================================================================ -->
+	<!-- ==          Conventions used (mostly directory structures         == -->
+	<!-- ==  ================================================================ -->
+	<!-- ==  Put multiple books under ${docbook.src.dir}                   == -->
+	<!-- ==    each in its own subdirectory e.g. myNthBook                 == -->
+	<!-- ==                                                                == -->
+	<!-- ==  If you're using master/includes, name the master              == -->
+	<!-- ==    that XIncludes the other parts also myNthBook.xml           == -->
+	<!-- ==                                                                == -->
+	<!-- ==  css and styles can be shared among multiple books.            == -->
+	<!-- ==    if shared, css and styles directories are                   == -->
+	<!-- ==          ${src.dir}/css  and ${src.dir}/styles                 == -->
+	<!-- ==    if not shared, they are here:                               == -->
+	<!-- ==          ${docbook.src.dir}/${book_name}/...                   == -->
+	<!-- ==                                                                == -->
+	<!-- ==  For multiple books:                                           == -->
+	<!-- ==    If sharing css                                              == -->
+	<!-- ==                                                                == -->
+	<!-- ==  Output        will go into ${target.dir}/myNthBook            == -->
+	<!-- ==    html        will go into ${target.dir)/myNthBook/myNthBook  == -->
+	<!-- ==    htmlsingle  will go into ${target.dir)/myNthBook.html       == -->
+	<!-- ==    pdf         will go into ${target.dir)/myNthBook.pdf        == -->
+	<!-- ==                                                                == -->
+	<!-- ==  images go into ${target.dir}/images/myNthBook                 == -->
+	<!-- ==  css    go into ${target.dir}/css/myNthBook                    == -->  
+	<!-- ==                                                                == -->
+	<!-- ==  ================================================================ -->
+
+
+	<!-- ======================================================================== -->
+	<!-- ==  Parameter properties:                                             == -->
+	<!-- ==    book_name e.g. myNthBook                                        == -->
+	<!-- ==    (optional: chapter_name e.g. faqs                               == -->
+	<!-- ==            - only use when doing single chapter)                   == -->
+	<!-- ==            - if ommitted, defaults to same as book_name            == -->
+  <!-- ==      ${docbook.src.dir}/${book_name}/${chapter_name}.xml is source file  -->
+  <!-- ==      ${docbook.src.dir}/${book_name}/images/ ... image files       == -->
+  <!-- ==      ${docbook.src.dir}/${book_name}/css/  ... css files           == --> 
+  <!-- ==                                                                    == -->
+	<!-- ==      images source:                                                == -->
+	<!-- ==        ${docbook.src.dir}/${book_name}/images                      == -->
+  <!-- ==                                                                    == -->
+  <!-- ==    use_local_css_and_styles - set only if not sharing              == -->
+  <!-- ==                                                                    == -->
+	<!-- ==      ${chapter_name}.xml is the source file                        == -->  
+	<!-- ==      ${src.dir}/olink/${book_name}/${type}-target.db is used       == -->
+	<!-- ==         as the olink database for this source file                 == -->
+	<!-- ==         type = pdf, html, or htmlsingle                            == -->
+	<!-- ==      ${target.dir}/images/${book_name}                             == -->
+	<!-- ==      ${target.dir}/${chapter_name}/css/                            == -->	
+	<!-- ==      ${target.dir)/${chapter_name}/chunked-html-files.html         == -->
+	<!-- ==      ${target.dir)/${chapter_name}/${docbook.outname}.html         == -->
+	<!-- ==      ${target.dir)/${chapter_name}/${docbook.outname}.pdf          == -->
+  <!-- ==                                                                    == -->
+	<!-- ==    (optional) docbook.outname (defaults to same as book_name)      == -->
+	<!-- ==      is the name used for the dir of the                           == -->   
+	<!-- ==        generated single html (.html) and                           == -->
+	<!-- ==        generated pdf (.pdf)                                        == -->
+	<!-- ==  ===============================================================   == -->
+	<!-- ==                                                                    == -->
+	<!-- ==  Derived from the Velocity docbook system       )                  == -->
+	<!-- ==                                                                    == -->
+	<!-- ==  There are 2 dimensions of work done by this script                == -->
+	<!-- ==    1) which of several "books" (1 or more)                         == -->
+	<!-- ==         ** Done outside of this script **                          == -->
+	<!-- ==    2) which kinds of outputs (html chunked, htmlsingle, pdf)       == -->
+	<!-- ==         ** Done in this script using targets **                    == -->
+	<!-- ==                                                                    == -->
+	<!-- ==  Targets for users:                                                == -->
+	<!-- ==    clean - erase all the files in the target                       == -->
+	<!-- ==    all - do 3 kinds                                                == -->
+	<!-- ==    html                                                            == -->
+	<!-- ==    htmlsingle                                                      == -->
+	<!-- ==    pdf                                                             == -->
+	<!-- ==                                                                    == -->
+	<!-- ==    No zip files of the results are done                            == -->
+	<!-- ==                                                                    == -->
+	<!-- ==    olink-ing is in use                                             == -->
+	<!-- ==      collect.xref.targets is set to property value of same name    == -->
+	<!-- ==        and can be "yes" or "only" or "no".                         == -->
+	<!-- ======================================================================== -->
+
+<!-- basedir is set by the caller to where the source and outputs are
+     and doesn't point into this project          -->
+<!-- basedir should be set to the base dir of the caller project -->
+<!--   files expected:
+          basedir / local.docbook.properties 
+          input, styles, olink dbs, and output, locations all set by local.docbook.properties
+          output --> 
+
+<!-- properties set by caller:
+       basedir      - location of calling project 
+       book_name    - name of book 
+       ant.file.build-docbook - path to this file (Set by Ant)
+       -->
+
+<project name="build-docbook" default="all">
+	
+	<target name="init_once" depends="init_once_a, fop-0.20.5, fop-0.93, saxon-6.5.5, saxon-8.9" description="sets properties, once"/>
+	
+	<target name="init_once_a">
+
+		<property name="docbook.tool.project" location="${ant.file.build-docbook}/../.."/>
+		<property name="jai.version" value="1.1.3"/>  <!-- only this version supported in the auto download script -->
+		<!-- Load our properties -->
+		<!-- if the file is not there, it is not an error - it is just skipped -->
+		<!-- earlier files override later ones -->
+	  <property file="local.docbook.properties"/>  <!-- load from caller project -->
+
+		<property file="${docbook.tool.project}/properties/default.docbook.properties"/>
+
+		<!-- if chapter_name is not set, set it to the book_name -->
+		<property name="chapter_name" value="${book_name}"/>
+		
+		<!-- if docbook.outname is not set, set it to the chapter_name -->
+		<property name="docbook.outname" value="${chapter_name}"/>
+
+		<!-- if olink_work is not set, set it to yes -->
+		<property name="olink_work" value="yes"/>
+
+		<!-- skip some steps if olink_work value is "only" -->
+		<condition property="do_olinkdb_only">
+			<equals arg1="${olink_work}" arg2="only"/>
+	  </condition>
+		
+		<!-- default styles and css -->
+	  <property name="css_styles_prefix" location="${docbook.tool.project}/styles/uima-style"/>
+		
+	  <property name="css.dir"    value="${css_styles_prefix}/css"/>
+	  <property name="styles.dir" value="${css_styles_prefix}"/>
+		
+		<property name="docbook.tools.lib.dir" location="${docbook.tool.project}/tools/common-lib"/>
+		<property name="docbook.ref.dir" location="${docbook.tool.project}/tools/docbook-versions"/>
+		<property name="docbook.xsl.dir" location="${docbook.ref.dir}/docbook-xsl-${docbook.xsl.version}"/>
+		<property name="docbook.xml.dir" location="${docbook.ref.dir}/docbook-xml-${docbook.xml.version}"/>
+		<property name="saxon.dir"       location="${docbook.tool.project}/tools/saxon-versions/saxon-${saxon.version}"/>
+		<property name="jai.dir"         location="${docbook.tool.project}/tools/jai-versions/jai-${jai.version}"/>
+		<property name="tmp.dir"         location="${target.dir}/temp"/> <!-- in caller's project -->
+		<property name="fop.config"      location="${docbook.tool.project}/tools/fop-versions/fop-${fop.version}/fop-config.xml"/>
+
+		<!-- ======================================================================== -->
+		<!-- ==                                                                    == -->
+		<!-- == Set up the classpath for the XSLT conversion                       == -->
+		<!-- ==   and for running FOP                                              == -->
+		<!-- ==                                                                    == -->
+		<!-- ======================================================================== -->
+
+		<path id="saxon_and_fop.classpath">
+			<!-- xercesImpl.jar comes first to allow using XInclude -->
+			<pathelement location="${docbook.tools.lib.dir}/xercesImpl.jar"/>
+			<pathelement location="${docbook.tools.lib.dir}/xml-apis.jar"/>
+			<fileset dir="${docbook.tool.project}/tools/fop-versions/fop-${fop.version}"
+			         includes="*.jar"/>
+			<fileset dir="${saxon.dir}" includes="*.jar"/>
+			<fileset dir="${docbook.tools.lib.dir}" includes="*.jar"/>
+
+			<fileset dir="${docbook.xsl.dir}/extensions">
+				<include name="${xslt-db.jar}"/>
+			</fileset>
+			
+			<fileset dir="${jai.dir}" includes="*.jar"/>
+			
+			<!--  Needed to find CatalogManager.properties -->
+			<pathelement location="${docbook.tool.project}/catalog/docbook.version_${docbook.xml.version}"/>
+		</path>
+		
+		<uptodate property="title-pdf-uptodate"
+			           srcfile="${local.titlepage.dir}/titlepage-pdf.xml"
+			           targetfile="${local.titlepage.dir}/titlepage-pdf.xsl"/>
+		<uptodate property="title-html-uptodate"
+			           srcfile="${local.titlepage.dir}/titlepage-html.xml"
+			           targetfile="${local.titlepage.dir}/titlepage-html.xsl"/>
+		
+		<condition property="fop-0.20.5"> <equals arg1="0.20.5" arg2="${fop.version}"/></condition>
+		<condition property="fop-0.93">   <equals arg1="0.93"   arg2="${fop.version}"/></condition>
+		<condition property="saxon-6.5.5"><equals arg1="6.5.5"  arg2="${saxon.version}"/></condition>
+		<condition property="saxon-8.9">  <equals arg1="8.9"    arg2="${saxon.version}"/></condition>
+		
+    <!--echoproperties/-->
+	</target>
+	
+	<target name="fop-0.20.5" if="fop-0.20.5">
+		<property name="docbook.fop.extensions" value="fop.extensions"/>
+    <property name="fop.main.class"         value="org.apache.fop.apps.Fop"/>
+	</target>
+
+	<target name="fop-0.93" if="fop-0.93">
+		<property name="docbook.fop.extensions" value="fop1.extensions"/>
+    <property name="fop.main.class"         value="org.apache.fop.cli.Main"/>
+	</target>
+
+	<target name="saxon-6.5.5" if="saxon-6.5.5">
+		<property name="saxon.main.class"       value="com.icl.saxon.StyleSheet"/>
+	</target>
+
+	<target name="saxon-8.9" if="saxon-8.9">
+		<property name="saxon.main.class"       value="net.sf.saxon.Transform"/>
+	</target>
+	
+	<!-- ======================================================================== -->
+	<!-- ==                             target layout                          == -->                                                                          
+	<!-- ======================================================================== -->
+	<!-- == (root) (= target in the uima-docbook project)                      == -->
+	<!-- ==  |                                                                 == -->
+	<!-- ==  |-images            << shared images subdir                       == -->
+	<!-- ==  |    |-${book_name}/chapter-name/image-name                       == -->
+	<!-- ==  |                                                                 == -->
+	<!-- ==  |-${chapter_name)  overview_and_setup  << directories             == -->
+	<!-- ==  |    |-css                            << subdir                   == -->
+	<!-- ==  |    |-chunked html files                                         == -->
+	<!-- ==  |    |-${docbook.outname}.html        << single html              == -->
+	<!-- ==  |    |-${docbook.outname}.pdf         << pdf                      == -->
+	<!-- ==  |-${chapter_name)  Tutorials-and-Users-Guides                     == -->
+	<!-- ==  |    |-css                            << subdir                   == -->
+	<!-- ==  |    |-chunked html files                                         == -->
+	<!-- ==  |    |-${docbook.outname}.html        << single html              == -->
+	<!-- ==  |    |-${docbook.outname}.pdf         << pdf                      == -->
+	<!-- ==  |-${chapter_name)  UIMA-Tools                                     == -->
+	<!-- ==  |    |-css                            << subdir                   == -->
+	<!-- ==  |    |-chunked html files                                         == -->
+	<!-- ==  |    |-${docbook.outname}.html        << single html              == -->
+	<!-- ==  |    |-${docbook.outname}.pdf         << pdf                      == -->
+	<!-- ==  |-${chapter_name)  UIMA-References                                == -->
+	<!-- ==       |-css                            << subdir                   == -->
+	<!-- ==       |-chunked html files                                         == -->
+	<!-- ==       |-${docbook.outname}.html        << single html              == -->
+	<!-- ==       |-${docbook.outname}.pdf         << pdf                      == -->
+	<!-- ======================================================================== -->
+
+
+      
+	<!-- ======================================================================== -->
+ 	<!-- ==                      olink info layout                             == -->
+	<!-- ======================================================================== -->
+	<!-- ==	(root) (= src/olink in the uima-docbook project)                   == -->
+	<!-- ==  |-olink_db_html.xml                                               == -->
+	<!-- ==  |-olink_db_htmlsingle.xml                                         == -->
+	<!-- ==  |-olink_db_pdf.xml                                                == -->
+	<!-- ==  |                                                                 == -->
+	<!-- ==  |-${chapter_name)  overview_and_setup  << directories             == -->
+	<!-- ==  |    |-html-target.db              << for chunked html            == -->
+	<!-- ==  |    |-htmlsingle-target.db        << single html                 == -->
+	<!-- ==  |    |-pdf-target.db               << pdf                         == -->
+	<!-- ==  |-${chapter_name)  Tutorials-and-Users-Guides                     == -->
+	<!-- ==  |    |-html-target.db              << for chunked html            == -->
+	<!-- ==  |    |-htmlsingle-target.db        << single html                 == -->
+	<!-- ==  |    |-pdf-target.db               << pdf                         == -->
+	<!-- ==  |-${chapter_name)  UIMA-Tools                                     == -->
+	<!-- ==  |    |-html-target.db              << for chunked html            == -->
+	<!-- ==  |    |-htmlsingle-target.db        << single html                 == -->
+	<!-- ==  |    |-pdf-target.db               << pdf                         == -->
+	<!-- ==  |-${chapter_name)  UIMA-References                                == -->
+	<!-- ==       |-html-target.db              << for chunked html            == -->
+	<!-- ==       |-htmlsingle-target.db        << single html                 == -->
+	<!-- ==       |-pdf-target.db               << pdf                         == -->
+	<!-- ======================================================================== -->
+    
+       
+
+	<!-- =========================================================================== -->
+	<!-- ==                                                                       == -->
+	<!-- == prepare temporary directories and unzip the docbook DTD and XSL files == -->
+	<!-- ==                                                                       == -->
+	<!-- =========================================================================== -->
+	<target name="prepare" depends="init_once">
+
+		<fail message="You must set book_name">
+			<condition> <not> <isset property="book_name"/> </not> </condition>
+		</fail>
+		
+		<fail message="Your local.docbook.properties file is missing the local.titlepage.dir setting">
+			<condition> <not> <isset property="local.titlepage.dir"/> </not> </condition>
+		</fail>
+
+		<mkdir dir="${tmp.dir}" />
+
+		<available file="${saxon.dir}/saxon.jar" property="saxon.available" />
+		<antcall target="get-saxon"/>
+
+		<available file="${docbook.xml.dir}/catalog.xml" property="docbook.available" />
+		<antcall target="get-docbook"/>
+		
+		<available file="${jai.dir}/jai_core.jar" property="jai.available"/>
+		<antcall target="get-jai"/>
+	</target>
+
+
+	<!-- ======================================================================== -->
+	<!-- ==                                                                    == -->
+	<!-- == This is the main target to generate all the docs                   == -->
+	<!-- ==                                                                    == -->
+	<!-- ======================================================================== -->
+	<target name="all" depends="pdf,html,htmlsingle"
+          description="--> Generate and copy reference documentation">
+		<echo message="build all for ${chapter_name}"/>
+	</target>
+
+	<!-- ======================================================================== -->
+	<!-- ==                                                                    == -->
+	<!-- == Clean up the target directory                                      == -->
+	<!-- ==                                                                    == -->
+	<!-- ======================================================================== -->
+	<target name="clean" depends="init_once"
+          description="--> Delete temporary and distribution directories for docs">
+		<delete quiet="true" dir="${target.dir}"/>
+	</target>
+
+	<!-- ======================================================================== -->
+	<!-- ==                                                                    == -->
+	<!-- == Create the PDF documentation                                       == -->
+	<!-- ==                                                                    == -->
+	<!-- ======================================================================== -->
+	<target name="pdf" depends="prepare, transform-pdf, fop_conditionally" description="--> Generate PDF docs"/>
+	
+	<target name="transform-pdf" depends="transform-title-pdf, transform-source-pdf" description="--> internal transform for pdf output"/>
+	
+	<target name="transform-source-pdf" description="--> internal transform source for pdf output">
+			
+		<saxon input="${docbook.src.dir}/${book_name}/${chapter_name}.xml"
+           output="${target.dir}/${chapter_name}/${docbook.outname}.pdf_src.xml"
+           style="${src.dir}/styles/top/pdf.xsl"
+		       params="fop.version=${fop.version} 
+		               paper.type=${paper.type} 
+		               collect.xref.targets=${olink_work} 
+		               targets.filename=${olink.dir}/${chapter_name}/pdf-target.db
+		               target.database.document=${olink.dir}/olink_db_pdf.xml
+		               current.docid=${chapter_name}
+			             docbook.xsl.root=${docbook.xsl.dir}			             
+			             "/>
+	</target>
+	
+	<target name="transform-title-pdf" unless="title-pdf-uptodate" description="--> internal transform title page for pdf">	
+		<saxon input="${local.titlepage.dir}/titlepage-pdf.xml"
+           output="${local.titlepage.dir}/titlepage-pdf.xsl"
+           style="${docbook.xsl.dir}/template/titlepage.xsl"/>
+	</target>
+	
+	<target name="transform-title-html" unless="title-html-uptodate" description="--> internal trnasform title page for html">
+		<saxon input="${local.titlepage.dir}/titlepage-html.xml"
+           output="${local.titlepage.dir}/titlepage-html.xsl"
+           style="${docbook.xsl.dir}/template/titlepage.xsl"/>
+	</target>
+		
+  <target name="fop_conditionally" description="internal - runs fop conditionally"
+  	      unless="do_olinkdb_only">
+  	
+		<java classname="${fop.main.class}" fork="true" maxmemory="256m"
+          dir="${target.dir}/${chapter_name}" classpathref="saxon_and_fop.classpath">
+			<arg value="-c"/>
+			<arg value="${fop.config}"/>
+			<arg value="${target.dir}/${chapter_name}/${docbook.outname}.pdf_src.xml"/>
+			<arg value="${target.dir}/${chapter_name}/${docbook.outname}.pdf"/>
+		</java>
+  	
+	</target>
+	
+	<!-- ======================================================================== -->
+	<!-- ==                                                                    == -->
+	<!-- == Create the HTML documentation, many pages                          == -->
+	<!-- ==                                                                    == -->
+	<!-- ======================================================================== -->
+	<target name="html"
+          depends="prepare"
+          description="--> Generate HTML docs in multiple files">
+
+		<echo message="skipping many-page html output for now for ${chapter_name}"/>
+		
+	</target>
+	
+	<!-- ======================================================================== -->
+	<!-- ==                                                                    == -->
+	<!-- == Create the HTML documentation, one big page                        == -->
+	<!-- ==                                                                    == -->
+	<!-- ======================================================================== -->
+	<target name="htmlsingle" 
+          depends="prepare, transform-title-html, transform-html-single, copy-docbook-images-and-css"
+          description="--> Generate HTML docs in a single, big file"/>
+
+	<target name="transform-html-single">
+		<echo message="${src.dir}/styles/top/html-single.xsl"/>
+		<saxon input="${docbook.src.dir}/${book_name}/${chapter_name}.xml"
+           output="${target.dir}/${chapter_name}/${docbook.outname}.html"
+           style="${src.dir}/styles/top/html-single.xsl"
+		       params="fop-version=$fop.version 
+		               paper.type=${paper.type} 
+		               collect.xref.targets=${olink_work} 
+		               targets.filename=${olink.dir}/${chapter_name}/htmlsingle-target.db
+		               target.database.document=${olink.dir}/olink_db_htmlsingle.xml
+		               current.docid=${chapter_name}"/>
+	</target>
+	
+	<!-- ======================================================================== -->
+	<!-- ==                                                                    == -->
+	<!-- == Subroutines                                                        == -->
+	<!-- ==                                                                    == -->
+	<!-- ======================================================================== -->
+	<!-- ======================================================================== -->
+	<!-- == Subroutine: Copy the images and css                                == -->
+	<!-- ======================================================================== -->
+
+	<target name="copy-docbook-images-and-css"  unless="${do_olinkdb_only}">
+		<copy todir="${target.dir}/images">
+			<fileset dir="${docbook.xsl.dir}/images/"/>
+		</copy>
+
+		<copy todir="${target.dir}/${chapter_name}/css">
+			<fileset dir="${css.dir}"/>
+		</copy>
+		
+		
+	</target>
+
+	<!-- ======================================================================== -->
+	<!-- == Subroutine: Download Saxon                                         == -->
+	<!-- ======================================================================== -->
+	
+  <target name="get-saxon" unless="saxon.available">
+    <input message="Downloading and unzipping (one time) Saxon's free XSLT package,&#xA;
+licensed under the Mozilla Public License Version 1.0;&#xA;
+you may not use this package except in compliance with the License.&#xA;&#xA; 
+You may obtain a copy of the License at http://www.mozilla.org/MPL/&#xA;&#xA;Ok to download?"  validargs="y,n"
+        addproperty="ok.download.saxon" />
+    <condition property="do.download.saxon">
+      <equals arg1="y" arg2="${ok.download.saxon}"/>
+    </condition>
+    <fail unless="do.download.saxon" message="Download aborted by user."/>
+
+		<get src="http://prdownloads.sourceforge.net/saxon/saxon6-5-5.zip"
+		     dest="${tmp.dir}/saxon.zip" />
+		<unzip src="${tmp.dir}/saxon.zip" dest="${tmp.dir}/saxon" />
+  	<copy file="${tmp.dir}/saxon/saxon.jar" tofile="${saxon.dir}/saxon.jar"/>
+  </target>
+
+	<!-- ======================================================================== -->
+	<!-- == Subroutine: Download jai                                           == -->
+	<!-- ======================================================================== -->
+	
+  <target name="get-jai" unless="jai.available">
+    <input message="Downloading and unzipping (one time) Java Advanced Imaging package (JAI),&#xA;
+licensed under the specific Sun license for JAI;&#xA;
+You may not use this package except in compliance with the License.&#xA;&#xA; 
+The license is contained in the download.&#xA;&#xA;Ok to download?"  validargs="y,n"
+        addproperty="ok.download.jai" />
+    <condition property="do.download.jai">
+      <equals arg1="y" arg2="${ok.download.jai}"/>
+    </condition>
+    <fail unless="do.download.jai" message="Download aborted by user."/>
+
+  	
+		<get src="http://download.java.net/media/jai/builds/release/1_1_3/jai-1_1_3-lib.zip"
+		     dest="${tmp.dir}/jai.zip" />
+  	<unzip src="${tmp.dir}/jai.zip" dest="${tmp.dir}"/>
+		<copy todir="${jai.dir}">
+			<fileset dir="${tmp.dir}/jai-1_1_3/lib">
+				<include name="jai_codec.jar"/>
+				<include name="jai_core.jar"/>
+		  </fileset>
+		</copy>
+  </target>
+
+
+	<!-- ======================================================================== -->
+	<!-- == Subroutine: Unzip the docbook xml and xslt transformations         == -->
+	<!-- ======================================================================== -->
+	<target name="get-docbook" 
+	        description="internal: gets and unzips docbook xml and xsl style sheets"
+	        unless="docbook.available">
+
+    <input message="Downloading and unzipping (one time) the free docbook DTDs and XSLT packages.&#xA;
+The DTDs are copyrighted with the following permissions granted:
+  Copyright 1992-2004 HaL Computer Systems, Inc.,&#xA;
+  O'Reilly &amp; Associates, Inc., ArborText, Inc., Fujitsu Software&#xA;
+  Corporation, Norman Walsh, Sun Microsystems, Inc., and the&#xA;
+  Organization for the Advancement of Structured Information&#xA;
+  Standards (OASIS).&#xA;&#xA;
+  Permission to use, copy, modify and distribute the DocBook DTD&#xA;
+  and its accompanying documentation for any purpose and without fee&#xA;
+  is hereby granted in perpetuity, provided that the above copyright&#xA;
+  notice and this paragraph appear in all copies. The copyright&#xA;
+  holders make no representation about the suitability of the DTD for&#xA;
+  any purpose. It is provided &quot;as is&quot; without expressed or implied&#xA;
+  warranty.&#xA;&#xA;
+  If you modify the DocBook DTD in any way, except for declaring and&#xA;
+  referencing additional sets of general entities and declaring&#xA;
+  additional notations, label your DTD as a variant of DocBook. See&#xA;
+  the maintenance documentation for more information. &#xA;&#xA;
+The XSLT transforms come with the following copyright and permissions:&#xA;
+  Permission is hereby granted, free of charge, to any person&#xA;
+  obtaining a copy of this software and associated documentation&#xA;
+  files (the ``Software''), to deal in the Software without&#xA;
+  restriction, including without limitation the rights to use,&#xA;
+  copy, modify, merge, publish, distribute, sublicense, and/or&#xA;
+  sell copies of the Software, and to permit persons to whom the&#xA;
+  Software is furnished to do so, subject to the following&#xA;
+  conditions:&#xA;&#xA;
+  The above copyright notice and this permission notice shall be&#xA;
+  included in all copies or substantial portions of the Software.&#xA;
+ 	Except as contained in this notice, the names of individuals&#xA;
+ 	credited with contribution to this software shall not be used in&#xA;
+ 	advertising or otherwise to promote the sale, use or other&#xA;
+ 	dealings in this Software without prior written authorization&#xA;
+ 	from the individuals in question.&#xA;&#xA;
+ 	Any stylesheet derived from this Software that is publically&#xA;
+ 	distributed will be identified with a different name and the&#xA;
+ 	version strings in any derived Software will be changed so that&#xA;
+ 	no possibility of confusion between the derived package and this&#xA;
+ 	Software will exist.&#xA;&#xA;
+ 	Warranty&#xA;
+ 	--------&#xA;&#xA;
+ 	THE SOFTWARE IS PROVIDED &quot;AS IS&quot;, WITHOUT WARRANTY OF ANY KIND,&#xA;
+ 	EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES&#xA;
+ 	OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND&#xA;
+ 	NONINFRINGEMENT. IN NO EVENT SHALL NORMAN WALSH OR ANY OTHER&#xA;
+ 	CONTRIBUTOR BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,&#xA;
+ 	WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING&#xA;
+ 	FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR&#xA;
+ 	OTHER DEALINGS IN THE SOFTWARE.&#xA;
+ &#xA;&#xA;Ok to download?"  validargs="y,n"
+        addproperty="ok.download.docbooks" />
+
+    <condition property="do.download.docbooks">
+      <equals arg1="y" arg2="${ok.download.docbooks}"/>
+    </condition>
+    <fail unless="do.download.docbooks" message="Download aborted by user."/>
+
+		<mkdir dir="${docbook.xml.dir}" />
+		<echo message="Downloading and unzipping (one time) docbook-xml-${docbook.xml.version}.zip"/>
+		<get src="http://www.docbook.org/xml/${docbook.xml.version}/docbook-xml-${docbook.xml.version}.zip"
+		     dest="${tmp.dir}/docbook-system-xml.zip" />
+		<unzip src="${tmp.dir}/docbook-system-xml.zip" dest="${docbook.xml.dir}" />
+
+		<mkdir dir="${docbook.xsl.dir}" />
+		<echo message="Downloading and unzipping (one time) docbook-xsl-${docbook.xsl.version}.zip"/>
+		<get src="http://downloads.sourceforge.net/docbook/docbook-xsl-${docbook.xsl.version}.zip"
+		     dest="${tmp.dir}/docbook-system-xsl.zip" />
+
+		<unzip src="${tmp.dir}/docbook-system-xsl.zip" dest="${docbook.ref.dir}" />
+	</target>
+	
+	<!-- ======================================================================== -->
+	<!-- ==                                                                    == -->
+	<!-- == Saxon Converter macro that uses commons-resolver                   == -->
+	<!-- ==   and xerces parser (to handle XIncludes)                          == -->
+	<!-- ==                                                                    == -->
+	<!-- == input: The file to transform                                       == -->
+	<!-- == output: The transformation result                                  == -->
+	<!-- == style: The Style Sheet used for the transformation                 == -->
+	<!-- ==                                                                    == -->
+	<!-- ======================================================================== -->
+	<macrodef name="saxon">
+		<attribute name="input"/>
+		<attribute name="output"/>
+		<attribute name="style"/>
+		<attribute name="params" default=""/>
+		<sequential>
+			<!--echo message="input"/>
+			<echo message="@{input}"/-->
+			<java classname="com.icl.saxon.StyleSheet" fork="true"
+            dir="${docbook.tool.project}" classpathref="saxon_and_fop.classpath">
+				<!-- The jvm args install the xerces parser to allow use of XIncludes -->
+				<jvmarg value="-Djavax.xml.parsers.DocumentBuilderFactory=org.apache.xerces.jaxp.DocumentBuilderFactoryImpl"/>
+				<jvmarg value="-Djavax.xml.parsers.SAXParserFactory=org.apache.xerces.jaxp.SAXParserFactoryImpl"/>
+				<jvmarg value="-Dorg.apache.xerces.xni.parser.XMLParserConfiguration=org.apache.xerces.parsers.XIncludeParserConfiguration"/>
+				<arg line="-x org.apache.xml.resolver.tools.ResolvingXMLReader"/>
+				<arg line="-y org.apache.xml.resolver.tools.ResolvingXMLReader"/>
+				<arg line="-r org.apache.xml.resolver.tools.CatalogResolver"/>
+				<!--arg value="-T"/-->
+				<arg value="-o"/>
+				<arg value="@{output}"/>
+				<arg value="@{input}"/>
+				<arg value="@{style}"/>
+        <arg line="@{params}"/>
+			</java>
+		</sequential>
+	</macrodef>
+
+</project>

Added: incubator/uima/uimaj/trunk/uima-docbook-tool/build/samples/build_book-name.xml
URL: http://svn.apache.org/viewvc/incubator/uima/uimaj/trunk/uima-docbook-tool/build/samples/build_book-name.xml?view=auto&rev=526279
==============================================================================
--- incubator/uima/uimaj/trunk/uima-docbook-tool/build/samples/build_book-name.xml (added)
+++ incubator/uima/uimaj/trunk/uima-docbook-tool/build/samples/build_book-name.xml Fri Apr  6 14:06:38 2007
@@ -0,0 +1,30 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+   Licensed to the Apache Software Foundation (ASF) under one
+   or more contributor license agreements.  See the NOTICE file
+   distributed with this work for additional information
+   regarding copyright ownership.  The ASF licenses this file
+   to you 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.    
+-->
+
+<!-- set the basedir value to point to the top level of the project -->
+
+<project name="name of book to build" default="all" basedir=".">
+  
+  <property name="book_name" value="name of book to build"/>
+  
+  <import file="${basedir}/../uima-docbook-tool/build/build-docbook.xml}"/>  
+  
+</project>

Added: incubator/uima/uimaj/trunk/uima-docbook-tool/catalog/docbook.version_4.4/CatalogManager.properties
URL: http://svn.apache.org/viewvc/incubator/uima/uimaj/trunk/uima-docbook-tool/catalog/docbook.version_4.4/CatalogManager.properties?view=auto&rev=526279
==============================================================================
--- incubator/uima/uimaj/trunk/uima-docbook-tool/catalog/docbook.version_4.4/CatalogManager.properties (added)
+++ incubator/uima/uimaj/trunk/uima-docbook-tool/catalog/docbook.version_4.4/CatalogManager.properties Fri Apr  6 14:06:38 2007
@@ -0,0 +1,38 @@
+#  Licensed to the Apache Software Foundation (ASF) under one
+#  or more contributor license agreements.  See the NOTICE file
+#  distributed with this work for additional information
+#  regarding copyright ownership.  The ASF licenses this file
+#  to you 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.    
+
+# see http://xml.apache.org/commons/components/apidocs/resolver/org/apache/xml/resolver/CatalogManager.html
+# for a description of the contents
+
+# 	The semicolon-delimited list of catalog files
+catalogs = xml-catalog.xml
+
+relative-catalogs = true
+
+# If non-zero, the Catalog classes will print informative 
+# and debugging messages. The higher the number, the more messages.
+verbosity = 0
+
+prefer = system
+
+# Should a single catalog be constructed for all parsing, 
+# or should a different catalog be created for each parser?
+static-catalog = yes
+
+# If the source document contains "oasis-xml-catalog" processing instructions, 
+# should they be used?
+allow-oasis-xml-catalog-pi = yes

Added: incubator/uima/uimaj/trunk/uima-docbook-tool/catalog/docbook.version_4.4/xml-catalog.xml
URL: http://svn.apache.org/viewvc/incubator/uima/uimaj/trunk/uima-docbook-tool/catalog/docbook.version_4.4/xml-catalog.xml?view=auto&rev=526279
==============================================================================
--- incubator/uima/uimaj/trunk/uima-docbook-tool/catalog/docbook.version_4.4/xml-catalog.xml (added)
+++ incubator/uima/uimaj/trunk/uima-docbook-tool/catalog/docbook.version_4.4/xml-catalog.xml Fri Apr  6 14:06:38 2007
@@ -0,0 +1,44 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+   Licensed to the Apache Software Foundation (ASF) under one
+   or more contributor license agreements.  See the NOTICE file
+   distributed with this work for additional information
+   regarding copyright ownership.  The ASF licenses this file
+   to you 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.
+-->
+
+<!-- see http://www.oasis-open.org/committees/entity/spec-2001-08-06.html 
+     for a description of all the elements and attributes -->
+
+<catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog">
+
+  <!-- Translate DocBook XML 4.4 system ids to local file names -->
+  <rewriteSystem
+    systemIdStartString="http://www.oasis-open.org/docbook/xml/4.4/"
+    rewritePrefix="../../tools/docbook-versions/docbook-xml-4.4/"/>
+ 
+  <rewriteSystem
+    systemIdStartString="http://docbook.sourceforge.net/release/xsl/current/"
+    rewritePrefix="../../tools/docbook-versions/docbook-xsl-1.70.0/"/>
+
+  <!-- Translate DocBook XML 4.4 public ids to local file names -->
+  <nextCatalog
+    catalog="../../tools/docbook-versions/docbook-xml-4.4/catalog.xml"/>
+
+  <rewriteURI
+    uriStartString="http://docbook.sourceforge.net/release/xsl/current/"
+    rewritePrefix="../../tools/docbook-versions/docbook-xsl-1.70.0/"/>
+
+</catalog>

Added: incubator/uima/uimaj/trunk/uima-docbook-tool/catalog/docbook.version_4.5/CatalogManager.properties
URL: http://svn.apache.org/viewvc/incubator/uima/uimaj/trunk/uima-docbook-tool/catalog/docbook.version_4.5/CatalogManager.properties?view=auto&rev=526279
==============================================================================
--- incubator/uima/uimaj/trunk/uima-docbook-tool/catalog/docbook.version_4.5/CatalogManager.properties (added)
+++ incubator/uima/uimaj/trunk/uima-docbook-tool/catalog/docbook.version_4.5/CatalogManager.properties Fri Apr  6 14:06:38 2007
@@ -0,0 +1,38 @@
+#  Licensed to the Apache Software Foundation (ASF) under one
+#  or more contributor license agreements.  See the NOTICE file
+#  distributed with this work for additional information
+#  regarding copyright ownership.  The ASF licenses this file
+#  to you 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.    
+
+# see http://xml.apache.org/commons/components/apidocs/resolver/org/apache/xml/resolver/CatalogManager.html
+# for a description of the contents
+
+# 	The semicolon-delimited list of catalog files
+catalogs = xml-catalog.xml
+
+relative-catalogs = yes
+
+# If non-zero, the Catalog classes will print informative 
+# and debugging messages. The higher the number, the more messages.
+verbosity = 0
+
+prefer = system
+
+# Should a single catalog be constructed for all parsing, 
+# or should a different catalog be created for each parser?
+static-catalog = yes
+
+# If the source document contains "oasis-xml-catalog" processing instructions, 
+# should they be used?
+allow-oasis-xml-catalog-pi = yes

Added: incubator/uima/uimaj/trunk/uima-docbook-tool/catalog/docbook.version_4.5/xml-catalog.xml
URL: http://svn.apache.org/viewvc/incubator/uima/uimaj/trunk/uima-docbook-tool/catalog/docbook.version_4.5/xml-catalog.xml?view=auto&rev=526279
==============================================================================
--- incubator/uima/uimaj/trunk/uima-docbook-tool/catalog/docbook.version_4.5/xml-catalog.xml (added)
+++ incubator/uima/uimaj/trunk/uima-docbook-tool/catalog/docbook.version_4.5/xml-catalog.xml Fri Apr  6 14:06:38 2007
@@ -0,0 +1,44 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+   Licensed to the Apache Software Foundation (ASF) under one
+   or more contributor license agreements.  See the NOTICE file
+   distributed with this work for additional information
+   regarding copyright ownership.  The ASF licenses this file
+   to you 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.
+-->
+
+<!-- see http://www.oasis-open.org/committees/entity/spec-2001-08-06.html 
+     for a description of all the elements and attributes -->
+
+<catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog">
+
+  <!-- Translate DocBook XML 4.5 system ids to local file names -->
+  <rewriteSystem
+    systemIdStartString="http://www.oasis-open.org/docbook/xml/4.5/"
+    rewritePrefix="../../tools/docbook-versions/docbook-xml-4.5/"/>
+ 
+  <rewriteSystem
+    systemIdStartString="http://docbook.sourceforge.net/release/xsl/current/"
+    rewritePrefix="../../tools/docbook-versions/docbook-xsl-1.72.0/"/>
+
+  <!-- Translate DocBook XML 4.5 public ids to local file names -->
+  <nextCatalog
+    catalog="../../tools/docbook-versions/docbook-xml-4.5/catalog.xml"/>
+
+  <rewriteURI
+    uriStartString="http://docbook.sourceforge.net/release/xsl/current/"
+    rewritePrefix="../../tools/docbook-versions/docbook-xsl-1.72.0/"/>
+
+</catalog>

Added: incubator/uima/uimaj/trunk/uima-docbook-tool/properties/default.docbook.properties
URL: http://svn.apache.org/viewvc/incubator/uima/uimaj/trunk/uima-docbook-tool/properties/default.docbook.properties?view=auto&rev=526279
==============================================================================
--- incubator/uima/uimaj/trunk/uima-docbook-tool/properties/default.docbook.properties (added)
+++ incubator/uima/uimaj/trunk/uima-docbook-tool/properties/default.docbook.properties Fri Apr  6 14:06:38 2007
@@ -0,0 +1,55 @@
+#  Licensed to the Apache Software Foundation (ASF) under one
+#  or more contributor license agreements.  See the NOTICE file
+#  distributed with this work for additional information
+#  regarding copyright ownership.  The ASF licenses this file
+#  to you 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.    
+
+
+# default version info
+# which version of fop to use
+fop.version = 0.93
+
+# which version of docbook to use
+docbook.xml.version = 4.5
+docbook.xsl.version = 1.72.0
+
+# which version of saxon to use
+saxon.version = 6.5.5
+
+# which version of jai to use 
+# jai = Java Advanced Imaging - need by FOP to process included images
+#  ##########  NOTE only 1.1.3 supported in the autodownload part ########
+jai.version = 1.1.3
+
+# Where all the sources are located
+src.dir = ${basedir}/src
+
+# Location of the docbook files
+docbook.src.dir = ${src.dir}/docbook
+
+# Location of olink info
+olink.dir = ${src.dir}/olink
+
+# Target Directory
+target.dir = ${basedir}/target
+
+# The size of the PDF pages.
+paper.type= Letter
+
+# use saxon version 6.5.5
+saxon.version = 6.5.5
+# We use SAXON as our XSLT processor and this is the custom jar included with
+# the docbook XML distribution.
+xslt-db.jar = saxon653.jar
+

Added: incubator/uima/uimaj/trunk/uima-docbook-tool/properties/samples/local.docbook.properties
URL: http://svn.apache.org/viewvc/incubator/uima/uimaj/trunk/uima-docbook-tool/properties/samples/local.docbook.properties?view=auto&rev=526279
==============================================================================
--- incubator/uima/uimaj/trunk/uima-docbook-tool/properties/samples/local.docbook.properties (added)
+++ incubator/uima/uimaj/trunk/uima-docbook-tool/properties/samples/local.docbook.properties Fri Apr  6 14:06:38 2007
@@ -0,0 +1,27 @@
+# Copyright 2006 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.
+
+# which version of fop to use
+fop.version = 0.93
+
+# which version of docbook to use
+docbook.xml.version = 4.5
+docbook.xsl.version = 1.72.0
+
+
+# where to get css and styles
+css_styles_prefix = ${docbook.tool.project}/styles/uima-style
+
+# where to get title page and save results
+local.titlepage.dir = ${basedir}/src/styles/titlepage
\ No newline at end of file

Added: incubator/uima/uimaj/trunk/uima-docbook-tool/styles/common/samples/sample-html-chunked.xsl
URL: http://svn.apache.org/viewvc/incubator/uima/uimaj/trunk/uima-docbook-tool/styles/common/samples/sample-html-chunked.xsl?view=auto&rev=526279
==============================================================================
--- incubator/uima/uimaj/trunk/uima-docbook-tool/styles/common/samples/sample-html-chunked.xsl (added)
+++ incubator/uima/uimaj/trunk/uima-docbook-tool/styles/common/samples/sample-html-chunked.xsl Fri Apr  6 14:06:38 2007
@@ -0,0 +1,41 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements.  See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership.  The ASF licenses this file
+ to you 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.
+-->
+
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+                version='1.0'>
+   
+  <!-- S A M P L E  -->
+  
+  <!-- note that xsl:import elements must appear FIRST
+       and their href strings must be literal (no variables allowed) -->
+    
+  <!-- import docbook system from the shared uima-docbook-tool project -->  
+  <xsl:import href="../../../uima-docbook-tool/tools/docbook-versions/docbook-xsl-1.72.0/html/chunk.xsl" />
+  
+  <!-- import the standard uima-style of formatting from the shared uima-docbook-tool project -->
+  <xsl:import href="../../../uima-docbook-tool/styles/uima-style/top/html-chunked.xsl" />  
+    
+  <!-- The script will generate a title page in ${local.titlepage.dir} -->
+  <!-- this generate xsl file needs to be included here -->
+  <!-- Make sure the path agrees with your setting of ${local.titlepage.dir} in local.docbook.properties -->
+  <xsl:include href="../titlepage/titlepage-html.xsl"/>
+   
+</xsl:stylesheet>

Added: incubator/uima/uimaj/trunk/uima-docbook-tool/styles/common/samples/sample-html-single.xsl
URL: http://svn.apache.org/viewvc/incubator/uima/uimaj/trunk/uima-docbook-tool/styles/common/samples/sample-html-single.xsl?view=auto&rev=526279
==============================================================================
--- incubator/uima/uimaj/trunk/uima-docbook-tool/styles/common/samples/sample-html-single.xsl (added)
+++ incubator/uima/uimaj/trunk/uima-docbook-tool/styles/common/samples/sample-html-single.xsl Fri Apr  6 14:06:38 2007
@@ -0,0 +1,41 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements.  See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership.  The ASF licenses this file
+ to you 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.
+-->
+
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+                version='1.0'>
+   
+  <!-- S A M P L E  -->
+  
+  <!-- note that xsl:import elements must appear FIRST
+       and their href strings must be literal (no variables allowed) -->
+    
+  <!-- import docbook system from the shared uima-docbook-tool project -->  
+  <xsl:import href="../../../uima-docbook-tool/tools/docbook-versions/docbook-xsl-1.72.0/html/docbook.xsl" />
+  
+  <!-- import the standard uima-style of formatting from the shared uima-docbook-tool project -->
+  <xsl:import href="../../../uima-docbook-tool/styles/uima-style/top/html-single.xsl" />  
+    
+  <!-- The script will generate a title page in ${local.titlepage.dir} -->
+  <!-- this generate xsl file needs to be included here -->
+  <!-- Make sure the path agrees with your setting of ${local.titlepage.dir} in local.docbook.properties -->
+  <xsl:include href="../titlepage/titlepage-html.xsl"/>
+   
+</xsl:stylesheet>

Added: incubator/uima/uimaj/trunk/uima-docbook-tool/styles/common/samples/sample-pdf.xsl
URL: http://svn.apache.org/viewvc/incubator/uima/uimaj/trunk/uima-docbook-tool/styles/common/samples/sample-pdf.xsl?view=auto&rev=526279
==============================================================================
--- incubator/uima/uimaj/trunk/uima-docbook-tool/styles/common/samples/sample-pdf.xsl (added)
+++ incubator/uima/uimaj/trunk/uima-docbook-tool/styles/common/samples/sample-pdf.xsl Fri Apr  6 14:06:38 2007
@@ -0,0 +1,41 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements.  See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership.  The ASF licenses this file
+ to you 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.
+-->
+
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+                version='1.0'>
+   
+  <!-- S A M P L E  -->
+  
+  <!-- note that xsl:import elements must appear FIRST
+       and their href strings must be literal (no variables allowed) -->
+  
+  <!-- import docbook system from the shared uima-docbook-tool project -->  
+  <xsl:import href="../../../uima-docbook-tool/tools/docbook-versions/docbook-xsl-1.72.0/fo/docbook.xsl" />
+  
+  <!-- import the standard uima-style of formatting from the shared uima-docbook-tool project -->
+  <xsl:import href="../../../uima-docbook-tool/styles/uima-style/top/pdf.xsl" />  
+    
+  <!-- The script will generate a title page in ${local.titlepage.dir} -->
+  <!-- this generate xsl file needs to be included here -->
+  <!-- Make sure the path agrees with your setting of ${local.titlepage.dir} in local.docbook.properties -->
+  <xsl:include href="../titlepage/titlepage-html.xsl"/>
+   
+</xsl:stylesheet>

Added: incubator/uima/uimaj/trunk/uima-docbook-tool/styles/uima-style/common/html-pdf.xsl
URL: http://svn.apache.org/viewvc/incubator/uima/uimaj/trunk/uima-docbook-tool/styles/uima-style/common/html-pdf.xsl?view=auto&rev=526279
==============================================================================
--- incubator/uima/uimaj/trunk/uima-docbook-tool/styles/uima-style/common/html-pdf.xsl (added)
+++ incubator/uima/uimaj/trunk/uima-docbook-tool/styles/uima-style/common/html-pdf.xsl Fri Apr  6 14:06:38 2007
@@ -0,0 +1,105 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements.  See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership.  The ASF licenses this file
+ to you 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.
+-->
+
+<!-- This is the common xsl parameterization shared by all formats -->
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+                version='1.0'>
+
+  <xsl:attribute-set name="root.properties">
+      <xsl:attribute name="text-align">left</xsl:attribute>
+  </xsl:attribute-set>
+
+  <!-- ##################
+       # Admonitions    #
+       ################## -->   
+
+  <!-- Use nice graphics for admonitions 
+  <xsl:param name="admon.graphics">'1'</xsl:param>
+    -->
+  <xsl:param name="admon.graphics.path" select="'../images/'"/>
+  <xsl:param name="navig.graphics.path" select="'../images/'"/>
+  <xsl:param name="callout.graphics.path" select="'../images/callouts/'"/>
+  <xsl:param name="admon.graphics.extension">.gif</xsl:param>
+  <xsl:param name="callout.graphics.extension">.gif</xsl:param>
+ 
+<!--###################################################
+                      olink styling
+    ################################################### -->  
+  <xsl:param name="olink.doctitle" select="'yes'"/>
+  
+  <!--###################################################
+                         Labels
+    ################################################### -->
+
+    <!-- Label Chapters and Sections (numbering) -->
+    <xsl:param name="chapter.autolabel" select="1"/>
+    <xsl:param name="section.autolabel" select="1"/>
+    <xsl:param name="section.autolabel.max.depth" select="3"/>
+
+    <xsl:param name="section.label.includes.component.label" select="1"/>
+  
+    <xsl:param name="table.footnote.number.format" select="'1'"/>
+ 
+
+<!--###################################################
+                         Callouts
+    ################################################### -->
+
+    <!-- don't use images for callouts -->
+    <xsl:param name="callout.graphics">0</xsl:param>
+    <xsl:param name="callout.unicode">1</xsl:param>
+
+    <!-- Place callout marks at this column in annotated areas -->
+    <xsl:param name="callout.defaultcolumn">90</xsl:param>
+
+  <!--###################################################
+                      Table of Contents
+    ################################################### -->
+
+    <xsl:param name="generate.toc">
+      book      toc,title
+    </xsl:param>
+
+  <!--###################################################
+                          Misc
+    ################################################### -->
+
+    <!-- have ulinks with text show the link in a footnote -->
+    <xsl:param name="ulink.footnotes" select="1"/>
+    <xsl:param name="ulink.show" select="1"/>
+
+    <!-- Glossary indent -->
+    <xsl:param name="glossterm.width" select="'1.4in'"/>
+
+    <!-- Placement of titles -->
+    <xsl:param name="formal.title.placement">
+        figure after
+        example after
+        equation before
+        table before
+        procedure before
+    </xsl:param>
+
+  <!-- Format Variable Lists as Blocks (prevents horizontal overflow) -->
+  <xsl:param name="variablelist.as.blocks">1</xsl:param>
+  
+</xsl:stylesheet>
+

Added: incubator/uima/uimaj/trunk/uima-docbook-tool/styles/uima-style/common/html.xsl
URL: http://svn.apache.org/viewvc/incubator/uima/uimaj/trunk/uima-docbook-tool/styles/uima-style/common/html.xsl?view=auto&rev=526279
==============================================================================
--- incubator/uima/uimaj/trunk/uima-docbook-tool/styles/uima-style/common/html.xsl (added)
+++ incubator/uima/uimaj/trunk/uima-docbook-tool/styles/uima-style/common/html.xsl Fri Apr  6 14:06:38 2007
@@ -0,0 +1,57 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements.  See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership.  The ASF licenses this file
+ to you 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.
+-->
+
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+                version='1.0'>
+
+  <!-- next 3 cause the role="xxx" to be propagated as class="xxx" in the output html -->
+  <xsl:param name="para.propagates.style" select="1"/>
+  <xsl:param name="emphasis.propagates.style" select="1"/>
+  <xsl:param name="phrase.propagates.style" select="1"/>
+ 
+  <!-- turn on id attributes for major components --> 
+  <xsl:param name="generate.id.attributes" select="1"/>
+
+  <xsl:param name="chunker.output.indent" select="'yes'"/>
+  <xsl:param name="chunker.output.doctype-public" select="'-//W3C//DTD HTML 4.0 Transitional//EN'"/>
+  <xsl:param name="table.frame.border.color" select="'black'"/>
+  <xsl:param name="table.cell.border.color"  select="'black'"/>
+
+  <xsl:param name="table.borders.with.css" select="1"/>
+  <xsl:param name="html.stylesheet.type">text/css</xsl:param>           
+
+  <!--
+  <xsl:param name="use.extensions">1</xsl:param>  causes lots of failed to load image msgs !
+  <xsl:param name="graphicsize.extension">1</xsl:param>
+    -->
+
+<!-- Remove "Chapter" from the Chapter titles... 
+  <xsl:param name="local.l10n.xml" select="document('')"/>
+  <l:i18n xmlns:l="http://docbook.sourceforge.net/xmlns/l10n/1.0">
+    <l:l10n language="en">
+      <l:context name="title-numbered">
+        <l:template name="chapter" text="%n.&#160;%t"/>
+        <l:template name="section" text="%n&#160;%t"/>
+      </l:context>
+    </l:l10n>
+  </l:i18n>
+  -->    
+</xsl:stylesheet>

Added: incubator/uima/uimaj/trunk/uima-docbook-tool/styles/uima-style/css/stylesheet-html.css
URL: http://svn.apache.org/viewvc/incubator/uima/uimaj/trunk/uima-docbook-tool/styles/uima-style/css/stylesheet-html.css?view=auto&rev=526279
==============================================================================
--- incubator/uima/uimaj/trunk/uima-docbook-tool/styles/uima-style/css/stylesheet-html.css (added)
+++ incubator/uima/uimaj/trunk/uima-docbook-tool/styles/uima-style/css/stylesheet-html.css Fri Apr  6 14:06:38 2007
@@ -0,0 +1,302 @@
+/*
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements.  See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership.  The ASF licenses this file
+ to you 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.
+*/
+
+html {
+    padding:        0pt;
+    margin:         0pt;
+}
+
+body {
+    margin-top:     1em;
+    margin-bottom:  1em;
+    margin-left:    16%;
+    margin-right:   8%;
+    font-size: 10.5pt;
+    line-height: 1.3;
+    font-family:     "Palatino Linotype", "Times New Roman", Times, serif;
+}
+
+div {
+    margin:         0pt;
+}
+
+p {
+    text-align:     left;
+    margin-bottom:  .6em;
+    line-height:    1.4;
+}
+
+td {   line-height:    1.2;
+       padding: .3em;
+       }
+
+hr {
+    margin-top:     .6em;
+    margin-bottom:  .6em;
+    margin-left:    0pt;
+    margin-right:   0pt;
+    border:         1px solid gray;
+    background:     gray;
+}
+
+h2,h3,h4,h5 {
+  margin: 0 0 0.5em 0;
+  page-break-after: avoid;
+  font-family: Helvetica, Arial, sans-serif;
+  font-weight: bold;
+    color:          #525D76;
+}
+
+h2 {
+  margin-left: -10%; }
+
+h2, h3, h4 { margin-top: 1em; }
+
+/* later rules of same specificity override earlier ones */
+/* cant use ">" because IE doesn't recognize */
+
+div.chapter div.titlepage h2.title {
+  margin-bottom: 1.5em;
+  font-size: 1.6em;
+  letter-spacing: -0.07ex;
+  border-top:solid black 2.25pt;
+}
+
+/* this one comes after and is therefore more specific */
+
+div.section div.titlepage h2.title {  /* h2 */
+  font-size: 1.3em;
+  border-top:solid black 1.00pt;
+}
+
+h3 {
+  margin-left: -5%;
+  font-size: 1.2em;
+  border-top:solid black .75pt;
+}
+
+div.note h3, div.tip h3 {
+    margin-left: 0;
+    font-size: 1.2em;
+    border-top: none;
+    margin-top: 0em;
+}
+
+h4 {
+  font-size: 1.1em;
+}
+
+a {
+   text-decoration: underline;
+   /*color: black;*/
+}
+
+a:hover {
+   text-decoration: underline;
+   color: black;
+}
+
+h3,h4,h5 {
+    line-height:    1.3;
+    margin-top:     1.5em;
+    font-family:    Arial, Sans-serif;
+}
+
+h1.title {
+    text-align:     left;
+
+    margin-top:     2em;
+    margin-bottom:  2em;
+    margin-left:    0pt;
+    margin-right:   0pt;
+}
+
+h2.subtitle, h3.subtitle {
+    text-align:     left;
+    margin-top:     2em;
+    margin-bottom:  2em;
+    text-transform: uppercase;
+}
+
+h3.author, p.othercredit {
+    font-size:      0.9em;
+    font-weight:    normal;
+    font-style:     oblique;
+    text-align:     left;
+    color:          #525D76;
+}
+
+td.tableSubhead {
+    font-weight:    bold;
+    background-color: silver;
+}
+
+div.titlepage {
+}
+
+div.section {
+}
+
+
+div.authorgroup
+{
+    text-align:     left;
+    margin-bottom:  3em;
+    display:        block;
+}
+
+div.toc, div.list-of-examples, div.list-of-figures {
+
+    margin-bottom:  3em;
+}
+
+
+div.itemizedlist {
+    margin-top:     0.5em;
+    margin-bottom:  0.5em;
+}
+
+ol,ul {
+}
+
+li {
+}
+
+pre {
+    margin:         .75em 0;
+    line-height:    1.25;
+    color:          black;
+}
+
+pre.programlisting {
+    font-size:      9pt;
+    padding:        5pt 2pt;
+    border:         1pt solid black;
+    background:     #eeeeee;
+}
+
+div.table {
+    margin:         1em;
+    padding:        0.5em;
+    text-align:     center;
+}
+
+div.table table {
+ /*    display:        block; */   /* in firefox, breaks centering */
+    margin-left: auto;  /* see http://theodorakis.net/tablecentertest.html */
+    margin-right: auto;
+}
+
+div.table td {
+    padding-right:  5px;
+    padding-left:   5px;
+}
+
+div.table p.title {
+    text-align:     center;
+    margin-left:    5%;
+    margin-right:   5%;
+}
+
+p.releaseinfo, .copyright {
+    font-size:      0.9em;
+    text-align:     left;
+    margin:         0px;
+    padding:        0px;
+}
+
+div.note, div.important, div.example, div.informalexample, div.tip, div.caution {
+    margin:         1em;
+    padding:        0.5em;
+    border:         1px solid gray;
+    background-color: #f8f8e0;
+}
+
+div.important th, div.note th, div.tip th {
+    text-align:     left;
+    border-bottom:  solid 1px gray;
+}
+
+div.navheader, div.navheader table {
+    font-family:    sans-serif;
+    font-size:      12px;
+}
+
+div.navfooter, div.navfooter table {
+    font-family:    sans-serif;
+    font-size:      12px;
+}
+
+div.figure, div.screenshot {
+    text-align:     center;  /* needed for ms5 */
+    margin-top:     1em;
+    margin-bottom:  1em;
+}
+
+div.figure table, div.screenshot table {    /* see http://theodorakis.net/tablecentertest.html */
+    margin-left: auto;
+    margin-right: auto;
+}
+
+div.figure p.title {
+    text-align:     center; 
+    margin-left:    15%;
+    margin-right:   15%;
+}
+
+div.example p.title {
+    margin-top:     0em;
+    margin-bottom:  0.6em;
+    text-align:     left;
+    padding-bottom: 0.4em;
+    border-bottom:  solid 1px gray;
+}
+
+div.figure img {
+    border:         1px solid gray;
+    padding:        0.5em;
+    margin:         0.5em;
+}
+
+div.revhistory {
+    font-size:      0.8em;
+    width:          90%;
+    margin-left:    5%;
+    margin-top:     3em;
+    margin-bottom:  3em;
+}
+
+div.revhistory table {
+    font-family:    sans-serif;
+    font-size:      12px;
+  border-collapse: collapse;
+}
+
+div.revhistory table tr {
+  border:         solid 1px gray;
+}
+
+div.revhistory table th {
+  border: none;
+}
+
+span.bold-italic {
+  font-weight: bold;
+  font-style: italic;
+}

Added: incubator/uima/uimaj/trunk/uima-docbook-tool/styles/uima-style/titlepage/titlepage-html.xml
URL: http://svn.apache.org/viewvc/incubator/uima/uimaj/trunk/uima-docbook-tool/styles/uima-style/titlepage/titlepage-html.xml?view=auto&rev=526279
==============================================================================
--- incubator/uima/uimaj/trunk/uima-docbook-tool/styles/uima-style/titlepage/titlepage-html.xml (added)
+++ incubator/uima/uimaj/trunk/uima-docbook-tool/styles/uima-style/titlepage/titlepage-html.xml Fri Apr  6 14:06:38 2007
@@ -0,0 +1,60 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements.  See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership.  The ASF licenses this file
+ to you 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.
+-->
+
+<t:templates xmlns:t="http://nwalsh.com/docbook/xsl/template/1.0"
+	     xmlns:param="http://nwalsh.com/docbook/xsl/template/1.0/param"
+             xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+
+<!-- ==================================================================== -->
+
+<t:titlepage t:element="book" t:wrapper="div" class="titlepage">
+  <t:titlepage-content t:side="recto">
+    <title/>
+    <subtitle/>
+    <corpauthor/>
+    <authorgroup/>
+    <author/>
+    <mediaobject/>
+    <othercredit/>
+    <releaseinfo/>
+    <copyright/>
+    <legalnotice/>
+    <pubdate/>
+    <revision/>
+    <revhistory/>
+    <abstract/>
+  </t:titlepage-content>
+
+  <t:titlepage-content t:side="verso">
+  </t:titlepage-content>
+
+  <t:titlepage-separator>
+    <hr/>
+  </t:titlepage-separator>
+
+  <t:titlepage-before t:side="recto">
+  </t:titlepage-before>
+
+  <t:titlepage-before t:side="verso">
+  </t:titlepage-before>
+</t:titlepage>
+
+</t:templates>

Added: incubator/uima/uimaj/trunk/uima-docbook-tool/styles/uima-style/titlepage/titlepage-pdf.xml
URL: http://svn.apache.org/viewvc/incubator/uima/uimaj/trunk/uima-docbook-tool/styles/uima-style/titlepage/titlepage-pdf.xml?view=auto&rev=526279
==============================================================================
--- incubator/uima/uimaj/trunk/uima-docbook-tool/styles/uima-style/titlepage/titlepage-pdf.xml (added)
+++ incubator/uima/uimaj/trunk/uima-docbook-tool/styles/uima-style/titlepage/titlepage-pdf.xml Fri Apr  6 14:06:38 2007
@@ -0,0 +1,98 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE t:templates [
+<!ENTITY hsize0 "10pt">
+<!ENTITY hsize1 "12pt">
+<!ENTITY hsize2 "14pt">
+<!ENTITY hsize3 "16pt">
+<!ENTITY hsize4 "18pt">
+<!ENTITY hsize5 "20pt">
+<!ENTITY hsize0space "7.5pt"> <!-- 0.75 * hsize0 -->
+<!ENTITY hsize1space "9pt"> <!-- 0.75 * hsize1 -->
+<!ENTITY hsize2space "10.5pt"> <!-- 0.75 * hsize2 -->
+<!ENTITY hsize3space "12pt"> <!-- 0.75 * hsize3 -->
+<!ENTITY hsize4space "13.5pt"> <!-- 0.75 * hsize4 -->
+<!ENTITY hsize5space "15pt"> <!-- 0.75 * hsize5 -->
+]>
+
+
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements.  See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership.  The ASF licenses this file
+ to you 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.
+-->
+<t:templates xmlns:t="http://nwalsh.com/docbook/xsl/template/1.0"
+  xmlns:param="http://nwalsh.com/docbook/xsl/template/1.0/param"
+  xmlns:fo="http://www.w3.org/1999/XSL/Format"
+  xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+  
+  <t:titlepage t:element="book" t:wrapper="fo:block">
+    <t:titlepage-content t:side="recto">
+      <title t:named-template="division.title"
+        param:node="ancestor-or-self::book[1]" text-align="center"
+        font-size="&hsize5;" space-before="&hsize5space;" font-weight="bold"
+        font-family="{$title.fontset}"/>
+      <subtitle text-align="center" font-size="&hsize4;"
+        space-before="&hsize4space;" font-family="{$title.fontset}"/>
+      
+      <corpauthor space-before="0.5em" font-size="&hsize2;"/>
+      <authorgroup space-before="0.5em" font-size="&hsize2;"/>
+      <author space-before="0.5em" font-size="&hsize2;"/>
+      
+      <othercredit space-before="0.5em"/>
+      <mediaobject space-before="2em" space-after="2em"/>
+      <releaseinfo space-before="5em"/>
+      <revision space-before="0.5em"/>
+      <revhistory space-before="0.5em"/>
+      <abstract space-before="0.5em" text-align="start" margin-left="0.5in"
+        margin-right="0.5in" font-family="{$body.fontset}"/>
+    </t:titlepage-content>
+    
+    <t:titlepage-content t:side="verso">
+      <copyright space-before="0.5em"/>
+      <legalnotice text-align="start" margin-left="0.5in" margin-right="0.5in"
+        font-family="{$body.fontset}"/>
+      <pubdate space-before="3.5em"/>
+    </t:titlepage-content>
+
+    
+    <t:titlepage-separator>
+    </t:titlepage-separator>
+     <!--   
+    <t:titlepage-before t:side="recto">
+    </t:titlepage-before>
+    
+    <t:titlepage-before t:side="verso">
+    </t:titlepage-before>
+      -->
+  </t:titlepage>
+ 
+  <!-- 
+  <t:titlepage element="chapter" wrapper="fo:block">
+    <t:titlepage-content t:side="recto">
+      <title named-template="component.title"
+        param:node="ancestor-or-self::chapter[1]"
+        margin-left="{$title.margin.left}" 
+        font-size="&hsize5;" 
+        font-weight="bold"
+        font-family="{$title.font.family}" 
+        border-top="solid black 2pt"/>
+    </t:titlepage-content>
+  </t:titlepage>
+ -->
+  
+  <!-- ==================================================================== -->
+  
+</t:templates>