river-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gtra...@apache.org
Subject [33/40] Add Apache License headers and one or two Rat exclusions.
Date Mon, 13 Jan 2014 03:35:40 GMT
http://git-wip-us.apache.org/repos/asf/river-container/blob/f17fe38e/user-docs/src/docbkx/resources/xsl/customhtml/titlepage.xsl
----------------------------------------------------------------------
diff --git a/user-docs/src/docbkx/resources/xsl/customhtml/titlepage.xsl b/user-docs/src/docbkx/resources/xsl/customhtml/titlepage.xsl
new file mode 100644
index 0000000..db07e08
--- /dev/null
+++ b/user-docs/src/docbkx/resources/xsl/customhtml/titlepage.xsl
@@ -0,0 +1,328 @@
+<?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:exsl="http://exslt.org/common" 
+    version="1.0" 
+    exclude-result-prefixes="exsl">
+
+    <xsl:template name="user.header.content">
+        <xsl:param name="node" select="." />
+        <xsl:call-template name="add.header.logo"/>
+    </xsl:template>
+        
+    <xsl:template name="add.header.logo">
+        <div class="navheader">
+            <table>
+                <tr>
+                    <td width="20%" align="left"><img src="{$document.logo.src}" border="0" alt="{$document.logo.alt}"/></td>
+                    <td width="60%">&#160;</td>
+                    <td width="20%" align="right"><img src="{$apache.logo.src}" border="0" alt="{$apache.logo.alt}"/></td>
+                </tr>
+            </table>
+        </div>
+    </xsl:template>
+
+    <xsl:template name="book.titlepage.recto">
+        <xsl:choose>
+            <xsl:when test="bookinfo/title">
+                <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="bookinfo/title" />
+            </xsl:when>
+            <xsl:when test="info/title">
+                <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="info/title" />
+            </xsl:when>
+            <xsl:when test="title">
+                <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="title" />
+            </xsl:when>
+        </xsl:choose>
+    
+        <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="bookinfo/productname" />
+        <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="info/productname" />
+        <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="bookinfo/revhistory" />
+        <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="info/revhistory" />
+        <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="bookinfo/author" />
+        <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="info/author" />
+        <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="bookinfo/abstract" />
+        <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="info/abstract" />
+        <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="bookinfo/legalnotice" />
+        <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="info/legalnotice" />
+    </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="title" mode="book.titlepage.recto.auto.mode">
+        <div xsl:use-attribute-sets="book.titlepage.recto.style">
+            <xsl:call-template name="title.mainpage">
+            </xsl:call-template>
+        </div>
+    </xsl:template>
+    
+    <xsl:template match="productname" mode="book.titlepage.recto.auto.mode">
+        <div xsl:use-attribute-sets="book.titlepage.recto.style">
+            <xsl:call-template name="productname.mainpage">
+            </xsl:call-template>
+        </div>
+    </xsl:template>
+    
+    <xsl:template match="revhistory" mode="book.titlepage.recto.auto.mode">
+        <div xsl:use-attribute-sets="book.titlepage.recto.style">
+            <xsl:call-template name="revhistory.mainpage">
+            </xsl:call-template>
+        </div>
+    </xsl:template>
+
+    <xsl:template match="author" mode="book.titlepage.recto.auto.mode">
+        <div xsl:use-attribute-sets="book.titlepage.recto.style">
+            <xsl:call-template name="author.mainpage">
+            </xsl:call-template>
+        </div>
+    </xsl:template>
+
+    <xsl:template match="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:template match="legalnotice" mode="book.titlepage.recto.auto.mode">
+        <div xsl:use-attribute-sets="book.titlepage.recto.style">
+            <xsl:call-template name="legalnotice.mainpage">
+            </xsl:call-template>
+        </div>
+    </xsl:template>
+
+    <xsl:template name="title.mainpage">
+        <xsl:variable name="id">
+            <xsl:choose>
+                <xsl:when test="contains(local-name(..), 'info')">
+                <xsl:call-template name="object.id">
+                    <xsl:with-param name="object" select="../.."/>
+                </xsl:call-template>
+            </xsl:when>
+            <xsl:otherwise>
+                <xsl:call-template name="object.id">
+                    <xsl:with-param name="object" select=".."/>
+                </xsl:call-template>
+            </xsl:otherwise>
+            </xsl:choose>
+        </xsl:variable>
+        <h1 class="subtitle">
+            <a name="{$id}"/>
+			<xsl:choose>
+                <xsl:when test="$show.revisionflag != 0 and @revisionflag">
+                    <span class="{@revisionflag}">
+                    <xsl:apply-templates mode="titlepage.mode"/>
+                    </span>
+                </xsl:when>
+                <xsl:otherwise>
+                    <xsl:apply-templates mode="titlepage.mode"/>
+                </xsl:otherwise>
+            </xsl:choose>
+    		<xsl:if test="//bookinfo//subtitle">
+                <xsl:call-template name="gentext.space"/>
+                :
+                <xsl:call-template name="gentext.space"/>
+                <xsl:apply-templates select="//bookinfo//subtitle" mode="mainpage"/>
+            </xsl:if>
+		</h1>
+    </xsl:template>
+
+    <xsl:template match="subtitle" mode="mainpage">
+        <xsl:apply-templates mode="titlepage.mode"/>
+    </xsl:template>
+
+    <xsl:template name="revhistory.mainpage">
+        <xsl:variable name="id">
+            <xsl:call-template name="object.id"/>
+        </xsl:variable>
+        <xsl:variable name="title">
+            <xsl:call-template name="gentext">
+                <xsl:with-param name="key">RevHistory</xsl:with-param>
+            </xsl:call-template>
+        </xsl:variable>
+        <div class="{name(.)}">
+			<b>
+				<xsl:call-template name="gentext">
+                    <xsl:with-param name="key" select="'RevHistory'"/>
+                </xsl:call-template>
+			</b>
+			<table border="1" cellpadding="1" cellspacing="0" width="800" summary="Revision history">
+				<tr>
+					<th align="left" valign="top">
+						<p>Version</p>
+					</th>
+					<th align="left" valign="top">
+						<p>Date</p>
+					</th>
+					<th align="left" valign="top">
+						<p>Author</p>
+					</th>
+					<th align="left" valign="top">
+						<p>Reason of modification</p>
+					</th>
+				</tr>
+				
+				<xsl:apply-templates mode="titlepage.mode"/>
+			</table>
+		</div>
+    </xsl:template>
+
+    <xsl:template match="revhistory/revision" mode="titlepage.mode">
+        <xsl:variable name="revnumber" select="revnumber" />
+        <xsl:variable name="revdate" select="date" />
+        <xsl:variable name="revauthor" select="authorinitials" />
+        <xsl:variable name="revremark" select="revremark|revdescription" />
+        <tr>
+            <td align="left">
+                <p>
+                    <xsl:choose>
+                        <xsl:when test="$revnumber">
+                            <xsl:apply-templates select="$revnumber[1]" mode="titlepage.mode" />
+                        </xsl:when>
+                        <xsl:otherwise>
+                             
+                        </xsl:otherwise>
+                    </xsl:choose>
+                </p>
+            </td>
+            <td align="left">
+                <p>
+                    <xsl:choose>
+                        <xsl:when test="$revdate[1]">
+                            <xsl:apply-templates select="$revdate[1]" mode="titlepage.mode" />
+                        </xsl:when>
+                        <xsl:otherwise>
+                             
+                        </xsl:otherwise>
+                    </xsl:choose>
+                </p>
+            </td>
+            <td align="left">
+                <p>
+                    <xsl:choose>
+                        <xsl:when test="$revauthor">
+                            <xsl:for-each select="$revauthor">
+                                <xsl:apply-templates select="." mode="titlepage.mode" />
+                                <xsl:if test="position() != last()">
+                                    <xsl:text>, </xsl:text>
+                                </xsl:if>
+                            </xsl:for-each>
+                        </xsl:when>
+                        <xsl:otherwise>
+                             
+                        </xsl:otherwise>
+                    </xsl:choose>
+                </p>
+            </td>
+            <td align="left">
+                <p>
+                    <xsl:choose>
+                        <xsl:when test="$revremark">
+                            <xsl:apply-templates select="$revremark[1]" mode="titlepage.mode" />
+                        </xsl:when>
+                        <xsl:otherwise>
+                             
+                        </xsl:otherwise>
+                    </xsl:choose>
+                </p>
+            </td>
+        </tr>
+    </xsl:template>
+    
+    <xsl:template name="productname.mainpage">
+        <p class="{name(.)}">
+            This document is part of the
+            <xsl:apply-templates mode="titlepage.mode" />
+            <xsl:call-template name="gentext.space" />
+            <xsl:if test="//bookinfo//productnumber">
+                <xsl:apply-templates select="//bookinfo//productnumber" />
+            </xsl:if>
+            <xsl:call-template name="gentext.space" />
+            release.
+        </p>
+        <br />
+    </xsl:template>
+    
+    <xsl:template name="author.mainpage">
+        <div class="{name(.)}">
+            <b class="{name(.)}">Contact person:</b>
+            <xsl:call-template name="gentext.space" />
+            <xsl:call-template name="person.name" />
+            <xsl:call-template name="gentext.space" />
+            <xsl:apply-templates mode="titlepage.mode"
+                select="./email" />
+        </div>
+    </xsl:template>
+    
+    <xsl:template name="legalnotice.mainpage">
+        <xsl:variable name="id">
+            <xsl:call-template name="object.id" />
+        </xsl:variable>
+        <hr />
+        <div class="copyright">
+            <a name="{$id}" />
+            <xsl:apply-templates mode="titlepage.mode" />
+        </div>
+    </xsl:template>
+
+</xsl:stylesheet>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/river-container/blob/f17fe38e/user-docs/src/docbkx/resources/xsl/custompdf/admon.xsl
----------------------------------------------------------------------
diff --git a/user-docs/src/docbkx/resources/xsl/custompdf/admon.xsl b/user-docs/src/docbkx/resources/xsl/custompdf/admon.xsl
new file mode 100644
index 0000000..3c74a78
--- /dev/null
+++ b/user-docs/src/docbkx/resources/xsl/custompdf/admon.xsl
@@ -0,0 +1,96 @@
+<?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"
+	version='1.0'>
+
+	<!-- === Parameter === -->
+	<!-- 1 = Admonition are presented with a generated text label such as Note or Warning -->
+	<xsl:param name="admon.textlabel" select="1"/>
+	<xsl:param name="admon.graphics" select="1"></xsl:param>
+	
+	<!-- Admonition Title -->
+	<xsl:attribute-set name="admonition.title.properties">
+		<xsl:attribute name="font-size">12pt</xsl:attribute>
+		<xsl:attribute name="font-weight">bold</xsl:attribute>
+		<xsl:attribute name="hyphenate">false</xsl:attribute>
+		<xsl:attribute name="keep-with-next.within-column">always</xsl:attribute>
+	</xsl:attribute-set>
+	<!-- Admonition Block -->
+	<xsl:attribute-set name="graphical.admonition.properties">
+		<xsl:attribute name="border-style">solid</xsl:attribute>
+		<xsl:attribute name="border-right-width">thin</xsl:attribute>
+		<xsl:attribute name="border-left-width">thin</xsl:attribute>
+		<xsl:attribute name="border-top-width">thin</xsl:attribute>
+		<xsl:attribute name="border-bottom-width">thin</xsl:attribute>
+		<xsl:attribute name="border-right-color">black</xsl:attribute>
+		<xsl:attribute name="border-left-color">black</xsl:attribute>
+		<xsl:attribute name="border-top-color">black</xsl:attribute>
+		<xsl:attribute name="border-bottom-color">black</xsl:attribute>
+		<xsl:attribute name="margin-left">0.25in</xsl:attribute>
+		<xsl:attribute name="margin-right">0.25in</xsl:attribute>
+		<xsl:attribute name="space-before.optimum">1em</xsl:attribute>
+		<xsl:attribute name="space-before.minimum">0.8em</xsl:attribute>
+		<xsl:attribute name="space-before.maximum">1.2em</xsl:attribute>
+		<xsl:attribute name="space-after.optimum">1em</xsl:attribute>
+		<xsl:attribute name="space-after.minimum">0.8em</xsl:attribute>
+		<xsl:attribute name="space-after.maximum">1.2em</xsl:attribute>
+	</xsl:attribute-set>
+
+	<!-- === Template === -->
+	<xsl:template match="*" mode="admon.graphic.width">
+		<xsl:param name="node" select="."/>
+		<xsl:text>40pt</xsl:text>
+	</xsl:template>
+		
+	<xsl:template name="graphical.admonition">
+		<xsl:variable name="id">
+			<xsl:call-template name="object.id"/>
+		</xsl:variable>
+		<xsl:variable name="graphic.width">
+			<xsl:apply-templates select="." mode="admon.graphic.width"/>
+		</xsl:variable>
+		<fo:block id="{$id}"
+			xsl:use-attribute-sets="graphical.admonition.properties">
+			<fo:list-block provisional-distance-between-starts="{$graphic.width} + 18pt"
+				provisional-label-separation="18pt">
+				<fo:list-item margin-top="4pt" margin-bottom="4pt" margin-left="4pt" margin-right="4pt">
+					<fo:list-item-label end-indent="label-end()">
+						<fo:block>
+							<fo:external-graphic width="auto" height="auto"
+								content-width="{$graphic.width}" >
+								<xsl:attribute name="src">
+									<xsl:call-template name="admon.graphic"/>
+								</xsl:attribute>
+							</fo:external-graphic>
+						</fo:block>
+					</fo:list-item-label>
+					<fo:list-item-body start-indent="body-start()">
+						<xsl:if test="$admon.textlabel != 0 or title">
+							<fo:block xsl:use-attribute-sets="admonition.title.properties">
+								<xsl:apply-templates select="." mode="object.title.markup"/>
+							</fo:block>
+						</xsl:if>
+						<fo:block xsl:use-attribute-sets="admonition.properties">
+							<xsl:apply-templates/>
+						</fo:block>
+					</fo:list-item-body>
+				</fo:list-item>
+			</fo:list-block>
+		</fo:block>
+	</xsl:template>
+		
+</xsl:stylesheet>

