[UIMA-1914] Initial import.

git-svn-id: https://svn.apache.org/repos/asf/uima/build/trunk/uima-build-resources@1027912 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/pom.xml b/pom.xml
new file mode 100644
index 0000000..0d03178
--- /dev/null
+++ b/pom.xml
@@ -0,0 +1,51 @@
+<!--

+

+    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.

+-->

+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">

+  <modelVersion>4.0.0</modelVersion>

+

+  <parent>

+    <groupId>org.apache.uima</groupId>

+    <artifactId>parent-pom</artifactId>

+    <version>1-SNAPSHOT</version>

+  </parent>

+  

+  <groupId>org.apache.uima</groupId>

+  <artifactId>uima-build-resources</artifactId>

+  <version>1-SNAPSHOT</version>

+  

+  <name>UIMA shared build resources</name>

+  <description>This Jar contains resources

+    referred to by maven coordinates,

+    needed during building

+  </description>

+ 

+  <scm>

+    <connection>

+      scm:svn:http://svn.apache.org/repos/asf/uima/build/trunk/uima-build-resources

+    </connection>

+    <developerConnection>

+      scm:svn:https://svn.apache.org/repos/asf/uima/build/trunk/uima-build-resources

+    </developerConnection>

+    <url>

+      http://svn.apache.org/viewvc/uima/build/trunk/uima-build-resources

+    </url>

+  </scm>

+      

+</project>
\ No newline at end of file
diff --git a/src/main/resources/assemblies/multimodule-source-release.xml b/src/main/resources/assemblies/multimodule-source-release.xml
new file mode 100644
index 0000000..cc421f9
--- /dev/null
+++ b/src/main/resources/assemblies/multimodule-source-release.xml
@@ -0,0 +1,144 @@
+<?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.

+-->

+

+<!-- create a source assembly for multi-module projects 

+     Runs only at the top level -->

+     

+<assembly>

+  <id>source-release</id>

+  <formats>

+    <format>zip</format>

+  </formats>

+  <moduleSets>

+    <moduleSet>

+      <sources>

+        <fileSets>

+          <fileSet>

+            <outputDirectory>/</outputDirectory>

+            <useDefaultExcludes>true</useDefaultExcludes>

+            <excludes>

+              <!-- build output -->

+              <exclude>%regex[(?!((?!${project.build.directory}/)[^/]+/)*src/).*${project.build.directory}.*]</exclude>

+      

+              <!-- NOTE: Most of the following excludes should not be required

+                   if the standard release process is followed. This is because the

+                   release plugin checks out project sources into a location like

+                   target/checkout, then runs the build from there. The result is

+                   a source-release archive that comes from a pretty clean directory

+                   structure.

+      

+                   HOWEVER, if the release plugin is configured to run extra goals

+                   or generate a project website, it's definitely possible that some

+                   of these files will be present. So, it's safer to exclude them.

+              -->

+      

+              <!-- IDEs -->

+              <exclude>%regex[(?!((?!${project.build.directory}/)[^/]+/)*src/)(.*/)?maven-eclipse\.xml]</exclude>

+              <exclude>%regex[(?!((?!${project.build.directory}/)[^/]+/)*src/)(.*/)?\.project]</exclude>

+              <exclude>%regex[(?!((?!${project.build.directory}/)[^/]+/)*src/)(.*/)?\.classpath]</exclude>

+              <exclude>%regex[(?!((?!${project.build.directory}/)[^/]+/)*src/)(.*/)?[^/]*\.iws]</exclude>

+              <exclude>%regex[(?!((?!${project.build.directory}/)[^/]+/)*src/)(.*/)?[^/]*\.ipr]</exclude>

+              <exclude>%regex[(?!((?!${project.build.directory}/)[^/]+/)*src/)(.*/)?[^/]*\.iml]</exclude>

+              <exclude>%regex[(?!((?!${project.build.directory}/)[^/]+/)*src/)(.*/)?\.settings(/.*)?]</exclude>

+              <exclude>%regex[(?!((?!${project.build.directory}/)[^/]+/)*src/)(.*/)?\.externalToolBuilders(/.*)?]</exclude>

+              <exclude>%regex[(?!((?!${project.build.directory}/)[^/]+/)*src/)(.*/)?\.deployables(/.*)?]</exclude>

+              <exclude>%regex[(?!((?!${project.build.directory}/)[^/]+/)*src/)(.*/)?\.wtpmodules(/.*)?]</exclude>

+      

+              <!-- misc -->

+              <exclude>%regex[(?!((?!${project.build.directory}/)[^/]+/)*src/)(.*/)?cobertura\.ser]</exclude>

+      

+              <!-- release-plugin temp files -->

+              <exclude>%regex[(?!((?!${project.build.directory}/)[^/]+/)*src/)(.*/)?pom\.xml\.releaseBackup]</exclude>

+              <exclude>%regex[(?!((?!${project.build.directory}/)[^/]+/)*src/)(.*/)?release\.properties]</exclude>

+            </excludes>

+          </fileSet>

+        </fileSets>

+      </sources>

+    </moduleSet>

+  </moduleSets>

+    

+  <fileSets>

+    <fileSet>

+      <directory>.</directory>

+      <outputDirectory>/${project.artifactId}</outputDirectory>

+      <useDefaultExcludes>true</useDefaultExcludes>

+      <excludes>

+        <!-- build output -->

+        <!-- (?!xxx)means 0 width negative match for xxx-->

+        <!--                any dir except target/ -->

+        <exclude>%regex[(?!((?!${project.build.directory}/)[^/]+/)*src/).*${project.build.directory}.*]</exclude>

+

+        <!-- NOTE: Most of the following excludes should not be required

+             if the standard release process is followed. This is because the

+             release plugin checks out project sources into a location like

+             target/checkout, then runs the build from there. The result is

+             a source-release archive that comes from a pretty clean directory

+             structure.

+

+             HOWEVER, if the release plugin is configured to run extra goals

+             or generate a project website, it's definitely possible that some

+             of these files will be present. So, it's safer to exclude them.

+        -->

+

+        <!-- IDEs -->

+        <exclude>%regex[(?!((?!${project.build.directory}/)[^/]+/)*src/)(.*/)?maven-eclipse\.xml]</exclude>

+        <exclude>%regex[(?!((?!${project.build.directory}/)[^/]+/)*src/)(.*/)?\.project]</exclude>

+        <exclude>%regex[(?!((?!${project.build.directory}/)[^/]+/)*src/)(.*/)?\.classpath]</exclude>

+        <exclude>%regex[(?!((?!${project.build.directory}/)[^/]+/)*src/)(.*/)?[^/]*\.iws]</exclude>

+        <exclude>%regex[(?!((?!${project.build.directory}/)[^/]+/)*src/)(.*/)?[^/]*\.ipr]</exclude>

+        <exclude>%regex[(?!((?!${project.build.directory}/)[^/]+/)*src/)(.*/)?[^/]*\.iml]</exclude>

+        <exclude>%regex[(?!((?!${project.build.directory}/)[^/]+/)*src/)(.*/)?\.settings(/.*)?]</exclude>

+        <exclude>%regex[(?!((?!${project.build.directory}/)[^/]+/)*src/)(.*/)?\.externalToolBuilders(/.*)?]</exclude>

+        <exclude>%regex[(?!((?!${project.build.directory}/)[^/]+/)*src/)(.*/)?\.deployables(/.*)?]</exclude>

+        <exclude>%regex[(?!((?!${project.build.directory}/)[^/]+/)*src/)(.*/)?\.wtpmodules(/.*)?]</exclude>

+

+        <!-- misc -->

+        <exclude>%regex[(?!((?!${project.build.directory}/)[^/]+/)*src/)(.*/)?cobertura\.ser]</exclude>

+

+        <!-- release-plugin temp files -->

+        <exclude>%regex[(?!((?!${project.build.directory}/)[^/]+/)*src/)(.*/)?pom\.xml\.releaseBackup]</exclude>

+        <exclude>%regex[(?!((?!${project.build.directory}/)[^/]+/)*src/)(.*/)?release\.properties]</exclude>

+      </excludes>      

+    </fileSet>

+    <!-- license, readme, etc. calculated at build time 

+         overrides any copied by the above, I think (order dependent?) -->

+    <fileSet>

+      <directory>${project.build.directory}/maven-shared-archive-resources/META-INF</directory>

+      <outputDirectory>/</outputDirectory>

+    </fileSet>

+    

+    <!-- files that should be copied from the top level project to the top of the archive -->

+    <fileSet>

+      <directory>.</directory>

+      <outputDirectory>/</outputDirectory>

+      <fileMode>644</fileMode>

+      <directoryMode>755</directoryMode>

+      <includes>

+        <include>README*</include>

+        <include>readme*</include>

+        <include>LICENSE*</include>

+        <include>NOTICE*</include>

+        <include>RELEASE_NOTES*</include>

+        <include>Release-Notes*</include>

