Author: gaohoward
Date: 2010-05-10 10:29:02 -0400 (Mon, 10 May 2010)
New Revision: 9218
Added:
branches/HnetQ_323_cn/lib/docbook-support/styles/zh/
branches/HnetQ_323_cn/lib/docbook-support/styles/zh/fopdf.xsl
branches/HnetQ_323_cn/lib/docbook-support/styles/zh/html.css
branches/HnetQ_323_cn/lib/docbook-support/styles/zh/html.xsl
branches/HnetQ_323_cn/lib/docbook-support/styles/zh/html_chunk.xsl
Modified:
branches/HnetQ_323_cn/docs/quickstart-guide/build.xml
branches/HnetQ_323_cn/docs/quickstart-guide/zh/installation.xml
branches/HnetQ_323_cn/docs/user-manual/build.xml
branches/HnetQ_323_cn/docs/user-manual/zh/appserver-integration.xml
branches/HnetQ_323_cn/docs/user-manual/zh/clusters.xml
branches/HnetQ_323_cn/docs/user-manual/zh/configuring-transports.xml
branches/HnetQ_323_cn/docs/user-manual/zh/management.xml
branches/HnetQ_323_cn/docs/user-manual/zh/security.xml
branches/HnetQ_323_cn/docs/user-manual/zh/using-server.xml
Log:
zh support lib, fix missing tags
Modified: branches/HnetQ_323_cn/docs/quickstart-guide/build.xml
===================================================================
--- branches/HnetQ_323_cn/docs/quickstart-guide/build.xml 2010-05-10 13:26:02 UTC (rev
9217)
+++ branches/HnetQ_323_cn/docs/quickstart-guide/build.xml 2010-05-10 14:29:02 UTC (rev
9218)
@@ -7,6 +7,7 @@
<target name="all" depends="clean">
<mkdir dir="en/images" />
<antcall target="lang.all"><param name="lang"
value="en"/></antcall>
+ <antcall target="lang.all"><param name="lang"
value="zh"/></antcall>
</target>
<target name="html.doc" description="creates the html docs only and
opens a browser">
Modified: branches/HnetQ_323_cn/docs/quickstart-guide/zh/installation.xml
===================================================================
--- branches/HnetQ_323_cn/docs/quickstart-guide/zh/installation.xml 2010-05-10 13:26:02
UTC (rev 9217)
+++ branches/HnetQ_323_cn/docs/quickstart-guide/zh/installation.xml 2010-05-10 14:29:02
UTC (rev 9218)
@@ -136,8 +136,7 @@
</listitem>
<listitem>
<para>运行HornetQ的<literal>config/jboss-as-4</literal>下的<literal>./build.sh</literal>
(或
- 者如果在Windows下运行<literal>build.bat</literal>)。</literal>
- directory</para>
+ 者如果在Windows下运行<literal>build.bat</literal>)。</para>
</listitem>
</orderedlist>
<para>这将会在<literal>$JBOSS_HOME/server</literal>创建两个服务器配置:</para>
Modified: branches/HnetQ_323_cn/docs/user-manual/build.xml
===================================================================
--- branches/HnetQ_323_cn/docs/user-manual/build.xml 2010-05-10 13:26:02 UTC (rev 9217)
+++ branches/HnetQ_323_cn/docs/user-manual/build.xml 2010-05-10 14:29:02 UTC (rev 9218)
@@ -7,6 +7,7 @@
<target name="all" depends="clean">
<mkdir dir="en/images" />
<antcall target="lang.all"><param name="lang"
value="en"/></antcall>
+ <antcall target="lang.all"><param name="lang"
value="zh"/></antcall>
</target>
<target name="html.doc" description="creates the html docs only and
opens a browser">
Modified: branches/HnetQ_323_cn/docs/user-manual/zh/appserver-integration.xml
===================================================================
--- branches/HnetQ_323_cn/docs/user-manual/zh/appserver-integration.xml 2010-05-10
13:26:02 UTC (rev 9217)
+++ branches/HnetQ_323_cn/docs/user-manual/zh/appserver-integration.xml 2010-05-10
14:29:02 UTC (rev 9218)
@@ -395,18 +395,18 @@
<entry>String</entry>
<entry>备份传输的配置参数</entry>
</row>
- <row>
- <link
linkend="configuration.discovery-group.group-address">DiscoveryAddress</link></entry>
+ <row>399
+ <entry><link
linkend="configuration.discovery-group.group-address">DiscoveryAddress</link></entry>
<entry>String</entry>
<entry>服务器自动检测所使用的发现组(discovery group)地址</entry>
</row>
<row>
- <link
linkend="configuration.discovery-group.group-port">DiscoveryPort</link></entry>
+ <entry><link
linkend="configuration.discovery-group.group-port">DiscoveryPort</link></entry>
<entry>Integer</entry>
<entry>检测所使用的端口号</entry>
</row>
<row>
- <entry><link
linkend="configuration.discovery-group.refresh-timeout">DiscoveryRefreshTimeout</link></entry></entry>
+ <entry><link
linkend="configuration.discovery-group.refresh-timeout">DiscoveryRefreshTimeout</link></entry>
<entry>Long</entry>
<entry>刷新的时间(timeout)。单位为毫秒</entry>
</row>
@@ -599,7 +599,7 @@
</row>
</tbody>
</tgroup>
- </informaltable>
+ </table>
</section>
<section>
<title>适配器外部(outbound)配置</title>
Modified: branches/HnetQ_323_cn/docs/user-manual/zh/clusters.xml
===================================================================
--- branches/HnetQ_323_cn/docs/user-manual/zh/clusters.xml 2010-05-10 13:26:02 UTC (rev
9217)
+++ branches/HnetQ_323_cn/docs/user-manual/zh/clusters.xml 2010-05-10 14:29:02 UTC (rev
9218)
@@ -192,7 +192,7 @@
Connection jmsConnection2 =
jmsConnectionFactory.createConnection();</programlisting></para>
<para><literal>refresh-timeout</literal>参数可以直接在连接工厂上使用
-
<literal>setDiscoveryRefreshTimeout()</literal>方法设置。</literal></para>
+
<literal>setDiscoveryRefreshTimeout()</literal>方法设置。</para>
<para>连接工厂还有一个方法<literal>setDiscoveryInitialWaitTimeout()</literal>。它可以设置连接工厂的
初始等待时间。当一个连接工厂被创建后立即进行用于创建连接的话,连接工厂可能没有足够的时间来接收各
个服务器发出的广播信息,也就无法建立完整的服务器列表。有了这个参数,连接工厂会在首次创建连接时
Modified: branches/HnetQ_323_cn/docs/user-manual/zh/configuring-transports.xml
===================================================================
--- branches/HnetQ_323_cn/docs/user-manual/zh/configuring-transports.xml 2010-05-10
13:26:02 UTC (rev 9217)
+++ branches/HnetQ_323_cn/docs/user-manual/zh/configuring-transports.xml 2010-05-10
14:29:02 UTC (rev 9218)
@@ -160,6 +160,7 @@
<para>我们建议使用Java NIO。因为Java NIO不是为每一个连接分配一个线程,所以它要比传统的阻塞式
Java IO具有更强的并发连接的处理能力。另外我们还建议使用Java 6的NIO以获得最佳性能。这个参
数的默认值在服务器端是<literal>true</literal>,在客户端是<literal>false</literal>。
+ </para>
</listitem>
<listitem>
<para><literal>host</literal>。主机名或IP地址。对于接收器来说,它是服务器接收连接的地址。
Modified: branches/HnetQ_323_cn/docs/user-manual/zh/management.xml
===================================================================
--- branches/HnetQ_323_cn/docs/user-manual/zh/management.xml 2010-05-10 13:26:02 UTC (rev
9217)
+++ branches/HnetQ_323_cn/docs/user-manual/zh/management.xml 2010-05-10 14:29:02 UTC (rev
9218)
@@ -172,7 +172,7 @@
</listitem>
<listitem>
<para>消息计数器</para>
- <para>用<literal>listMessageCounter()方法和<literal>
+
<para>用<literal>listMessageCounter()</literal>方法和<literal>
listMessageCounterHistory()</literal>方法可以列出一个队列的消息计数器。
(参见 <xref
linkend="management.message-counters"/>)。消息计数器还可以
用<literal>resetMessageCounter()</literal>方法重置。</para>
@@ -185,8 +185,8 @@
</listitem>
<listitem>
<para>暂停和恢复队列</para>
- <literal>QueueControl</literal>可用来暂停与恢复队列。如果一个队列被暂停,它
- 虽然可以继续接收消息但是不传递消息;当被恢复时,队列又会开始传递消息。<para>
+
<para><literal>QueueControl</literal>可用来暂停与恢复队列。如果一个队列被暂停,它
+ 虽然可以继续接收消息但是不传递消息;当被恢复时,队列又会开始传递消息。</para>
</listitem>
</itemizedlist>
</section>
@@ -428,7 +428,7 @@
<!-- false to disable JMX management for HornetQ -->
<jmx-management-enabled>false</jmx-management-enabled>
</programlisting>
-
<para>如果JMX功能是打开的,则使用<literal>jconsole</literal>可以管理本地的HornetQ。
+
<para>如果JMX功能是打开的,则使用<literal>jconsole</literal>可以管理本地的HornetQ。</para>
<note>
<para>出于安全考虑,默认情况下JMX远程连接是关闭的。参见<ulink
url="http://java.sun.com/j2se/1.5.0/docs/guide/management/agent.html...
Java管理指南</ulink>来配置服务器的远程管理(系统变量必须在<literal>run.sh</literal>或<literal>run.bat</literal>中定义)。</para>
Modified: branches/HnetQ_323_cn/docs/user-manual/zh/security.xml
===================================================================
--- branches/HnetQ_323_cn/docs/user-manual/zh/security.xml 2010-05-10 13:26:02 UTC (rev
9217)
+++ branches/HnetQ_323_cn/docs/user-manual/zh/security.xml 2010-05-10 14:29:02 UTC (rev
9218)
@@ -191,7 +191,7 @@
<para>注意你需要为JAAS安全管理器提供三个参数:</para>
<itemizedlist>
<listitem>
- <para>ConfigurationName:
<literal>LoginModule</literal>的名字。
+ <para>ConfigurationName:
<literal>LoginModule</literal>的名字。</para>
</listitem>
<listitem>
<para>Configuration:
<literal>Configuration</literal>的实现。</para>
Modified: branches/HnetQ_323_cn/docs/user-manual/zh/using-server.xml
===================================================================
--- branches/HnetQ_323_cn/docs/user-manual/zh/using-server.xml 2010-05-10 13:26:02 UTC
(rev 9217)
+++ branches/HnetQ_323_cn/docs/user-manual/zh/using-server.xml 2010-05-10 14:29:02 UTC
(rev 9218)
@@ -134,7 +134,7 @@
<section id="server.microcontainer.configuration">
<title>JBoss Microcontainer Beans 文件</title>
<para>HornetQ的POJO对象是由<ulink
url="http://www.jboss.org/jbossmc/"> JBoss Microcontainer
- </ulink>进行加载和运行的。JBoss Microcontainer是一个轻量级的加载工具。
+ </ulink>进行加载和运行的。JBoss Microcontainer是一个轻量级的加载工具。</para>
<note>
<para>如果是在JBoss应用服务器内运行,HornetQ同样需要一个bean的配置文件来将其部署到JBoss中。但是这与单独运行时的配置文件略有不同。
这是因为应用服务器内已经部署了一些服务,如安全服务等。所以在HornetQ中这些服务就不需要再部署了。</para>
Added: branches/HnetQ_323_cn/lib/docbook-support/styles/zh/fopdf.xsl
===================================================================
--- branches/HnetQ_323_cn/lib/docbook-support/styles/zh/fopdf.xsl
(rev 0)
+++ branches/HnetQ_323_cn/lib/docbook-support/styles/zh/fopdf.xsl 2010-05-10 14:29:02 UTC
(rev 9218)
@@ -0,0 +1,543 @@
+<?xml version="1.0"?>
+
+<!--
+ This was originally the XSL FO configuration file for the Hibernate
+ Reference Documentation. It defines a custom titlepage and
+ the parameters for the A4 sized PDF printable output. It is released
+ under the LGPL.
+
+ Modifications were made to better suit the needs of the JBoss documentation.
+-->
+
+<!DOCTYPE xsl:stylesheet [
+ <!ENTITY db_xsl_path "../../support/docbook-xsl/">
+]>
+
+<xsl:stylesheet version="1.0"
xmlns="http://www.w3.org/TR/xhtml1/transitional"
+
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+
xmlns:fo="http://www.w3.org/1999/XSL/Format"
exclude-result-prefixes="#default">
+
+
+ <!-- import the main docbook.xsl before we apply our overrides -->
+ <xsl:import href="&db_xsl_path;/fo/docbook.xsl"/>
+
+
+ <!-- ########## XRef -->
+ <!-- this controls whether xrefs have the title in it. We
+ don't want that -->
+ <xsl:param name="xref.with.number.and.title" select="0"/>
+
+ <xsl:template match="processing-instruction('lb')">
+ <fo:block>
+ <xsl:text> </xsl:text>
+ </fo:block>
+ </xsl:template>
+
+ <!--########## Custom Title Page -->
+ <xsl:template name="book.titlepage.recto">
+ <fo:block>
+ <fo:table table-layout="fixed" width="175mm">
+ <fo:table-column column-width="175mm"/>
+ <fo:table-body>
+ <fo:table-row>
+ <fo:table-cell text-align="center">
+ <xsl:if test="bookinfo/mediaobject">
+ <fo:block>
+ <fo:external-graphic>
+ <xsl:attribute name="src">
+ FILE:<xsl:value-of
+
select="bookinfo/mediaobject/imageobject/imagedata/@fileref" />
+ </xsl:attribute>
+ </fo:external-graphic>
+ </fo:block>
+ </xsl:if>
+ <xsl:if test="bookinfo/title">
+ <fo:block font-family="Helvetica"
font-size="22pt" padding-before="10mm">
+ <xsl:value-of
select="bookinfo/title"/>
+ </fo:block>
+ </xsl:if>
+ <xsl:if test="bookinfo/subtitle">
+ <fo:block font-family="Helvetica"
font-size="18pt" padding-before="10mm">
+ <xsl:value-of
select="bookinfo/subtitle"/>
+ </fo:block>
+ </xsl:if>
+ <xsl:if test="bookinfo/releaseinfo">
+ <fo:block font-family="Helvetica"
font-size="12pt"
+ padding="10mm"><xsl:value-of
select="bookinfo/releaseinfo"/>
+ </fo:block>
+ </xsl:if>
+ <xsl:if test="bookinfo/copyright">
+ <fo:block font-family="Helvetica"
font-size="12pt"
+ padding="10mm">
+
+ <xsl:apply-templates
select="bookinfo/copyright"
+
mode="titlepage.mode"/>
+ </fo:block>
+ </xsl:if>
+ </fo:table-cell>
+ </fo:table-row>
+ </fo:table-body>
+ </fo:table>
+ </fo:block>
+ </xsl:template>
+
+ <!-- Prevent blank pages in output -->
+ <xsl:template name="book.titlepage.before.verso"/>
+ <xsl:template name="book.titlepage.verso"/>
+ <xsl:template name="book.titlepage.separator"/>
+
+
+ <!--###################################################
+ Header
+ ################################################### -->
+ <!-- More space in the center header for long text -->
+ <xsl:attribute-set name="header.content.properties">
+ <xsl:attribute name="font-family">
+ <xsl:value-of select="$body.font.family"/>
+ </xsl:attribute>
+ <xsl:attribute name="margin-left">-5em</xsl:attribute>
+ <xsl:attribute name="margin-right">-5em</xsl:attribute>
+ </xsl:attribute-set>
+
+
+ <!--###################################################
+ Custom Footer
+ ################################################### -->
+ <!-- This footer prints the Hibernate version number on the left side -->
+ <xsl:template name="footer.content">
+ <xsl:param name="pageclass" select="''"/>
+ <xsl:param name="sequence" select="''"/>
+ <xsl:param name="position" select="''"/>
+ <xsl:param name="gentext-key" select="''"/>
+ <xsl:variable name="Version">
+ <xsl:choose>
+ <xsl:when test="//releaseinfo">
+ <xsl:text>JBoss </xsl:text>
+ <xsl:value-of select="//releaseinfo"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <!-- nop -->
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:variable>
+ <xsl:choose>
+ <xsl:when test="$sequence='blank'">
+ <xsl:choose>
+ <xsl:when test="$double.sided != 0 and $position =
'left'">
+ <xsl:value-of select="$Version"/>
+ </xsl:when>
+ <xsl:when test="$double.sided = 0 and $position =
'center'">
+ <!-- nop -->
+ </xsl:when>
+ <xsl:otherwise>
+ <fo:page-number/>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:when>
+ <xsl:when test="$pageclass='titlepage'">
+ <!-- nop: other titlepage sequences have no footer -->
+ </xsl:when>
+ <xsl:when test="$double.sided != 0 and $sequence = 'even' and
$position='left'">
+ <fo:page-number/>
+ </xsl:when>
+ <xsl:when test="$double.sided != 0 and $sequence = 'odd' and
$position='right'">
+ <fo:page-number/>
+ </xsl:when>
+ <xsl:when test="$double.sided = 0 and
$position='right'">
+ <fo:page-number/>
+ </xsl:when>
+ <xsl:when test="$double.sided != 0 and $sequence = 'odd' and
$position='left'">
+ <xsl:value-of select="$Version"/>
+ </xsl:when>
+ <xsl:when test="$double.sided != 0 and $sequence = 'even' and
$position='right'">
+ <xsl:value-of select="$Version"/>
+ </xsl:when>
+ <xsl:when test="$double.sided = 0 and
$position='left'">
+ <xsl:value-of select="$Version"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <!-- nop -->
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:template>
+
+
+
+ <!--###################################################
+ Custom Toc Line
+ ################################################### -->
+ <!-- Improve the TOC. -->
+ <xsl:template name="toc.trt">
+ <xsl:variable name="id">
+ <xsl:call-template name="object.id"/>
+ </xsl:variable>
+ <xsl:variable name="label">
+ <xsl:apply-templates select="."
mode="label.markup"/>
+ </xsl:variable>
+ <fo:block text-align-last="justify"
end-indent="{$toc.indent.width}pt"
last-line-end-indent="-{$toc.indent.width}pt">
+ <fo:inline keep-with-next.within-line="always">
+ <fo:basic-link internal-destination="{$id}">
+ <!-- Chapter titles should be bold. -->
+ <xsl:choose>
+ <xsl:when test="local-name(.) =
'chapter'">
+ <xsl:attribute
name="font-weight">bold</xsl:attribute>
+ </xsl:when>
+ </xsl:choose>
+ <xsl:if test="$label != ''">
+ <xsl:copy-of select="$label"/>
+ <xsl:value-of
select="$autotoc.label.separator"/>
+ </xsl:if>
+ <xsl:apply-templates select="."
mode="titleabbrev.markup"/>
+ </fo:basic-link>
+ </fo:inline>
+ <fo:inline keep-together.within-line="always">
+ <xsl:text/>
+ <fo:leader leader-pattern="dots"
leader-pattern-width="3pt"
+ leader-alignment="reference-area"
keep-with-next.within-line="always"/>
+ <xsl:text/>
+ <fo:basic-link internal-destination="{$id}">
+ <fo:page-number-citation ref-id="{$id}"/>
+ </fo:basic-link>
+ </fo:inline>
+ </fo:block>
+ </xsl:template>
+
+
+ <!--###################################################
+ Extensions
+ ################################################### -->
+ <!-- These extensions are required for table printing and other stuff -->
+ <xsl:param name="use.extensions">1</xsl:param>
+
+ <xsl:param name="linenumbering.extension">1</xsl:param>
+ <xsl:param name="linenumbering.everyNth">1</xsl:param>
+ <xsl:param name="linenumbering.separator">: </xsl:param>
+
+ <xsl:param name="tablecolumns.extension">0</xsl:param>
+ <!-- FOP provide only PDF Bookmarks at the moment -->
+ <xsl:param name="fop.extensions">1</xsl:param>
+
+
+
+ <!--###################################################
+ Table Of Contents
+ ################################################### -->
+ <!-- Generate the TOCs for named components only -->
+ <xsl:param name="generate.toc"> book toc,title</xsl:param>
+ <!-- ,figure,table,equation -->
+ <!-- Show only Sections up to level 3 in the TOCs -->
+ <xsl:param name="toc.section.depth">3</xsl:param>
+ <!-- Dot and Whitespace as separator in TOC between Label and Title-->
+ <xsl:param name="autotoc.label.separator" select="'.
'"/>
+
+
+ <!--###################################################
+ Paper & Page Size
+ ################################################### -->
+ <!-- Paper type, no headers on blank pages, no double sided printing -->
+<!-- <xsl:param name="paper.type"
select="'A4'"/>-->
+ <xsl:param name="double.sided">0</xsl:param>
+ <xsl:param name="headers.on.blank.pages">0</xsl:param>
+ <xsl:param name="footers.on.blank.pages">0</xsl:param>
+ <!-- Space between paper border and content (chaotic stuff, don't touch)
-->
+ <xsl:param name="page.margin.top">5mm</xsl:param>
+ <xsl:param name="region.before.extent">10mm</xsl:param>
+ <xsl:param name="body.margin.top">10mm</xsl:param>
+ <xsl:param name="body.margin.bottom">15mm</xsl:param>
+ <xsl:param name="region.after.extent">10mm</xsl:param>
+ <xsl:param name="page.margin.bottom">0mm</xsl:param>
+ <xsl:param name="page.margin.outer">18mm</xsl:param>
+ <xsl:param name="page.margin.inner">18mm</xsl:param>
+ <!-- No intendation of Titles -->
+ <xsl:param name="title.margin.left">0pc</xsl:param>
+
+
+ <!--###################################################
+ Fonts & Styles
+ ################################################### -->
+ <!-- Default Font size -->
+ <xsl:param name="body.font.master">11</xsl:param>
+ <!-- Line height in body text -->
+ <xsl:param name="line-height">1.4</xsl:param>
+ <!-- Monospaced fonts are smaller than regular text -->
+ <xsl:attribute-set name="monospace.properties">
+ <xsl:attribute name="font-family">
+ <xsl:value-of select="$monospace.font.family"/>
+ </xsl:attribute>
+ <xsl:attribute name="font-size">0.8em</xsl:attribute>
+ </xsl:attribute-set>
+
+
+ <!--###################################################
+ Tables
+ ################################################### -->
+ <!-- The table width should be adapted to the paper size -->
+ <xsl:param name="default.table.width">17.4cm</xsl:param>
+ <!-- Some padding inside tables -->
+ <xsl:attribute-set name="table.cell.padding">
+ <xsl:attribute name="padding-left">4pt</xsl:attribute>
+ <xsl:attribute name="padding-right">4pt</xsl:attribute>
+ <xsl:attribute name="padding-top">4pt</xsl:attribute>
+ <xsl:attribute name="padding-bottom">4pt</xsl:attribute>
+ </xsl:attribute-set>
+ <!-- Only hairlines as frame and cell borders in tables -->
+ <xsl:param
name="table.frame.border.thickness">0.1pt</xsl:param>
+ <xsl:param
name="table.cell.border.thickness">0.1pt</xsl:param>
+
+
+
+ <!--###################################################
+ Labels
+ ################################################### -->
+ <!-- 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"/>
+
+
+ <!--###################################################
+ Titles
+ ################################################### -->
+
+ <xsl:attribute-set name="chapter.titlepage.recto.style">
+ <xsl:attribute name="text-align">right</xsl:attribute>
+ <xsl:attribute name="font-weight">bold</xsl:attribute>
+ <xsl:attribute name="font-size">
+ <xsl:value-of select="$body.font.master * 1.8"/>
+ <xsl:text>pt</xsl:text>
+ </xsl:attribute>
+ </xsl:attribute-set>
+
+
+ <xsl:attribute-set name="appendix.titlepage.recto.style">
+ <xsl:attribute name="text-align">right</xsl:attribute>
+ <xsl:attribute name="font-weight">bold</xsl:attribute>
+ <xsl:attribute name="font-size">
+ <xsl:value-of select="$body.font.master * 1.8"/>
+ <xsl:text>pt</xsl:text>
+ </xsl:attribute>
+ </xsl:attribute-set>
+
+ <xsl:template name="appendix.titlepage.before.recto">
+ <xsl:param name="node"
select="ancestor-or-self::appendix[1]"/>
+ <fo:block
xmlns:fo="http://www.w3.org/1999/XSL/Format"
+ text-align="right"
+ font-size="72pt" font-weight="bold">
+ <xsl:number from="book" format="A"/>
+ </fo:block>
+ </xsl:template>
+
+ <xsl:template name="chapter.titlepage.before.recto">
+ <xsl:param name="node"
select="ancestor-or-self::chapter[1]"/>
+ <fo:block
xmlns:fo="http://www.w3.org/1999/XSL/Format"
+ text-align="right"
+ font-size="72pt" font-weight="bold">
+ <xsl:number from="book" format="1"/>
+ </fo:block>
+ </xsl:template>
+
+ <xsl:template match="title"
mode="appendix.titlepage.recto.auto.mode">
+ <xsl:variable name="titleabbrev">
+ <xsl:apply-templates select="ancestor-or-self::appendix[1]"
+ mode="titleabbrev.markup"/>
+ </xsl:variable>
+
+ <fo:block
xmlns:fo="http://www.w3.org/1999/XSL/Format"
+ xsl:use-attribute-sets="appendix.titlepage.recto.style">
+ <xsl:value-of select="$titleabbrev" />
+ </fo:block>
+ </xsl:template>
+
+ <xsl:template match="title"
mode="chapter.titlepage.recto.auto.mode">
+ <xsl:variable name="titleabbrev">
+ <xsl:apply-templates select="ancestor-or-self::chapter[1]"
+ mode="titleabbrev.markup"/>
+ </xsl:variable>
+
+ <fo:block
xmlns:fo="http://www.w3.org/1999/XSL/Format"
+ xsl:use-attribute-sets="chapter.titlepage.recto.style">
+ <xsl:value-of select="$titleabbrev" />
+ </fo:block>
+ </xsl:template>
+
+
+ <!-- Sections 1, 2 and 3 titles have a small bump factor and padding -->
+ <xsl:attribute-set name="section.title.level1.properties">
+ <xsl:attribute
name="space-before.optimum">0.8em</xsl:attribute>
+ <xsl:attribute
name="space-before.minimum">0.8em</xsl:attribute>
+ <xsl:attribute
name="space-before.maximum">0.8em</xsl:attribute>
+ <xsl:attribute name="font-size">
+ <xsl:value-of select="$body.font.master * 1.5"/>
+ <xsl:text>pt</xsl:text>
+ </xsl:attribute>
+ <xsl:attribute
name="space-after.optimum">0.1em</xsl:attribute>
+ <xsl:attribute
name="space-after.minimum">0.1em</xsl:attribute>
+ <xsl:attribute
name="space-after.maximum">0.1em</xsl:attribute>
+ </xsl:attribute-set>
+ <xsl:attribute-set name="section.title.level2.properties">
+ <xsl:attribute
name="space-before.optimum">0.6em</xsl:attribute>
+ <xsl:attribute
name="space-before.minimum">0.6em</xsl:attribute>
+ <xsl:attribute
name="space-before.maximum">0.6em</xsl:attribute>
+ <xsl:attribute name="font-size">
+ <xsl:value-of select="$body.font.master * 1.25"/>
+ <xsl:text>pt</xsl:text>
+ </xsl:attribute>
+ <xsl:attribute
name="space-after.optimum">0.1em</xsl:attribute>
+ <xsl:attribute
name="space-after.minimum">0.1em</xsl:attribute>
+ <xsl:attribute
name="space-after.maximum">0.1em</xsl:attribute>
+ </xsl:attribute-set>
+ <xsl:attribute-set name="section.title.level3.properties">
+ <xsl:attribute
name="space-before.optimum">0.4em</xsl:attribute>
+ <xsl:attribute
name="space-before.minimum">0.4em</xsl:attribute>
+ <xsl:attribute
name="space-before.maximum">0.4em</xsl:attribute>
+ <xsl:attribute name="font-size">
+ <xsl:value-of select="$body.font.master * 1.0"/>
+ <xsl:text>pt</xsl:text>
+ </xsl:attribute>
+ <xsl:attribute
name="space-after.optimum">0.1em</xsl:attribute>
+ <xsl:attribute
name="space-after.minimum">0.1em</xsl:attribute>
+ <xsl:attribute
name="space-after.maximum">0.1em</xsl:attribute>
+ </xsl:attribute-set>
+
+ <!-- Titles of formal objects (tables, examples, ...) -->
+ <xsl:attribute-set name="formal.title.properties"
+ use-attribute-sets="normal.para.spacing">
+ <xsl:attribute name="font-weight">bold</xsl:attribute>
+ <xsl:attribute name="font-size">
+ <xsl:value-of select="$body.font.master"/>
+ <xsl:text>pt</xsl:text>
+ </xsl:attribute>
+ <xsl:attribute name="hyphenate">false</xsl:attribute>
+ <xsl:attribute
name="space-after.minimum">0.4em</xsl:attribute>
+ <xsl:attribute
name="space-after.optimum">0.6em</xsl:attribute>
+ <xsl:attribute
name="space-after.maximum">0.8em</xsl:attribute>
+ </xsl:attribute-set>
+
+
+
+ <!-- ########## blockquote -->
+ <xsl:attribute-set name="blockquote.properties">
+ <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">0.1em</xsl:attribute>
+ <xsl:attribute
name="space-after.optimum">0.1em</xsl:attribute>
+ <xsl:attribute
name="space-after.maximum">0.1em</xsl:attribute>
+ <xsl:attribute name="border-color">#444444</xsl:attribute>
+ <xsl:attribute name="border-style">solid</xsl:attribute>
+ <xsl:attribute name="border-width">0.1pt</xsl:attribute>
+ <xsl:attribute name="padding-top">0.5em</xsl:attribute>
+ <xsl:attribute name="padding-left">0.5em</xsl:attribute>
+ <xsl:attribute name="padding-right">0.5em</xsl:attribute>
+ <xsl:attribute name="padding-bottom">0.5em</xsl:attribute>
+ <xsl:attribute name="margin-left">0.5em</xsl:attribute>
+ <xsl:attribute name="margin-right">0.5em</xsl:attribute>
+ <xsl:attribute
name="background-color">#F0F0F0</xsl:attribute>
+ </xsl:attribute-set>
+
+
+
+ <!--###################################################
+ Programlistings
+ ################################################### -->
+ <!-- Verbatim text formatting (programlistings) -->
+ <xsl:attribute-set name="verbatim.properties">
+ <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">0.1em</xsl:attribute>
+ <xsl:attribute
name="space-after.optimum">0.1em</xsl:attribute>
+ <xsl:attribute
name="space-after.maximum">0.1em</xsl:attribute>
+ <xsl:attribute name="border-color">#444444</xsl:attribute>
+ <xsl:attribute name="border-style">solid</xsl:attribute>
+ <xsl:attribute name="border-width">0.1pt</xsl:attribute>
+ <xsl:attribute name="padding-top">0.5em</xsl:attribute>
+ <xsl:attribute name="padding-left">0.5em</xsl:attribute>
+ <xsl:attribute name="padding-right">0.5em</xsl:attribute>
+ <xsl:attribute name="padding-bottom">0.5em</xsl:attribute>
+ <xsl:attribute name="margin-left">0.5em</xsl:attribute>
+ <xsl:attribute name="margin-right">0.5em</xsl:attribute>
+ </xsl:attribute-set>
+ <!-- Shade (background) programlistings -->
+ <xsl:param name="shade.verbatim">1</xsl:param>
+ <xsl:attribute-set name="shade.verbatim.style">
+ <xsl:attribute
name="background-color">#F0F0F0</xsl:attribute>
+ </xsl:attribute-set>
+
+
+
+ <!--###################################################
+ Callouts
+ ################################################### -->
+ <!-- We want to use callouts... -->
+ <xsl:param name="callout.extensions">1</xsl:param>
+ <!-- Place callout bullets at this column in programmlisting.-->
+ <xsl:param name="callout.defaultcolumn">90</xsl:param>
+ <!--
+ No, don't use crappy graphics for the callout bullets. This setting
+ enables some weird Unicode rendering for some fancy bullet points
+ in callouts. By default, this can only count to 10 and produces
+ strange results if you ever have more than 10 callouts for one
+ programlisting. We will fix that next.
+ -->
+ <xsl:param name="callout.graphics">0</xsl:param>
+ <!--
+ Again, fun with DocBook XSL: The callout bullets are rendered in
+ two places: In the programlisting itself and in the list below
+ the listing, with the actual callout text. The rendering in the
+ programlisting is some XSL transformer extension (e.g. a Saxon
+ extension), so we can't change that without messing with the
+ extensions. We only can turn it off by setting this limit to
+ zero, then, a simple bracket style like "(3)" and "(4)" will
+ be used in the programlisting.
+ -->
+ <xsl:param name="callout.unicode.number.limit"
select="'0'"/>
+ <!--
+ The callout bullets in the actual callout list will be rendered
+ with an XSL FO template. The default template is broken: limited to 10
+ nice looking Unicode bullet points and then it doesn't print anything,
+ the fallback doesn't work. We implement our own template, which is not
+ as complicated, more ugly, but works. As always, function is more
+ important than form.
+ -->
+ <xsl:template name="callout-bug">
+ <xsl:param name="conum" select="1"/>
+ <fo:inline color="black" padding-top="0.1em"
padding-bottom="0.1em"
+ padding-start="0.2em" padding-end="0.2em"
baseline-shift="0.1em"
+ font-family="{$monospace.font.family}" font-weight="bold"
font-size="75%">
+ <xsl:text>(</xsl:text>
+ <xsl:value-of select="$conum"/>
+ <xsl:text>)</xsl:text>
+ </fo:inline>
+ </xsl:template>
+
+
+
+ <!--###################################################
+ Misc
+ ################################################### -->
+ <!-- Correct placement of titles for figures and examples. -->
+ <xsl:param name="formal.title.placement"> figure after example
before
+ equation before table before procedure before </xsl:param>
+ <!-- Format Variable Lists as Blocks (prevents horizontal overflow). -->
+ <xsl:param name="variablelist.as.blocks">1</xsl:param>
+ <!-- The horrible list spacing problems, this is much better. -->
+ <xsl:attribute-set name="list.block.spacing">
+ <xsl:attribute
name="space-before.optimum">0.8em</xsl:attribute>
+ <xsl:attribute
name="space-before.minimum">0.8em</xsl:attribute>
+ <xsl:attribute
name="space-before.maximum">0.8em</xsl:attribute>
+ <xsl:attribute
name="space-after.optimum">0.1em</xsl:attribute>
+ <xsl:attribute
name="space-after.minimum">0.1em</xsl:attribute>
+ <xsl:attribute
name="space-after.maximum">0.1em</xsl:attribute>
+ </xsl:attribute-set>
+ <!-- Newer DocBook XSL apparently thinks that some sections are by
+ default "draft" status, and this idiotic thing is by default
+ also set to "maybe", so it spits out a lot of errors with the
+ latest FOP as the XSL/FO styles have references to some draft
+ watermarks, which you actually don't want in the first place.
+ Turn this crap off. If you have to work with the "status"
+ attribute, don't.
+ -->
+ <xsl:param name="draft.mode" select="'no'"/>
+
+</xsl:stylesheet>
Added: branches/HnetQ_323_cn/lib/docbook-support/styles/zh/html.css
===================================================================
--- branches/HnetQ_323_cn/lib/docbook-support/styles/zh/html.css
(rev 0)
+++ branches/HnetQ_323_cn/lib/docbook-support/styles/zh/html.css 2010-05-10 14:29:02 UTC
(rev 9218)
@@ -0,0 +1,122 @@
+ * {
+ font-family: "Verdana", "Arial", "Helvetica";
+ font-size: 14px;
+ }
+
+ A {
+ color: #0000CC;
+ }
+
+ A:active {
+ color: #0000CC;
+ }
+
+ A:visited {
+ color: #0000CC;
+ }
+
+ P, OL, UL, LI, DL, DT, DD, BLOCKQUOTE {
+ color: #000000;
+ }
+
+ TD, TH, SPAN {
+ color: #000000;
+ }
+
+ BLOCKQUOTE {
+ margin-right: 0px;
+ }
+
+
+ H1, H2, H3, H4, H5, H6 {
+ color: #003399;
+ font-weight: 500;
+ margin-top: 10px;
+ padding-top: 5px;
+ }
+
+ H1 { font-size: 150%; }
+ H2 { font-size: 140%; }
+ H3 { font-size: 110%; font-weight: bold; }
+ H4 { font-size: 110%; font-weight: bold;}
+ H5 { font-size: 100%; font-style: italic; }
+ H6 { font-size: 100%; font-style: italic; }
+
+ TABLE {
+ border-collapse: collapse;
+ border-spacing: 0;
+ /*border: 1px dashed #CCCCCC;*/
+ empty-cells: hide;
+ width: 100%
+ }
+
+ TD {
+ padding: 4pt;
+ }
+
+
+ TT {
+ font-size: 90%;
+ font-style: monospace;
+ color: #111111;
+ }
+
+ PRE {
+ font-size: 100%;
+ padding: 5px;
+ border-style: solid;
+ border-width: 1px;
+ border-color: #CCCCCC;
+ background-color: #F4F4F4;
+ }
+
+ HR {
+ width: 100%;
+ height: 1px;
+ background-color: #CCCCCC;
+ border-width: 0px;
+ padding: 0px;
+ color: #CCCCCC;
+ }
+
+ .variablelist {
+ padding-top: 10;
+ padding-bottom: 10;
+ margin: 0;
+ }
+
+ .itemizedlist {
+ padding-top: 0;
+ padding-bottom: 0;
+ margin: 0;
+ list-style-type: disc;
+
+ }
+
+ .orderedlist{
+ padding-top: 0;
+ padding-bottom: 0;
+ margin: 0;
+ }
+
+ .term {
+ font-weight: bold;
+ }
+
+ .note
+ {
+ padding-bottom: 5px;
+ padding-left: 5px;
+ padding-right: 5px;
+ background-color: #FFFFCC;
+ }
+
+ .warning
+ {
+ padding-bottom: 5px;
+ padding-left: 5px;
+ padding-right: 5px;
+ background-color: #FBDADA;
+ }
+
+
Added: branches/HnetQ_323_cn/lib/docbook-support/styles/zh/html.xsl
===================================================================
--- branches/HnetQ_323_cn/lib/docbook-support/styles/zh/html.xsl
(rev 0)
+++ branches/HnetQ_323_cn/lib/docbook-support/styles/zh/html.xsl 2010-05-10 14:29:02 UTC
(rev 9218)
@@ -0,0 +1,84 @@
+<?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"
+
xmlns="http://www.w3.org/TR/xhtml1/transitional"
+ exclude-result-prefixes="#default">
+
+<xsl:import href="&db_xsl_path;/html/docbook.xsl"/>
+
+<!--###################################################
+ HTML Settings
+ ################################################### -->
+
+ <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>
+
+<!--###################################################
+ Table Of Contents
+ ################################################### -->
+
+ <!-- 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
+ ################################################### -->
+
+ <!-- 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"/>
+
+<!--###################################################
+ Callouts
+ ################################################### -->
+
+ <!-- Don't use graphics, use a simple number style -->
+ <xsl:param name="callout.graphics">0</xsl:param>
+
+ <!-- Place callout marks at this column in annotated areas -->
+ <xsl:param name="callout.defaultcolumn">90</xsl:param>
+
+<!--###################################################
+ Misc
+ ################################################### -->
+
+ <!-- Placement of titles -->
+ <xsl:param name="formal.title.placement">
+ figure after
+ example before
+ equation before
+ table before
+ procedure before
+ </xsl:param>
+
+</xsl:stylesheet>
Added: branches/HnetQ_323_cn/lib/docbook-support/styles/zh/html_chunk.xsl
===================================================================
--- branches/HnetQ_323_cn/lib/docbook-support/styles/zh/html_chunk.xsl
(rev 0)
+++ branches/HnetQ_323_cn/lib/docbook-support/styles/zh/html_chunk.xsl 2010-05-10 14:29:02
UTC (rev 9218)
@@ -0,0 +1,86 @@
+<?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"
+
xmlns="http://www.w3.org/TR/xhtml1/transitional"
+ exclude-result-prefixes="#default">
+
+<xsl:import href="&db_xsl_path;/html/chunk.xsl"/>
+
+<!--###################################################
+ HTML Settings
+ ################################################### -->
+
+ <xsl:param name="chunk.section.depth">'5'</xsl:param>
+ <xsl:param name="use.id.as.filename">'1'</xsl:param>
+ <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>
+
+<!--###################################################
+ Table Of Contents
+ ################################################### -->
+
+ <!-- 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">4</xsl:param>
+
+<!--###################################################
+ Labels
+ ################################################### -->
+
+ <!-- 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"/>
+
+<!--###################################################
+ Callouts
+ ################################################### -->
+
+ <!-- Don't use graphics, use a simple number style -->
+ <xsl:param name="callout.graphics">0</xsl:param>
+
+ <!-- Place callout marks at this column in annotated areas -->
+ <xsl:param name="callout.defaultcolumn">90</xsl:param>
+
+<!--###################################################
+ Misc
+ ################################################### -->
+
+ <!-- Placement of titles -->
+ <xsl:param name="formal.title.placement">
+ figure after
+ example before
+ equation before
+ table before
+ procedure before
+ </xsl:param>
+
+</xsl:stylesheet>