Author: smukhina
Date: 2007-08-22 11:26:38 -0400 (Wed, 22 Aug 2007)
New Revision: 3280
Modified:
trunk/documentation/GettingStartedGuide/docs/resources/styles/en/html.css
trunk/documentation/GettingStartedGuide/docs/resources/styles/en/html.xsl
trunk/documentation/GettingStartedGuide/docs/resources/styles/en/html_chunk.xsl
trunk/documentation/GettingStartedGuide/docs/resources/support.xml
trunk/documentation/GettingStartedGuide/docs/resources/support/docbook-xsl/html/html.xsl
Log:
http://jira.jboss.com/jira/browse/RF-600
Table of contents optimization
done for single and multi page versions
Modified: trunk/documentation/GettingStartedGuide/docs/resources/styles/en/html.css
===================================================================
--- trunk/documentation/GettingStartedGuide/docs/resources/styles/en/html.css 2007-08-22
15:23:41 UTC (rev 3279)
+++ trunk/documentation/GettingStartedGuide/docs/resources/styles/en/html.css 2007-08-22
15:26:38 UTC (rev 3280)
@@ -333,3 +333,14 @@
SPAN.java16 {
FONT-SIZE: 8pt; COLOR: #646464; LINE-HEIGHT: 10px
}
+
+.expand_collapse_toc {
+ clear:both;
+ float:left;
+ font-family:monospace;
+ width:20px;
+ color: #2A7BD4;
+ cursor: pointer;
+}
+
+
Modified: trunk/documentation/GettingStartedGuide/docs/resources/styles/en/html.xsl
===================================================================
--- trunk/documentation/GettingStartedGuide/docs/resources/styles/en/html.xsl 2007-08-22
15:23:41 UTC (rev 3279)
+++ trunk/documentation/GettingStartedGuide/docs/resources/styles/en/html.xsl 2007-08-22
15:26:38 UTC (rev 3280)
@@ -15,16 +15,17 @@
-->
<!DOCTYPE xsl:stylesheet [
- <!ENTITY db_xsl_path "../../support/docbook-xsl/">
+ <!ENTITY db_xsl_path "../support/docbook-xsl">
]>
<xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0"
xmlns="http://www.w3.org/TR/xhtml1/transitional"
exclude-result-prefixes="#default">
-
-<xsl:import href="&db_xsl_path;/html/docbook.xsl"/>
+<xsl:import
href="http://docbook.sourceforge.net/release/xsl/current/html/docboo...
+<xsl:include href="./collapsing-navigation.xsl"></xsl:include>
+
<!--###################################################
HTML Settings
################################################### -->
@@ -81,6 +82,6 @@
procedure before
</xsl:param>
<xsl:template match="section[@role = 'NotInToc']//*"
mode="toc" />
- <xsl:template match="chapter[@role = 'NotInToc']//section//*"
mode="toc" />
-
+ <xsl:template match="chapter[@role = 'NotInToc']//section//*"
mode="toc" />
+
</xsl:stylesheet>
Modified: trunk/documentation/GettingStartedGuide/docs/resources/styles/en/html_chunk.xsl
===================================================================
---
trunk/documentation/GettingStartedGuide/docs/resources/styles/en/html_chunk.xsl 2007-08-22
15:23:41 UTC (rev 3279)
+++
trunk/documentation/GettingStartedGuide/docs/resources/styles/en/html_chunk.xsl 2007-08-22
15:26:38 UTC (rev 3280)
@@ -23,8 +23,13 @@
xmlns="http://www.w3.org/TR/xhtml1/transitional"
exclude-result-prefixes="#default">
-<xsl:import href="&db_xsl_path;/html/chunk.xsl"/>
+<!-- <xsl:import href="&db_xsl_path;/html/chunk.xsl"/> -->
+<xsl:import
href="http://docbook.sourceforge.net/release/xsl/current/html/chunk....
+
+<xsl:include href="./collapsing-navigation.xsl"></xsl:include>
+
+
<!--###################################################
HTML Settings
################################################### -->
Modified:
trunk/documentation/GettingStartedGuide/docs/resources/support/docbook-xsl/html/html.xsl
===================================================================
---
trunk/documentation/GettingStartedGuide/docs/resources/support/docbook-xsl/html/html.xsl 2007-08-22
15:23:41 UTC (rev 3279)
+++
trunk/documentation/GettingStartedGuide/docs/resources/support/docbook-xsl/html/html.xsl 2007-08-22
15:26:38 UTC (rev 3280)
@@ -1,90 +1,86 @@
-<?xml version='1.0'?>
+<?xml version="1.0"?>
+
+<!--
+
+ This is the XSL HTML configuration file for the Hibernate
+ Reference Documentation.
+
+ It took me days to figure out this stuff and fix most of
+ the obvious bugs in the DocBook XSL distribution. Some of
+ the workarounds might not be appropriate with a newer version
+ of DocBook XSL. This file is released as part of Hibernate,
+ hence LGPL licensed.
+
+ christian(a)hibernate.org
+-->
+
+<!DOCTYPE xsl:stylesheet [
+ <!ENTITY db_xsl_path "../support/docbook-xsl">
+]>
+
<xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- version='1.0'>
+ version="1.0"
+
xmlns="http://www.w3.org/TR/xhtml1/transitional"
+ exclude-result-prefixes="#default">
+<xsl:import
href="http://docbook.sourceforge.net/release/xsl/current/html/docboo...
+<xsl:include href="./collapsing-navigation.xsl"></xsl:include>
-<!-- ********************************************************************
- $Id: html.xsl,v 1.1.1.1 2004/10/19 21:21:46 juntao Exp $
- ********************************************************************
+<!--###################################################
+ HTML Settings
+ ################################################### -->
- This file is part of the XSL DocBook Stylesheet distribution.
- See ../README or
http://nwalsh.com/docbook/xsl/ for copyright
- and other information.
+ <xsl:param name="html.stylesheet">css/html.css</xsl:param>
- ******************************************************************** -->
+ <!-- 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>
+ <xsl:param name="graphicsize.extension">0</xsl:param>
-<xsl:template name="anchor">
- <xsl:param name="node" select="."/>
- <xsl:param name="conditional" select="1"/>
- <xsl:variable name="id">
- <xsl:call-template name="object.id">
- <xsl:with-param name="object" select="$node"/>
- </xsl:call-template>
- </xsl:variable>
- <xsl:if test="$conditional = 0 or $node/@id">
- <a name="{$id}"/>
- </xsl:if>
-</xsl:template>
+<!--###################################################
+ Table Of Contents
+ ################################################### -->
-<xsl:template name="href.target.uri">
- <xsl:param name="context" select="."/>
- <xsl:param name="object" select="."/>
- <xsl:text>#</xsl:text>
- <xsl:call-template name="object.id">
- <xsl:with-param name="object" select="$object"/>
- </xsl:call-template>
-</xsl:template>
+ <!-- Generate the TOCs for named components only -->
+ <xsl:param name="generate.toc">
+ book toc
+ </xsl:param>
+
+ <!-- Show only Sections up to level 3 in the TOCs -->
+ <xsl:param name="toc.section.depth">3</xsl:param>
+
+<!--###################################################
+ Labels
+ ################################################### -->
-<xsl:template name="href.target">
- <xsl:param name="context" select="."/>
- <xsl:param name="object" select="."/>
- <xsl:text>#</xsl:text>
- <xsl:call-template name="object.id">
- <xsl:with-param name="object" select="$object"/>
- </xsl:call-template>
-</xsl:template>
+ <!-- Label Chapters and Sections (numbering) -->
+ <xsl:param name="chapter.autolabel">1</xsl:param>
+ <xsl:param name="section.autolabel" select="1"/>
+ <xsl:param name="section.label.includes.component.label"
select="1"/>
-<xsl:template name="href.target.with.base.dir">
- <xsl:param name="object" select="."/>
- <xsl:if test="$manifest.in.base.dir = 0">
- <xsl:value-of select="$base.dir"/>
- </xsl:if>
- <xsl:call-template name="href.target">
- <xsl:with-param name="object" select="$object"/>
- </xsl:call-template>
-</xsl:template>
+<!--###################################################
+ Callouts
+ ################################################### -->
-<xsl:template name="dingbat">
- <xsl:param name="dingbat">bullet</xsl:param>
- <xsl:call-template name="dingbat.characters">
- <xsl:with-param name="dingbat" select="$dingbat"/>
- </xsl:call-template>
-</xsl:template>
+ <!-- Don't use graphics, use a simple number style -->
+ <xsl:param name="callout.graphics">0</xsl:param>
-<xsl:template name="dingbat.characters">
- <!-- now that I'm using the real serializer, all that dingbat malarky -->
- <!-- isn't necessary anymore... -->
- <xsl:param name="dingbat">bullet</xsl:param>
- <xsl:choose>
- <xsl:when
test="$dingbat='bullet'">•</xsl:when>
- <xsl:when
test="$dingbat='copyright'">©</xsl:when>
- <xsl:when
test="$dingbat='trademark'">™</xsl:when>
- <xsl:when
test="$dingbat='trade'">™</xsl:when>
- <xsl:when
test="$dingbat='registered'">®</xsl:when>
- <xsl:when test="$dingbat='service'">(SM)</xsl:when>
- <xsl:when
test="$dingbat='nbsp'"> </xsl:when>
- <xsl:when
test="$dingbat='ldquo'">“</xsl:when>
- <xsl:when
test="$dingbat='rdquo'">”</xsl:when>
- <xsl:when
test="$dingbat='lsquo'">‘</xsl:when>
- <xsl:when
test="$dingbat='rsquo'">’</xsl:when>
- <xsl:when
test="$dingbat='em-dash'">—</xsl:when>
- <xsl:when
test="$dingbat='mdash'">—</xsl:when>
- <xsl:when
test="$dingbat='en-dash'">–</xsl:when>
- <xsl:when
test="$dingbat='ndash'">–</xsl:when>
- <xsl:otherwise>
- <xsl:text>•</xsl:text>
- </xsl:otherwise>
- </xsl:choose>
-</xsl:template>
+ <!-- Place callout marks at this column in annotated areas -->
+ <xsl:param name="callout.defaultcolumn">90</xsl:param>
-</xsl:stylesheet>
+<!--###################################################
+ Misc
+ ################################################### -->
+ <!-- Placement of titles -->
+ <xsl:param name="formal.title.placement">
+ figure after
+ example before
+ equation before
+ table before
+ procedure before
+ </xsl:param>
+ <xsl:template match="section[@role = 'NotInToc']//*"
mode="toc" />
+ <xsl:template match="chapter[@role = 'NotInToc']//section//*"
mode="toc" />
+
+</xsl:stylesheet>
Modified: trunk/documentation/GettingStartedGuide/docs/resources/support.xml
===================================================================
--- trunk/documentation/GettingStartedGuide/docs/resources/support.xml 2007-08-22 15:23:41
UTC (rev 3279)
+++ trunk/documentation/GettingStartedGuide/docs/resources/support.xml 2007-08-22 15:26:38
UTC (rev 3280)
@@ -170,6 +170,11 @@
<include name="**/*.css"/>
</fileset>
</copy>
+ <copy todir="${build.dir}/${lang}/html">
+ <fileset dir="${styles.dir}/${lang}">
+ <include name="**/*.js"/>
+ </fileset>
+ </copy>
<copy todir="${build.dir}/${lang}/html/css/images">
<fileset dir="${styles.dir}/${lang}/Images">
@@ -210,6 +215,11 @@
</fileset>
</copy>
+ <copy todir="${build.dir}/${lang}/html_single">
+ <fileset dir="${styles.dir}/${lang}">
+ <include name="**/*.js"/>
+ </fileset>
+ </copy>
<java classname="com.icl.saxon.StyleSheet"
fork="true" dir="${basedir}">
<classpath refid="lib.classpath"/>