http://git-wip-us.apache.org/repos/asf/river-container/blob/f17fe38e/user-docs/src/docbkx/resources/xsl/custompdf/block.xsl
----------------------------------------------------------------------
diff --git a/user-docs/src/docbkx/resources/xsl/custompdf/block.xsl b/user-docs/src/docbkx/resources/xsl/custompdf/block.xsl
new file mode 100644
index 0000000..cfd5d04
--- /dev/null
+++ b/user-docs/src/docbkx/resources/xsl/custompdf/block.xsl
@@ -0,0 +1,33 @@
+<?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"
+                version='1.0'>
+
+<xsl:template match="epigraph">
+    <fo:block text-align="right" margin-left="3.5cm" font-style="italic">
+        <xsl:call-template name="anchor" />
+        <xsl:apply-templates select="para|simpara|formalpara|literallayout" />
+        <xsl:if test="attribution">
+            <fo:inline>
+                <xsl:text>--</xsl:text>
+                <xsl:apply-templates select="attribution" />
+            </fo:inline>
+        </xsl:if>
+    </fo:block>
+</xsl:template>
+
+</xsl:stylesheet>

http://git-wip-us.apache.org/repos/asf/river-container/blob/f17fe38e/user-docs/src/docbkx/resources/xsl/custompdf/highlight.xsl
----------------------------------------------------------------------
diff --git a/user-docs/src/docbkx/resources/xsl/custompdf/highlight.xsl b/user-docs/src/docbkx/resources/xsl/custompdf/highlight.xsl
new file mode 100644
index 0000000..1bfd6db
--- /dev/null
+++ b/user-docs/src/docbkx/resources/xsl/custompdf/highlight.xsl
@@ -0,0 +1,60 @@
+<?xml version="1.0" encoding="UTF-8"?>
+    <!--
+        Licensed to the Apache Software Foundation (ASF) under one or more
+        contributor license agreements. See the NOTICE file distributed with
+        this work for additional information regarding copyright ownership. The
+        ASF licenses this file to you under the Apache License, Version 2.0 (the
+        "License"); you may not use this file except in compliance with the
+        License. You may obtain a copy of the License at
+
+        http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable
+        law or agreed to in writing, software distributed under the License is
+        distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+        KIND, either express or implied. See the License for the specific
+        language governing permissions and limitations under the License.
+    -->
+<xsl:stylesheet 
+    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+    xmlns:fo="http://www.w3.org/1999/XSL/Format" 
+    xmlns:xslthl="http://xslthl.sf.net" 
+    exclude-result-prefixes="xslthl" 
+    version="1.0">
+    	
+        <xsl:template match='xslthl:keyword'>
+        <fo:inline font-weight="bold">
+            <xsl:apply-templates />
+        </fo:inline>
+    </xsl:template>
+
+    <xsl:template match='xslthl:string'>
+        <fo:inline font-weight="bold" font-style="italic">
+            <xsl:apply-templates />
+        </fo:inline>
+    </xsl:template>
+
+    <xsl:template match='xslthl:comment'>
+        <fo:inline font-style="italic" color="green">
+            <xsl:apply-templates />
+        </fo:inline>
+    </xsl:template>
+
+    <xsl:template match='xslthl:tag'>
+        <fo:inline font-weight="bold" color="Maroon">
+            <xsl:apply-templates />
+        </fo:inline>
+    </xsl:template>
+
+    <xsl:template match='xslthl:attribute'>
+        <fo:inline color="red">
+            <xsl:apply-templates />
+        </fo:inline>
+    </xsl:template>
+
+    <xsl:template match='xslthl:value'>
+        <fo:inline color="black">
+            <xsl:apply-templates />
+        </fo:inline>
+    </xsl:template>
+
+
+</xsl:stylesheet>

http://git-wip-us.apache.org/repos/asf/river-container/blob/f17fe38e/user-docs/src/docbkx/resources/xsl/custompdf/inline.xsl
----------------------------------------------------------------------
diff --git a/user-docs/src/docbkx/resources/xsl/custompdf/inline.xsl b/user-docs/src/docbkx/resources/xsl/custompdf/inline.xsl
new file mode 100644
index 0000000..aa8966b
--- /dev/null
+++ b/user-docs/src/docbkx/resources/xsl/custompdf/inline.xsl
@@ -0,0 +1,50 @@
+<?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:xlink='http://www.w3.org/1999/xlink'
+                exclude-result-prefixes="xlink"
+                version='1.0'>
+
+    <xsl:template name="inline.boldermonoseq">
+        <xsl:param name="content">
+            <xsl:apply-templates />
+        </xsl:param>
+        <fo:inline font-style="normal" font-weight="bolder"
+            xsl:use-attribute-sets="monospace.properties">
+            <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:template match="database">
+        <xsl:call-template name="inline.monoseq" />
+    </xsl:template>
+
+    <xsl:template match="replaceable">
+        <xsl:call-template name="inline.boldermonoseq" />
+    </xsl:template>
+
+
+</xsl:stylesheet>
+

