From 589b178ba2ae174a233fe7b9611f52dc54c12af4 Mon Sep 17 00:00:00 2001
From: Mark Craig <mark.craig@forgerock.com>
Date: Fri, 09 Dec 2011 11:27:34 +0000
Subject: [PATCH] Improve table formatting in output

---
 opendj3/src/main/docbkx-stylesheets/html/chunked.xsl  |    4 ++++
 opendj3/src/main/resources/css/coredoc.css            |   22 +++++++++++++++++++++-
 opendj3/src/main/docbkx-stylesheets/html/coredoc.xsl  |    4 ++++
 opendj3/src/main/docbkx-stylesheets/fo/coredoc.xsl    |    4 +++-
 opendj3/src/main/docbkx/admin-guide/chap-indexing.xml |    2 +-
 5 files changed, 33 insertions(+), 3 deletions(-)

diff --git a/opendj3/src/main/docbkx-stylesheets/fo/coredoc.xsl b/opendj3/src/main/docbkx-stylesheets/fo/coredoc.xsl
index 3a5d82c..54b48b3 100644
--- a/opendj3/src/main/docbkx-stylesheets/fo/coredoc.xsl
+++ b/opendj3/src/main/docbkx-stylesheets/fo/coredoc.xsl
@@ -80,7 +80,9 @@
  <xsl:param name="toc.max.depth">0</xsl:param>
  
  <xsl:param name="default.table.frame">topbot</xsl:param>
- 
+ <xsl:param name="default.table.rules">none</xsl:param>
+ <xsl:param name="table.cell.border.thickness">0pt</xsl:param>
+
  <xsl:param name="variablelist.as.blocks" select="1"></xsl:param>
  <xsl:param name="variablelist.term.separator"></xsl:param>
  <xsl:param name="variablelist.term.break.after">1</xsl:param>
diff --git a/opendj3/src/main/docbkx-stylesheets/html/chunked.xsl b/opendj3/src/main/docbkx-stylesheets/html/chunked.xsl
index 9e567ba..b32508c 100644
--- a/opendj3/src/main/docbkx-stylesheets/html/chunked.xsl
+++ b/opendj3/src/main/docbkx-stylesheets/html/chunked.xsl
@@ -59,6 +59,10 @@
  <xsl:param name="toc.max.depth" select="1" />
  <xsl:param name="generate.meta.abstract" select="1" />
 
+ <xsl:param name="default.table.frame">none</xsl:param>
+ <xsl:param name="default.table.rules">none</xsl:param>
+ <xsl:param name="table.cell.border.thickness">0pt</xsl:param>
+
  <xsl:template match="xslthl:keyword" mode="xslthl">
    <strong class="hl-keyword">
      <xsl:apply-templates mode="xslthl"/>
diff --git a/opendj3/src/main/docbkx-stylesheets/html/coredoc.xsl b/opendj3/src/main/docbkx-stylesheets/html/coredoc.xsl
index b11f74d..7606bfa 100644
--- a/opendj3/src/main/docbkx-stylesheets/html/coredoc.xsl
+++ b/opendj3/src/main/docbkx-stylesheets/html/coredoc.xsl
@@ -56,6 +56,10 @@
  <xsl:param name="toc.max.depth" select="1" />
  <xsl:param name="generate.meta.abstract" select="1" />
  
+ <xsl:param name="default.table.frame">none</xsl:param>
+ <xsl:param name="default.table.rules">none</xsl:param>
+ <xsl:param name="table.cell.border.thickness">0pt</xsl:param>
+
  <xsl:template match="xslthl:keyword" mode="xslthl">
    <strong class="hl-keyword">
      <xsl:apply-templates mode="xslthl"/>
diff --git a/opendj3/src/main/docbkx/admin-guide/chap-indexing.xml b/opendj3/src/main/docbkx/admin-guide/chap-indexing.xml
index ae7dc90..0e8ff8f 100644
--- a/opendj3/src/main/docbkx/admin-guide/chap-indexing.xml
+++ b/opendj3/src/main/docbkx/admin-guide/chap-indexing.xml
@@ -517,7 +517,7 @@
   <para>When you first install OpenDJ directory server and import your
   data from LDIF, the following indexes are configured.</para>
   
-  <table rowheader="firstcol">
+  <table pgwide="1" rules="none">
    <title>Default Indexes</title>
    <tgroup cols="7">
    <colspec colnum="2" colname="c2" />
diff --git a/opendj3/src/main/resources/css/coredoc.css b/opendj3/src/main/resources/css/coredoc.css
index 4c48d1c..e5611c5 100644
--- a/opendj3/src/main/resources/css/coredoc.css
+++ b/opendj3/src/main/resources/css/coredoc.css
@@ -123,6 +123,11 @@
  font-size: 13px;
 }
 
+hr
+{
+ display: none;
+}
+
 ul
 {
     list-style-image: url("../images/bulletpoint.png");
@@ -136,6 +141,11 @@
     background-color: #fafafa;
 }
 
+div.navheader
+{
+ border-bottom: thin solid #ccc;
+}
+
 /* Do not repeat the title at the top of the page. */
 .navheader th
 {
@@ -190,11 +200,21 @@
     max-height: 480px;
 }
 
-ol
+ol,th,td
 {
     font-size: 12px;
 }
 
+.table-contents
+{
+ border-top: thin solid #ccc;
+ border-bottom: thin solid #ccc;
+}
+
+.table-contents thead {
+ text-align: left;
+}
+
 /*
  * Man pages
  */

--
Gitblit v1.10.0