Author: ochikvina
Date: 2008-06-10 11:17:12 -0400 (Tue, 10 Jun 2008)
New Revision: 8680
Modified:
trunk/documentation/jbosstools-docbook-xslt/src/main/resources/xslt/com/jboss/tools/pdf.xsl
Log:
http://jira.jboss.com/jira/browse/JBDS-336 - all links are underlined & displayed URLs
after them are ommited.
Bg color for 'note', 'important' & 'tip' boxes is changed.
Meaningful words are highrlighted
Modified:
trunk/documentation/jbosstools-docbook-xslt/src/main/resources/xslt/com/jboss/tools/pdf.xsl
===================================================================
---
trunk/documentation/jbosstools-docbook-xslt/src/main/resources/xslt/com/jboss/tools/pdf.xsl 2008-06-10
13:54:56 UTC (rev 8679)
+++
trunk/documentation/jbosstools-docbook-xslt/src/main/resources/xslt/com/jboss/tools/pdf.xsl 2008-06-10
15:17:12 UTC (rev 8680)
@@ -6,8 +6,122 @@
Author: Mark Newton <mark.newton(a)jboss.org>
-->
-<xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
+<xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0"
xmlns:fo="http://www.w3.org/1999/XSL/Format">
<xsl:import href="classpath:/xslt/com/jboss/pdf.xsl"/>
+
+ <!--xsl:template name="toc.line">
+ <xsl:param name="toc-context" select="NOTANODE"/>
+ <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 xsl:use-attribute-sets="toc.line.properties">
+ <fo:inline keep-with-next.within-line="always">
+
+ <fo:basic-link internal-destination="{$id}"
+ background-image="new.png"
+ background-repeat="no-repeat"
+
background-position-horizontal="right">
+
+
+ <xsl:if test="$label != ''">
+ <xsl:copy-of select="$label"/>
+ <xsl:value-of select="$autotoc.label.separator"/>
+ </xsl:if>
+ <xsl:apply-templates select="."
mode="title.markup"/>
+ </fo:basic-link>
+ </fo:inline>
+ <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-->
+
+ <!-- overwriting links properties -->
+ <xsl:param name="ulink.show" select="0"></xsl:param>
+
+ <xsl:attribute-set name="xref.properties">
+ <xsl:attribute name="text-decoration">
+ <xsl:choose>
+ <xsl:when test="self::ulink">underline</xsl:when>
+ <xsl:when test="self::link">underline</xsl:when>
+ <!--xsl:otherwise>inherit</xsl:otherwise-->
+ </xsl:choose>
+ </xsl:attribute>
+ </xsl:attribute-set>
+
+<!-- note, impotent & tip boxes bgcolor overwriting -->
+ <xsl:attribute-set name="graphical.admonition.properties">
+
+ <xsl:attribute name="color">
+ <xsl:choose>
+ <xsl:when test="self::note">#4C5253</xsl:when>
+ <xsl:when test="self::caution">#533500</xsl:when>
+ <xsl:when test="self::important">white</xsl:when>
+ <xsl:when test="self::warning">white</xsl:when>
+ <xsl:when test="self::tip">white</xsl:when>
+ <xsl:otherwise>white</xsl:otherwise>
+ </xsl:choose>
+ </xsl:attribute>
+
+ <xsl:attribute name="background-color">
+ <xsl:choose>
+ <xsl:when test="self::note">#B5BCBD</xsl:when>
+ <xsl:when test="self::caution">#E3A835</xsl:when>
+ <xsl:when test="self::important">#5d7694</xsl:when>
+ <xsl:when test="self::warning">#7B1E1E</xsl:when>
+ <xsl:when test="self::tip">#859986</xsl:when>
+ <!--xsl:otherwise>#404040</xsl:otherwise-->
+ </xsl:choose>
+ </xsl:attribute>
+
+ <xsl:attribute
name="space-before.optimum">1em</xsl:attribute>
+ <xsl:attribute
name="space-before.minimum">0.8em</xsl:attribute>
+ <xsl:attribute
name="space-before.maximum">1.2em</xsl:attribute>
+ <xsl:attribute
name="space-after.optimum">1em</xsl:attribute>
+ <xsl:attribute
name="space-after.minimum">0.8em</xsl:attribute>
+ <xsl:attribute
name="space-after.maximum">1em</xsl:attribute>
+ <xsl:attribute name="padding-bottom">12pt</xsl:attribute>
+ <xsl:attribute name="padding-top">12pt</xsl:attribute>
+ <xsl:attribute name="padding-right">12pt</xsl:attribute>
+ <xsl:attribute name="padding-left">12pt</xsl:attribute>
+ <xsl:attribute name="margin-left">
+ <xsl:value-of select="$title.margin.left"/>
+ </xsl:attribute>
+ </xsl:attribute-set>
+
+ <!-- tables headers bgcolor overwriting -->
+
+ <!--xsl:template name="table.cell.block.properties">
+ <xsl:if test="ancestor::thead or ancestor::tfoot">
+ <xsl:attribute name="font-weight">bold</xsl:attribute>
+ <xsl:attribute
name="background-color">green</xsl:attribute>
+ <xsl:attribute name="border-color">green</xsl:attribute>
+ <xsl:attribute name="color">white</xsl:attribute>
+ </xsl:if>
+ </xsl:template-->
+
+ <!-- highlighting meaningful words -->
+
+ <xsl:template match="property">
+ <xsl:variable name="currant" select="child::node()"/>
+ <fo:inline color="#0066cc">
+ <xsl:value-of select="$currant"/>
+ </fo:inline>
+ </xsl:template>
+
</xsl:stylesheet>