+        <include>issuesFixed/**</include>

+      </includes>        

+    </fileSet>

+  </fileSets>

+</assembly>

diff --git a/src/main/resources/assemblies/uima-single-project-bin.xml b/src/main/resources/assemblies/uima-single-project-bin.xml
new file mode 100644
index 0000000..cf5bdb6
--- /dev/null
+++ b/src/main/resources/assemblies/uima-single-project-bin.xml
@@ -0,0 +1,103 @@
+<!--

+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 bin assembly for standard single-project components

+     other than PEARs -->

+     

+<assembly>

+  <id>bin</id>

+  <formats>

+    <format>tar.gz</format>

+    <format>zip</format>

+  </formats>

+  

+  <includeBaseDirectory>false</includeBaseDirectory>

+  

+  <baseDirectory>/apache-uima</baseDirectory>  

+  

+  <dependencySets>

+    <!-- include all compile/runtime dependencies in the lib dir -->

+    <dependencySet>

+      <outputDirectory>lib</outputDirectory>

+      <useProjectArtifact>false</useProjectArtifact>

+      <fileMode>644</fileMode>

+      <directoryMode>755</directoryMode>

+      <excludes><exclude>org.apache.uima:uima-docbook-olink:zip:olink</exclude></excludes>

+      <useTransitiveDependencies>false</useTransitiveDependencies>

+    </dependencySet>

+  </dependencySets>

+  

+  <!-- Add other files - scripts, documentation, examples -->

+  <fileSets>

+    <!-- add main jar artifact to lib/ directory -->

+    <fileSet>

+      <directory>target</directory>

+      <outputDirectory>lib</outputDirectory>

+      <includes><include>*.jar</include></includes>

+      <fileMode>644</fileMode>

+    </fileSet>

+    

+    <!-- These next are the directories that are the "standard"

+         ones and position per the PEAR spec -->

+    <fileSet>

+      <directory>bin</directory>

+      <outputDirectory>bin</outputDirectory>

+      <includes><include>*.sh</include></includes>

+      <fileMode>755</fileMode>

+      <directoryMode>755</directoryMode>        

+    </fileSet>

+    <fileSet>

+      <directory>bin</directory>

+      <outputDirectory>bin</outputDirectory>

+      <excludes><exclude>*.sh</exclude></excludes>

+      <fileMode>644</fileMode>

+      <directoryMode>755</directoryMode>        

+    </fileSet>

+

+    <fileSet>

+      <directory>.</directory>

+      <outputDirectory>.</outputDirectory>

+      <fileMode>644</fileMode>

+      <directoryMode>755</directoryMode>

+      <includes>

+        <include>README*</include>

+        <include>readme*</include>

+        <include>LICENSE*</include>

+        <include>NOTICE*</include>

+        <include>RELEASE_NOTES*</include>

+        <include>Release-Notes*</include>

+        <include>desc/**</include>

+        <include>doc/**</include>

+        <include>data/**</include>

+        <include>resources/**</include>

+        <include>conf/**</include>

+        <include>issuesFixed/**</include>   

+      </includes>        

+    </fileSet>

+

+    <!-- docbooks -->

+    <fileSet>

+      <directory>target/docbkx</directory>

+      <outputDirectory>docs</outputDirectory>

+      <excludes><exclude>pdf/*.fo</exclude></excludes>

+      <fileMode>644</fileMode>

+      <directoryMode>755</directoryMode>        

+    </fileSet>

+  </fileSets>

+</assembly>
\ No newline at end of file
diff --git a/src/main/resources/docbook-shared/common/html-pdf.xsl b/src/main/resources/docbook-shared/common/html-pdf.xsl
new file mode 100644
index 0000000..96d274b
--- /dev/null
+++ b/src/main/resources/docbook-shared/common/html-pdf.xsl
@@ -0,0 +1,165 @@
+<?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"

+                xmlns:exsl="http://exslt.org/common"

+                xmlns:d="http://docbook.org/ns/docbook"

+                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>

+

+  <!-- expand plain imageobject nodes into doubles, one for fo output the other for html output

+       Scale the html output by 1.1 for inches or 1.4 for pixels 

+       use test="$fop.version = '0.93' to do fop versioning -->

+  

+  <!-- scale=xxx is ignored in 0.20.5, but works in 0.93 -->

+  

+  <xsl:template match="d:mediaobject[d:imageobject[not(@role)]]">

+    <xsl:variable name="id1" select="d:imageobject/d:imagedata"/>

+    <xsl:variable name="width" select="string(d:imageobject/d:imagedata/@width)"/>

+    <xsl:variable name="scale" select="string(d:imageobject/d:imagedata/@scale)"/>

+    

+    <xsl:variable name="width_number"

+      select="substring($width, 1, string-length($width) - 2)"/>      

+    

+    <xsl:variable name="width_unit"

+      select="substring($width, string-length($width) - 1)"/>

+    

+    <xsl:variable name="scale_factor">

+      <xsl:choose>

+        <xsl:when test="$width_unit = 'px'">1.37</xsl:when>

+        <xsl:otherwise>1.1</xsl:otherwise>

+      </xsl:choose>

+    </xsl:variable>

+          

+    <xsl:variable name="n">

+      <d:mediaobject>

+        <xsl:choose>

+          <xsl:when test="$width"> 

+            <d:imageobject role="html">

+              <d:imagedata width="{concat($width_number * $scale_factor, $width_unit)}"

+                format="{$id1/@format}" fileref="{$id1/@fileref}"/>

+            </d:imageobject>

+            <d:imageobject role="fo">

+              <d:imagedata width="{concat($width_number, $width_unit)}" format="{$id1/@format}"

+                fileref="{$id1/@fileref}"/>

+            </d:imageobject>

+          </xsl:when>

+          <xsl:when test="$scale">

+            <d:imageobject role="html">

+              <d:imagedata scale="{$scale}"

+                format="{$id1/@format}" fileref="{$id1/@fileref}"/>

+            </d:imageobject>

+            <d:imageobject role="fo">

+              <d:imagedata scale="{round(number($scale * .71))}" format="{$id1/@format}"

+                fileref="{$id1/@fileref}"/>

+            </d:imageobject>

+          </xsl:when>

+        </xsl:choose>

+        

+        <d:textobject><d:phrase><xsl:value-of select="d:textobject/d:phrase"/></d:phrase></d:textobject>

+      </d:mediaobject>

+    </xsl:variable>

+    

+    <xsl:apply-templates select="exsl:node-set($n)/*"/>

+  </xsl:template>

+  

+</xsl:stylesheet>

+

diff --git a/src/main/resources/docbook-shared/common/html.xsl b/src/main/resources/docbook-shared/common/html.xsl
new file mode 100644
index 0000000..04a62f5
--- /dev/null
+++ b/src/main/resources/docbook-shared/common/html.xsl
@@ -0,0 +1,58 @@
+<?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"

+                xmlns:d="http://docbook.org/ns/docbook"

+                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>

diff --git a/src/main/resources/docbook-shared/common/pdf.xsl b/src/main/resources/docbook-shared/common/pdf.xsl
new file mode 100644
index 0000000..429f5c5
--- /dev/null
+++ b/src/main/resources/docbook-shared/common/pdf.xsl
@@ -0,0 +1,499 @@
+<?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" xmlns:fo="http://www.w3.org/1999/XSL/Format" 

+  xmlns:d="http://docbook.org/ns/docbook" version='1.0'>

+  <!-- width specifications: inside, center, outside -->

+  <!-- OVERRIDE:  inside is large to accommodate large version strings without overflowing -->

+  <xsl:param name="footer.column.widths">6 8 1</xsl:param>

+  <xsl:param name="fop.version"/>

+  <xsl:param name="docbook.xsl.root"/>

+  <!-- selects fop or fop1 for 0.20.5 / 0.93 versions of FOP -->

+  <xsl:param name="fop1.extensions">

+    <xsl:choose>

+      <xsl:when test="$fop.version = '0.93'">1</xsl:when>

+      <xsl:when test="$fop.version = '0.95'">1</xsl:when>

+      <xsl:otherwise>0</xsl:otherwise>

+    </xsl:choose>

+  </xsl:param>

+  <xsl:param name="fop.extensions">

+    <xsl:choose>

+      <xsl:when test="$fop.version = '0.20.5'">1</xsl:when>

+      <xsl:otherwise>0</xsl:otherwise>

+    </xsl:choose>

+  </xsl:param>

+  <!--xsl:param name="draft.watermark.image" select="concat($docbook.xsl.root, '/images/draft.png')"/-->

+  <!-- Fonts, default alignment -->
+  <xsl:param name="body.font.family" select="'Times Roman'"/> <!-- standard default pdf font -->

+  <!--xsl:param name="body.font.family" select="'Palatino'"/--> <!-- disable per UIMA-1051 -->

+  <xsl:param name="body.font.master" select="'10.5'"/>

+  <!--###################################################
+                      0.93 fixups
+    ################################################### -->

+  <!--  Need to verify OK for 0.20.5  -->

+  <xsl:attribute-set name="table.properties">

+    <xsl:attribute name="keep-together.within-column">auto</xsl:attribute>

+  </xsl:attribute-set>

+  <xsl:attribute-set name="orderedlist.properties">

+    <xsl:attribute name="margin-left">0.25in</xsl:attribute>

+  </xsl:attribute-set>

+  <xsl:attribute-set name="itemizedlist.properties">

+    <xsl:attribute name="margin-left">0.25in</xsl:attribute>

+  </xsl:attribute-set>

+  <!--###################################################
+                      olink styling
+    ################################################### -->

+  <xsl:param name="insert.xref.page.number" select="'yes'"/>

+  <xsl:param name="insert.olink.pdf.frag" select="1"/>

+  <!--###################################################
+                      xref (and ulink) styling
+    ################################################### -->

+  <xsl:attribute-set name="xref.properties">

+    <xsl:attribute name="color">blue</xsl:attribute>

+  </xsl:attribute-set>

+  <!--###################################################
+                      Monospace font size
+    ################################################### -->

+  <xsl:attribute-set name="monospace.properties">

+    <xsl:attribute name="font-size">

+      <xsl:choose>

+        <xsl:when test="processing-instruction('db-font-size')">

+          <xsl:value-of select="processing-instruction('db-font-size')"/>

+        </xsl:when>

+        <xsl:otherwise>9.5pt</xsl:otherwise>

+      </xsl:choose>

+    </xsl:attribute>

+  </xsl:attribute-set>

+  <xsl:attribute-set name="monospace.verbatim.properties">

+    <xsl:attribute name="font-size">

+      <xsl:choose>

+        <xsl:when test="processing-instruction('db-font-size')">

+          <xsl:value-of select="processing-instruction('db-font-size')"/>

+        </xsl:when>

+        <xsl:otherwise>9pt</xsl:otherwise>

+      </xsl:choose>

+    </xsl:attribute>

+  </xsl:attribute-set>

+  <!--###################################################
+                      Center figure captions
+    ################################################### -->

+  <xsl:attribute-set name="informalfigure.properties">

+    <xsl:attribute name="text-align">center</xsl:attribute>

+  </xsl:attribute-set>

+  <xsl:attribute-set name="figure.properties">

+    <xsl:attribute name="text-align">center</xsl:attribute>

+  </xsl:attribute-set>

+  <!--###################################################
+                      Page margins
+    ################################################### -->

+  <xsl:param name="page.margin.top" select="'1cm'"/>

+  <!-- region.before.extent = height of the header -->

+  <xsl:param name="region.before.extent" select="'1cm'"/>

+  <xsl:param name="body.margin.top" select="'1.5cm'"/>

+  <xsl:param name="body.margin.bottom" select="'1.5cm'"/>

+  <!-- region.after.extent = height of area where footers are printed -->

+  <xsl:param name="region.after.extent" select="'1cm'"/>

+  <xsl:param name="page.margin.bottom" select="'1cm'"/>

+  <xsl:param name="title.margin.left">

+    <xsl:choose>

+      <xsl:when test="$fop.extensions != 0">-4pc</xsl:when>

+      <xsl:otherwise>0pt</xsl:otherwise>

+    </xsl:choose>

+  </xsl:param>

+  <xsl:param name="body.start.indent">

+    <xsl:choose>

+      <xsl:when test="$fop.extensions != 0">0pt</xsl:when>

+      <xsl:otherwise>4pc</xsl:otherwise>

+    </xsl:choose>

+  </xsl:param>

+  <xsl:param name="page.margin.inner" select="'1.3in'"/>

+  <xsl:param name="page.margin.outer" select="'.70in'"/>

+  <!--###################################################
+                      Header
+    ################################################### -->

+  <!-- More space in the center header for long text -->

+  <xsl:param name="header.column.widths">1 90 1</xsl:param>

+  <xsl:attribute-set name="header.content.properties">

+    <xsl:attribute name="font-family">

+      <xsl:value-of select="$body.font.family"/>

+    </xsl:attribute>

+    <xsl:attribute name="margin-left">0em</xsl:attribute>

+    <xsl:attribute name="margin-right">0em</xsl:attribute>

+  </xsl:attribute-set>

+  <!--###################################################
+                      Custom Footer
+    ################################################### -->

+  <xsl:attribute-set name="footer.content.properties">

+    <xsl:attribute name="font-family">

+      <xsl:value-of select="$body.font.family"/>

+    </xsl:attribute>

+    <xsl:attribute name="margin-left">0em</xsl:attribute>

+    <xsl:attribute name="margin-right">0em</xsl:attribute>

+  </xsl:attribute-set>

+  <!-- width specifications: inside, center, outside -->

+  <!--xsl:param name="footer.column.widths">2 6 1</xsl:param-->

+  <xsl:template name="footer.content">

+    <xsl:param name="pageclass" select="''"/>

+    <xsl:param name="sequence" select="''"/>

+    <xsl:param name="position" select="''"/>

+    <xsl:param name="gentext-key" select="''"/>

+    <xsl:variable name="Version">

+      <xsl:choose>

+        <xsl:when test="//d:productname">

+          <xsl:value-of select="//d:productname"/>

+          <xsl:text>

+          </xsl:text>

+        </xsl:when>

+        <xsl:otherwise>

+          <xsl:text>please define productname in your docbook file!</xsl:text>

+          <!--xsl:message>No productname found</xsl:message>
+              <xsl:message>
+                <xsl:for-each select="ancestor-or-self::*">
+                  namespace: <xsl:value-of select="namespace-uri(.)"/>
+                  node-name: <xsl:value-of select="name(.)"/>
+                </xsl:for-each>

+              </xsl:message>
+              <xsl:message>
+                firstParents children: <xsl:value-of select="name(../*)"/>
+                2ndParents children: <xsl:value-of select="name(../../*)"/>
+                Children of docroot: <xsl:for-each select="../../*">
+                  <xsl:value-of select="name(.)"/></xsl:for-each>
+                children of book: <xsl:for-each select="../*">
+                  <xsl:value-of select="name(.)"/></xsl:for-each>
+                children of bookinfo: <xsl:for-each select="../d:bookinfo/*">
+                  <xsl:value-of select="name(.)"/></xsl:for-each>

+              </xsl:message-->

+        </xsl:otherwise>

+      </xsl:choose>

+      <xsl:choose>

+        <xsl:when test="//d:releaseinfo">

+          <xsl:variable name="releaseInfo" select="//d:releaseinfo"/>

+          <xsl:choose>

+            <xsl:when test="contains($releaseInfo, '-SNAPSHOT')">

+              <xsl:value-of select="substring-before($releaseInfo, '-SNAPSHOT')"/>

+            </xsl:when>

+            <xsl:otherwise>

+              <xsl:value-of select="$releaseInfo"/>

+            </xsl:otherwise>

+          </xsl:choose>

+        </xsl:when>

+        <xsl:otherwise>

+          <!-- nop -->

+        </xsl:otherwise>

+      </xsl:choose>

+    </xsl:variable>

+    <xsl:variable name="Title">

+      <!-- <xsl:value-of select="//title"/> -->

+      <xsl:apply-templates select="." mode="titleabbrev.markup"/>

+    </xsl:variable>

+    <xsl:choose>

+      <xsl:when test="$sequence='blank'">

+        <xsl:choose>

+          <xsl:when test="$double.sided != 0 and $position = 'left'">

+            <xsl:value-of select="$Version"/>

+          </xsl:when>

+          <xsl:when test="$double.sided = 0 and $position = 'center'">

+            <!-- nop -->

+          </xsl:when>

+          <xsl:otherwise>

+            <fo:page-number/>

+          </xsl:otherwise>

+        </xsl:choose>

+      </xsl:when>

+      <xsl:when test="$pageclass='titlepage'">

+        <!-- nop: other titlepage sequences have no footer -->

+      </xsl:when>

+      <xsl:when test="$double.sided != 0 and $sequence = 'even' and $position='left'">

+        <fo:page-number/>

+      </xsl:when>

+      <xsl:when test="$double.sided != 0 and ($sequence = 'odd' or $sequence = 'first') and $position='right'">

+        <fo:page-number/>

+      </xsl:when>

+      <xsl:when test="$double.sided = 0 and $position='right'">

+        <fo:page-number/>

+      </xsl:when>

+      <xsl:when test="$double.sided != 0 and $sequence = 'odd' and $position='left'">

+        <xsl:value-of select="$Version"/>

+      </xsl:when>

+      <xsl:when test="$double.sided != 0 and $sequence = 'even' and $position='right'">

+        <xsl:value-of select="$Version"/>

+      </xsl:when>

+      <xsl:when test="$double.sided = 0 and $position='left'">

+        <xsl:value-of select="$Version"/>

+      </xsl:when>

+      <xsl:when test="$position='center'">

+        <xsl:value-of select="$Title"/>

+      </xsl:when>

+      <xsl:otherwise>

+        <!-- nop -->

+      </xsl:otherwise>

+    </xsl:choose>

+  </xsl:template>

+  <!--###################################################
+                      Extensions
+    ################################################### -->

+  <!-- These extensions are required for table printing and other stuff -->

+  <xsl:param name="use.extensions">1</xsl:param>

+  <!-- next set to 0 for now.  1 should work but an extension fn is missing 
+      see: http://sourceware.org/ml/docbook-apps/2004-q4/msg00703.html -->

+  <xsl:param name="tablecolumns.extension">0</xsl:param>

+  <!--###################################################
+                   Paper & Page Size
+    ################################################### -->

+  <!-- Paper type, no headers on blank pages, no double sided printing -->

+  <xsl:param name="double.sided">1</xsl:param>

+  <xsl:param name="headers.on.blank.pages">0</xsl:param>

+  <xsl:param name="footers.on.blank.pages">0</xsl:param>

+  <!--###################################################
+                   Fonts & Styles
+    ################################################### -->

+  <xsl:param name="hyphenate">false</xsl:param>

+  <!-- Line height in body text -->
+  <!--xsl:param name="line-height">1.35</xsl:param--> <!-- for palatino -->
+  <xsl:param name="line-height">1.15</xsl:param> <!-- for Times Roman -->
+  

+  <!--###################################################
+                   Tables
+    ################################################### -->

+  <!-- Some padding inside tables -->

+  <xsl:attribute-set name="table.cell.padding">

+    <xsl:attribute name="padding-left">4pt</xsl:attribute>

+    <xsl:attribute name="padding-right">4pt</xsl:attribute>

+    <xsl:attribute name="padding-top">4pt</xsl:attribute>

+    <xsl:attribute name="padding-bottom">4pt</xsl:attribute>

+  </xsl:attribute-set>

+  <!-- Only hairlines as frame and cell borders in tables -->

+  <!-- note that 72 pt = 1 in, and values like 0.1pt cause problems
+         in FOP 0.93 but work in FOP 0.20.5 -->

+  <xsl:param name="table.frame.border.thickness">.7pt</xsl:param>

+  <xsl:param name="table.cell.border.thickness">.7pt</xsl:param>

+  <!--###################################################
+                         Labels
+    ################################################### -->

+  <xsl:attribute-set name="component.title.properties">

+    <xsl:attribute name="border-top">

+      <xsl:text>solid black 2pt</xsl:text>

+    </xsl:attribute>

+    <xsl:attribute name="font-size">

+      <xsl:value-of select="$body.font.master * 2"/>

+      <xsl:text>pt</xsl:text>

+    </xsl:attribute>

+  </xsl:attribute-set>

+  <xsl:attribute-set name="section.title.level1.properties">

+    <xsl:attribute name="border-top">

+      <xsl:text>solid black 1pt</xsl:text>

+    </xsl:attribute>

+    <xsl:attribute name="font-size">

+      <xsl:value-of select="$body.font.master * 1.8"/>

+      <xsl:text>pt</xsl:text>

+    </xsl:attribute>

+  </xsl:attribute-set>

+  <xsl:attribute-set name="section.title.level2.properties">

+    <xsl:attribute name="border-top">

+      <xsl:text>solid black .75pt</xsl:text>

+    </xsl:attribute>

+    <xsl:attribute name="font-size">

+      <xsl:value-of select="$body.font.master * 1.6"/>

+      <xsl:text>pt</xsl:text>

+    </xsl:attribute>

+  </xsl:attribute-set>

+  <xsl:attribute-set name="section.title.level3.properties">

+    <xsl:attribute name="border-top">

+      <xsl:text>solid black .5pt</xsl:text>

+    </xsl:attribute>

+    <xsl:attribute name="font-size">

+      <xsl:value-of select="$body.font.master * 1.4"/>

+      <xsl:text>pt</xsl:text>

+    </xsl:attribute>

+    <xsl:attribute name="margin-left">

+      <xsl:choose>

+        <xsl:when test="$fop.extensions != 0">-2pc</xsl:when>

+        <xsl:when test="$fop1.extensions != 0">2pc</xsl:when>

+      </xsl:choose>

+    </xsl:attribute>

+  </xsl:attribute-set>

+  <xsl:attribute-set name="section.title.level4.properties">

+    <xsl:attribute name="font-size">

+      <xsl:value-of select="$body.font.master * 1.3"/>

+      <xsl:text>pt</xsl:text>

+    </xsl:attribute>

+    <xsl:attribute name="margin-left">

+      <xsl:choose>

+        <xsl:when test="$fop.extensions != 0">-2pc</xsl:when>

+        <xsl:when test="$fop1.extensions != 0">2pc</xsl:when>

+      </xsl:choose>

+    </xsl:attribute>

+  </xsl:attribute-set>

+  <xsl:attribute-set name="section.title.level5.properties">

+    <xsl:attribute name="font-size">

+      <xsl:value-of select="$body.font.master * 1.2"/>

+      <xsl:text>pt</xsl:text>

+    </xsl:attribute>

+    <xsl:attribute name="margin-left">

+      <xsl:choose>

+        <xsl:when test="$fop.extensions != 0">-2pc</xsl:when>

+        <xsl:when test="$fop1.extensions != 0">2pc</xsl:when>

+      </xsl:choose>

+    </xsl:attribute>

+  </xsl:attribute-set>

+  <!--###################################################
+                      Programlistings
+    ################################################### -->

+  <xsl:attribute-set name="verbatim.properties">

+    <xsl:attribute name="font-size">9pt</xsl:attribute>

+    <xsl:attribute name="space-before.minimum">1em</xsl:attribute>

+    <xsl:attribute name="space-before.optimum">1em</xsl:attribute>

+    <xsl:attribute name="space-before.maximum">1em</xsl:attribute>

+    <!-- alef: commented out because footnotes were screwed because of it -->

+    <!--<xsl:attribute name="space-after.minimum">0.1em</xsl:attribute>
+        <xsl:attribute name="space-after.optimum">0.1em</xsl:attribute>
+        <xsl:attribute name="space-after.maximum">0.1em</xsl:attribute>-->

+    <xsl:attribute name="border-color">#444444</xsl:attribute>

+    <xsl:attribute name="border-style">solid</xsl:attribute>

+    <xsl:attribute name="border-width">0.1pt</xsl:attribute>

+    <xsl:attribute name="padding-top">0.5em</xsl:attribute>

+    <xsl:attribute name="padding-left">0.5em</xsl:attribute>

+    <xsl:attribute name="padding-right">0.5em</xsl:attribute>

+    <xsl:attribute name="padding-bottom">0.5em</xsl:attribute>

+    <xsl:attribute name="margin-left">0.5em</xsl:attribute>

+    <xsl:attribute name="margin-right">0.5em</xsl:attribute>

+  </xsl:attribute-set>

+  <!-- Shade (background) programlistings -->

+  <xsl:param name="shade.verbatim">1</xsl:param>

+  <xsl:attribute-set name="shade.verbatim.style">

+    <xsl:attribute name="background-color">#F0F0F0</xsl:attribute>

+  </xsl:attribute-set>

+  <xsl:attribute-set name="list.block.spacing">

+    <xsl:attribute name="space-before.optimum">0.1em</xsl:attribute>

+    <xsl:attribute name="space-before.minimum">0.1em</xsl:attribute>

+    <xsl:attribute name="space-before.maximum">0.1em</xsl:attribute>

+    <xsl:attribute name="space-after.optimum">0.1em</xsl:attribute>

+    <xsl:attribute name="space-after.minimum">0.1em</xsl:attribute>

+    <xsl:attribute name="space-after.maximum">0.1em</xsl:attribute>

+  </xsl:attribute-set>

+  <xsl:attribute-set name="example.properties">

+    <xsl:attribute name="space-before.minimum">0.5em</xsl:attribute>

+    <xsl:attribute name="space-before.optimum">0.5em</xsl:attribute>

+    <xsl:attribute name="space-before.maximum">0.5em</xsl:attribute>

+    <xsl:attribute name="space-after.minimum">0.1em</xsl:attribute>

+    <xsl:attribute name="space-after.optimum">0.1em</xsl:attribute>

+    <xsl:attribute name="space-after.maximum">0.1em</xsl:attribute>

+    <xsl:attribute name="keep-together.within-column">always</xsl:attribute>

+  </xsl:attribute-set>

+  <!--###################################################
+        Title information for Figures, Examples etc.
+    ################################################### -->

+  <xsl:attribute-set name="formal.title.properties" use-attribute-sets="normal.para.spacing">

+    <xsl:attribute name="font-weight">normal</xsl:attribute>

+    <xsl:attribute name="font-style">italic</xsl:attribute>

+    <xsl:attribute name="font-size">

+      <xsl:value-of select="concat($body.font.master, 'pt')"/>

+    </xsl:attribute>

+    <xsl:attribute name="hyphenate">false</xsl:attribute>

+    <xsl:attribute name="space-before.minimum">0.1em</xsl:attribute>

+    <xsl:attribute name="space-before.optimum">0.1em</xsl:attribute>

+    <xsl:attribute name="space-before.maximum">0.1em</xsl:attribute>

+  </xsl:attribute-set>

+  <!--###################################################
+                          Misc
+    ################################################### -->

+  <!-- FOP 0.25 doens't support body.start.indent 
+  <xsl:param name="body.start.indent">.75in</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:context name="title">
+        <l:template name="example" text="Example&#160;%n&#160;%t"/>
+      </l:context>
+    </l:l10n>
+  </l:i18n>
+-->

+  <!-- workaround for FOP 0.20.5 switch to symbol fonts -->

+  <xsl:template match="d:symbol[@role = 'symbolfont']">

+    <!--xsl:message>found arrow symbol</xsl:message-->

+    <fo:inline font-family="Symbol">

+      <xsl:call-template name="inline.charseq"/>

+    </fo:inline>

+  </xsl:template>

+  <!-- bold-italic formatting -->

+  <xsl:template match="d:emphasis[@role='bold-italic']">

+    <fo:inline font-weight="bold" font-style="italic">

+      <xsl:apply-templates/>

+    </fo:inline>

+  </xsl:template>

+  <xsl:attribute-set name="admonition.title.properties">

+    <xsl:attribute name="font-size">

+      <xsl:value-of select="$body.font.master * 1.05"/>

+    </xsl:attribute>

+  </xsl:attribute-set>

+  <!-- Make notes display inline for 1st para -->

+  <xsl:template name="nongraphical.admonition">

+    <xsl:variable name="id">

+      <xsl:call-template name="object.id"/>

+    </xsl:variable>

+    <xsl:choose>

+      <xsl:when test="child::*[1]/self::d:para">

+        <fo:block id="{$id}" xsl:use-attribute-sets="nongraphical.admonition.properties">

+          <fo:block>

+            <fo:inline keep-with-next.within-line='always' xsl:use-attribute-sets="admonition.title.properties">

+              <xsl:apply-templates select="." mode="object.title.markup"/>

+              <xsl:text>: </xsl:text>

+            </fo:inline>

+            <xsl:apply-templates select="d:para[1]/node()"/>

+          </fo:block>

+          <xsl:apply-templates select="*[not(self::d:para[1])]"/>

+        </fo:block>

+      </xsl:when>

+      <xsl:otherwise>

+        <xsl:apply-imports/>

+      </xsl:otherwise>

+    </xsl:choose>

+  </xsl:template>
+  

+  <xsl:template name="inline.monoseq">
+    <xsl:param name="content">
+      <xsl:call-template name="simple.xlink">
+        <xsl:with-param name="content">
+          <xsl:apply-templates />
+        </xsl:with-param>
+      </xsl:call-template>
+    </xsl:param>
+    <fo:inline xsl:use-attribute-sets="monospace.properties">
+      <xsl:call-template name="anchor"/>
+      <xsl:if test="@dir">
+        <xsl:attribute name="direction">
+          <xsl:choose>
+            <xsl:when test="@dir = 'ltr' or @dir = 'lro'">ltr</xsl:when>
+            <xsl:otherwise>rtl</xsl:otherwise>
+          </xsl:choose>
+        </xsl:attribute>
+      </xsl:if>
+      <xsl:copy-of select="$content" />
+    </fo:inline>
+  </xsl:template>

+</xsl:stylesheet>
+
diff --git a/src/main/resources/docbook-shared/common_book_info.xml b/src/main/resources/docbook-shared/common_book_info.xml
new file mode 100644
index 0000000..9bfe5ee
--- /dev/null
+++ b/src/main/resources/docbook-shared/common_book_info.xml
@@ -0,0 +1,79 @@
+<?xml version="1.0" encoding="UTF-8"?>

+<!DOCTYPE bookinfo PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"

+"http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd">

+<!--

+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.

+-->  

+<bookinfo>

+

+    <releaseinfo>Version <?eval ${project.version}?></releaseinfo>

+

+    <productname>UIMA</productname>

+

+    <authorgroup>

+      <corpauthor>Written and maintained by the Apache UIMA Development Community</corpauthor>

+    </authorgroup>

+

+ <!--

+    <mediaobject>

+      <imageobject>

+        <imagedata fileref="images/UIMAlogoLarge.png"/>

+      </imageobject>

+    </mediaobject>

+ -->

+    <legalnotice>

+      <para> </para>

+      <formalpara>

+        <title>License and Disclaimer</title>

+

+        <para>The ASF licenses this documentation

+           to you under the Apache License, Version 2.0 (the

+           "License"); you may not use this documentation except in compliance

+           with the License.  You may obtain a copy of the License at

+         

+         <blockquote>

+           <ulink url="http://www.apache.org/licenses/LICENSE-2.0"/>

+         </blockquote>

+         

+           Unless required by applicable law or agreed to in writing,

+           this documentation and its contents are distributed under the License 

+           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>

+      </formalpara>

+      <para> </para>

+      <para> </para>

+      <formalpara>

+        <title>Trademarks</title>

+        <para>All terms mentioned in the text that are known to be trademarks or 

+        service marks have been appropriately capitalized.  Use of such terms

+        in this book should not be regarded as affecting the validity of the

+        the trademark or service mark.

+        </para>

+      </formalpara>

+    </legalnotice>

+    <copyright>

+      <year><?eval ${project.inceptionYear}?></year>

+      <year><?eval ${project.properties.buildYear}?></year>

+      <holder>The Apache Software Foundation</holder>

+    </copyright>

+    <pubdate><?eval ${project.properties.buildMonth}?>, <?eval ${project.properties.buildYear}?></pubdate>

+  </bookinfo>
\ No newline at end of file
diff --git a/src/main/resources/docbook-shared/common_book_info_ibm_c.xml b/src/main/resources/docbook-shared/common_book_info_ibm_c.xml
new file mode 100644
index 0000000..16abf96
--- /dev/null
+++ b/src/main/resources/docbook-shared/common_book_info_ibm_c.xml
@@ -0,0 +1,86 @@
+<?xml version="1.0" encoding="UTF-8"?>

+<!DOCTYPE bookinfo PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"

+"http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd">

+<!--

+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.

+-->  

+<bookinfo>

+

+    <releaseinfo>Version <?eval ${project.version}?></releaseinfo>

+

+    <productname>UIMA</productname>

+

+    <authorgroup>

+      <corpauthor>Written and maintained by the Apache UIMA Development Community</corpauthor>

+    </authorgroup>

+

+ <!--

+    <mediaobject>

+      <imageobject>

+        <imagedata fileref="images/UIMAlogoLarge.png"/>

+      </imageobject>

+    </mediaobject>

+ -->

+    <legalnotice>

+      <para> </para>

+      <formalpara>

+        <title>License and Disclaimer</title>

+

+        <para>The ASF licenses this documentation

+           to you under the Apache License, Version 2.0 (the

+           "License"); you may not use this documentation except in compliance

+           with the License.  You may obtain a copy of the License at

+         

+         <blockquote>

+           <ulink url="http://www.apache.org/licenses/LICENSE-2.0"/>

+         </blockquote>

+         

+           Unless required by applicable law or agreed to in writing,

+           this documentation and its contents are distributed under the License 

+           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>

+      </formalpara>

+      <para> </para>

+      <para> </para>

+      <formalpara>

+        <title>Trademarks</title>

+        <para>All terms mentioned in the text that are known to be trademarks or 

+        service marks have been appropriately capitalized.  Use of such terms

+        in this book should not be regarded as affecting the validity of the

+        the trademark or service mark.

+        </para>

+      </formalpara>

+    </legalnotice>

+    <copyright>

+      <year><?eval ${project.inceptionYear}?></year>

+      <year><?eval ${project.properties.buildYear}?></year>

+      <holder>The Apache Software Foundation</holder>

+    </copyright>

+    

+    <copyright>

+      <year>2004</year>

+      <year>2006</year>     

+      <holder>International Business Machines Corporation</holder>

+    </copyright>        

+    

+    <pubdate><?eval ${project.properties.buildMonth}?>, <?eval ${project.properties.buildYear}?></pubdate>

+  </bookinfo>
\ No newline at end of file
diff --git a/src/main/resources/docbook-shared/css/stylesheet-html.css b/src/main/resources/docbook-shared/css/stylesheet-html.css
new file mode 100644
index 0000000..f861b56
--- /dev/null
+++ b/src/main/resources/docbook-shared/css/stylesheet-html.css
@@ -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;
+}
diff --git a/src/main/resources/docbook-shared/entities.ent b/src/main/resources/docbook-shared/entities.ent
new file mode 100644
index 0000000..4769c25
--- /dev/null
+++ b/src/main/resources/docbook-shared/entities.ent
@@ -0,0 +1,35 @@
+<?xml version="1.0" encoding="iso-8859-1" ?>

+<!--

+   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.

+-->

+<!ENTITY url_eclipse "http://www.eclipse.org" >

+<!ENTITY url_emf "http://www.eclipse.org/emf" >

+<!ENTITY url_apache_uima_download "http://incubator.apache.org/uima">

+

+<!ENTITY ae "Analysis Engine">

+<!ENTITY aae "Aggregate Analysis Engine">

+

+<!ENTITY uima_docs_overview "overview_and_setup">

+<!ENTITY uima_docs_tutorial_guides "tutorials_and_users_guides">

+<!ENTITY uima_docs_tools "tools">

+<!ENTITY uima_docs_ref "references">

+

+<!-- special symbols forced to switch to symbol font

+     because FOP 0.20.5 doesn't do this correctly -->

+<!ENTITY rarr "<symbol role='symbolfont'>&#x02192;</symbol>" >

+<!ENTITY larr "<symbol role='symbolfont'>&#x02190;</symbol>" >

diff --git a/src/main/resources/docbook-shared/fonts/palatino-bold-italic.xml b/src/main/resources/docbook-shared/fonts/palatino-bold-italic.xml
new file mode 100644
index 0000000..d7510c1
--- /dev/null
+++ b/src/main/resources/docbook-shared/fonts/palatino-bold-italic.xml
@@ -0,0 +1,21 @@
+<?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.

+	 ***************************************************************

+   -->

+<font-metrics metrics-version="2" type="TRUETYPE"><font-name>PalatinoLinotype,BoldItalic</font-name><embed/><cap-height>686</cap-height><x-height>476</x-height><ascender>729</ascender><descender>-278</descender><bbox><left>-156</left><bottom>-291</bottom><right>1305</right><top>1049</top></bbox><flags>97</flags><stemv>0</stemv><italicangle>-10</italicangle><subtype>TRUETYPE</subtype><singlebyte-extras><encoding>WinAnsiEncoding</encoding><first-char>0</first-char><last-char>255</last-char><widths><char idx="0" wdt="749"/><char idx="1" wdt="749"/><char idx="2" wdt="749"/><char idx="3" wdt="749"/><char idx="4" wdt="749"/><char idx="5" wdt="749"/><char idx="6" wdt="749"/><char idx="7" wdt="749"/><char idx="8" wdt="749"/><char idx="9" wdt="749"/><char idx="10" wdt="749"/><char idx="11" wdt="749"/><char idx="12" wdt="749"/><char idx="13" wdt="749"/><char idx="14" wdt="749"/><char idx="15" wdt="749"/><char idx="16" wdt="749"/><char idx="17" wdt="749"/><char idx="18" wdt="749"/><char idx="19" wdt="749"/><char idx="20" wdt="749"/><char idx="21" wdt="749"/><char idx="22" wdt="749"/><char idx="23" wdt="749"/><char idx="24" wdt="749"/><char idx="25" wdt="749"/><char idx="26" wdt="749"/><char idx="27" wdt="749"/><char idx="28" wdt="749"/><char idx="29" wdt="749"/><char idx="30" wdt="749"/><char idx="31" wdt="749"/><char idx="32" wdt="250"/><char idx="33" wdt="333"/><char idx="34" wdt="500"/><char idx="35" wdt="481"/><char idx="36" wdt="500"/><char idx="37" wdt="889"/><char idx="38" wdt="833"/><char idx="39" wdt="250"/><char idx="40" wdt="333"/><char idx="41" wdt="333"/><char idx="42" wdt="443"/><char idx="43" wdt="500"/><char idx="44" wdt="250"/><char idx="45" wdt="388"/><char idx="46" wdt="250"/><char idx="47" wdt="314"/><char idx="48" wdt="500"/><char idx="49" wdt="500"/><char idx="50" wdt="500"/><char idx="51" wdt="500"/><char idx="52" wdt="500"/><char idx="53" wdt="500"/><char idx="54" wdt="500"/><char idx="55" wdt="500"/><char idx="56" wdt="500"/><char idx="57" wdt="500"/><char idx="58" wdt="250"/><char idx="59" wdt="250"/><char idx="60" wdt="500"/><char idx="61" wdt="500"/><char idx="62" wdt="500"/><char idx="63" wdt="443"/><char idx="64" wdt="697"/><char idx="65" wdt="722"/><char idx="66" wdt="666"/><char idx="67" wdt="685"/><char idx="68" wdt="777"/><char idx="69" wdt="610"/><char idx="70" wdt="556"/><char idx="71" wdt="777"/><char idx="72" wdt="778"/><char idx="73" wdt="389"/><char idx="74" wdt="389"/><char idx="75" wdt="722"/><char idx="76" wdt="610"/><char idx="77" wdt="943"/><char idx="78" wdt="777"/><char idx="79" wdt="833"/><char idx="80" wdt="666"/><char idx="81" wdt="833"/><char idx="82" wdt="722"/><char idx="83" wdt="556"/><char idx="84" wdt="610"/><char idx="85" wdt="777"/><char idx="86" wdt="666"/><char idx="87" wdt="1000"/><char idx="88" wdt="722"/><char idx="89" wdt="610"/><char idx="90" wdt="666"/><char idx="91" wdt="333"/><char idx="92" wdt="605"/><char idx="93" wdt="333"/><char idx="94" wdt="500"/><char idx="95" wdt="499"/><char idx="96" wdt="278"/><char idx="97" wdt="556"/><char idx="98" wdt="537"/><char idx="99" wdt="443"/><char idx="100" wdt="556"/><char idx="101" wdt="443"/><char idx="102" wdt="333"/><char idx="103" wdt="500"/><char idx="104" wdt="556"/><char idx="105" wdt="333"/><char idx="106" wdt="333"/><char idx="107" wdt="556"/><char idx="108" wdt="333"/><char idx="109" wdt="833"/><char idx="110" wdt="556"/><char idx="111" wdt="556"/><char idx="112" wdt="556"/><char idx="113" wdt="537"/><char idx="114" wdt="389"/><char idx="115" wdt="443"/><char idx="116" wdt="389"/><char idx="117" wdt="556"/><char idx="118" wdt="556"/><char idx="119" wdt="833"/><char idx="120" wdt="500"/><char idx="121" wdt="556"/><char idx="122" wdt="500"/><char idx="123" wdt="333"/><char idx="124" wdt="500"/><char idx="125" wdt="333"/><char idx="126" wdt="500"/><char idx="127" wdt="605"/><char idx="128" wdt="500"/><char idx="129" wdt="605"/><char idx="130" wdt="250"/><char idx="131" wdt="500"/><char idx="132" wdt="500"/><char idx="133" wdt="1000"/><char idx="134" wdt="556"/><char idx="135" wdt="556"/><char idx="136" wdt="333"/><char idx="137" wdt="1000"/><char idx="138" wdt="556"/><char idx="139" wdt="333"/><char idx="140" wdt="1012"/><char idx="141" wdt="605"/><char idx="142" wdt="666"/><char idx="143" wdt="605"/><char idx="144" wdt="605"/><char idx="145" wdt="278"/><char idx="146" wdt="278"/><char idx="147" wdt="500"/><char idx="148" wdt="500"/><char idx="149" wdt="605"/><char idx="150" wdt="500"/><char idx="151" wdt="1000"/><char idx="152" wdt="500"/><char idx="153" wdt="998"/><char idx="154" wdt="443"/><char idx="155" wdt="333"/><char idx="156" wdt="778"/><char idx="157" wdt="605"/><char idx="158" wdt="500"/><char idx="159" wdt="610"/><char idx="160" wdt="250"/><char idx="161" wdt="333"/><char idx="162" wdt="500"/><char idx="163" wdt="500"/><char idx="164" wdt="500"/><char idx="165" wdt="500"/><char idx="166" wdt="500"/><char idx="167" wdt="556"/><char idx="168" wdt="333"/><char idx="169" wdt="747"/><char idx="170" wdt="333"/><char idx="171" wdt="500"/><char idx="172" wdt="500"/><char idx="173" wdt="388"/><char idx="174" wdt="747"/><char idx="175" wdt="333"/><char idx="176" wdt="399"/><char idx="177" wdt="500"/><char idx="178" wdt="319"/><char idx="179" wdt="319"/><char idx="180" wdt="333"/><char idx="181" wdt="566"/><char idx="182" wdt="556"/><char idx="183" wdt="250"/><char idx="184" wdt="333"/><char idx="185" wdt="319"/><char idx="186" wdt="333"/><char idx="187" wdt="500"/><char idx="188" wdt="806"/><char idx="189" wdt="806"/><char idx="190" wdt="806"/><char idx="191" wdt="443"/><char idx="192" wdt="722"/><char idx="193" wdt="722"/><char idx="194" wdt="722"/><char idx="195" wdt="722"/><char idx="196" wdt="722"/><char idx="197" wdt="722"/><char idx="198" wdt="943"/><char idx="199" wdt="685"/><char idx="200" wdt="610"/><char idx="201" wdt="610"/><char idx="202" wdt="610"/><char idx="203" wdt="610"/><char idx="204" wdt="389"/><char idx="205" wdt="389"/><char idx="206" wdt="389"/><char idx="207" wdt="389"/><char idx="208" wdt="777"/><char idx="209" wdt="777"/><char idx="210" wdt="833"/><char idx="211" wdt="833"/><char idx="212" wdt="833"/><char idx="213" wdt="833"/><char idx="214" wdt="833"/><char idx="215" wdt="500"/><char idx="216" wdt="833"/><char idx="217" wdt="777"/><char idx="218" wdt="777"/><char idx="219" wdt="777"/><char idx="220" wdt="777"/><char idx="221" wdt="610"/><char idx="222" wdt="666"/><char idx="223" wdt="556"/><char idx="224" wdt="556"/><char idx="225" wdt="556"/><char idx="226" wdt="556"/><char idx="227" wdt="556"/><char idx="228" wdt="556"/><char idx="229" wdt="556"/><char idx="230" wdt="737"/><char idx="231" wdt="443"/><char idx="232" wdt="443"/><char idx="233" wdt="443"/><char idx="234" wdt="443"/><char idx="235" wdt="443"/><char idx="236" wdt="333"/><char idx="237" wdt="333"/><char idx="238" wdt="333"/><char idx="239" wdt="333"/><char idx="240" wdt="556"/><char idx="241" wdt="556"/><char idx="242" wdt="556"/><char idx="243" wdt="556"/><char idx="244" wdt="556"/><char idx="245" wdt="556"/><char idx="246" wdt="556"/><char idx="247" wdt="500"/><char idx="248" wdt="556"/><char idx="249" wdt="556"/><char idx="250" wdt="556"/><char idx="251" wdt="556"/><char idx="252" wdt="556"/><char idx="253" wdt="556"/><char idx="254" wdt="556"/><char idx="255" wdt="556"/></widths></singlebyte-extras><kerning kpx1="76"><pair kern="-68" kpx2="89"/><pair kern="-78" kpx2="87"/><pair kern="-78" kpx2="86"/><pair kern="-68" kpx2="84"/><pair kern="-68" kpx2="146"/></kerning><kerning kpx1="89"><pair kern="-68" kpx2="59"/><pair kern="-68" kpx2="58"/><pair kern="-68" kpx2="121"/><pair kern="-68" kpx2="117"/><pair kern="-68" kpx2="114"/><pair kern="-68" kpx2="111"/><pair kern="-68" kpx2="46"/><pair kern="-68" kpx2="45"/><pair kern="-68" kpx2="173"/><pair kern="-68" kpx2="44"/><pair kern="-68" kpx2="105"/><pair kern="-68" kpx2="101"/><pair kern="-68" kpx2="97"/><pair kern="-117" kpx2="65"/></kerning><kerning kpx1="87"><pair kern="-68" kpx2="59"/><pair kern="-68" kpx2="58"/><pair kern="-68" kpx2="121"/><pair kern="-68" kpx2="117"/><pair kern="-68" kpx2="114"/><pair kern="-68" kpx2="111"/><pair kern="-68" kpx2="46"/><pair kern="-68" kpx2="45"/><pair kern="-68" kpx2="173"/><pair kern="-68" kpx2="44"/><pair kern="-68" kpx2="105"/><pair kern="-68" kpx2="101"/><pair kern="-68" kpx2="97"/><pair kern="-117" kpx2="65"/></kerning><kerning kpx1="70"><pair kern="-68" kpx2="46"/><pair kern="-68" kpx2="44"/><pair kern="-68" kpx2="65"/></kerning><kerning kpx1="86"><pair kern="-68" kpx2="59"/><pair kern="-68" kpx2="58"/><pair kern="-68" kpx2="121"/><pair kern="-68" kpx2="117"/><pair kern="-68" kpx2="114"/><pair kern="-68" kpx2="111"/><pair kern="-68" kpx2="46"/><pair kern="-68" kpx2="45"/><pair kern="-68" kpx2="173"/><pair kern="-68" kpx2="44"/><pair kern="-68" kpx2="105"/><pair kern="-68" kpx2="101"/><pair kern="-68" kpx2="97"/><pair kern="-117" kpx2="65"/></kerning><kerning kpx1="84"><pair kern="-68" kpx2="59"/><pair kern="-68" kpx2="58"/><pair kern="-68" kpx2="121"/><pair kern="-68" kpx2="119"/><pair kern="-68" kpx2="117"/><pair kern="-68" kpx2="115"/><pair kern="-68" kpx2="114"/><pair kern="-68" kpx2="111"/><pair kern="-68" kpx2="46"/><pair kern="-68" kpx2="45"/><pair kern="-68" kpx2="173"/><pair kern="-68" kpx2="44"/><pair kern="-68" kpx2="105"/><pair kern="-68" kpx2="101"/><pair kern="-68" kpx2="99"/><pair kern="-68" kpx2="97"/><pair kern="-68" kpx2="65"/></kerning><kerning kpx1="65"><pair kern="-68" kpx2="89"/><pair kern="-117" kpx2="87"/><pair kern="-117" kpx2="86"/><pair kern="-68" kpx2="84"/><pair kern="-68" kpx2="146"/></kerning><kerning kpx1="80"><pair kern="-68" kpx2="46"/><pair kern="-68" kpx2="44"/><pair kern="-78" kpx2="65"/></kerning></font-metrics>
\ No newline at end of file
diff --git a/src/main/resources/docbook-shared/fonts/palatino-bold.xml b/src/main/resources/docbook-shared/fonts/palatino-bold.xml
new file mode 100644
index 0000000..bb08436
--- /dev/null
+++ b/src/main/resources/docbook-shared/fonts/palatino-bold.xml
@@ -0,0 +1,21 @@
+<?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.

+	 ***************************************************************

+   -->

+<font-metrics metrics-version="2" type="TRUETYPE"><font-name>PalatinoLinotype,Bold</font-name><embed/><cap-height>686</cap-height><x-height>459</x-height><ascender>727</ascender><descender>-265</descender><bbox><left>-173</left><bottom>-299</bottom><right>1445</right><top>1049</top></bbox><flags>33</flags><stemv>0</stemv><italicangle>0</italicangle><subtype>TRUETYPE</subtype><singlebyte-extras><encoding>WinAnsiEncoding</encoding><first-char>0</first-char><last-char>255</last-char><widths><char idx="0" wdt="751"/><char idx="1" wdt="751"/><char idx="2" wdt="751"/><char idx="3" wdt="751"/><char idx="4" wdt="751"/><char idx="5" wdt="751"/><char idx="6" wdt="751"/><char idx="7" wdt="751"/><char idx="8" wdt="751"/><char idx="9" wdt="751"/><char idx="10" wdt="751"/><char idx="11" wdt="751"/><char idx="12" wdt="751"/><char idx="13" wdt="751"/><char idx="14" wdt="751"/><char idx="15" wdt="751"/><char idx="16" wdt="751"/><char idx="17" wdt="751"/><char idx="18" wdt="751"/><char idx="19" wdt="751"/><char idx="20" wdt="751"/><char idx="21" wdt="751"/><char idx="22" wdt="751"/><char idx="23" wdt="751"/><char idx="24" wdt="751"/><char idx="25" wdt="751"/><char idx="26" wdt="751"/><char idx="27" wdt="751"/><char idx="28" wdt="751"/><char idx="29" wdt="751"/><char idx="30" wdt="751"/><char idx="31" wdt="751"/><char idx="32" wdt="250"/><char idx="33" wdt="277"/><char idx="34" wdt="385"/><char idx="35" wdt="481"/><char idx="36" wdt="500"/><char idx="37" wdt="889"/><char idx="38" wdt="833"/><char idx="39" wdt="227"/><char idx="40" wdt="333"/><char idx="41" wdt="333"/><char idx="42" wdt="443"/><char idx="43" wdt="500"/><char idx="44" wdt="250"/><char idx="45" wdt="333"/><char idx="46" wdt="250"/><char idx="47" wdt="295"/><char idx="48" wdt="500"/><char idx="49" wdt="500"/><char idx="50" wdt="500"/><char idx="51" wdt="500"/><char idx="52" wdt="500"/><char idx="53" wdt="500"/><char idx="54" wdt="500"/><char idx="55" wdt="500"/><char idx="56" wdt="500"/><char idx="57" wdt="500"/><char idx="58" wdt="250"/><char idx="59" wdt="250"/><char idx="60" wdt="500"/><char idx="61" wdt="500"/><char idx="62" wdt="500"/><char idx="63" wdt="443"/><char idx="64" wdt="697"/><char idx="65" wdt="777"/><char idx="66" wdt="660"/><char idx="67" wdt="722"/><char idx="68" wdt="831"/><char idx="69" wdt="605"/><char idx="70" wdt="557"/><char idx="71" wdt="833"/><char idx="72" wdt="833"/><char idx="73" wdt="389"/><char idx="74" wdt="389"/><char idx="75" wdt="769"/><char idx="76" wdt="605"/><char idx="77" wdt="1000"/><char idx="78" wdt="833"/><char idx="79" wdt="833"/><char idx="80" wdt="610"/><char idx="81" wdt="833"/><char idx="82" wdt="713"/><char idx="83" wdt="610"/><char idx="84" wdt="666"/><char idx="85" wdt="777"/><char idx="86" wdt="777"/><char idx="87" wdt="1000"/><char idx="88" wdt="666"/><char idx="89" wdt="666"/><char idx="90" wdt="666"/><char idx="91" wdt="333"/><char idx="92" wdt="295"/><char idx="93" wdt="333"/><char idx="94" wdt="500"/><char idx="95" wdt="500"/><char idx="96" wdt="277"/><char idx="97" wdt="500"/><char idx="98" wdt="610"/><char idx="99" wdt="443"/><char idx="100" wdt="610"/><char idx="101" wdt="500"/><char idx="102" wdt="389"/><char idx="103" wdt="555"/><char idx="104" wdt="610"/><char idx="105" wdt="333"/><char idx="106" wdt="333"/><char idx="107" wdt="610"/><char idx="108" wdt="333"/><char idx="109" wdt="889"/><char idx="110" wdt="610"/><char idx="111" wdt="556"/><char idx="112" wdt="610"/><char idx="113" wdt="610"/><char idx="114" wdt="389"/><char idx="115" wdt="443"/><char idx="116" wdt="333"/><char idx="117" wdt="610"/><char idx="118" wdt="555"/><char idx="119" wdt="833"/><char idx="120" wdt="500"/><char idx="121" wdt="556"/><char idx="122" wdt="500"/><char idx="123" wdt="310"/><char idx="124" wdt="500"/><char idx="125" wdt="310"/><char idx="126" wdt="500"/><char idx="127" wdt="605"/><char idx="128" wdt="500"/><char idx="129" wdt="605"/><char idx="130" wdt="277"/><char idx="131" wdt="500"/><char idx="132" wdt="500"/><char idx="133" wdt="1000"/><char idx="134" wdt="500"/><char idx="135" wdt="500"/><char idx="136" wdt="333"/><char idx="137" wdt="1000"/><char idx="138" wdt="610"/><char idx="139" wdt="389"/><char idx="140" wdt="1000"/><char idx="141" wdt="605"/><char idx="142" wdt="666"/><char idx="143" wdt="605"/><char idx="144" wdt="605"/><char idx="145" wdt="277"/><char idx="146" wdt="277"/><char idx="147" wdt="500"/><char idx="148" wdt="500"/><char idx="149" wdt="605"/><char idx="150" wdt="500"/><char idx="151" wdt="1000"/><char idx="152" wdt="500"/><char idx="153" wdt="998"/><char idx="154" wdt="443"/><char idx="155" wdt="389"/><char idx="156" wdt="833"/><char idx="157" wdt="605"/><char idx="158" wdt="500"/><char idx="159" wdt="666"/><char idx="160" wdt="250"/><char idx="161" wdt="277"/><char idx="162" wdt="500"/><char idx="163" wdt="500"/><char idx="164" wdt="500"/><char idx="165" wdt="500"/><char idx="166" wdt="500"/><char idx="167" wdt="500"/><char idx="168" wdt="333"/><char idx="169" wdt="747"/><char idx="170" wdt="293"/><char idx="171" wdt="500"/><char idx="172" wdt="500"/><char idx="173" wdt="333"/><char idx="174" wdt="747"/><char idx="175" wdt="333"/><char idx="176" wdt="399"/><char idx="177" wdt="500"/><char idx="178" wdt="321"/><char idx="179" wdt="321"/><char idx="180" wdt="333"/><char idx="181" wdt="675"/><char idx="182" wdt="641"/><char idx="183" wdt="250"/><char idx="184" wdt="333"/><char idx="185" wdt="321"/><char idx="186" wdt="326"/><char idx="187" wdt="500"/><char idx="188" wdt="810"/><char idx="189" wdt="810"/><char idx="190" wdt="810"/><char idx="191" wdt="443"/><char idx="192" wdt="777"/><char idx="193" wdt="777"/><char idx="194" wdt="777"/><char idx="195" wdt="777"/><char idx="196" wdt="777"/><char idx="197" wdt="777"/><char idx="198" wdt="1000"/><char idx="199" wdt="722"/><char idx="200" wdt="605"/><char idx="201" wdt="605"/><char idx="202" wdt="605"/><char idx="203" wdt="605"/><char idx="204" wdt="389"/><char idx="205" wdt="389"/><char idx="206" wdt="389"/><char idx="207" wdt="389"/><char idx="208" wdt="831"/><char idx="209" wdt="833"/><char idx="210" wdt="833"/><char idx="211" wdt="833"/><char idx="212" wdt="833"/><char idx="213" wdt="833"/><char idx="214" wdt="833"/><char idx="215" wdt="500"/><char idx="216" wdt="833"/><char idx="217" wdt="777"/><char idx="218" wdt="777"/><char idx="219" wdt="777"/><char idx="220" wdt="777"/><char idx="221" wdt="666"/><char idx="222" wdt="610"/><char idx="223" wdt="610"/><char idx="224" wdt="500"/><char idx="225" wdt="500"/><char idx="226" wdt="500"/><char idx="227" wdt="500"/><char idx="228" wdt="500"/><char idx="229" wdt="500"/><char idx="230" wdt="777"/><char idx="231" wdt="443"/><char idx="232" wdt="500"/><char idx="233" wdt="500"/><char idx="234" wdt="500"/><char idx="235" wdt="500"/><char idx="236" wdt="333"/><char idx="237" wdt="333"/><char idx="238" wdt="333"/><char idx="239" wdt="333"/><char idx="240" wdt="556"/><char idx="241" wdt="610"/><char idx="242" wdt="556"/><char idx="243" wdt="556"/><char idx="244" wdt="556"/><char idx="245" wdt="556"/><char idx="246" wdt="556"/><char idx="247" wdt="500"/><char idx="248" wdt="556"/><char idx="249" wdt="610"/><char idx="250" wdt="610"/><char idx="251" wdt="610"/><char idx="252" wdt="610"/><char idx="253" wdt="556"/><char idx="254" wdt="610"/><char idx="255" wdt="556"/></widths></singlebyte-extras><kerning kpx1="121"><pair kern="-91" kpx2="46"/><pair kern="-91" kpx2="44"/></kerning><kerning kpx1="89"><pair kern="-55" kpx2="59"/><pair kern="-55" kpx2="58"/><pair kern="-74" kpx2="118"/><pair kern="-55" kpx2="117"/><pair kern="-91" kpx2="113"/><pair kern="-55" kpx2="112"/><pair kern="-74" kpx2="111"/><pair kern="-74" kpx2="46"/><pair kern="-74" kpx2="45"/><pair kern="-74" kpx2="173"/><pair kern="-74" kpx2="44"/><pair kern="-18" kpx2="105"/><pair kern="-74" kpx2="101"/><pair kern="-74" kpx2="97"/><pair kern="-55" kpx2="65"/></kerning><kerning kpx1="87"><pair kern="-37" kpx2="59"/><pair kern="-37" kpx2="58"/><pair kern="-55" kpx2="121"/><pair kern="-55" kpx2="117"/><pair kern="-37" kpx2="114"/><pair kern="-74" kpx2="111"/><pair kern="-91" kpx2="46"/><pair kern="-37" kpx2="45"/><pair kern="-37" kpx2="173"/><pair kern="-91" kpx2="44"/><pair kern="-18" kpx2="105"/><pair kern="-74" kpx2="101"/><pair kern="-74" kpx2="97"/><pair kern="-91" kpx2="65"/></kerning><kerning kpx1="119"><pair kern="-91" kpx2="46"/><pair kern="-91" kpx2="44"/></kerning><kerning kpx1="86"><pair kern="-74" kpx2="59"/><pair kern="-74" kpx2="58"/><pair kern="-91" kpx2="121"/><pair kern="-74" kpx2="117"/><pair kern="-74" kpx2="114"/><pair kern="-110" kpx2="111"/><pair kern="-128" kpx2="46"/><pair kern="-91" kpx2="45"/><pair kern="-91" kpx2="173"/><pair kern="-128" kpx2="44"/><pair kern="-37" kpx2="105"/><pair kern="-110" kpx2="101"/><pair kern="-110" kpx2="97"/><pair kern="-128" kpx2="65"/></kerning><kerning kpx1="118"><pair kern="-110" kpx2="46"/><pair kern="-110" kpx2="44"/></kerning><kerning kpx1="84"><pair kern="-74" kpx2="59"/><pair kern="-74" kpx2="58"/><pair kern="-91" kpx2="121"/><pair kern="-91" kpx2="119"/><pair kern="-74" kpx2="117"/><pair kern="-91" kpx2="115"/><pair kern="-74" kpx2="114"/><pair kern="-91" kpx2="111"/><pair kern="-91" kpx2="46"/><pair kern="-74" kpx2="45"/><pair kern="-74" kpx2="173"/><pair kern="-91" kpx2="44"/><pair kern="-37" kpx2="105"/><pair kern="-91" kpx2="101"/><pair kern="-110" kpx2="99"/><pair kern="-91" kpx2="97"/><pair kern="-91" kpx2="65"/></kerning><kerning kpx1="147"><pair kern="-91" kpx2="65"/></kerning><kerning kpx1="146"><pair kern="-55" kpx2="115"/></kerning><kerning kpx1="82"><pair kern="-55" kpx2="89"/><pair kern="-37" kpx2="121"/><pair kern="-37" kpx2="87"/><pair kern="-74" kpx2="86"/><pair kern="-55" kpx2="84"/></kerning><kerning kpx1="114"><pair kern="-55" kpx2="46"/><pair kern="-55" kpx2="44"/><pair kern="55" kpx2="148"/><pair kern="55" kpx2="146"/></kerning><kerning kpx1="145"><pair kern="-91" kpx2="65"/></kerning><kerning kpx1="80"><pair kern="-128" kpx2="46"/><pair kern="-128" kpx2="44"/><pair kern="-74" kpx2="65"/></kerning><kerning kpx1="173"><pair kern="-74" kpx2="89"/><pair kern="-37" kpx2="87"/><pair kern="-91" kpx2="86"/><pair kern="-74" kpx2="84"/></kerning><kerning kpx1="45"><pair kern="-74" kpx2="89"/><pair kern="-37" kpx2="87"/><pair kern="-91" kpx2="86"/><pair kern="-74" kpx2="84"/></kerning><kerning kpx1="76"><pair kern="-91" kpx2="89"/><pair kern="-74" kpx2="121"/><pair kern="-91" kpx2="87"/><pair kern="-91" kpx2="86"/><pair kern="-74" kpx2="84"/><pair kern="-74" kpx2="148"/><pair kern="-74" kpx2="146"/></kerning><kerning kpx1="102"><pair kern="37" kpx2="148"/><pair kern="37" kpx2="146"/></kerning><kerning kpx1="70"><pair kern="-110" kpx2="46"/><pair kern="-110" kpx2="44"/><pair kern="-55" kpx2="65"/></kerning><kerning kpx1="65"><pair kern="-110" kpx2="89"/><pair kern="-69" kpx2="121"/><pair kern="-91" kpx2="87"/><pair kern="-69" kpx2="119"/><pair kern="-128" kpx2="86"/><pair kern="-69" kpx2="118"/><pair kern="-91" kpx2="84"/><pair kern="-91" kpx2="148"/><pair kern="-91" kpx2="146"/></kerning><kerning kpx1="96"><pair kern="-91" kpx2="65"/></kerning></font-metrics>
\ No newline at end of file
diff --git a/src/main/resources/docbook-shared/fonts/palatino-italic.xml b/src/main/resources/docbook-shared/fonts/palatino-italic.xml
new file mode 100644
index 0000000..e04833b
--- /dev/null
+++ b/src/main/resources/docbook-shared/fonts/palatino-italic.xml
@@ -0,0 +1,21 @@
+<?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.

+	 ***************************************************************

+   -->

+<font-metrics metrics-version="2" type="TRUETYPE"><font-name>PalatinoLinotype,Italic</font-name><embed/><cap-height>689</cap-height><x-height>472</x-height><ascender>718</ascender><descender>-277</descender><bbox><left>-161</left><bottom>-291</bottom><right>1248</right><top>1052</top></bbox><flags>97</flags><stemv>0</stemv><italicangle>-10</italicangle><subtype>TRUETYPE</subtype><singlebyte-extras><encoding>WinAnsiEncoding</encoding><first-char>0</first-char><last-char>255</last-char><widths><char idx="0" wdt="815"/><char idx="1" wdt="815"/><char idx="2" wdt="815"/><char idx="3" wdt="815"/><char idx="4" wdt="815"/><char idx="5" wdt="815"/><char idx="6" wdt="815"/><char idx="7" wdt="815"/><char idx="8" wdt="815"/><char idx="9" wdt="815"/><char idx="10" wdt="815"/><char idx="11" wdt="815"/><char idx="12" wdt="815"/><char idx="13" wdt="815"/><char idx="14" wdt="815"/><char idx="15" wdt="815"/><char idx="16" wdt="815"/><char idx="17" wdt="815"/><char idx="18" wdt="815"/><char idx="19" wdt="815"/><char idx="20" wdt="815"/><char idx="21" wdt="815"/><char idx="22" wdt="815"/><char idx="23" wdt="815"/><char idx="24" wdt="815"/><char idx="25" wdt="815"/><char idx="26" wdt="815"/><char idx="27" wdt="815"/><char idx="28" wdt="815"/><char idx="29" wdt="815"/><char idx="30" wdt="815"/><char idx="31" wdt="815"/><char idx="32" wdt="250"/><char idx="33" wdt="333"/><char idx="34" wdt="500"/><char idx="35" wdt="478"/><char idx="36" wdt="500"/><char idx="37" wdt="889"/><char idx="38" wdt="777"/><char idx="39" wdt="333"/><char idx="40" wdt="333"/><char idx="41" wdt="333"/><char idx="42" wdt="389"/><char idx="43" wdt="500"/><char idx="44" wdt="250"/><char idx="45" wdt="333"/><char idx="46" wdt="250"/><char idx="47" wdt="296"/><char idx="48" wdt="500"/><char idx="49" wdt="500"/><char idx="50" wdt="500"/><char idx="51" wdt="500"/><char idx="52" wdt="500"/><char idx="53" wdt="500"/><char idx="54" wdt="500"/><char idx="55" wdt="500"/><char idx="56" wdt="500"/><char idx="57" wdt="500"/><char idx="58" wdt="250"/><char idx="59" wdt="250"/><char idx="60" wdt="500"/><char idx="61" wdt="500"/><char idx="62" wdt="500"/><char idx="63" wdt="500"/><char idx="64" wdt="683"/><char idx="65" wdt="722"/><char idx="66" wdt="610"/><char idx="67" wdt="666"/><char idx="68" wdt="777"/><char idx="69" wdt="610"/><char idx="70" wdt="555"/><char idx="71" wdt="722"/><char idx="72" wdt="777"/><char idx="73" wdt="333"/><char idx="74" wdt="333"/><char idx="75" wdt="666"/><char idx="76" wdt="556"/><char idx="77" wdt="943"/><char idx="78" wdt="777"/><char idx="79" wdt="777"/><char idx="80" wdt="610"/><char idx="81" wdt="777"/><char idx="82" wdt="666"/><char idx="83" wdt="555"/><char idx="84" wdt="611"/><char idx="85" wdt="777"/><char idx="86" wdt="657"/><char idx="87" wdt="943"/><char idx="88" wdt="721"/><char idx="89" wdt="666"/><char idx="90" wdt="666"/><char idx="91" wdt="333"/><char idx="92" wdt="605"/><char idx="93" wdt="333"/><char idx="94" wdt="500"/><char idx="95" wdt="500"/><char idx="96" wdt="277"/><char idx="97" wdt="443"/><char idx="98" wdt="462"/><char idx="99" wdt="406"/><char idx="100" wdt="500"/><char idx="101" wdt="389"/><char idx="102" wdt="277"/><char idx="103" wdt="500"/><char idx="104" wdt="500"/><char idx="105" wdt="277"/><char idx="106" wdt="277"/><char idx="107" wdt="443"/><char idx="108" wdt="277"/><char idx="109" wdt="777"/><char idx="110" wdt="556"/><char idx="111" wdt="443"/><char idx="112" wdt="500"/><char idx="113" wdt="462"/><char idx="114" wdt="389"/><char idx="115" wdt="389"/><char idx="116" wdt="333"/><char idx="117" wdt="556"/><char idx="118" wdt="500"/><char idx="119" wdt="722"/><char idx="120" wdt="500"/><char idx="121" wdt="500"/><char idx="122" wdt="443"/><char idx="123" wdt="333"/><char idx="124" wdt="500"/><char idx="125" wdt="333"/><char idx="126" wdt="500"/><char idx="127" wdt="500"/><char idx="128" wdt="500"/><char idx="129" wdt="500"/><char idx="130" wdt="278"/><char idx="131" wdt="500"/><char idx="132" wdt="500"/><char idx="133" wdt="1000"/><char idx="134" wdt="500"/><char idx="135" wdt="500"/><char idx="136" wdt="333"/><char idx="137" wdt="1000"/><char idx="138" wdt="555"/><char idx="139" wdt="333"/><char idx="140" wdt="1027"/><char idx="141" wdt="500"/><char idx="142" wdt="666"/><char idx="143" wdt="500"/><char idx="144" wdt="500"/><char idx="145" wdt="277"/><char idx="146" wdt="277"/><char idx="147" wdt="500"/><char idx="148" wdt="500"/><char idx="149" wdt="500"/><char idx="150" wdt="500"/><char idx="151" wdt="1000"/><char idx="152" wdt="500"/><char idx="153" wdt="1000"/><char idx="154" wdt="389"/><char idx="155" wdt="333"/><char idx="156" wdt="668"/><char idx="157" wdt="500"/><char idx="158" wdt="443"/><char idx="159" wdt="666"/><char idx="160" wdt="250"/><char idx="161" wdt="333"/><char idx="162" wdt="500"/><char idx="163" wdt="500"/><char idx="164" wdt="500"/><char idx="165" wdt="500"/><char idx="166" wdt="500"/><char idx="167" wdt="500"/><char idx="168" wdt="333"/><char idx="169" wdt="747"/><char idx="170" wdt="333"/><char idx="171" wdt="500"/><char idx="172" wdt="500"/><char idx="173" wdt="333"/><char idx="174" wdt="747"/><char idx="175" wdt="333"/><char idx="176" wdt="399"/><char idx="177" wdt="500"/><char idx="178" wdt="319"/><char idx="179" wdt="319"/><char idx="180" wdt="333"/><char idx="181" wdt="610"/><char idx="182" wdt="500"/><char idx="183" wdt="250"/><char idx="184" wdt="333"/><char idx="185" wdt="319"/><char idx="186" wdt="333"/><char idx="187" wdt="500"/><char idx="188" wdt="806"/><char idx="189" wdt="806"/><char idx="190" wdt="806"/><char idx="191" wdt="500"/><char idx="192" wdt="722"/><char idx="193" wdt="722"/><char idx="194" wdt="722"/><char idx="195" wdt="722"/><char idx="196" wdt="722"/><char idx="197" wdt="722"/><char idx="198" wdt="940"/><char idx="199" wdt="666"/><char idx="200" wdt="610"/><char idx="201" wdt="610"/><char idx="202" wdt="610"/><char idx="203" wdt="610"/><char idx="204" wdt="333"/><char idx="205" wdt="333"/><char idx="206" wdt="333"/><char idx="207" wdt="333"/><char idx="208" wdt="777"/><char idx="209" wdt="777"/><char idx="210" wdt="777"/><char idx="211" wdt="777"/><char idx="212" wdt="777"/><char idx="213" wdt="777"/><char idx="214" wdt="777"/><char idx="215" wdt="500"/><char idx="216" wdt="777"/><char idx="217" wdt="777"/><char idx="218" wdt="777"/><char idx="219" wdt="777"/><char idx="220" wdt="777"/><char idx="221" wdt="666"/><char idx="222" wdt="610"/><char idx="223" wdt="500"/><char idx="224" wdt="443"/><char idx="225" wdt="443"/><char idx="226" wdt="443"/><char idx="227" wdt="443"/><char idx="228" wdt="443"/><char idx="229" wdt="443"/><char idx="230" wdt="638"/><char idx="231" wdt="406"/><char idx="232" wdt="389"/><char idx="233" wdt="389"/><char idx="234" wdt="389"/><char idx="235" wdt="389"/><char idx="236" wdt="277"/><char idx="237" wdt="277"/><char idx="238" wdt="277"/><char idx="239" wdt="277"/><char idx="240" wdt="443"/><char idx="241" wdt="556"/><char idx="242" wdt="443"/><char idx="243" wdt="443"/><char idx="244" wdt="443"/><char idx="245" wdt="443"/><char idx="246" wdt="443"/><char idx="247" wdt="500"/><char idx="248" wdt="443"/><char idx="249" wdt="556"/><char idx="250" wdt="556"/><char idx="251" wdt="556"/><char idx="252" wdt="556"/><char idx="253" wdt="500"/><char idx="254" wdt="500"/><char idx="255" wdt="500"/></widths></singlebyte-extras><kerning kpx1="121"><pair kern="-37" kpx2="46"/><pair kern="-37" kpx2="44"/></kerning><kerning kpx1="89"><pair kern="-74" kpx2="59"/><pair kern="-74" kpx2="58"/><pair kern="-74" kpx2="118"/><pair kern="-91" kpx2="117"/><pair kern="-91" kpx2="113"/><pair kern="-74" kpx2="112"/><pair kern="-110" kpx2="111"/><pair kern="-91" kpx2="46"/><pair kern="-74" kpx2="45"/><pair kern="-74" kpx2="173"/><pair kern="-91" kpx2="44"/><pair kern="-55" kpx2="105"/><pair kern="-110" kpx2="101"/><pair kern="-91" kpx2="97"/><pair kern="-91" kpx2="65"/></kerning><kerning kpx1="119"><pair kern="-55" kpx2="46"/><pair kern="-55" kpx2="44"/></kerning><kerning kpx1="87"><pair kern="-18" kpx2="59"/><pair kern="-18" kpx2="58"/><pair kern="-20" kpx2="121"/><pair kern="-20" kpx2="117"/><pair kern="-20" kpx2="114"/><pair kern="-20" kpx2="111"/><pair kern="-55" kpx2="46"/><pair kern="-18" kpx2="45"/><pair kern="-18" kpx2="173"/><pair kern="-55" kpx2="44"/><pair kern="-20" kpx2="105"/><pair kern="-20" kpx2="101"/><pair kern="-20" kpx2="97"/><pair kern="-91" kpx2="65"/></kerning><kerning kpx1="86"><pair kern="-37" kpx2="59"/><pair kern="-37" kpx2="58"/><pair kern="-79" kpx2="121"/><pair kern="-97" kpx2="117"/><pair kern="-91" kpx2="114"/><pair kern="-58" kpx2="79"/><pair kern="-97" kpx2="111"/><pair kern="-128" kpx2="46"/><pair kern="-55" kpx2="45"/><pair kern="-55" kpx2="173"/><pair kern="-128" kpx2="44"/><pair kern="-74" kpx2="105"/><pair kern="-91" kpx2="101"/><pair kern="-48" kpx2="69"/><pair kern="-97" kpx2="97"/><pair kern="-185" kpx2="65"/></kerning><kerning kpx1="118"><pair kern="-55" kpx2="46"/><pair kern="-55" kpx2="44"/></kerning><kerning kpx1="84"><pair kern="-74" kpx2="59"/><pair kern="-74" kpx2="58"/><pair kern="-86" kpx2="121"/><pair kern="-86" kpx2="119"/><pair kern="-97" kpx2="117"/><pair kern="-97" kpx2="115"/><pair kern="-97" kpx2="114"/><pair kern="-18" kpx2="79"/><pair kern="-97" kpx2="111"/><pair kern="-74" kpx2="46"/><pair kern="-55" kpx2="45"/><pair kern="-55" kpx2="173"/><pair kern="-74" kpx2="44"/><pair kern="-55" kpx2="105"/><pair kern="-97" kpx2="101"/><pair kern="-97" kpx2="99"/><pair kern="-97" kpx2="97"/><pair kern="-91" kpx2="65"/></kerning><kerning kpx1="82"><pair kern="-55" kpx2="89"/><pair kern="-37" kpx2="121"/><pair kern="-55" kpx2="87"/><pair kern="-74" kpx2="86"/><pair kern="-55" kpx2="84"/></kerning><kerning kpx1="114"><pair kern="-18" kpx2="111"/><pair kern="-74" kpx2="46"/><pair kern="-74" kpx2="44"/><pair kern="-18" kpx2="104"/><pair kern="-18" kpx2="103"/><pair kern="-18" kpx2="101"/><pair kern="-18" kpx2="99"/><pair kern="-18" kpx2="113"/></kerning><kerning kpx1="49"><pair kern="-39" kpx2="49"/></kerning><kerning kpx1="80"><pair kern="-128" kpx2="46"/><pair kern="-128" kpx2="44"/><pair kern="-128" kpx2="65"/></kerning><kerning kpx1="79"><pair kern="-58" kpx2="65"/></kerning><kerning kpx1="76"><pair kern="-74" kpx2="89"/><pair kern="-37" kpx2="121"/><pair kern="-48" kpx2="87"/><pair kern="-48" kpx2="86"/><pair kern="-68" kpx2="84"/><pair kern="-18" kpx2="160"/><pair kern="-18" kpx2="32"/></kerning><kerning kpx1="70"><pair kern="-110" kpx2="46"/><pair kern="-110" kpx2="44"/><pair kern="-110" kpx2="65"/></kerning><kerning kpx1="69"><pair kern="-48" kpx2="65"/></kerning><kerning kpx1="65"><pair kern="-55" kpx2="89"/><pair kern="-55" kpx2="121"/><pair kern="-55" kpx2="87"/><pair kern="-37" kpx2="119"/><pair kern="-83" kpx2="86"/><pair kern="-37" kpx2="118"/><pair kern="-55" kpx2="84"/><pair kern="-37" kpx2="160"/><pair kern="-37" kpx2="32"/></kerning></font-metrics>
\ No newline at end of file
diff --git a/src/main/resources/docbook-shared/fonts/palatino.xml b/src/main/resources/docbook-shared/fonts/palatino.xml
new file mode 100644
index 0000000..d5e7c8c
--- /dev/null
+++ b/src/main/resources/docbook-shared/fonts/palatino.xml
@@ -0,0 +1,21 @@
+<?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.

+	 ***************************************************************

+   -->

+<font-metrics metrics-version="2" type="TRUETYPE"><font-name>PalatinoLinotype</font-name><embed/><cap-height>689</cap-height><x-height>467</x-height><ascender>723</ascender><descender>-281</descender><bbox><left>-169</left><bottom>-291</bottom><right>1419</right><top>1049</top></bbox><flags>33</flags><stemv>0</stemv><italicangle>0</italicangle><subtype>TRUETYPE</subtype><singlebyte-extras><encoding>WinAnsiEncoding</encoding><first-char>0</first-char><last-char>255</last-char><widths><char idx="0" wdt="535"/><char idx="1" wdt="535"/><char idx="2" wdt="535"/><char idx="3" wdt="535"/><char idx="4" wdt="535"/><char idx="5" wdt="535"/><char idx="6" wdt="535"/><char idx="7" wdt="535"/><char idx="8" wdt="535"/><char idx="9" wdt="535"/><char idx="10" wdt="535"/><char idx="11" wdt="535"/><char idx="12" wdt="535"/><char idx="13" wdt="535"/><char idx="14" wdt="535"/><char idx="15" wdt="535"/><char idx="16" wdt="535"/><char idx="17" wdt="535"/><char idx="18" wdt="535"/><char idx="19" wdt="535"/><char idx="20" wdt="535"/><char idx="21" wdt="535"/><char idx="22" wdt="535"/><char idx="23" wdt="535"/><char idx="24" wdt="535"/><char idx="25" wdt="535"/><char idx="26" wdt="535"/><char idx="27" wdt="535"/><char idx="28" wdt="535"/><char idx="29" wdt="535"/><char idx="30" wdt="535"/><char idx="31" wdt="535"/><char idx="32" wdt="250"/><char idx="33" wdt="277"/><char idx="34" wdt="371"/><char idx="35" wdt="479"/><char idx="36" wdt="500"/><char idx="37" wdt="839"/><char idx="38" wdt="777"/><char idx="39" wdt="208"/><char idx="40" wdt="333"/><char idx="41" wdt="333"/><char idx="42" wdt="389"/><char idx="43" wdt="500"/><char idx="44" wdt="250"/><char idx="45" wdt="333"/><char idx="46" wdt="250"/><char idx="47" wdt="320"/><char idx="48" wdt="500"/><char idx="49" wdt="500"/><char idx="50" wdt="500"/><char idx="51" wdt="500"/><char idx="52" wdt="500"/><char idx="53" wdt="500"/><char idx="54" wdt="500"/><char idx="55" wdt="500"/><char idx="56" wdt="500"/><char idx="57" wdt="500"/><char idx="58" wdt="250"/><char idx="59" wdt="250"/><char idx="60" wdt="500"/><char idx="61" wdt="500"/><char idx="62" wdt="500"/><char idx="63" wdt="443"/><char idx="64" wdt="683"/><char idx="65" wdt="777"/><char idx="66" wdt="610"/><char idx="67" wdt="708"/><char idx="68" wdt="773"/><char idx="69" wdt="610"/><char idx="70" wdt="556"/><char idx="71" wdt="763"/><char idx="72" wdt="832"/><char idx="73" wdt="336"/><char idx="74" wdt="333"/><char idx="75" wdt="726"/><char idx="76" wdt="610"/><char idx="77" wdt="945"/><char idx="78" wdt="831"/><char idx="79" wdt="786"/><char idx="80" wdt="604"/><char idx="81" wdt="786"/><char idx="82" wdt="667"/><char idx="83" wdt="524"/><char idx="84" wdt="612"/><char idx="85" wdt="777"/><char idx="86" wdt="722"/><char idx="87" wdt="1000"/><char idx="88" wdt="666"/><char idx="89" wdt="666"/><char idx="90" wdt="666"/><char idx="91" wdt="333"/><char idx="92" wdt="605"/><char idx="93" wdt="333"/><char idx="94" wdt="500"/><char idx="95" wdt="500"/><char idx="96" wdt="277"/><char idx="97" wdt="500"/><char idx="98" wdt="553"/><char idx="99" wdt="443"/><char idx="100" wdt="610"/><char idx="101" wdt="479"/><char idx="102" wdt="333"/><char idx="103" wdt="556"/><char idx="104" wdt="582"/><char idx="105" wdt="291"/><char idx="106" wdt="233"/><char idx="107" wdt="556"/><char idx="108" wdt="291"/><char idx="109" wdt="882"/><char idx="110" wdt="582"/><char idx="111" wdt="545"/><char idx="112" wdt="601"/><char idx="113" wdt="560"/><char idx="114" wdt="395"/><char idx="115" wdt="423"/><char idx="116" wdt="326"/><char idx="117" wdt="603"/><char idx="118" wdt="564"/><char idx="119" wdt="833"/><char idx="120" wdt="516"/><char idx="121" wdt="556"/><char idx="122" wdt="500"/><char idx="123" wdt="333"/><char idx="124" wdt="500"/><char idx="125" wdt="333"/><char idx="126" wdt="500"/><char idx="127" wdt="605"/><char idx="128" wdt="500"/><char idx="129" wdt="605"/><char idx="130" wdt="277"/><char idx="131" wdt="500"/><char idx="132" wdt="500"/><char idx="133" wdt="1000"/><char idx="134" wdt="500"/><char idx="135" wdt="500"/><char idx="136" wdt="333"/><char idx="137" wdt="1144"/><char idx="138" wdt="524"/><char idx="139" wdt="331"/><char idx="140" wdt="998"/><char idx="141" wdt="605"/><char idx="142" wdt="666"/><char idx="143" wdt="605"/><char idx="144" wdt="605"/><char idx="145" wdt="277"/><char idx="146" wdt="277"/><char idx="147" wdt="500"/><char idx="148" wdt="500"/><char idx="149" wdt="605"/><char idx="150" wdt="500"/><char idx="151" wdt="1000"/><char idx="152" wdt="500"/><char idx="153" wdt="979"/><char idx="154" wdt="423"/><char idx="155" wdt="331"/><char idx="156" wdt="827"/><char idx="157" wdt="605"/><char idx="158" wdt="500"/><char idx="159" wdt="666"/><char idx="160" wdt="250"/><char idx="161" wdt="277"/><char idx="162" wdt="500"/><char idx="163" wdt="500"/><char idx="164" wdt="500"/><char idx="165" wdt="500"/><char idx="166" wdt="500"/><char idx="167" wdt="500"/><char idx="168" wdt="333"/><char idx="169" wdt="747"/><char idx="170" wdt="333"/><char idx="171" wdt="500"/><char idx="172" wdt="500"/><char idx="173" wdt="333"/><char idx="174" wdt="747"/><char idx="175" wdt="333"/><char idx="176" wdt="399"/><char idx="177" wdt="500"/><char idx="178" wdt="319"/><char idx="179" wdt="319"/><char idx="180" wdt="333"/><char idx="181" wdt="646"/><char idx="182" wdt="627"/><char idx="183" wdt="250"/><char idx="184" wdt="333"/><char idx="185" wdt="319"/><char idx="186" wdt="333"/><char idx="187" wdt="500"/><char idx="188" wdt="806"/><char idx="189" wdt="806"/><char idx="190" wdt="806"/><char idx="191" wdt="443"/><char idx="192" wdt="777"/><char idx="193" wdt="777"/><char idx="194" wdt="777"/><char idx="195" wdt="777"/><char idx="196" wdt="777"/><char idx="197" wdt="777"/><char idx="198" wdt="943"/><char idx="199" wdt="708"/><char idx="200" wdt="610"/><char idx="201" wdt="610"/><char idx="202" wdt="610"/><char idx="203" wdt="610"/><char idx="204" wdt="336"/><char idx="205" wdt="336"/><char idx="206" wdt="336"/><char idx="207" wdt="336"/><char idx="208" wdt="773"/><char idx="209" wdt="831"/><char idx="210" wdt="786"/><char idx="211" wdt="786"/><char idx="212" wdt="786"/><char idx="213" wdt="786"/><char idx="214" wdt="786"/><char idx="215" wdt="500"/><char idx="216" wdt="833"/><char idx="217" wdt="777"/><char idx="218" wdt="777"/><char idx="219" wdt="777"/><char idx="220" wdt="777"/><char idx="221" wdt="666"/><char idx="222" wdt="604"/><char idx="223" wdt="556"/><char idx="224" wdt="500"/><char idx="225" wdt="500"/><char idx="226" wdt="500"/><char idx="227" wdt="500"/><char idx="228" wdt="500"/><char idx="229" wdt="500"/><char idx="230" wdt="757"/><char idx="231" wdt="443"/><char idx="232" wdt="479"/><char idx="233" wdt="479"/><char idx="234" wdt="479"/><char idx="235" wdt="479"/><char idx="236" wdt="291"/><char idx="237" wdt="291"/><char idx="238" wdt="291"/><char idx="239" wdt="291"/><char idx="240" wdt="545"/><char idx="241" wdt="582"/><char idx="242" wdt="545"/><char idx="243" wdt="545"/><char idx="244" wdt="545"/><char idx="245" wdt="545"/><char idx="246" wdt="545"/><char idx="247" wdt="500"/><char idx="248" wdt="545"/><char idx="249" wdt="603"/><char idx="250" wdt="603"/><char idx="251" wdt="603"/><char idx="252" wdt="603"/><char idx="253" wdt="556"/><char idx="254" wdt="601"/><char idx="255" wdt="556"/></widths></singlebyte-extras><kerning kpx1="91"><pair kern="51" kpx2="74"/></kerning><kerning kpx1="121"><pair kern="-17" kpx2="111"/><pair kern="-109" kpx2="46"/><pair kern="-109" kpx2="44"/><pair kern="-17" kpx2="101"/><pair kern="-26" kpx2="97"/></kerning><kerning kpx1="89"><pair kern="-48" kpx2="59"/><pair kern="-48" kpx2="58"/><pair kern="-83" kpx2="118"/><pair kern="-83" kpx2="117"/><pair kern="-80" kpx2="115"/><pair kern="-85" kpx2="114"/><pair kern="-82" kpx2="113"/><pair kern="-85" kpx2="112"/><pair kern="-82" kpx2="111"/><pair kern="-95" kpx2="46"/><pair kern="-90" kpx2="45"/><pair kern="-90" kpx2="173"/><pair kern="-85" kpx2="44"/><pair kern="-31" kpx2="105"/><pair kern="-82" kpx2="101"/><pair kern="-90" kpx2="100"/><pair kern="-90" kpx2="97"/><pair kern="-90" kpx2="65"/><pair kern="-18" kpx2="160"/><pair kern="-18" kpx2="32"/></kerning><kerning kpx1="87"><pair kern="-18" kpx2="59"/><pair kern="-18" kpx2="58"/><pair kern="-48" kpx2="121"/><pair kern="-48" kpx2="117"/><pair kern="-73" kpx2="114"/><pair kern="-65" kpx2="111"/><pair kern="-90" kpx2="46"/><pair kern="-55" kpx2="45"/><pair kern="-55" kpx2="173"/><pair kern="-90" kpx2="44"/><pair kern="-24" kpx2="105"/><pair kern="-65" kpx2="101"/><pair kern="-65" kpx2="100"/><pair kern="-70" kpx2="97"/><pair kern="-100" kpx2="65"/></kerning><kerning kpx1="119"><pair kern="-17" kpx2="111"/><pair kern="-90" kpx2="46"/><pair kern="-90" kpx2="44"/><pair kern="-17" kpx2="101"/><pair kern="-26" kpx2="97"/></kerning><kerning kpx1="86"><pair kern="-55" kpx2="59"/><pair kern="-55" kpx2="58"/><pair kern="-65" kpx2="121"/><pair kern="-65" kpx2="117"/><pair kern="-72" kpx2="114"/><pair kern="-70" kpx2="111"/><pair kern="-127" kpx2="46"/><pair kern="-74" kpx2="45"/><pair kern="-74" kpx2="173"/><pair kern="-127" kpx2="44"/><pair kern="-24" kpx2="105"/><pair kern="-70" kpx2="101"/><pair kern="-80" kpx2="97"/><pair kern="-95" kpx2="65"/></kerning><kerning kpx1="118"><pair kern="-17" kpx2="111"/><pair kern="-109" kpx2="46"/><pair kern="-109" kpx2="44"/><pair kern="-17" kpx2="101"/><pair kern="-26" kpx2="97"/></kerning><kerning kpx1="84"><pair kern="-36" kpx2="59"/><pair kern="-36" kpx2="58"/><pair kern="-64" kpx2="122"/><pair kern="-64" kpx2="121"/><pair kern="-64" kpx2="119"/><pair kern="-64" kpx2="118"/><pair kern="-70" kpx2="117"/><pair kern="-70" kpx2="115"/><pair kern="-70" kpx2="114"/><pair kern="-70" kpx2="111"/><pair kern="-74" kpx2="46"/><pair kern="-31" kpx2="109"/><pair kern="-56" kpx2="45"/><pair kern="-56" kpx2="173"/><pair kern="-74" kpx2="44"/><pair kern="-70" kpx2="101"/><pair kern="-70" kpx2="100"/><pair kern="-70" kpx2="99"/><pair kern="-80" kpx2="97"/><pair kern="-63" kpx2="65"/></kerning><kerning kpx1="147"><pair kern="-166" kpx2="191"/><pair kern="-146" kpx2="65"/></kerning><kerning kpx1="114"><pair kern="-58" kpx2="46"/><pair kern="-18" kpx2="173"/><pair kern="-18" kpx2="45"/><pair kern="-39" kpx2="44"/><pair kern="63" kpx2="148"/><pair kern="63" kpx2="146"/></kerning><kerning kpx1="82"><pair kern="-19" kpx2="89"/><pair kern="-17" kpx2="121"/><pair kern="-19" kpx2="87"/><pair kern="-39" kpx2="86"/><pair kern="-21" kpx2="160"/><pair kern="-21" kpx2="32"/></kerning><kerning kpx1="146"><pair kern="-68" kpx2="116"/><pair kern="-80" kpx2="244"/><pair kern="-107" kpx2="115"/><pair kern="-58" kpx2="114"/><pair kern="-80" kpx2="111"/><pair kern="-58" kpx2="109"/><pair kern="-80" kpx2="234"/><pair kern="-80" kpx2="233"/><pair kern="-80" kpx2="232"/><pair kern="-80" kpx2="101"/><pair kern="-107" kpx2="100"/><pair kern="-61" kpx2="226"/><pair kern="-90" kpx2="97"/><pair kern="-68" kpx2="160"/><pair kern="-68" kpx2="32"/></kerning><kerning kpx1="145"><pair kern="-166" kpx2="191"/><pair kern="-146" kpx2="65"/></kerning><kerning kpx1="80"><pair kern="-31" kpx2="111"/><pair kern="-126" kpx2="46"/><pair kern="-126" kpx2="44"/><pair kern="-31" kpx2="101"/><pair kern="-66" kpx2="65"/><pair kern="-31" kpx2="97"/><pair kern="-21" kpx2="160"/><pair kern="-21" kpx2="32"/></kerning><kerning kpx1="76"><pair kern="-90" kpx2="89"/><pair kern="-36" kpx2="121"/><pair kern="-74" kpx2="87"/><pair kern="-90" kpx2="86"/><pair kern="-48" kpx2="84"/><pair kern="-73" kpx2="146"/><pair kern="-37" kpx2="160"/><pair kern="-37" kpx2="32"/></kerning><kerning kpx1="40"><pair kern="51" kpx2="74"/></kerning><kerning kpx1="102"><pair kern="34" kpx2="63"/><pair kern="51" kpx2="93"/><pair kern="51" kpx2="41"/><pair kern="59" kpx2="148"/><pair kern="59" kpx2="146"/><pair kern="34" kpx2="33"/></kerning><kerning kpx1="70"><pair kern="-70" kpx2="46"/><pair kern="-70" kpx2="44"/><pair kern="-61" kpx2="65"/></kerning><kerning kpx1="132"><pair kern="-78" kpx2="87"/><pair kern="-151" kpx2="86"/><pair kern="-117" kpx2="84"/></kerning><kerning kpx1="130"><pair kern="-78" kpx2="87"/><pair kern="-151" kpx2="86"/><pair kern="-117" kpx2="84"/></kerning><kerning kpx1="65"><pair kern="-109" kpx2="89"/><pair kern="-63" kpx2="121"/><pair kern="-74" kpx2="87"/><pair kern="-70" kpx2="119"/><pair kern="-95" kpx2="86"/><pair kern="-70" kpx2="118"/><pair kern="-74" kpx2="84"/><pair kern="-70" kpx2="146"/><pair kern="-56" kpx2="160"/><pair kern="-56" kpx2="32"/></kerning><kerning kpx1="160"><pair kern="-36" kpx2="65"/></kerning><kerning kpx1="32"><pair kern="-36" kpx2="65"/></kerning><kerning kpx1="96"><pair kern="-166" kpx2="191"/><pair kern="-146" kpx2="65"/></kerning></font-metrics>
\ No newline at end of file
diff --git a/src/main/resources/docbook-shared/titlepage/html.xsl b/src/main/resources/docbook-shared/titlepage/html.xsl
new file mode 100644
index 0000000..85d49c0
--- /dev/null
+++ b/src/main/resources/docbook-shared/titlepage/html.xsl
@@ -0,0 +1,201 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xsl:stylesheet version="1.0" exclude-result-prefixes="exsl" xmlns:exsl="http://exslt.org/common" xmlns:d="http://docbook.org/ns/docbook" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+
+<!-- This stylesheet was created by template/titlepage.xsl; do not edit it by hand. -->
+
+<xsl:template name="book.titlepage.recto">
+  <xsl:choose>
+    <xsl:when test="d:bookinfo/d:title">
+      <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="d:bookinfo/d:title"/>
+    </xsl:when>
+    <xsl:when test="d:info/d:title">
+      <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="d:info/d:title"/>
+    </xsl:when>
+    <xsl:when test="d:title">
+      <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="d:title"/>
+    </xsl:when>
+  </xsl:choose>
+
+  <xsl:choose>
+    <xsl:when test="d:bookinfo/d:subtitle">
+      <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="d:bookinfo/d:subtitle"/>
+    </xsl:when>
+    <xsl:when test="d:info/d:subtitle">
+      <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="d:info/d:subtitle"/>
+    </xsl:when>
+    <xsl:when test="d:subtitle">
+      <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="d:subtitle"/>
+    </xsl:when>
+  </xsl:choose>
+
+  <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="d:bookinfo/d:corpauthor"/>
+  <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="d:info/d:corpauthor"/>
+  <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="d:bookinfo/d:authorgroup"/>
+  <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="d:info/d:authorgroup"/>
+  <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="d:bookinfo/d:author"/>
+  <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="d:info/d:author"/>
+  <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="d:bookinfo/d:mediaobject"/>
+  <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="d:info/d:mediaobject"/>
+  <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="d:bookinfo/d:othercredit"/>
+  <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="d:info/d:othercredit"/>
+  <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="d:bookinfo/d:releaseinfo"/>
+  <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="d:info/d:releaseinfo"/>
+  <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="d:bookinfo/d:copyright"/>
+  <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="d:info/d:copyright"/>
+  <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="d:bookinfo/d:legalnotice"/>
+  <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="d:info/d:legalnotice"/>
+  <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="d:bookinfo/d:pubdate"/>
+  <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="d:info/d:pubdate"/>
+  <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="d:bookinfo/d:revision"/>
+  <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="d:info/d:revision"/>
+  <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="d:bookinfo/d:revhistory"/>
+  <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="d:info/d:revhistory"/>
+  <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="d:bookinfo/d:abstract"/>
+  <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="d:info/d:abstract"/>
+</xsl:template>
+
+<xsl:template name="book.titlepage.verso">
+</xsl:template>
+
+<xsl:template name="book.titlepage.separator"><hr/>
+</xsl:template>
+
+<xsl:template name="book.titlepage.before.recto">
+</xsl:template>
+
+<xsl:template name="book.titlepage.before.verso">
+</xsl:template>
+
+<xsl:template name="book.titlepage">
+  <div class="titlepage">
+    <xsl:variable name="recto.content">
+      <xsl:call-template name="book.titlepage.before.recto"/>
+      <xsl:call-template name="book.titlepage.recto"/>
+    </xsl:variable>
+    <xsl:variable name="recto.elements.count">
+      <xsl:choose>
+        <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
+        <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
+          <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
+        <xsl:otherwise>1</xsl:otherwise>
+      </xsl:choose>
+    </xsl:variable>
+    <xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count &gt; 0)">
+      <div><xsl:copy-of select="$recto.content"/></div>
+    </xsl:if>
+    <xsl:variable name="verso.content">
+      <xsl:call-template name="book.titlepage.before.verso"/>
+      <xsl:call-template name="book.titlepage.verso"/>
+    </xsl:variable>
+    <xsl:variable name="verso.elements.count">
+      <xsl:choose>
+        <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
+        <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
+          <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
+        <xsl:otherwise>1</xsl:otherwise>
+      </xsl:choose>
+    </xsl:variable>
+    <xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count &gt; 0)">
+      <div><xsl:copy-of select="$verso.content"/></div>
+    </xsl:if>
+    <xsl:call-template name="book.titlepage.separator"/>
+  </div>
+</xsl:template>
+
+<xsl:template match="*" mode="book.titlepage.recto.mode">
+  <!-- if an element isn't found in this mode, -->
+  <!-- try the generic titlepage.mode -->
+  <xsl:apply-templates select="." mode="titlepage.mode"/>
+</xsl:template>
+
+<xsl:template match="*" mode="book.titlepage.verso.mode">
+  <!-- if an element isn't found in this mode, -->
+  <!-- try the generic titlepage.mode -->
+  <xsl:apply-templates select="." mode="titlepage.mode"/>
+</xsl:template>
+
+<xsl:template match="d:title" mode="book.titlepage.recto.auto.mode">
+<div xsl:use-attribute-sets="book.titlepage.recto.style">
+<xsl:apply-templates select="." mode="book.titlepage.recto.mode"/>
+</div>
+</xsl:template>
+
+<xsl:template match="d:subtitle" mode="book.titlepage.recto.auto.mode">
+<div xsl:use-attribute-sets="book.titlepage.recto.style">
+<xsl:apply-templates select="." mode="book.titlepage.recto.mode"/>
+</div>
+</xsl:template>
+
+<xsl:template match="d:corpauthor" mode="book.titlepage.recto.auto.mode">
+<div xsl:use-attribute-sets="book.titlepage.recto.style">
+<xsl:apply-templates select="." mode="book.titlepage.recto.mode"/>
+</div>
+</xsl:template>
+
+<xsl:template match="d:authorgroup" mode="book.titlepage.recto.auto.mode">
+<div xsl:use-attribute-sets="book.titlepage.recto.style">
+<xsl:apply-templates select="." mode="book.titlepage.recto.mode"/>
+</div>
+</xsl:template>
+
+<xsl:template match="d:author" mode="book.titlepage.recto.auto.mode">
+<div xsl:use-attribute-sets="book.titlepage.recto.style">
+<xsl:apply-templates select="." mode="book.titlepage.recto.mode"/>
+</div>
+</xsl:template>
+
+<xsl:template match="d:mediaobject" mode="book.titlepage.recto.auto.mode">
+<div xsl:use-attribute-sets="book.titlepage.recto.style">
+<xsl:apply-templates select="." mode="book.titlepage.recto.mode"/>
+</div>
+</xsl:template>
+
+<xsl:template match="d:othercredit" mode="book.titlepage.recto.auto.mode">
+<div xsl:use-attribute-sets="book.titlepage.recto.style">
+<xsl:apply-templates select="." mode="book.titlepage.recto.mode"/>
+</div>
+</xsl:template>
+
+<xsl:template match="d:releaseinfo" mode="book.titlepage.recto.auto.mode">
+<div xsl:use-attribute-sets="book.titlepage.recto.style">
+<xsl:apply-templates select="." mode="book.titlepage.recto.mode"/>
+</div>
+</xsl:template>
+
+<xsl:template match="d:copyright" mode="book.titlepage.recto.auto.mode">
+<div xsl:use-attribute-sets="book.titlepage.recto.style">
+<xsl:apply-templates select="." mode="book.titlepage.recto.mode"/>
+</div>
+</xsl:template>
+
+<xsl:template match="d:legalnotice" mode="book.titlepage.recto.auto.mode">
+<div xsl:use-attribute-sets="book.titlepage.recto.style">
+<xsl:apply-templates select="." mode="book.titlepage.recto.mode"/>
+</div>
+</xsl:template>
+
+<xsl:template match="d:pubdate" mode="book.titlepage.recto.auto.mode">
+<div xsl:use-attribute-sets="book.titlepage.recto.style">
+<xsl:apply-templates select="." mode="book.titlepage.recto.mode"/>
+</div>
+</xsl:template>
+
+<xsl:template match="d:revision" mode="book.titlepage.recto.auto.mode">
+<div xsl:use-attribute-sets="book.titlepage.recto.style">
+<xsl:apply-templates select="." mode="book.titlepage.recto.mode"/>
+</div>
+</xsl:template>
+
+<xsl:template match="d:revhistory" mode="book.titlepage.recto.auto.mode">
+<div xsl:use-attribute-sets="book.titlepage.recto.style">
+<xsl:apply-templates select="." mode="book.titlepage.recto.mode"/>
+</div>
+</xsl:template>
+
+<xsl:template match="d:abstract" mode="book.titlepage.recto.auto.mode">
+<div xsl:use-attribute-sets="book.titlepage.recto.style">
+<xsl:apply-templates select="." mode="book.titlepage.recto.mode"/>
+</div>
+</xsl:template>
+
+</xsl:stylesheet>
diff --git a/src/main/resources/docbook-shared/titlepage/pdf.xsl b/src/main/resources/docbook-shared/titlepage/pdf.xsl
new file mode 100644
index 0000000..3debf63
--- /dev/null
+++ b/src/main/resources/docbook-shared/titlepage/pdf.xsl
@@ -0,0 +1,197 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xsl:stylesheet version="1.0" exclude-result-prefixes="exsl" xmlns:exsl="http://exslt.org/common" xmlns:d="http://docbook.org/ns/docbook" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+
+<!-- This stylesheet was created by template/titlepage.xsl; do not edit it by hand. -->
+
+<xsl:template name="book.titlepage.recto">
+  <xsl:choose>
+    <xsl:when test="d:bookinfo/d:title">
+      <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="d:bookinfo/d:title"/>
+    </xsl:when>
+    <xsl:when test="d:info/d:title">
+      <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="d:info/d:title"/>
+    </xsl:when>
+    <xsl:when test="d:title">
+      <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="d:title"/>
+    </xsl:when>
+  </xsl:choose>
+
+  <xsl:choose>
+    <xsl:when test="d:bookinfo/d:subtitle">
+      <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="d:bookinfo/d:subtitle"/>
+    </xsl:when>
+    <xsl:when test="d:info/d:subtitle">
+      <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="d:info/d:subtitle"/>
+    </xsl:when>
+    <xsl:when test="d:subtitle">
+      <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="d:subtitle"/>
+    </xsl:when>
+  </xsl:choose>
+
+  <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="d:bookinfo/d:corpauthor"/>
+  <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="d:info/d:corpauthor"/>
+  <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="d:bookinfo/d:authorgroup"/>
+  <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="d:info/d:authorgroup"/>
+  <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="d:bookinfo/d:author"/>
+  <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="d:info/d:author"/>
+  <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="d:bookinfo/d:othercredit"/>
+  <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="d:info/d:othercredit"/>
+  <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="d:bookinfo/d:mediaobject"/>
+  <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="d:info/d:mediaobject"/>
+  <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="d:bookinfo/d:releaseinfo"/>
+  <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="d:info/d:releaseinfo"/>
+  <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="d:bookinfo/d:revision"/>
+  <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="d:info/d:revision"/>
+  <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="d:bookinfo/d:revhistory"/>
+  <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="d:info/d:revhistory"/>
+  <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="d:bookinfo/d:abstract"/>
+  <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="d:info/d:abstract"/>
+</xsl:template>
+
+<xsl:template name="book.titlepage.verso">
+  <xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="d:bookinfo/d:copyright"/>
+  <xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="d:info/d:copyright"/>
+  <xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="d:bookinfo/d:legalnotice"/>
+  <xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="d:info/d:legalnotice"/>
+  <xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="d:bookinfo/d:pubdate"/>
+  <xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="d:info/d:pubdate"/>
+</xsl:template>
+
+<xsl:template name="book.titlepage.separator">
+</xsl:template>
+
+<xsl:template name="book.titlepage">
+  <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format">
+    <xsl:variable name="recto.content">
+      <xsl:call-template name="book.titlepage.before.recto"/>
+      <xsl:call-template name="book.titlepage.recto"/>
+    </xsl:variable>
+    <xsl:variable name="recto.elements.count">
+      <xsl:choose>
+        <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
+        <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
+          <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
+        <xsl:otherwise>1</xsl:otherwise>
+      </xsl:choose>
+    </xsl:variable>
+    <xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count &gt; 0)">
+      <fo:block><xsl:copy-of select="$recto.content"/></fo:block>
+    </xsl:if>
+    <xsl:variable name="verso.content">
+      <xsl:call-template name="book.titlepage.before.verso"/>
+      <xsl:call-template name="book.titlepage.verso"/>
+    </xsl:variable>
+    <xsl:variable name="verso.elements.count">
+      <xsl:choose>
+        <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
+        <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
+          <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
+        <xsl:otherwise>1</xsl:otherwise>
+      </xsl:choose>
+    </xsl:variable>
+    <xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count &gt; 0)">
+      <fo:block><xsl:copy-of select="$verso.content"/></fo:block>
+    </xsl:if>
+    <xsl:call-template name="book.titlepage.separator"/>
+  </fo:block>
+</xsl:template>
+
+<xsl:template match="*" mode="book.titlepage.recto.mode">
+  <!-- if an element isn't found in this mode, -->
+  <!-- try the generic titlepage.mode -->
+  <xsl:apply-templates select="." mode="titlepage.mode"/>
+</xsl:template>
+
+<xsl:template match="*" mode="book.titlepage.verso.mode">
+  <!-- if an element isn't found in this mode, -->
+  <!-- try the generic titlepage.mode -->
+  <xsl:apply-templates select="." mode="titlepage.mode"/>
+</xsl:template>
+
+<xsl:template match="d:title" mode="book.titlepage.recto.auto.mode">
+<fo:block xsl:use-attribute-sets="book.titlepage.recto.style" text-align="center" font-size="20pt" space-before="15pt" font-weight="bold" font-family="{$title.fontset}" xmlns:fo="http://www.w3.org/1999/XSL/Format">
+<xsl:call-template name="division.title">
+<xsl:with-param name="node" select="ancestor-or-self::d:book[1]"/>
+</xsl:call-template>
+</fo:block>
+</xsl:template>
+
+<xsl:template match="d:subtitle" mode="book.titlepage.recto.auto.mode">
+<fo:block xsl:use-attribute-sets="book.titlepage.recto.style" text-align="center" font-size="18pt" space-before="13.5pt" font-family="{$title.fontset}" xmlns:fo="http://www.w3.org/1999/XSL/Format">
+<xsl:apply-templates select="." mode="book.titlepage.recto.mode"/>
+</fo:block>
+</xsl:template>
+
+<xsl:template match="d:corpauthor" mode="book.titlepage.recto.auto.mode">
+<fo:block xsl:use-attribute-sets="book.titlepage.recto.style" space-before="0.5em" font-size="14pt" xmlns:fo="http://www.w3.org/1999/XSL/Format">
+<xsl:apply-templates select="." mode="book.titlepage.recto.mode"/>
+</fo:block>
+</xsl:template>
+
+<xsl:template match="d:authorgroup" mode="book.titlepage.recto.auto.mode">
+<fo:block xsl:use-attribute-sets="book.titlepage.recto.style" space-before="0.5em" font-size="14pt" xmlns:fo="http://www.w3.org/1999/XSL/Format">
+<xsl:apply-templates select="." mode="book.titlepage.recto.mode"/>
+</fo:block>
+</xsl:template>
+
+<xsl:template match="d:author" mode="book.titlepage.recto.auto.mode">
+<fo:block xsl:use-attribute-sets="book.titlepage.recto.style" space-before="0.5em" font-size="14pt" xmlns:fo="http://www.w3.org/1999/XSL/Format">
+<xsl:apply-templates select="." mode="book.titlepage.recto.mode"/>
+</fo:block>
+</xsl:template>
+
+<xsl:template match="d:othercredit" mode="book.titlepage.recto.auto.mode">
+<fo:block xsl:use-attribute-sets="book.titlepage.recto.style" space-before="0.5em" xmlns:fo="http://www.w3.org/1999/XSL/Format">
+<xsl:apply-templates select="." mode="book.titlepage.recto.mode"/>
+</fo:block>
+</xsl:template>
+
+<xsl:template match="d:mediaobject" mode="book.titlepage.recto.auto.mode">
+<fo:block xsl:use-attribute-sets="book.titlepage.recto.style" space-before="2em" space-after="2em" xmlns:fo="http://www.w3.org/1999/XSL/Format">
+<xsl:apply-templates select="." mode="book.titlepage.recto.mode"/>
+</fo:block>
+</xsl:template>
+
+<xsl:template match="d:releaseinfo" mode="book.titlepage.recto.auto.mode">
+<fo:block xsl:use-attribute-sets="book.titlepage.recto.style" space-before="5em" xmlns:fo="http://www.w3.org/1999/XSL/Format">
+<xsl:apply-templates select="." mode="book.titlepage.recto.mode"/>
+</fo:block>
+</xsl:template>
+
+<xsl:template match="d:revision" mode="book.titlepage.recto.auto.mode">
+<fo:block xsl:use-attribute-sets="book.titlepage.recto.style" space-before="0.5em" xmlns:fo="http://www.w3.org/1999/XSL/Format">
+<xsl:apply-templates select="." mode="book.titlepage.recto.mode"/>
+</fo:block>
+</xsl:template>
+
+<xsl:template match="d:revhistory" mode="book.titlepage.recto.auto.mode">
+<fo:block xsl:use-attribute-sets="book.titlepage.recto.style" space-before="0.5em" xmlns:fo="http://www.w3.org/1999/XSL/Format">
+<xsl:apply-templates select="." mode="book.titlepage.recto.mode"/>
+</fo:block>
+</xsl:template>
+
+<xsl:template match="d:abstract" mode="book.titlepage.recto.auto.mode">
+<fo:block xsl:use-attribute-sets="book.titlepage.recto.style" space-before="0.5em" text-align="start" margin-left="0.5in" margin-right="0.5in" font-family="{$body.fontset}" xmlns:fo="http://www.w3.org/1999/XSL/Format">
+<xsl:apply-templates select="." mode="book.titlepage.recto.mode"/>
+</fo:block>
+</xsl:template>
+
+<xsl:template match="d:copyright" mode="book.titlepage.verso.auto.mode">
+<fo:block xsl:use-attribute-sets="book.titlepage.verso.style" space-before="0.5em" xmlns:fo="http://www.w3.org/1999/XSL/Format">
+<xsl:apply-templates select="." mode="book.titlepage.verso.mode"/>
+</fo:block>
+</xsl:template>
+
+<xsl:template match="d:legalnotice" mode="book.titlepage.verso.auto.mode">
+<fo:block xsl:use-attribute-sets="book.titlepage.verso.style" text-align="start" margin-left="0.5in" margin-right="0.5in" font-family="{$body.fontset}" xmlns:fo="http://www.w3.org/1999/XSL/Format">
+<xsl:apply-templates select="." mode="book.titlepage.verso.mode"/>
+</fo:block>
+</xsl:template>
+
+<xsl:template match="d:pubdate" mode="book.titlepage.verso.auto.mode">
+<fo:block xsl:use-attribute-sets="book.titlepage.verso.style" space-before="3.5em" xmlns:fo="http://www.w3.org/1999/XSL/Format">
+<xsl:apply-templates select="." mode="book.titlepage.verso.mode"/>
+</fo:block>
+</xsl:template>
+
+</xsl:stylesheet>
diff --git a/src/main/resources/docbook-shared/top/html-single.xsl b/src/main/resources/docbook-shared/top/html-single.xsl
new file mode 100644
index 0000000..b68442a
--- /dev/null
+++ b/src/main/resources/docbook-shared/top/html-single.xsl
@@ -0,0 +1,48 @@
+<?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"
+                xmlns:d="http://docbook.org/ns/docbook"
+                version='1.0'>
+                
+  <!-- relative urls are relative to this stylesheet location -->
+  <!-- xsl:imports must be first in the file, and have lower precedence
+       than following elements -->
+    
+      <!-- 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="urn:docbkx:stylesheet" />    
+                     
+  
+  <xsl:import href="../common/html.xsl"/>
+  <xsl:import href="../common/html-pdf.xsl"/>
+      
+  <!-- where to find the css stylesheet -->
+  <xsl:param name="html.stylesheet">css/stylesheet-html.css</xsl:param>
+
+  <!-- The script will generate a title page -->
+  <!-- this generated xsl file needs to be included here -->
+  <xsl:include href="../titlepage/html.xsl"/>
+
+</xsl:stylesheet>
+
diff --git a/src/main/resources/docbook-shared/top/pdf.xsl b/src/main/resources/docbook-shared/top/pdf.xsl
new file mode 100644
index 0000000..412e235
--- /dev/null
+++ b/src/main/resources/docbook-shared/top/pdf.xsl
@@ -0,0 +1,47 @@
+<?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"
+                xmlns:fo="http://www.w3.org/1999/XSL/Format"
+                xmlns:d="http://docbook.org/ns/docbook"
+                version='1.0'>
+        
+  <!-- relative urls are relative to this stylesheet location -->
+  <!-- xsl:imports must be first in the file, and have lower precedence
+       than following elements -->
+    
+      <!-- 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="urn:docbkx:stylesheet" />    
+  
+      
+  <xsl:import href="../common/html-pdf.xsl" />
+  
+  <xsl:import href="../common/pdf.xsl" />
+ 
+  <!-- The script will generate a title page -->
+  <!-- this generated xsl file needs to be included here -->
+  <xsl:include href="../titlepage/pdf.xsl"/>
+
+</xsl:stylesheet>
+
diff --git a/src/main/resources/docbook-shared/xinclude.mod b/src/main/resources/docbook-shared/xinclude.mod
new file mode 100644
index 0000000..89eafb2
--- /dev/null
+++ b/src/main/resources/docbook-shared/xinclude.mod
@@ -0,0 +1,46 @@
+<!--

+   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.

+-->

+<!-- xml comments allowed in this file -->

+

+<!-- ================================================================-->

+<!--   This file is incorporated in xml files which have xi:include

+       elements, to allow those files to validate in an XML editor

+       without actually doing the includes                           -->

+

+<!-- defines xi:include as a valid element for validating editors -->

+<!-- adds it as an element to sub parts of books and chapters. -->

+<!--   This must be referenced by each source file that has xi:include

+       elements, in the file's DOCTYPE declaration,

+       using the syntax

+       lt;!ENTITY % xinclude SYSTEM "../../ . . . /uima-docbook-tool/xinclude.mod">

+       %xinclude; -->

+

+<!ELEMENT xi:include (xi:fallback?) >

+<!ATTLIST xi:include

+  xmlns:xi   CDATA        #FIXED      "http://www.w3.org/2001/XInclude"

+  href       CDATA        #REQUIRED

+  parse      (xml|text)   "xml"

+  encoding   CDATA        #IMPLIED >

+

+<!ELEMENT xi:fallback ANY>

+<!ATTLIST xi:fallback

+  xmlns:xi   CDATA        #FIXED      "http://www.w3.org/2001/XInclude" >

+

+<!ENTITY % local.chapter.class "| xi:include">

+<!ENTITY % local.book.class "| xi:include">

diff --git a/src/main/titlepage/html.xml b/src/main/titlepage/html.xml
new file mode 100644
index 0000000..46ff0e7
--- /dev/null
+++ b/src/main/titlepage/html.xml
@@ -0,0 +1,61 @@
+<?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="http://docbook.org/ns/docbook"

+             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>

diff --git a/src/main/titlepage/pdf.xml b/src/main/titlepage/pdf.xml
new file mode 100644
index 0000000..08d46a0
--- /dev/null
+++ b/src/main/titlepage/pdf.xml
@@ -0,0 +1,99 @@
+<?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="http://docbook.org/ns/docbook"

+  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>