Author: newtonm
Date: 2008-05-09 13:16:03 -0400 (Fri, 09 May 2008)
New Revision: 8033
Added:
trunk/documentation/jbosstools-docbook-xslt/src/main/resources/xslt/org/jboss/tools/
trunk/documentation/jbosstools-docbook-xslt/src/main/resources/xslt/org/jboss/tools/common.xsl
trunk/documentation/jbosstools-docbook-xslt/src/main/resources/xslt/org/jboss/tools/eclipse.xsl
trunk/documentation/jbosstools-docbook-xslt/src/main/resources/xslt/org/jboss/tools/pdf.xsl
trunk/documentation/jbosstools-docbook-xslt/src/main/resources/xslt/org/jboss/tools/xhtml-single.xsl
trunk/documentation/jbosstools-docbook-xslt/src/main/resources/xslt/org/jboss/tools/xhtml.xsl
Removed:
trunk/documentation/jbosstools-docbook-xslt/src/main/resources/xslt/org/jboss/collapsing-navigation.xsl
trunk/documentation/jbosstools-docbook-xslt/src/main/resources/xslt/org/jboss/eclipse.xsl
trunk/documentation/jbosstools-docbook-xslt/src/main/resources/xslt/org/jboss/fopdf.xsl
trunk/documentation/jbosstools-docbook-xslt/src/main/resources/xslt/org/jboss/highlight.xsl
trunk/documentation/jbosstools-docbook-xslt/src/main/resources/xslt/org/jboss/html.xsl
trunk/documentation/jbosstools-docbook-xslt/src/main/resources/xslt/org/jboss/html_chunk.xsl
Modified:
trunk/documentation/jbosstools-docbook-xslt/pom.xml
Log:
Changed this plugin into an XSL customization layer on top of the
JBoss.org default XSL.
Modified: trunk/documentation/jbosstools-docbook-xslt/pom.xml
===================================================================
--- trunk/documentation/jbosstools-docbook-xslt/pom.xml 2008-05-09 15:33:47 UTC (rev
8032)
+++ trunk/documentation/jbosstools-docbook-xslt/pom.xml 2008-05-09 17:16:03 UTC (rev
8033)
@@ -7,11 +7,11 @@
<groupId>org.jboss.tools</groupId>
<artifactId>jbosstools-docbook-xslt</artifactId>
<packaging>jar</packaging>
- <version>1.0.0</version>
+ <version>1.0.0-SNAPSHOT</version>
<name>JBoss Tools DocBook XSLT</name>
<description>The main project to transform DocBook XML into XHTML and other
formats for JBoss Tools Documentation.</description>
- <
url>http://labs.jboss.com/tools/</url>
+ <
url>http://www.jboss.org/tools/</url>
<contributors>
<contributor>
@@ -25,23 +25,47 @@
</contributor>
</contributors>
+ <scm>
+
<
developerConnection>scm:svn:https://svn.jboss.org/repos/jbosstools/tru...
+
<
connection>scm:svn:http://anonsvn.jboss.org/repos/jbosstools/trunk/doc...
+ </scm>
+
<dependencies>
<dependency>
- <groupId>net.sf.docbook</groupId>
- <artifactId>docbook</artifactId>
+ <groupId>org.jboss</groupId>
+ <artifactId>jbossorg-docbook-xslt</artifactId>
</dependency>
</dependencies>
<dependencyManagement>
<dependencies>
<dependency>
- <groupId>net.sf.docbook</groupId>
- <artifactId>docbook</artifactId>
- <version>1.72.0</version>
+ <groupId>org.jboss</groupId>
+ <artifactId>jbossorg-docbook-xslt</artifactId>
+ <version>1.1.0.Beta1</version>
</dependency>
</dependencies>
</dependencyManagement>
+ <build>
+ <extensions>
+ <extension>
+ <groupId>org.apache.maven.wagon</groupId>
+ <artifactId>wagon-webdav</artifactId>
+ <version>1.0-beta-2</version>
+ </extension>
+ </extensions>
+ <pluginManagement>
+ <plugins>
+ <plugin>
+ <groupId>org.jboss.maven.plugins</groupId>
+ <artifactId>maven-jdocbook-plugin</artifactId>
+ <version>2.1.0-200803311251UTC-MPJDOCBOOK-8</version>
+ </plugin>
+ </plugins>
+ </pluginManagement>
+ </build>
+
<distributionManagement>
<repository>
<!-- Copy the dist to the local checkout of the JBoss maven2 repo
${maven.repository.root} -->
Deleted:
trunk/documentation/jbosstools-docbook-xslt/src/main/resources/xslt/org/jboss/collapsing-navigation.xsl
===================================================================
---
trunk/documentation/jbosstools-docbook-xslt/src/main/resources/xslt/org/jboss/collapsing-navigation.xsl 2008-05-09
15:33:47 UTC (rev 8032)
+++
trunk/documentation/jbosstools-docbook-xslt/src/main/resources/xslt/org/jboss/collapsing-navigation.xsl 2008-05-09
17:16:03 UTC (rev 8033)
@@ -1,199 +0,0 @@
-<!DOCTYPE xsl:stylesheet>
-<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:template name="subtoc">
- <xsl:param name="toc-context" select="." />
- <xsl:param name="nodes" select="NOT-AN-ELEMENT" />
-
- <xsl:variable name="toc.mark">
- <xsl:apply-templates mode="toc.mark" select="." />
- </xsl:variable>
-
- <xsl:variable name="should.collapse.list"
- select="string-length(string($toc.mark)) > 0">
- </xsl:variable>
-
- <xsl:variable name="toc.on.plus.mark">
- <xsl:choose>
- <xsl:when test="$should.collapse.list">
- <xsl:copy-of select="$toc.mark"></xsl:copy-of>
- </xsl:when>
- <xsl:otherwise>
- <span class="expand_collapse_toc"
style="visibility:hidden;">  </span>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
-
- <xsl:variable name="nodes.plus" select="$nodes | qandaset"
/>
-
- <xsl:variable name="subtoc">
- <xsl:element name="{$toc.list.type}">
- <xsl:choose>
- <xsl:when test="$qanda.in.toc != 0">
- <xsl:apply-templates mode="toc"
- select="$nodes.plus">
- <xsl:with-param name="toc-context"
- select="$toc-context" />
- </xsl:apply-templates>
- </xsl:when>
- <xsl:otherwise>
- <xsl:apply-templates mode="toc"
- select="$nodes">
- <xsl:with-param name="toc-context"
- select="$toc-context" />
- </xsl:apply-templates>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:element>
- </xsl:variable>
-
- <xsl:variable name="depth">
- <xsl:choose>
- <xsl:when test="local-name(.) = 'section'">
- <xsl:value-of select="count(ancestor::section) + 1" />
- </xsl:when>
- <xsl:when test="local-name(.) = 'sect1'">1</xsl:when>
- <xsl:when test="local-name(.) = 'sect2'">2</xsl:when>
- <xsl:when test="local-name(.) = 'sect3'">3</xsl:when>
- <xsl:when test="local-name(.) = 'sect4'">4</xsl:when>
- <xsl:when test="local-name(.) = 'sect5'">5</xsl:when>
- <xsl:when test="local-name(.) =
'refsect1'">1</xsl:when>
- <xsl:when test="local-name(.) =
'refsect2'">2</xsl:when>
- <xsl:when test="local-name(.) =
'refsect3'">3</xsl:when>
- <xsl:when test="local-name(.) = 'simplesect'">
- <!-- sigh... -->
- <xsl:choose>
- <xsl:when test="local-name(..) = 'section'">
- <xsl:value-of
- select="count(ancestor::section)" />
- </xsl:when>
- <xsl:when test="local-name(..) = 'sect1'">
- 2
- </xsl:when>
- <xsl:when test="local-name(..) = 'sect2'">
- 3
- </xsl:when>
- <xsl:when test="local-name(..) = 'sect3'">
- 4
- </xsl:when>
- <xsl:when test="local-name(..) = 'sect4'">
- 5
- </xsl:when>
- <xsl:when test="local-name(..) = 'sect5'">
- 6
- </xsl:when>
- <xsl:when test="local-name(..) = 'refsect1'">
- 2
- </xsl:when>
- <xsl:when test="local-name(..) = 'refsect2'">
- 3
- </xsl:when>
- <xsl:when test="local-name(..) = 'refsect3'">
- 4
- </xsl:when>
- <xsl:otherwise>1</xsl:otherwise>
- </xsl:choose>
- </xsl:when>
- <xsl:otherwise>0</xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
-
- <xsl:variable name="depth.from.context"
- select="count(ancestor::*)-count($toc-context/ancestor::*)" />
-
- <xsl:variable name="subtoc.list">
- <xsl:choose>
- <xsl:when test="$toc.dd.type = ''">
- <xsl:copy-of select="$subtoc" />
- </xsl:when>
- <xsl:otherwise>
- <xsl:element name="{$toc.dd.type}">
- <xsl:if test="$should.collapse.list">
- <xsl:attribute name="style">display:none;</xsl:attribute>
- </xsl:if>
- <xsl:copy-of select="$subtoc" />
- </xsl:element>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
-
-
- <xsl:element name="{$toc.listitem.type}">
-
- <xsl:copy-of select="$toc.on.plus.mark"></xsl:copy-of>
- <xsl:call-template name="toc.line">
- <xsl:with-param name="toc-context"
- select="$toc-context" />
- </xsl:call-template>
-
- <xsl:if
- test="$toc.listitem.type = 'li'
- and $toc.section.depth > $depth and
- ( ($qanda.in.toc = 0 and count($nodes)>0) or
- ($qanda.in.toc != 0 and count($nodes.plus)>0) )
- and $toc.max.depth > $depth.from.context">
- <xsl:copy-of select="$subtoc.list" />
- </xsl:if>
- </xsl:element>
- <xsl:if
- test="$toc.listitem.type != 'li'
- and $toc.section.depth > $depth and
- ( ($qanda.in.toc = 0 and count($nodes)>0) or
- ($qanda.in.toc != 0 and count($nodes.plus)>0) )
- and $toc.max.depth > $depth.from.context">
- <xsl:copy-of select="$subtoc.list" />
- </xsl:if>
- </xsl:template>
-
- <xsl:template match="section|chapter" mode="toc.mark">
- <xsl:variable name="subchapters">
- <xsl:apply-templates select="child::section" mode="toc" />
- </xsl:variable>
-
- <xsl:if test="string-length(string($subchapters))">
- <xsl:call-template name="toggle.expand.mark" />
- <xsl:call-template name="toggle.collapse.mark" />
- </xsl:if>
-
- </xsl:template>
-
- <xsl:template match="*" mode="toc.mark">
-
- </xsl:template>
-
- <xsl:template name="user.head.content">
- <xsl:param name="node" select="." />
- <script type="text/javascript"
src="script/toggle.js"></script>
- </xsl:template>
-
- <xsl:template name="toggle.expand.mark">
- <xsl:param name="visible" select="true()"/>
- <span onclick="toc.expand(this)"
class="expand_collapse_toc">
- <xsl:call-template name="render.display">
- <xsl:with-param name="visible" select="$visible" />
- </xsl:call-template>
- <xsl:text>+</xsl:text>
- </span>
- </xsl:template>
-
- <xsl:template name="toggle.collapse.mark">
- <xsl:param name="visible" select="false()"/>
- <span onclick="toc.collapse(this)"
class="expand_collapse_toc">
- <xsl:call-template name="render.display">
- <xsl:with-param name="visible" select="$visible" />
- </xsl:call-template>
- <xsl:text>-</xsl:text>
- </span>
- </xsl:template>
-
- <xsl:template name="render.display">
- <xsl:param name="visible" select="false()"/>
- <xsl:attribute name="style">
- <xsl:if test="not($visible)">display:none;</xsl:if>
- </xsl:attribute>
- </xsl:template>
-
-
-</xsl:stylesheet>
Deleted:
trunk/documentation/jbosstools-docbook-xslt/src/main/resources/xslt/org/jboss/eclipse.xsl
===================================================================
---
trunk/documentation/jbosstools-docbook-xslt/src/main/resources/xslt/org/jboss/eclipse.xsl 2008-05-09
15:33:47 UTC (rev 8032)
+++
trunk/documentation/jbosstools-docbook-xslt/src/main/resources/xslt/org/jboss/eclipse.xsl 2008-05-09
17:16:03 UTC (rev 8033)
@@ -1,185 +0,0 @@
-<?xml version="1.0"?>
-<!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">
-
-
-
-
- <!-- Import of the original stylesheet which "just" creates
- a bunch of HTML files from any valid DocBook instance -->
- <xsl:import
href="http://docbook.sourceforge.net/release/xsl/1.72.0/html/chunk.x...
- <xsl:include href="./highlight.xsl"></xsl:include>
-
- <!--START HTML_CHUNK -->
-
- <!--###################################################
- 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 5 in the TOCs -->
- <xsl:param name="toc.section.depth">5</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:template match="section[@role = 'NotInToc']//*"
mode="toc" />
- <xsl:template match="chapter[@role = 'NotInToc']//section//*"
mode="toc" />
-
- <xsl:param name="ignore.image.scaling" select="1"/>
-
-
-<!--END HTML_CHUNK -->
-
- <!-- You must plug-in your custom templates here -->
- <xsl:template match="/">
- <!-- Call original code from the imported stylesheet -->
- <xsl:apply-imports/>
-
- <!-- Call custom templates for the ToC and the manifest -->
- <xsl:call-template name="etoc"/>
- <xsl:call-template name="plugin.xml"/>
- </xsl:template>
-
- <!-- Template for creating auxiliary ToC file -->
- <xsl:template name="etoc">
- <xsl:call-template name="write.chunk">
- <xsl:with-param name="filename"
select="'target/docbook/eclipse/toc.xml'"/>
- <xsl:with-param name="method"
select="'xml'"/>
- <xsl:with-param name="encoding"
select="'utf-8'"/>
- <xsl:with-param name="indent"
select="'yes'"/>
- <xsl:with-param name="content">
-
- <!-- Get the title of the root element -->
- <xsl:variable name="title">
- <xsl:apply-templates select="/*"
mode="title.markup"/>
- </xsl:variable>
-
- <!-- Get HTML filename for the root element -->
- <xsl:variable name="href">
- <xsl:call-template name="href.target.with.base.dir">
- <xsl:with-param name="object"
select="/*"/>
- </xsl:call-template>
- </xsl:variable>
-
- <!-- Create root element of ToC file -->
- <toc label="{$title}" topic="{$href}">
- <!-- Get ToC for all children of the root element -->
- <xsl:apply-templates select="/*/*"
mode="etoc"/>
- </toc>
-
- </xsl:with-param>
- </xsl:call-template>
- </xsl:template>
-
- <!-- Template which converts all DocBook containers into
- one entry in the ToC file -->
- <xsl:template match="book|part|reference|preface|chapter|
- bibliography|appendix|article|glossary|
- section|sect1|sect2|sect3|sect4|sect5|
- refentry|colophon|bibliodiv|index"
- mode="etoc">
- <!-- Get the title of the current element -->
- <xsl:variable name="title">
- <xsl:apply-templates select="."
mode="title.markup"/>
- </xsl:variable>
-
- <!-- Get HTML filename for the current element -->
- <xsl:variable name="href">
- <xsl:call-template name="href.target.with.base.dir"/>
- </xsl:variable>
-
- <!-- Create ToC entry for the current node and process its
- container-type children further -->
- <topic label="{$title}" href="{$href}">
- <xsl:apply-templates select="part|reference|preface|chapter|
- bibliography|appendix|article|
- glossary|section|sect1|sect2|
- sect3|sect4|sect5|refentry|
- colophon|bibliodiv|index"
- mode="etoc"/>
- </topic>
-
- </xsl:template>
-
- <!-- Default processing in the etoc mode is no processing -->
- <xsl:template match="text()" mode="etoc"/>
-
- <!-- Template for generating the manifest file -->
- <xsl:template name="plugin.xml">
- <xsl:call-template name="write.chunk">
- <xsl:with-param name="filename"
select="'target/docbook/eclipse/plugin.xml'"/>
- <xsl:with-param name="method"
select="'xml'"/>
- <xsl:with-param name="encoding"
select="'utf-8'"/>
- <xsl:with-param name="indent"
select="'yes'"/>
- <xsl:with-param name="content">
- <plugin name="{$eclipse.plugin.name}"
- id="{$eclipse.plugin.id}"
- version="1.0"
- provider-name="{$eclipse.plugin.provider}">
- <extension point="org.eclipse.help.toc">
- <toc file="toc.xml" primary="true"/>
- </extension>
- </plugin>
- </xsl:with-param>
- </xsl:call-template>
- </xsl:template>
-
- <!-- Customization parameters for the manifest file -->
- <xsl:param name="eclipse.plugin.name">DocBook Online Help
Sample</xsl:param>
- <xsl:param
name="eclipse.plugin.id">com.example.help</xsl:param>
- <xsl:param name="eclipse.plugin.provider">Example
provider</xsl:param>
-
-</xsl:stylesheet>
Deleted:
trunk/documentation/jbosstools-docbook-xslt/src/main/resources/xslt/org/jboss/fopdf.xsl
===================================================================
---
trunk/documentation/jbosstools-docbook-xslt/src/main/resources/xslt/org/jboss/fopdf.xsl 2008-05-09
15:33:47 UTC (rev 8032)
+++
trunk/documentation/jbosstools-docbook-xslt/src/main/resources/xslt/org/jboss/fopdf.xsl 2008-05-09
17:16:03 UTC (rev 8033)
@@ -1,543 +0,0 @@
-<?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"/>-->
- <xsl:import
href="http://docbook.sourceforge.net/release/xsl/1.72.0/fo/docbook.x...
-
- <!-- ########## 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></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="fop1.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 5 in the TOCs -->
- <xsl:param name="toc.section.depth">5</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>
Deleted:
trunk/documentation/jbosstools-docbook-xslt/src/main/resources/xslt/org/jboss/highlight.xsl
===================================================================
---
trunk/documentation/jbosstools-docbook-xslt/src/main/resources/xslt/org/jboss/highlight.xsl 2008-05-09
15:33:47 UTC (rev 8032)
+++
trunk/documentation/jbosstools-docbook-xslt/src/main/resources/xslt/org/jboss/highlight.xsl 2008-05-09
17:16:03 UTC (rev 8033)
@@ -1,18 +0,0 @@
-<!DOCTYPE xsl:stylesheet>
-<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:template
match="programlisting[@role='XML']|programlisting[@role='JAVA']|programlisting[@role='XHTML']|programlisting[@role='JSP']">
- <xsl:variable name="kidz">
- <xsl:apply-templates></xsl:apply-templates>
- </xsl:variable>
- <pre class="{@role}">
- <xsl:value-of
- select="javahl:highlight(string($kidz), attribute::role)"
- xmlns:javahl="java:com.exadel.docbook.colorer.HighLighter"
- disable-output-escaping="yes"/>
- </pre>
- </xsl:template>
-
-</xsl:stylesheet>
Deleted:
trunk/documentation/jbosstools-docbook-xslt/src/main/resources/xslt/org/jboss/html.xsl
===================================================================
---
trunk/documentation/jbosstools-docbook-xslt/src/main/resources/xslt/org/jboss/html.xsl 2008-05-09
15:33:47 UTC (rev 8032)
+++
trunk/documentation/jbosstools-docbook-xslt/src/main/resources/xslt/org/jboss/html.xsl 2008-05-09
17:16:03 UTC (rev 8033)
@@ -1,90 +0,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"
-
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/1.72.0/html/docbook...
-<xsl:include href="./collapsing-navigation.xsl"></xsl:include>
-<xsl:include href="./highlight.xsl"></xsl:include>
-
-
-<!--###################################################
- 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 5 in the TOCs -->
- <xsl:param name="toc.section.depth">5</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:template match="section[@role = 'NotInToc']//*"
mode="toc" />
- <xsl:template match="chapter[@role = 'NotInToc']//section//*"
mode="toc" />
-
-</xsl:stylesheet>
Deleted:
trunk/documentation/jbosstools-docbook-xslt/src/main/resources/xslt/org/jboss/html_chunk.xsl
===================================================================
---
trunk/documentation/jbosstools-docbook-xslt/src/main/resources/xslt/org/jboss/html_chunk.xsl 2008-05-09
15:33:47 UTC (rev 8032)
+++
trunk/documentation/jbosstools-docbook-xslt/src/main/resources/xslt/org/jboss/html_chunk.xsl 2008-05-09
17:16:03 UTC (rev 8033)
@@ -1,93 +0,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"
-
xmlns="http://www.w3.org/TR/xhtml1/transitional"
- exclude-result-prefixes="#default">
-
-<!--<xsl:import href="&db_xsl_path;/html/chunk.xsl"/>-->
-<xsl:import
href="http://docbook.sourceforge.net/release/xsl/1.72.0/html/chunk.x...
-
-<xsl:include href="./collapsing-navigation.xsl"></xsl:include>
-<xsl:include href="./highlight.xsl"></xsl:include>
-
-
-<!--###################################################
- 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 5 in the TOCs -->
- <xsl:param name="toc.section.depth">5</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:template match="section[@role = 'NotInToc']//*"
mode="toc" />
- <xsl:template match="chapter[@role = 'NotInToc']//section//*"
mode="toc" />
-
-</xsl:stylesheet>
Added:
trunk/documentation/jbosstools-docbook-xslt/src/main/resources/xslt/org/jboss/tools/common.xsl
===================================================================
---
trunk/documentation/jbosstools-docbook-xslt/src/main/resources/xslt/org/jboss/tools/common.xsl
(rev 0)
+++
trunk/documentation/jbosstools-docbook-xslt/src/main/resources/xslt/org/jboss/tools/common.xsl 2008-05-09
17:16:03 UTC (rev 8033)
@@ -0,0 +1,16 @@
+<?xml version='1.0'?>
+
+<!--
+ Copyright 2008 JBoss, a division of Red Hat
+ License: LGPL
+ Author: Mark Newton <mark.newton(a)jboss.org>
+-->
+
+<xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
+
+ <!-- XHTML settings -->
+ <xsl:param name="html.stylesheet"
select="'css/tools.css'"/>
+
+ <!-- XHTML and PDF -->
+
+</xsl:stylesheet>
Added:
trunk/documentation/jbosstools-docbook-xslt/src/main/resources/xslt/org/jboss/tools/eclipse.xsl
===================================================================
---
trunk/documentation/jbosstools-docbook-xslt/src/main/resources/xslt/org/jboss/tools/eclipse.xsl
(rev 0)
+++
trunk/documentation/jbosstools-docbook-xslt/src/main/resources/xslt/org/jboss/tools/eclipse.xsl 2008-05-09
17:16:03 UTC (rev 8033)
@@ -0,0 +1,17 @@
+<?xml version='1.0'?>
+
+<!--
+ Copyright 2008 JBoss, a division of Red Hat
+ License: LGPL
+ Author: Mark Newton <mark.newton(a)jboss.org>
+-->
+
+<xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
+
+ <xsl:import href="classpath:/xslt/org/jboss/eclipse.xsl"/>
+ <xsl:import href="common.xsl"/>
+
+ <xsl:param name="eclipse.plugin.name">JBoss Tools
Help</xsl:param>
+ <xsl:param
name="eclipse.plugin.id">org.jboss.tools.help</xsl:param>
+
+</xsl:stylesheet>
Added:
trunk/documentation/jbosstools-docbook-xslt/src/main/resources/xslt/org/jboss/tools/pdf.xsl
===================================================================
---
trunk/documentation/jbosstools-docbook-xslt/src/main/resources/xslt/org/jboss/tools/pdf.xsl
(rev 0)
+++
trunk/documentation/jbosstools-docbook-xslt/src/main/resources/xslt/org/jboss/tools/pdf.xsl 2008-05-09
17:16:03 UTC (rev 8033)
@@ -0,0 +1,14 @@
+<?xml version='1.0'?>
+
+<!--
+ Copyright 2008 JBoss, a division of Red Hat
+ License: LGPL
+ Author: Mark Newton <mark.newton(a)jboss.org>
+-->
+
+<xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
+
+ <xsl:import href="classpath:/xslt/org/jboss/pdf.xsl"/>
+ <xsl:import href="common.xsl"/>
+
+</xsl:stylesheet>
Added:
trunk/documentation/jbosstools-docbook-xslt/src/main/resources/xslt/org/jboss/tools/xhtml-single.xsl
===================================================================
---
trunk/documentation/jbosstools-docbook-xslt/src/main/resources/xslt/org/jboss/tools/xhtml-single.xsl
(rev 0)
+++
trunk/documentation/jbosstools-docbook-xslt/src/main/resources/xslt/org/jboss/tools/xhtml-single.xsl 2008-05-09
17:16:03 UTC (rev 8033)
@@ -0,0 +1,14 @@
+<?xml version='1.0'?>
+
+<!--
+ Copyright 2008 JBoss, a division of Red Hat
+ License: LGPL
+ Author: Mark Newton <mark.newton(a)jboss.org>
+-->
+
+<xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
+
+ <xsl:import href="classpath:/xslt/org/jboss/xhtml-single.xsl"/>
+ <xsl:import href="common.xsl"/>
+
+</xsl:stylesheet>
Added:
trunk/documentation/jbosstools-docbook-xslt/src/main/resources/xslt/org/jboss/tools/xhtml.xsl
===================================================================
---
trunk/documentation/jbosstools-docbook-xslt/src/main/resources/xslt/org/jboss/tools/xhtml.xsl
(rev 0)
+++
trunk/documentation/jbosstools-docbook-xslt/src/main/resources/xslt/org/jboss/tools/xhtml.xsl 2008-05-09
17:16:03 UTC (rev 8033)
@@ -0,0 +1,14 @@
+<?xml version='1.0'?>
+
+<!--
+ Copyright 2008 JBoss, a division of Red Hat
+ License: LGPL
+ Author: Mark Newton <mark.newton(a)jboss.org>
+-->
+
+<xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
+
+ <xsl:import href="classpath:/xslt/org/jboss/xhtml.xsl"/>
+ <xsl:import href="common.xsl"/>
+
+</xsl:stylesheet>