http://git-wip-us.apache.org/repos/asf/river-container/blob/f17fe38e/user-docs/src/docbkx/resources/xsl/custompdf/pagesetup.xsl
----------------------------------------------------------------------
diff --git a/user-docs/src/docbkx/resources/xsl/custompdf/pagesetup.xsl b/user-docs/src/docbkx/resources/xsl/custompdf/pagesetup.xsl
new file mode 100644
index 0000000..42d85ba
--- /dev/null
+++ b/user-docs/src/docbkx/resources/xsl/custompdf/pagesetup.xsl
@@ -0,0 +1,401 @@
+<?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" 
+    version="1.0">
+
+    <xsl:template name="header.table">
+        <xsl:param name="pageclass" select="''" />
+        <xsl:param name="sequence" select="''" />
+        <xsl:param name="gentext-key" select="''" />
+        <!-- default is a single table style for all headers -->
+        <!-- Customize it for different page classes or sequence location -->
+        <xsl:choose>
+            <xsl:when test="$pageclass = 'index'">
+                <xsl:attribute name="margin-left">0pt</xsl:attribute>
+            </xsl:when>
+        </xsl:choose>
+        <xsl:variable name="column1">
+            <xsl:choose>
+                <xsl:when test="$double.sided = 0">1</xsl:when>
+                <xsl:when test="$sequence = 'first' or $sequence = 'odd'">1</xsl:when>
+                <xsl:otherwise>3</xsl:otherwise>
+            </xsl:choose>
+        </xsl:variable>
+        <xsl:variable name="column3">
+            <xsl:choose>
+                <xsl:when test="$double.sided = 0">3</xsl:when>
+                <xsl:when test="$sequence = 'first' or $sequence = 'odd'">3</xsl:when>
+                <xsl:otherwise>1</xsl:otherwise>
+            </xsl:choose>
+        </xsl:variable>
+        <xsl:variable name="candidate">
+            <fo:table table-layout="fixed" width="100%">
+                <xsl:call-template name="head.sep.rule">
+                    <xsl:with-param name="pageclass" select="$pageclass" />
+                    <xsl:with-param name="sequence" select="$sequence" />
+                    <xsl:with-param name="gentext-key" select="$gentext-key" />
+                </xsl:call-template>
+                <fo:table-column column-number="1">
+                    <xsl:attribute name="column-width">
+                        <xsl:text>proportional-column-width(</xsl:text>
+                            <xsl:call-template name="header.footer.width">
+                                <xsl:with-param name="location">header</xsl:with-param>
+                                <xsl:with-param name="position" select="$column1" />
+                            </xsl:call-template>
+                        <xsl:text>)</xsl:text>
+                    </xsl:attribute>
+                </fo:table-column>
+                <fo:table-column column-number="2">
+                    <xsl:attribute name="column-width">
+                        <xsl:text>proportional-column-width(</xsl:text>
+                            <xsl:call-template name="header.footer.width">
+                                <xsl:with-param name="location">header</xsl:with-param>
+                                <xsl:with-param name="position" select="2" />
+                            </xsl:call-template>
+                        <xsl:text>)</xsl:text>
+                    </xsl:attribute>
+                </fo:table-column>
+                <fo:table-column column-number="3">
+                    <xsl:attribute name="column-width">
+                        <xsl:text>proportional-column-width(</xsl:text>
+                            <xsl:call-template name="header.footer.width">
+                                <xsl:with-param name="location">header</xsl:with-param>
+                                <xsl:with-param name="position" select="$column3" />
+                            </xsl:call-template>
+                        <xsl:text>)</xsl:text>
+                    </xsl:attribute>
+                </fo:table-column>
+                <fo:table-body>
+                    <!-- header-hight (org:14pt) -->
+                    <fo:table-row height="50pt">
+                        <fo:table-cell text-align="left"
+                            display-align="before">
+                            <xsl:if test="$fop.extensions = 0">
+                                <xsl:attribute name="relative-align">baseline</xsl:attribute>
+                            </xsl:if>
+                            <fo:block>
+                                <xsl:call-template name="header.content">
+                                    <xsl:with-param name="pageclass" select="$pageclass" />
+                                    <xsl:with-param name="sequence" select="$sequence" />
+                                    <xsl:with-param name="position" select="'left'" />
+                                    <xsl:with-param name="gentext-key" select="$gentext-key" />
+                                </xsl:call-template>
+                            </fo:block>
+                        </fo:table-cell>
+                        <fo:table-cell text-align="center"
+                            display-align="before">
+                            <xsl:if test="$fop.extensions = 0">
+                                <xsl:attribute name="relative-align">baseline</xsl:attribute>
+                            </xsl:if>
+                            <fo:block>
+                                <xsl:call-template name="header.content">
+                                    <xsl:with-param name="pageclass" select="$pageclass" />
+                                    <xsl:with-param name="sequence" select="$sequence" />
+                                    <xsl:with-param name="position" select="'center'" />
+                                    <xsl:with-param name="gentext-key" select="$gentext-key" />
+                                </xsl:call-template>
+                            </fo:block>
+                        </fo:table-cell>
+                        <fo:table-cell text-align="right"
+                            display-align="before">
+                            <xsl:if test="$fop.extensions = 0">
+                                <xsl:attribute name="relative-align">baseline</xsl:attribute>
+                            </xsl:if>
+                            <fo:block>
+                                <xsl:call-template name="header.content">
+                                    <xsl:with-param name="pageclass" select="$pageclass" />
+                                    <xsl:with-param name="sequence" select="$sequence" />
+                                    <xsl:with-param name="position" select="'right'" />
+                                    <xsl:with-param name="gentext-key" select="$gentext-key" />
+                                </xsl:call-template>
+                            </fo:block>
+                        </fo:table-cell>
+                    </fo:table-row>
+                </fo:table-body>
+            </fo:table>
+        </xsl:variable>
+        <xsl:copy-of select="$candidate" />
+    </xsl:template>
+
+    <xsl:template name="header.content">
+        <xsl:param name="pageclass" select="''" />
+        <xsl:param name="sequence" select="''" />
+        <xsl:param name="position" select="''" />
+        <xsl:param name="gentext-key" select="''" />
+        <fo:block xsl:use-attribute-sets="header.title.properties">
+            <!-- sequence can be odd, even, first, blank -->
+            <!-- position can be left, center, right -->
+            <xsl:if test="$position='left'">
+                <!-- 
+                <xsl:apply-templates select="/" mode="title.markup" />
+                <fo:block />
+                <xsl:apply-templates select="/" mode="subtitle.markup" />
+                <fo:block />
+                -->
+                <fo:block>
+                    <fo:external-graphic src="url({$document.logo.src})"
+                        width="4.5cm" height="auto" 
+                        content-width="scale-to-fit" content-height="scale-to-fit" />
+                </fo:block>
+                <xsl:if
+                    test="($pageclass !='titlepage' and $pageclass !='lot' and $sequence != 'blank')">
+                    <xsl:apply-templates select="." mode="title.markup" />
+                </xsl:if>
+            </xsl:if>
+            <xsl:if test="$position='right'">
+                <fo:block>
+                    <fo:external-graphic src="url({$apache.logo.src})"
+                        width="4.5cm" height="auto" 
+                        content-width="scale-to-fit" content-height="scale-to-fit" />
+                </fo:block>
+            </xsl:if>
+        </fo:block>
+    </xsl:template>
+
+    <xsl:template name="footer.table">
+        <xsl:param name="pageclass" select="''" />
+        <xsl:param name="sequence" select="''" />
+        <xsl:param name="gentext-key" select="''" />
+        <!-- default is a single table style for all footers -->
+        <!-- Customize it for different page classes or sequence location -->
+        <xsl:choose>
+            <xsl:when test="$pageclass = 'index'">
+                <xsl:attribute name="margin-left">0pt</xsl:attribute>
+            </xsl:when>
+        </xsl:choose>
+        <xsl:variable name="column1">
+            <xsl:choose>
+                <xsl:when test="$double.sided = 0">1</xsl:when>
+                <xsl:when test="$sequence = 'first' or $sequence = 'odd'">1</xsl:when>
+                <xsl:otherwise>3</xsl:otherwise>
+            </xsl:choose>
+        </xsl:variable>
+        <xsl:variable name="column3">
+            <xsl:choose>
+                <xsl:when test="$double.sided = 0">3</xsl:when>
+                <xsl:when test="$sequence = 'first' or $sequence = 'odd'">3</xsl:when>
+                <xsl:otherwise>1</xsl:otherwise>
+            </xsl:choose>
+        </xsl:variable>
+        <xsl:variable name="candidate">
+            <fo:table table-layout="fixed" width="100%">
+                <xsl:call-template name="foot.sep.rule">
+                    <xsl:with-param name="pageclass" select="$pageclass" />
+                    <xsl:with-param name="sequence" select="$sequence" />
+                    <xsl:with-param name="gentext-key" select="$gentext-key" />
+                </xsl:call-template>
+                <fo:table-column column-number="1">
+                    <xsl:attribute name="column-width">
+                        <xsl:text>proportional-column-width(</xsl:text>
+                        <xsl:call-template name="header.footer.width">
+                            <xsl:with-param name="location">footer</xsl:with-param>
+                            <xsl:with-param name="position" select="$column1" />
+                        </xsl:call-template>
+                        <xsl:text>)</xsl:text>
+                    </xsl:attribute>
+                </fo:table-column>
+                <fo:table-column column-number="2">
+                    <xsl:attribute name="column-width">
+                        <xsl:text>proportional-column-width(</xsl:text>
+                        <xsl:call-template name="header.footer.width">
+                            <xsl:with-param name="location">footer</xsl:with-param>
+                            <xsl:with-param name="position" select="2" />
+                        </xsl:call-template>
+                        <xsl:text>)</xsl:text>
+                    </xsl:attribute>
+                </fo:table-column>
+                <fo:table-column column-number="3">
+                    <xsl:attribute name="column-width">
+                        <xsl:text>proportional-column-width(</xsl:text>
+                        <xsl:call-template name="header.footer.width">
+                            <xsl:with-param name="location">footer</xsl:with-param>
+                            <xsl:with-param name="position" select="$column3" />
+                        </xsl:call-template>
+                        <xsl:text>)</xsl:text>
+                    </xsl:attribute>
+                </fo:table-column>
+                <fo:table-body>
+                    <fo:table-row height="26pt">
+                        <fo:table-cell text-align="left"
+                            display-align="before">
+                            <xsl:if test="$fop.extensions = 0">
+                                <xsl:attribute name="relative-align">before</xsl:attribute>
+                            </xsl:if>
+                            <fo:block>
+                                <xsl:call-template name="footer.content">
+                                    <xsl:with-param name="pageclass" select="$pageclass" />
+                                    <xsl:with-param name="sequence" select="$sequence" />
+                                    <xsl:with-param name="position" select="'left'" />
+                                    <xsl:with-param name="gentext-key" select="$gentext-key" />
+                                </xsl:call-template>
+                            </fo:block>
+                        </fo:table-cell>
+                        <fo:table-cell text-align="center" display-align="before">
+                            <xsl:if test="$fop.extensions = 0">
+                                <xsl:attribute name="relative-align">before</xsl:attribute>
+                            </xsl:if>
+                            <fo:block>
+                                <xsl:call-template name="footer.content">
+                                    <xsl:with-param name="pageclass" select="$pageclass" />
+                                    <xsl:with-param name="sequence" select="$sequence" />
+                                    <xsl:with-param name="position" select="'center'" />
+                                    <xsl:with-param name="gentext-key" select="$gentext-key" />
+                                </xsl:call-template>
+                            </fo:block>
+                        </fo:table-cell>
+                        <fo:table-cell text-align="right" display-align="before">
+                            <xsl:if test="$fop.extensions = 0">
+                                <xsl:attribute name="relative-align">before</xsl:attribute>
+                            </xsl:if>
+                            <fo:block>
+                                <xsl:call-template name="footer.content">
+                                    <xsl:with-param name="pageclass" select="$pageclass" />
+                                    <xsl:with-param name="sequence" select="$sequence" />
+                                    <xsl:with-param name="position" select="'right'" />
+                                    <xsl:with-param name="gentext-key" select="$gentext-key" />
+                                </xsl:call-template>
+                            </fo:block>
+                        </fo:table-cell>
+                    </fo:table-row>
+                </fo:table-body>
+            </fo:table>
+        </xsl:variable>
+        <xsl:copy-of select="$candidate" />
+    </xsl:template>
+
+    <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="RevInfo">
+            <xsl:choose>
+                <xsl:when test="//revhistory/revision[1]/revnumber">
+                    <xsl:text>Version </xsl:text>
+                    <xsl:value-of select="//revhistory/revision[1]/revnumber" />
+                </xsl:when>
+                <xsl:otherwise>
+                    <!-- nop -->
+                </xsl:otherwise>
+            </xsl:choose>
+        </xsl:variable>
+
+        <fo:block xsl:use-attribute-sets="footer.title.properties">
+            <!-- pageclass can be front, body, back -->
+            <!-- sequence can be odd, even, first, blank -->
+            <!-- position can be left, center, right -->
+            <xsl:choose>
+                <xsl:when test="$position = 'left'">
+                    <xsl:value-of select="$document.copyright"/>
+                </xsl:when>
+                <xsl:when test="$position = 'center'">
+                    <xsl:value-of select="$RevInfo" />
+                </xsl:when>
+                <xsl:when test="$position = 'right'">Page: <fo:page-number /></xsl:when>
+                <xsl:otherwise />
+            </xsl:choose>
+        </fo:block>
+    </xsl:template>
+    <!-- ==================================================================== -->
+
+    <xsl:template name="page.number.format">
+        <xsl:param name="element" select="local-name(.)" />
+        <xsl:param name="master-reference" select="1" />
+    </xsl:template>
+
+    <xsl:template name="initial.page.number">
+        <xsl:param name="element" select="local-name(.)"/>
+        <xsl:param name="master-reference" select="''"/>
+        <xsl:choose>
+          <!-- double-sided output -->
+          <xsl:when test="$double.sided != 0">
+            <xsl:choose>
+              <xsl:when test="$element = 'toc'">auto-odd</xsl:when>
+              <xsl:when test="$element = 'book'">1</xsl:when>
+              <xsl:when test="$element = 'preface'">auto-odd</xsl:when>
+              <xsl:when test="$element = 'part' and not(preceding::chapter) and not(preceding::part)">auto-odd</xsl:when>
+              <xsl:when test="($element = 'dedication' or $element = 'article') and
+                not(preceding::chapter or preceding::preface or
+                preceding::appendix or preceding::article or
+                preceding::dedication or parent::part or
+                parent::reference)">auto-odd</xsl:when>
+              <xsl:when test="($element = 'chapter' or $element = 'appendix') and
+                not(preceding::chapter or preceding::appendix or
+                preceding::article or preceding::dedication or
+                parent::part or parent::reference)">auto-odd</xsl:when>
+              <xsl:otherwise>auto-odd</xsl:otherwise>
+            </xsl:choose>
+          </xsl:when>
+          <!-- single-sided output -->
+          <xsl:otherwise>
+            <xsl:choose>
+              <xsl:when test="$element = 'toc'">auto</xsl:when>
+              <xsl:when test="$element = 'book'">1</xsl:when>
+              <xsl:when test="$element = 'preface'">auto</xsl:when>
+              <xsl:when test="$element = 'part' and not(preceding::chapter) and
+                not(preceding::part)">auto</xsl:when>
+              <xsl:when test="($element = 'dedication' or $element = 'article') and
+                not(preceding::chapter or preceding::preface or
+                preceding::appendix or preceding::article or
+                preceding::dedication or parent::part or
+                parent::reference)">auto</xsl:when>
+              <xsl:when test="($element = 'chapter' or $element = 'appendix') and
+                not(preceding::chapter or preceding::appendix or
+                preceding::article or preceding::dedication or
+                parent::part or parent::reference)">auto</xsl:when>
+              <xsl:otherwise>auto</xsl:otherwise>
+            </xsl:choose>
+          </xsl:otherwise>
+        </xsl:choose>
+  </xsl:template>
+
+    <xsl:template name="force.page.count">
+        <xsl:param name="element" select="local-name(.)" />
+        <xsl:param name="master-reference" select="''" />
+        <xsl:choose>
+            <!-- double-sided output -->
+            <xsl:when test="$double.sided != 0">end-on-even</xsl:when>
+            <!-- single-sided output -->
+            <xsl:otherwise>no-force</xsl:otherwise>
+        </xsl:choose>
+    </xsl:template>
+
+    <xsl:template name="set.flow.properties">
+        <xsl:param name="element" select="local-name(.)" />
+        <xsl:param name="master-reference" select="''" />
+        <!-- This template is called after each <fo:flow> starts. -->
+        <!-- Customize this template to set attributes on fo:flow -->
+        <xsl:choose>
+            <xsl:when test="$fop.extensions != 0 or $passivetex.extensions != 0">
+                <!-- body.start.indent does not work well with these processors -->
+            </xsl:when>
+            <xsl:when
+                test="$master-reference = 'body' or $master-reference = 'lot' or
+                        $master-reference = 'front' or $element = 'preface' or
+                        ($master-reference = 'back' and $element = 'appendix')">
+                <xsl:attribute name="start-indent">
+          <xsl:value-of select="$body.start.indent" />
+        </xsl:attribute>
+                <xsl:attribute name="end-indent">
+          <xsl:value-of select="$body.end.indent" />
+        </xsl:attribute>
+            </xsl:when>
+        </xsl:choose>
+    </xsl:template>
+    <!-- ==================================================================== -->
+</xsl:stylesheet>

