Author: artdaw
Date: 2009-03-04 12:06:25 -0500 (Wed, 04 Mar 2009)
New Revision: 13972
Added:
trunk/documentation/jbosstools-docbook-xslt/src/main/resources/xslt/org/jboss/tools/xhtml-release.xsl
trunk/documentation/jbosstools-docbook-xslt/src/main/resources/xslt/org/jboss/tools/xhtml-single-release.xsl
Modified:
trunk/documentation/jbosstools-docbook-xslt/src/main/resources/xslt/org/jboss/tools/pdf.xsl
Log:
https://jira.jboss.org/jira/browse/JBDS-489 - three profiles were created
Modified:
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 2009-03-04
17:05:18 UTC (rev 13971)
+++
trunk/documentation/jbosstools-docbook-xslt/src/main/resources/xslt/org/jboss/tools/pdf.xsl 2009-03-04
17:06:25 UTC (rev 13972)
@@ -37,4 +37,71 @@
</fo:inline>
</xsl:template>
+ <!--###################################################
+ Custom TOC (bold chapter titles)
+ ################################################### -->
+
+ <!-- Improve the TOC. -->
+ <xsl:template name="toc.line">
+ <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>
+
+ <!--xsl:choose>
+ <xsl:when test="local-name(.)='section' and
current()/@diffmk:change='added'">
+ <xsl:call-template name="markerTypes">
+ <xsl:with-param
name="marker-type">attribute</xsl:with-param>
+ <xsl:with-param name="marker-value">added</xsl:with-param>
+ </xsl:call-template>
+ </xsl:when>
+ <xsl:when test="local-name(.)='chapter' and
current()/@diffmk:change='added'">
+ <xsl:call-template name="markerTypes">
+ <xsl:with-param
name="marker-type">attribute</xsl:with-param>
+ <xsl:with-param name="marker-value">added</xsl:with-param>
+ </xsl:call-template>
+ </xsl:when>
+ <xsl:when test="local-name(.)='section' and
current()//diffmk:wrapper">
+ <xsl:call-template name="markerTypes">
+ <xsl:with-param
name="marker-type">attribute</xsl:with-param>
+ <xsl:with-param name="marker-value">updated</xsl:with-param>
+ </xsl:call-template>
+ </xsl:when>
+ </xsl:choose-->
+ <fo:external-graphic src="images/new.png"/>
+ <fo:inline keep-together.within-line="always">
+ <xsl:text> </xsl:text>
+ <fo:leader leader-pattern="dots"
leader-pattern-width="3pt"
+ leader-alignment="reference-area"
+ keep-with-next.within-line="always" />
+ <xsl:text> </xsl:text>
+ <fo:basic-link internal-destination="{$id}">
+ <fo:page-number-citation ref-id="{$id}" />
+ </fo:basic-link>
+ </fo:inline>
+ </fo:block>
+ </xsl:template>
</xsl:stylesheet>
Added:
trunk/documentation/jbosstools-docbook-xslt/src/main/resources/xslt/org/jboss/tools/xhtml-release.xsl
===================================================================
---
trunk/documentation/jbosstools-docbook-xslt/src/main/resources/xslt/org/jboss/tools/xhtml-release.xsl
(rev 0)
+++
trunk/documentation/jbosstools-docbook-xslt/src/main/resources/xslt/org/jboss/tools/xhtml-release.xsl 2009-03-04
17:06:25 UTC (rev 13972)
@@ -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:import href="xhtml.xsl"/>
+ <xsl:param name="html.stylesheet"
select="'css/tools_release.css'"/>
+</xsl:stylesheet>
Added:
trunk/documentation/jbosstools-docbook-xslt/src/main/resources/xslt/org/jboss/tools/xhtml-single-release.xsl
===================================================================
---
trunk/documentation/jbosstools-docbook-xslt/src/main/resources/xslt/org/jboss/tools/xhtml-single-release.xsl
(rev 0)
+++
trunk/documentation/jbosstools-docbook-xslt/src/main/resources/xslt/org/jboss/tools/xhtml-single-release.xsl 2009-03-04
17:06:25 UTC (rev 13972)
@@ -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:import href="xhtml-single.xsl"/>
+ <xsl:param name="html.stylesheet"
select="'css/tools_release.css'"/>
+</xsl:stylesheet>