http://git-wip-us.apache.org/repos/asf/river-container/blob/f17fe38e/user-docs/src/docbkx/resources/xsl/custompdf/table.xsl
----------------------------------------------------------------------
diff --git a/user-docs/src/docbkx/resources/xsl/custompdf/table.xsl b/user-docs/src/docbkx/resources/xsl/custompdf/table.xsl
new file mode 100644
index 0000000..7319a83
--- /dev/null
+++ b/user-docs/src/docbkx/resources/xsl/custompdf/table.xsl
@@ -0,0 +1,51 @@
+<?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" 
+    version="1.0">
+    
+    <xsl:template name="table.row.properties">
+
+        <xsl:variable name="tabstyle">
+            <xsl:call-template name="tabstyle" />
+        </xsl:variable>
+
+        <xsl:variable name="bgcolor">
+            <xsl:call-template name="dbfo-attribute">
+                <xsl:with-param name="pis" select="processing-instruction('dbfo')" />
+                <xsl:with-param name="attribute" select="'bgcolor'" />
+            </xsl:call-template>
+        </xsl:variable>
+
+        <xsl:variable name="rownum">
+            <xsl:number from="tgroup" count="row" />
+        </xsl:variable>
+
+        <xsl:choose>
+            <xsl:when test="$bgcolor != ''">
+                <xsl:attribute name="background-color">
+                    <xsl:value-of select="$bgcolor" />
+                </xsl:attribute>
+            </xsl:when>
+            <xsl:when test="$tabstyle = 'striped'">
+                <xsl:if test="$rownum mod 2 = 0">
+                    <xsl:attribute name="background-color">#EFEFEF</xsl:attribute>
+                </xsl:if>
+            </xsl:when>
+        </xsl:choose>
+    </xsl:template>
+</xsl:stylesheet>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/river-container/blob/f17fe38e/user-docs/src/docbkx/resources/xsl/custompdf/titlepage.xsl
----------------------------------------------------------------------
diff --git a/user-docs/src/docbkx/resources/xsl/custompdf/titlepage.xsl b/user-docs/src/docbkx/resources/xsl/custompdf/titlepage.xsl
new file mode 100644
index 0000000..87948cc
--- /dev/null
+++ b/user-docs/src/docbkx/resources/xsl/custompdf/titlepage.xsl
@@ -0,0 +1,409 @@
+<?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:exsl="http://exslt.org/common" 
+    version="1.0"
+	exclude-result-prefixes="exsl">
+
+	<xsl:template name="book.titlepage.recto">
+		<xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="bookinfo/productname" />
+		<xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="info/productname" />
+		<xsl:choose>
+			<xsl:when test="bookinfo/title">
+				<xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="bookinfo/title" />
+			</xsl:when>
+			<xsl:when test="info/title">
+				<xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="info/title" />
+			</xsl:when>
+			<xsl:when test="title">
+				<xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="title" />
+			</xsl:when>
+		</xsl:choose>
+
+		<xsl:choose>
+			<xsl:when test="bookinfo/subtitle">
+				<xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="bookinfo/subtitle" />
+			</xsl:when>
+			<xsl:when test="info/subtitle">
+				<xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="info/subtitle" />
+			</xsl:when>
+			<xsl:when test="subtitle">
+				<xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="subtitle" />
+			</xsl:when>
+		</xsl:choose>
+
+		<xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="bookinfo/address" />
+		<xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="info/address" />
+		<xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="bookinfo/legalnotice" />
+		<xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="info/legalnotice" />
+		<xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="bookinfo/edition" />
+		<xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="info/edition" />
+	</xsl:template>
+
+	<xsl:template name="book.titlepage.verso">
+		<xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="bookinfo/productname" />
+		<xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="info/productname" />
+		<xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="bookinfo/abstract" />
+		<xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="info/abstract" />
+		<xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="bookinfo/revhistory" />
+		<xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="info/revhistory" />
+	</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: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: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="productname"
+		mode="book.titlepage.recto.auto.mode">
+		<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format"
+			xsl:use-attribute-sets="book.titlepage.recto.style" margin-top="30px"
+			text-align="right" font-size="22pt" font-weight="normal"
+			font-family="{$title.fontset}">
+			<xsl:apply-templates select="."
+				mode="book.titlepage.recto.mode" />
+		</fo:block>
+	</xsl:template>
+
+	<xsl:template match="title" mode="book.titlepage.recto.auto.mode">
+		<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format"
+			xsl:use-attribute-sets="book.titlepage.recto.style"
+			text-align="right" font-size="24pt" space-before="40pt"
+			font-weight="bold" font-family="{$title.fontset}">
+			<xsl:call-template name="division.title">
+				<xsl:with-param name="node"
+					select="ancestor-or-self::book[1]" />
+			</xsl:call-template>
+		</fo:block>
+	</xsl:template>
+
+	<xsl:template match="subtitle"
+		mode="book.titlepage.recto.auto.mode">
+		<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format"
+			xsl:use-attribute-sets="book.titlepage.recto.style"
+			text-align="right" font-size="20pt" font-weight="normal"
+			font-family="{$title.fontset}">
+			<xsl:apply-templates select="."
+				mode="book.titlepage.recto.mode" />
+		</fo:block>
+	</xsl:template>
+
+	<xsl:attribute-set name="book.titlepage.recto.address.style" />
+	<xsl:template match="address"
+		mode="book.titlepage.recto.auto.mode">
+		<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format"
+			xsl:use-attribute-sets="book.titlepage.recto.address.style">
+			<xsl:apply-templates select="."
+				mode="book.titlepage.recto.mode" />
+		</fo:block>
+	</xsl:template>
+	<xsl:template match="address" mode="book.titlepage.recto.mode">
+		<xsl:apply-templates />
+	</xsl:template>
+
+	<xsl:template match="legalnotice"
+		mode="book.titlepage.recto.auto.mode">
+		<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format"
+			xsl:use-attribute-sets="book.titlepage.recto.style" text-align="left"
+			font-size="8pt" space-before="18pt" font-weight="normal"
+			font-family="{$body.fontset}" border-bottom-width="0.5pt"
+			border-bottom-style="solid" border-bottom-color="black"
+			border-top-width="0.5pt" border-top-style="solid"
+			border-top-color="black">
+			<xsl:apply-templates select="."
+				mode="book.titlepage.recto.mode" />
+		</fo:block>
+	</xsl:template>
+
+	<xsl:template match="edition"
+		mode="book.titlepage.recto.auto.mode">
+		<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format"
+			xsl:use-attribute-sets="book.titlepage.recto.style">
+			<xsl:call-template name="book.recto.edition">
+			</xsl:call-template>
+		</fo:block>
+	</xsl:template>
+
+	<xsl:template match="productname"
+		mode="book.titlepage.verso.auto.mode">
+		<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format"
+			xsl:use-attribute-sets="book.titlepage.verso.style">
+			<xsl:call-template name="book.verso.productname">
+			</xsl:call-template>
+		</fo:block>
+	</xsl:template>
+
+	<xsl:template match="abstract"
+		mode="book.titlepage.verso.auto.mode">
+		<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format"
+			xsl:use-attribute-sets="book.titlepage.verso.style">
+			<xsl:apply-templates select="."
+				mode="book.titlepage.verso.mode" />
+		</fo:block>
+	</xsl:template>
+
+	<xsl:template match="revhistory"
+		mode="book.titlepage.verso.auto.mode">
+		<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format"
+			xsl:use-attribute-sets="book.titlepage.verso.style">
+			<xsl:call-template name="book.verso.revhistory">
+			</xsl:call-template>
+		</fo:block>
+	</xsl:template>
+	
+	<xsl:template name="book.recto.edition">
+	</xsl:template>
+	
+	<xsl:template match="bookinfo/author" mode="docinfo">
+		<fo:table-row xmlns:fo="http://www.w3.org/1999/XSL/Format">
+			<fo:table-cell>
+				<fo:block> </fo:block>
+			</fo:table-cell>
+			<fo:table-cell>
+				<fo:block> </fo:block>
+			</fo:table-cell>
+		</fo:table-row>
+		<fo:table-row xmlns:fo="http://www.w3.org/1999/XSL/Format">
+			<fo:table-cell>
+				<fo:block text-align="left" font-size="11pt"
+					font-weight="normal" font-family="{$body.fontset}">
+					Contact Person
+				</fo:block>
+			</fo:table-cell>
+			<fo:table-cell>
+				<fo:block text-align="left" font-size="11pt"
+					font-weight="normal" font-family="{$body.fontset}">
+					<xsl:call-template name="anchor" />
+					<xsl:call-template name="person.name" />
+				</fo:block>
+			</fo:table-cell>
+		</fo:table-row>
+		<xsl:if test="email|affiliation/address/email">
+			<fo:table-row
+				xmlns:fo="http://www.w3.org/1999/XSL/Format">
+				<fo:table-cell>
+					<fo:block> </fo:block>
+				</fo:table-cell>
+				<fo:table-cell>
+					<fo:block text-align="left" font-size="11pt"
+						font-weight="normal" font-family="{$body.fontset}">
+						<xsl:apply-templates
+							select="(email|affiliation/address/email)[1]" />
+					</fo:block>
+				</fo:table-cell>
+			</fo:table-row>
+		</xsl:if>
+	</xsl:template>
+	
+	<xsl:template match="bookinfo/pubdate|info/pubdate"
+		mode="titlepage.mode" priority="2">
+		<xsl:apply-templates mode="titlepage.mode" />
+	</xsl:template>
+	
+	<xsl:template name="book.verso.productname">
+		<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format">
+			<fo:block xsl:use-attribute-sets="formal.title.properties"
+				keep-with-next.within-column="always">
+				Purpose and scope of this document
+			</fo:block>
+			<fo:block>
+				This document is part of the
+				<xsl:apply-templates mode="titlepage.mode" />
+				<xsl:call-template name="gentext.space" />
+				<xsl:if test="//productnumber">
+					<xsl:apply-templates select="//productnumber" />
+				</xsl:if>
+				<xsl:call-template name="gentext.space" />
+				release.
+			</fo:block>
+		</fo:block>
+	</xsl:template>
+	
+	<xsl:template match="abstract" mode="titlepage.mode">
+		<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format">
+			<fo:block xsl:use-attribute-sets="formal.title.properties"
+				keep-with-next.within-column="always">
+				<xsl:apply-templates select="." mode="title.markup" />
+			</fo:block>
+			<xsl:apply-templates mode="titlepage.mode" />
+		</fo:block>
+	</xsl:template>
+	
+	<xsl:template name="book.verso.revhistory">
+		<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format">
+			<fo:block xsl:use-attribute-sets="formal.title.properties"
+				keep-with-next.within-column="always">
+				Version control
+			</fo:block>
+			<fo:block>
+				This document is updated continuously. Major
+				modifications on content or size will lead to new
+				release numbers, whereas textual revisions are reflected
+				as new level numbers. The following list shows the
+				document's history.
+			</fo:block>
+		</fo:block>
+
+		<xsl:if test="revision">
+			<fo:table xmlns:fo="http://www.w3.org/1999/XSL/Format"
+				table-layout="fixed" width="16cm" space-before="8.25pt"
+				border-width="0.5pt" border-style="solid" border-color="black">
+				<fo:table-column column-number="1" column-width="2cm" />
+				<fo:table-column column-number="2" column-width="3cm" />
+				<fo:table-column column-number="3" column-width="4cm" />
+				<fo:table-column column-number="4" column-width="7.5cm" />
+
+				<fo:table-header background-color="#E0E0E0">
+					<fo:table-row background-color="#E0E0E0">
+						<fo:table-cell padding="2pt">
+							<fo:block text-align="left" font-size="11pt"
+								font-weight="bold">
+								Version
+							</fo:block>
+						</fo:table-cell>
+						<fo:table-cell padding="2pt">
+							<fo:block text-align="left" font-size="11pt"
+								font-weight="bold">
+								Date
+							</fo:block>
+						</fo:table-cell>
+						<fo:table-cell padding="2pt">
+							<fo:block text-align="left" font-size="11pt"
+								font-weight="bold">
+								Author
+							</fo:block>
+						</fo:table-cell>
+						<fo:table-cell padding="2pt">
+							<fo:block text-align="left" font-size="11pt"
+								font-weight="bold">
+								Reason of modification
+							</fo:block>
+						</fo:table-cell>
+					</fo:table-row>
+				</fo:table-header>
+
+				<fo:table-body start-indent="0pt" end-indent="0pt">
+					<xsl:apply-templates select="."
+						mode="book.verso.revhistory" />
+				</fo:table-body>
+			</fo:table>
+		</xsl:if>
+	</xsl:template>
+
+	<xsl:template match="revision" mode="book.verso.revhistory">
+		<xsl:variable name="revnumber" select="revnumber" />
+		<xsl:variable name="revdate" select="date" />
+		<xsl:variable name="revauthor" select="authorinitials" />
+		<xsl:variable name="revremark" select="revremark|revdescription" />
+			
+		<fo:table-row xmlns:fo="http://www.w3.org/1999/XSL/Format"
+			border-width="0.5pt" border-style="solid" border-color="black"
+			>
+			
+			<xsl:if test="(position() mod 2) = 0">
+				<xsl:attribute name="background-color">#EFEFEF</xsl:attribute>
+			</xsl:if>
+			
+			<fo:table-cell padding="2pt">
+				<fo:block text-align="left" font-size="11pt"
+					font-weight="normal" font-family="{$body.fontset}">
+					<xsl:if test="$revnumber">
+						<xsl:apply-templates select="$revnumber[1]" mode="titlepage.mode" />
+					</xsl:if>
+				</fo:block>
+			</fo:table-cell>
+			<fo:table-cell padding="2pt">
+				<fo:block text-align="left" font-size="11pt"
+					font-weight="normal" font-family="{$body.fontset}">
+					<xsl:if test="$revdate">
+						<xsl:apply-templates select="$revdate[1]" mode="titlepage.mode" />
+					</xsl:if>
+				</fo:block>
+			</fo:table-cell>
+			<fo:table-cell padding="2pt">
+				<fo:block text-align="left" font-size="11pt"
+					font-weight="normal" font-family="{$body.fontset}">
+
+					<xsl:for-each select="$revauthor">
+						<xsl:apply-templates select="." mode="titlepage.mode" />
+						<xsl:if test="position() != last()">
+							<xsl:text>, </xsl:text>
+						</xsl:if>
+					</xsl:for-each>
+				</fo:block>
+			</fo:table-cell>
+			<fo:table-cell padding="2pt">
+				<fo:block text-align="left" font-size="11pt"
+					font-weight="normal" font-family="{$body.fontset}">
+					<xsl:if test="$revremark">
+						<xsl:apply-templates select="$revremark[1]" mode="titlepage.mode" />
+					</xsl:if>
+				</fo:block>
+			</fo:table-cell>
+		</fo:table-row>
+	</xsl:template>
+
+</xsl:stylesheet>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/river-container/blob/f17fe38e/user-docs/src/docbkx/resources/xsl/fopdf.xsl
----------------------------------------------------------------------
diff --git a/user-docs/src/docbkx/resources/xsl/fopdf.xsl b/user-docs/src/docbkx/resources/xsl/fopdf.xsl
new file mode 100644
index 0000000..440174c
--- /dev/null
+++ b/user-docs/src/docbkx/resources/xsl/fopdf.xsl
@@ -0,0 +1,409 @@
+<?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" 
+    version="1.0">
+    
+    <xsl:import href="urn:docbkx:stylesheet" />
+
+     <!-- ================ Header and Footer data ============== -->
+    <xsl:param name="apache.logo.src" select="concat($img.src.path, 'asf-logo.gif')" />
+    <xsl:param name="apache.logo.alt" select="'Apache Software Foundation'" />
+    <xsl:param name="document.logo.src" select="concat($img.src.path, 'river.png')" />
+    <xsl:param name="document.logo.alt" select="'Apache River Container'" />
+    <xsl:param name="document.copyright" select="'&#169; 2013 Apache Software Foundation'" />
+
+    <!-- ================ Customization Layer =========== -->
+    <xsl:include href="custompdf/pagesetup.xsl" />
+    <xsl:include href="custompdf/admon.xsl" />
+    <xsl:include href="custompdf/block.xsl" />
+    <xsl:include href="custompdf/inline.xsl" />
+    <xsl:include href="custompdf/titlepage.xsl" />
+    <xsl:include href="custompdf/highlight.xsl" />
+ 
+    <!-- =============== Customized I18n ============== -->
+    <xsl:param name="local.l10n.xml" select="document('customcommon/en.xml')" />
+
+    <!-- =============== Renderer options ============== -->
+    <xsl:param name="xep.extensions" select="0" />
+
+    <xsl:attribute-set name="xep.index.item.properties">
+        <xsl:attribute name="merge-subsequent-page-numbers">true</xsl:attribute>
+        <xsl:attribute name="link-back">true</xsl:attribute>
+    </xsl:attribute-set>
+
+    <!-- FOP provide only PDF Bookmarks at the moment -->
+    <xsl:param name="fop.extensions">0</xsl:param> <!-- version 0.20.5 or earlier -->
+    <xsl:param name="fop1.extensions">1</xsl:param> <!-- version 0.93 or later -->
+
+    <!-- These extensions are required for table printing and other stuff -->
+    <xsl:param name="use.extensions">1</xsl:param>
+    <xsl:param name="tablecolumns.extension">0</xsl:param>
+    <xsl:param name="callout.extensions">1</xsl:param>
+
+    <!-- === Pagelayout === -->
+    <xsl:param name="paper.type">A4</xsl:param>
+    <xsl:param name="page.margin.inner">2.5cm</xsl:param>
+    <xsl:param name="page.margin.outer">2.5cm</xsl:param>
+    <xsl:param name="page.margin.top">0.7cm</xsl:param>
+    <xsl:param name="page.margin.bottom">0.5cm</xsl:param>
+    <xsl:param name="body.margin.top">3cm</xsl:param>
+    <xsl:param name="body.margin.bottom">1.5cm</xsl:param>
+    <xsl:param name="region.before.extent">2.3cm</xsl:param>
+    <xsl:param name="region.after.extent">1.3cm</xsl:param>
+    <xsl:param name="alignment">left</xsl:param>
+    <xsl:param name="hyphenate">true</xsl:param>
+    <xsl:attribute-set name="normal.para.spacing">
+        <xsl:attribute name="space-before.optimum">1em</xsl:attribute>
+        <xsl:attribute name="space-before.minimum">0.8em</xsl:attribute>
+        <xsl:attribute name="space-before.maximum">1.2em</xsl:attribute>
+    </xsl:attribute-set>
+    <xsl:param name="header.column.widths" select="'2 0 1'"></xsl:param>
+    
+    <!-- === Indentation === -->
+    <xsl:param name="title.margin.left">
+        <xsl:choose>
+            <xsl:when test="$fop.extensions != 0">-2pt</xsl:when>
+            <xsl:when test="$passivetex.extensions != 0">0pt</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:when test="$passivetex.extensions != 0">0pt</xsl:when>
+            <xsl:otherwise>2pt</xsl:otherwise>
+        </xsl:choose>
+    </xsl:param>
+
+    <!-- === Images === -->
+    <xsl:param name="graphic.default.extension">.png</xsl:param>
+    <xsl:param name="default.image.width">15.5cm</xsl:param>
+    <xsl:param name="keep.relative.image.uris">1</xsl:param>
+
+    <!-- === Call Outs === -->
+    <xsl:param name="callout.graphics" select="'1'"></xsl:param>
+    <xsl:param name="callout.graphics.extension">.png</xsl:param>
+
+    <!-- === Admons === -->
+    <xsl:param name="admon.graphics.extension">.png</xsl:param>
+
+    <!-- === Index === -->
+    <xsl:param name="generate.index" select="1"></xsl:param>
+    <xsl:param name="make.index.markup" select="0"></xsl:param>
+    <xsl:attribute-set name="index.div.title.properties">
+        <xsl:attribute name="margin-left">0pt</xsl:attribute>
+        <xsl:attribute name="font-size">16pt</xsl:attribute>
+        <xsl:attribute name="font-family"><xsl:value-of select="$title.fontset"></xsl:value-of></xsl:attribute>
+        <xsl:attribute name="font-weight">bold</xsl:attribute>
+        <xsl:attribute name="keep-with-next.within-column">always</xsl:attribute>
+        <xsl:attribute name="space-before.minimum"><xsl:value-of select="concat($body.font.master,'pt * 0.8')"></xsl:value-of></xsl:attribute>
+        <xsl:attribute name="space-before.optimum"><xsl:value-of select="concat($body.font.master,'pt * 1.2')"></xsl:value-of></xsl:attribute>
+        <xsl:attribute name="space-after.minimum"><xsl:value-of select="concat($body.font.master,'pt * 0.6')"></xsl:value-of></xsl:attribute>
+        <xsl:attribute name="space-after.optimum"><xsl:value-of select="concat($body.font.master,'pt * 0.8')"></xsl:value-of></xsl:attribute>
+        <xsl:attribute name="start-indent">0pt</xsl:attribute>
+    </xsl:attribute-set>
+    <xsl:attribute-set name="index.entry.properties">
+        <xsl:attribute name="start-indent">0pt</xsl:attribute>
+        <xsl:attribute name="font-size">10pt</xsl:attribute>
+    </xsl:attribute-set>
+
+    <!-- === Enumeration and autolabel === -->
+    <xsl:param name="section.autolabel" select="1" />
+    <!--
+        1 Arabic numeration (1, 2, 3 ...). 
+        A or upperalpha Uppercase letter numeration (A, B, C ...). 
+        a or loweralpha Lowercase letter numeration (a, b, c ...). 
+        I or upperroman Uppercase roman numeration (I, II, III ...). 
+        i or lowerroman Lowercase roman letter numeration (i, ii, iii ...).
+    -->
+    <xsl:param name="chapter.autolabel" select="1" />
+    <xsl:param name="section.label.includes.component.label" select="1" />
+    <xsl:param name="label.from.part" select="0" />
+    <xsl:param name="component.label.includes.part.label" select="0" />
+    <!-- === Line deviding header and ruler from textbody === -->
+    <xsl:param name="header.rule" select="1" />
+    <xsl:param name="footer.rule" select="1" />
+
+    <!-- === Header === -->
+    <xsl:attribute-set name="header.content.properties">
+        <xsl:attribute name="font-family">
+			<xsl:value-of select="$body.fontset"></xsl:value-of>
+		</xsl:attribute>
+        <xsl:attribute name="font-weight">bold</xsl:attribute>
+        <xsl:attribute name="font-variant">small-caps</xsl:attribute>
+        <xsl:attribute name="font-size">11pt</xsl:attribute>
+        <xsl:attribute name="margin-left">
+			<xsl:value-of select="$title.margin.left"></xsl:value-of>
+		</xsl:attribute>
+    </xsl:attribute-set>
+
+    <!-- === Footer === -->
+    <xsl:attribute-set name="footer.content.properties">
+        <xsl:attribute name="font-family">
+			<xsl:value-of select="$body.fontset"></xsl:value-of>
+		</xsl:attribute>
+        <xsl:attribute name="font-size">10pt</xsl:attribute>
+        <xsl:attribute name="margin-left">
+			<xsl:value-of select="$title.margin.left"></xsl:value-of>
+		</xsl:attribute>
+    </xsl:attribute-set>
+
+    <!-- === Glossary === -->
+    <xsl:param name="glossentry.show.acronym" select="'primary'"></xsl:param>
+
+    <!-- === Refentry === -->
+    <xsl:param name="refentry.generate.name" select="0"></xsl:param>
+    <xsl:param name="refentry.generate.title" select="1"></xsl:param>
+    <xsl:param name="refentry.pagebreak" select="1"></xsl:param>
+
+    <!-- === Varlist === -->
+    <xsl:param name="variablelist.max.termlength">20</xsl:param>
+    <xsl:param name="variablelist.as.blocks" select="1"></xsl:param>
+
+    <!-- === Tables === -->
+    <xsl:attribute-set name="table.cell.padding">
+        <xsl:attribute name="padding-left">2pt</xsl:attribute>
+        <xsl:attribute name="padding-right">2pt</xsl:attribute>
+        <xsl:attribute name="padding-top">2pt</xsl:attribute>
+        <xsl:attribute name="padding-bottom">2pt</xsl:attribute>
+    </xsl:attribute-set>
+    <xsl:attribute-set name="informal.object.properties">
+        <xsl:attribute name="space-before.minimum">0.5em</xsl:attribute>
+        <xsl:attribute name="space-before.optimum">1em</xsl:attribute>
+        <xsl:attribute name="space-before.maximum">2em</xsl:attribute>
+        <xsl:attribute name="space-after.minimum">0.5em</xsl:attribute>
+        <xsl:attribute name="space-after.optimum">1em</xsl:attribute>
+        <xsl:attribute name="space-after.maximum">2em</xsl:attribute>
+        <xsl:attribute name="keep-together.within-line">always</xsl:attribute>
+    </xsl:attribute-set>
+    <xsl:attribute-set name="formal.object.properties">
+        <xsl:attribute name="space-before.minimum">0.5em</xsl:attribute>
+        <xsl:attribute name="space-before.optimum">1em</xsl:attribute>
+        <xsl:attribute name="space-before.maximum">2em</xsl:attribute>
+        <xsl:attribute name="space-after.minimum">0.5em</xsl:attribute>
+        <xsl:attribute name="space-after.optimum">1em</xsl:attribute>
+        <xsl:attribute name="space-after.maximum">2em</xsl:attribute>
+        <xsl:attribute name="keep-together.within-line">always</xsl:attribute>
+    </xsl:attribute-set>
+
+    <!-- === ULink === -->
+    <xsl:param name="ulink.footnotes" select="0"></xsl:param>
+    <xsl:param name="ulink.show" select="1"></xsl:param>
+
+    <!-- === XREF === -->
+    <xsl:param name="insert.xref.page.number">
+        yes
+    </xsl:param>
+    <!-- Make xrefs and links blue -->
+    <xsl:attribute-set name="xref.properties">
+        <xsl:attribute name="color">
+	  	<xsl:if test="local-name() = 'link'
+	  					or local-name() = 'olink'
+	  					or local-name() = 'ulink'
+	  					or local-name() = 'xref'">
+	  		blue
+	  	</xsl:if>
+	</xsl:attribute>
+    </xsl:attribute-set>
+
+    <!-- === Fonts === -->
+    <xsl:param name="body.font.family" select="'sans-serif'" />
+    <xsl:param name="title.font.family" select="'sans-serif'" />
+    <xsl:param name="monospace.font.family" select="'monospace'" />
+    <xsl:param name="body.font.master">11</xsl:param>
+    <xsl:param name="body.font.size">
+        <xsl:value-of select="$body.font.master" />
+        <xsl:text>pt</xsl:text>
+    </xsl:param>
+    <xsl:param name="footnote.font.size">9pt</xsl:param>
+
+    <!-- === Font-Styles === -->
+    <xsl:attribute-set name="color.properties">
+<!--        <xsl:attribute name="color">#990000</xsl:attribute>-->
+    </xsl:attribute-set>
+    <xsl:attribute-set name="admonition.title.properties" use-attribute-sets="color.properties"></xsl:attribute-set>
+    <xsl:attribute-set name="index.div.title.properties" use-attribute-sets="color.properties"></xsl:attribute-set>
+    <xsl:attribute-set name="refentry.title.properties" use-attribute-sets="color.properties"></xsl:attribute-set>
+    <xsl:attribute-set name="formal.title.properties" use-attribute-sets="color.properties"></xsl:attribute-set>
+    <xsl:attribute-set name="sidebar.title.properties" use-attribute-sets="color.properties"></xsl:attribute-set>
+    <xsl:attribute-set name="margin.note.title.properties" use-attribute-sets="color.properties"></xsl:attribute-set>
+    <xsl:attribute-set name="component.title.properties" use-attribute-sets="color.properties"></xsl:attribute-set>
+    <xsl:attribute-set name="article.appendix.title.properties" use-attribute-sets="color.properties"></xsl:attribute-set>
+    <xsl:attribute-set name="abstract.title.properties" use-attribute-sets="color.properties"></xsl:attribute-set>
+    <xsl:attribute-set name="revhistory.title.properties" use-attribute-sets="color.properties"></xsl:attribute-set>
+    <xsl:attribute-set name="section.title.properties" use-attribute-sets="color.properties"></xsl:attribute-set>
+    <xsl:attribute-set name="header.title.properties" use-attribute-sets="color.properties"></xsl:attribute-set>
+    <xsl:attribute-set name="footer.title.properties" use-attribute-sets="color.properties"></xsl:attribute-set>
+    <!-- Component titles -->
+    <xsl:attribute-set name="component.title.properties" use-attribute-sets="color.properties">
+        <xsl:attribute name="keep-with-next.within-column">always</xsl:attribute>
+        <xsl:attribute name="font-size">
+			<xsl:value-of select="$body.font.master * 2"></xsl:value-of>
+			<xsl:text>pt</xsl:text>
+		</xsl:attribute>
+        <xsl:attribute name="space-before.optimum">14pt</xsl:attribute>
+        <xsl:attribute name="space-before.minimum">12pt</xsl:attribute>
+        <xsl:attribute name="space-before.maximum">14pt</xsl:attribute>
+        <xsl:attribute name="space-after.optimum">
+			<xsl:choose>
+				<xsl:when test="parent::book or parent::part or parent::article or parent::chapter">140pt</xsl:when>
+				<xsl:otherwise>24pt</xsl:otherwise>
+			</xsl:choose>
+		</xsl:attribute>
+        <xsl:attribute name="space-after.minimum">
+			<xsl:choose>
+				<xsl:when test="parent::book or parent::part or parent::article">80pt</xsl:when>
+				<xsl:otherwise>16pt</xsl:otherwise>
+			</xsl:choose>
+		</xsl:attribute>
+        <xsl:attribute name="space-after.maximum">
+			<xsl:choose>
+				<xsl:when test="parent::book or parent::part or parent::article">160pt</xsl:when>
+				<xsl:otherwise>30pt</xsl:otherwise>
+			</xsl:choose>
+		</xsl:attribute>
+        <xsl:attribute name="hyphenate">false</xsl:attribute>
+        <xsl:attribute name="text-align">left</xsl:attribute>
+        <xsl:attribute name="start-indent"><xsl:value-of select="$title.margin.left" /></xsl:attribute>
+        <xsl:attribute name="color">#990000</xsl:attribute>
+    </xsl:attribute-set>
+    <!-- section level 1 -->
+    <xsl:attribute-set name="section.title.level1.properties">
+        <xsl:attribute name="font-size">
+			<xsl:value-of select="$body.font.master * 1.454545"></xsl:value-of>
+			<xsl:text>pt</xsl:text>
+		</xsl:attribute>
+        <xsl:attribute name="font-weight">bold</xsl:attribute>
+        <xsl:attribute name="keep-with-next.within-column">always</xsl:attribute>
+        <xsl:attribute name="space-before.optimum">16pt</xsl:attribute>
+        <xsl:attribute name="space-before.minimum">12pt</xsl:attribute>
+        <xsl:attribute name="space-before.maximum">20pt</xsl:attribute>
+        <xsl:attribute name="space-after.optimum">12pt</xsl:attribute>
+        <xsl:attribute name="space-after.minimum">8pt</xsl:attribute>
+        <xsl:attribute name="space-after.maximum">16pt</xsl:attribute>
+    </xsl:attribute-set>
+    <!-- section level 2 -->
+    <xsl:attribute-set name="section.title.level2.properties">
+        <xsl:attribute name="font-size">
+			<xsl:value-of select="$body.font.master * 1.272727"></xsl:value-of>
+			<xsl:text>pt</xsl:text>
+		</xsl:attribute>
+        <xsl:attribute name="font-weight">bold</xsl:attribute>
+        <xsl:attribute name="keep-with-next.within-column">always</xsl:attribute>
+        <xsl:attribute name="space-before.optimum">14pt</xsl:attribute>
+        <xsl:attribute name="space-before.minimum">8pt</xsl:attribute>
+        <xsl:attribute name="space-before.maximum">20pt</xsl:attribute>
+        <xsl:attribute name="space-after.optimum">6pt</xsl:attribute>
+        <xsl:attribute name="space-after.minimum">4pt</xsl:attribute>
+        <xsl:attribute name="space-after.maximum">6pt</xsl:attribute>
+    </xsl:attribute-set>
+    <!-- section level 3 -->
+    <xsl:attribute-set name="section.title.level3.properties">
+        <xsl:attribute name="font-size">
+			<xsl:value-of select="$body.font.master * 1.090909"></xsl:value-of>
+			<xsl:text>pt</xsl:text>
+		</xsl:attribute>
+        <xsl:attribute name="font-weight">bold</xsl:attribute>
+        <xsl:attribute name="keep-with-next.within-column">always</xsl:attribute>
+        <xsl:attribute name="space-before.optimum">12pt</xsl:attribute>
+        <xsl:attribute name="space-before.minimum">8pt</xsl:attribute>
+        <xsl:attribute name="space-before.maximum">16pt</xsl:attribute>
+        <xsl:attribute name="space-after.optimum">6pt</xsl:attribute>
+        <xsl:attribute name="space-after.minimum">4pt</xsl:attribute>
+        <xsl:attribute name="space-after.maximum">6pt</xsl:attribute>
+    </xsl:attribute-set>
+    <!-- section level 4 -->
+    <xsl:attribute-set name="section.title.level4.properties">
+        <xsl:attribute name="font-size">
+			<xsl:value-of select="$body.font.master * 1.02"></xsl:value-of>
+			<xsl:text>pt</xsl:text>
+		</xsl:attribute>
+        <xsl:attribute name="font-weight">bold</xsl:attribute>
+        <xsl:attribute name="keep-with-next.within-column">always</xsl:attribute>
+        <xsl:attribute name="space-before.optimum">12pt</xsl:attribute>
+        <xsl:attribute name="space-before.minimum">8pt</xsl:attribute>
+        <xsl:attribute name="space-before.maximum">16pt</xsl:attribute>
+        <xsl:attribute name="space-after.optimum">6pt</xsl:attribute>
+        <xsl:attribute name="space-after.minimum">4pt</xsl:attribute>
+        <xsl:attribute name="space-after.maximum">6pt</xsl:attribute>
+    </xsl:attribute-set>
+    <!-- refentry -->
+    <xsl:attribute-set name="refentry.title.properties">
+        <xsl:attribute name="font-size">
+			<xsl:value-of select="$body.font.master * 1.8"></xsl:value-of>
+			<xsl:text>pt</xsl:text>
+		</xsl:attribute>
+        <xsl:attribute name="font-weight">bold</xsl:attribute>
+        <xsl:attribute name="font-style">italic</xsl:attribute>
+        <xsl:attribute name="keep-with-next.within-column">always</xsl:attribute>
+        <xsl:attribute name="hyphenate">false</xsl:attribute>
+        <xsl:attribute name="space-before.optimum">16pt</xsl:attribute>
+        <xsl:attribute name="space-before.minimum">12pt</xsl:attribute>
+        <xsl:attribute name="space-before.maximum">20pt</xsl:attribute>
+        <xsl:attribute name="space-after.optimum">30pt</xsl:attribute>
+        <xsl:attribute name="space-after.minimum">20pt</xsl:attribute>
+        <xsl:attribute name="space-after.maximum">40pt</xsl:attribute>
+        <xsl:attribute name="start-indent"><xsl:value-of select="$title.margin.left" /></xsl:attribute>
+    </xsl:attribute-set>
+    <!-- Verbatim text formatting (programlistings) -->
+    <xsl:attribute-set name="monospace.verbatim.properties">
+        <xsl:attribute name="font-size"><xsl:value-of
+            select="$body.font.master * 0.8333" /><xsl:text>pt</xsl:text></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>
+        <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="book.titlepage.recto.address.style">
+        <xsl:attribute name="font-size"><xsl:value-of select="$body.font.master" /><xsl:text>pt</xsl:text></xsl:attribute>
+        <xsl:attribute name="font-weight">normal</xsl:attribute>
+        <xsl:attribute name="font-family"><xsl:value-of select="$body.fontset" /></xsl:attribute>
+        <xsl:attribute name="text-align">right</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>
+        <xsl:attribute name="space-after.minimum">1em</xsl:attribute>
+        <xsl:attribute name="space-after.optimum">1em</xsl:attribute>
+        <xsl:attribute name="space-after.maximum">1em</xsl:attribute>
+        <xsl:attribute name="hyphenate">false</xsl:attribute>
+        <xsl:attribute name="linefeed-treatment">preserve</xsl:attribute>
+    </xsl:attribute-set>
+
+    <xsl:attribute-set name="normal.para.spacing">
+        <xsl:attribute name="text-align">justify</xsl:attribute>
+    </xsl:attribute-set>
+
+    <!-- Code highlighting -->
+    <xsl:param name="highlight.source" select="1" />
+
+</xsl:stylesheet>


Mime
View raw message