Author: smukhina
Date: 2009-05-11 12:01:21 -0400 (Mon, 11 May 2009)
New Revision: 15179
Modified:
branches/jbosstools-3.0.x/documentation/jbosstools-docbook-xslt/src/main/resources/xslt/com/jboss/tools/pdf.xsl
branches/jbosstools-3.0.x/documentation/jbosstools-docbook-xslt/src/main/resources/xslt/org/jboss/tools/pdf.xsl
Log:
https://jira.jboss.org/jira/browse/JBDS-717 merged changes from trunk are added to the
corresponding branch
Modified:
branches/jbosstools-3.0.x/documentation/jbosstools-docbook-xslt/src/main/resources/xslt/com/jboss/tools/pdf.xsl
===================================================================
---
branches/jbosstools-3.0.x/documentation/jbosstools-docbook-xslt/src/main/resources/xslt/com/jboss/tools/pdf.xsl 2009-05-11
16:01:02 UTC (rev 15178)
+++
branches/jbosstools-3.0.x/documentation/jbosstools-docbook-xslt/src/main/resources/xslt/com/jboss/tools/pdf.xsl 2009-05-11
16:01:21 UTC (rev 15179)
@@ -78,4 +78,11 @@
<xsl:value-of select="."/><xsl:text> </xsl:text>
</fo:inline>
</xsl:template>
+ <!--avoid page sequence to generate blank pages after even page numbers -->
+
+ <xsl:template name="force.page.count">
+ <xsl:param name="element" select="local-name(.)"/>
+ <xsl:param name="master-reference" select="''"/>
+ <xsl:text>no-force</xsl:text>
+ </xsl:template>
</xsl:stylesheet>
Modified:
branches/jbosstools-3.0.x/documentation/jbosstools-docbook-xslt/src/main/resources/xslt/org/jboss/tools/pdf.xsl
===================================================================
---
branches/jbosstools-3.0.x/documentation/jbosstools-docbook-xslt/src/main/resources/xslt/org/jboss/tools/pdf.xsl 2009-05-11
16:01:02 UTC (rev 15178)
+++
branches/jbosstools-3.0.x/documentation/jbosstools-docbook-xslt/src/main/resources/xslt/org/jboss/tools/pdf.xsl 2009-05-11
16:01:21 UTC (rev 15179)
@@ -9,7 +9,8 @@
<xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0"
xmlns:fo="http://www.w3.org/1999/XSL/Format"
xmlns:diffmk="http://diffmk.sf.net/ns/diff">
<xsl:import href="classpath:/xslt/org/jboss/pdf.xsl"/>
-
+ <xsl:param name="force.page.count" select="no-force"/>
+
<!-- overwriting links properties -->
<xsl:attribute-set name="xref.properties">
@@ -23,7 +24,7 @@
</xsl:attribute-set>
<!-- highlighting meaningful words -->
-
+
<xsl:template match="property">
<xsl:variable name="currant" select="child::node()"/>
<fo:inline color="#0066cc">
@@ -104,4 +105,113 @@
</fo:inline>
</fo:block>
</xsl:template>
+ <xsl:template name="callout-bug">
+ <xsl:param name="conum" select='1'/>
+
+ <xsl:choose>
+ <!-- Draw callouts as images -->
+ <xsl:when test="$callout.graphics != '0'
+ and $conum <= $callout.graphics.number.limit">
+ <xsl:variable name="filename"
+ select="concat($callout.graphics.path, $conum,
+ $callout.graphics.extension)"/>
+
+ <fo:external-graphic content-width="{$callout.icon.size}"
+ width="{$callout.icon.size}" padding="0.0em"
margin="0.0em">
+ <xsl:attribute name="src">
+ <xsl:choose>
+ <xsl:when test="$passivetex.extensions != 0
+ or $fop.extensions != 0
+ or $arbortext.extensions != 0">
+ <xsl:value-of select="$filename"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:text>url(</xsl:text>
+ <xsl:value-of select="$filename"/>
+ <xsl:text>)</xsl:text>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:attribute>
+ </fo:external-graphic>
+ </xsl:when>
+
+ <xsl:when test="$callout.unicode != 0
+ and $conum <= $callout.unicode.number.limit">
+ <xsl:variable name="comarkup">
+ <xsl:choose>
+ <xsl:when test="$callout.unicode.start.character =
10102">
+ <xsl:choose>
+ <xsl:when test="$conum =
1">❶</xsl:when>
+ <xsl:when test="$conum =
2">❷</xsl:when>
+ <xsl:when test="$conum =
3">❸</xsl:when>
+ <xsl:when test="$conum =
4">❹</xsl:when>
+ <xsl:when test="$conum =
5">❺</xsl:when>
+ <xsl:when test="$conum =
6">❻</xsl:when>
+ <xsl:when test="$conum =
7">❼</xsl:when>
+ <xsl:when test="$conum =
8">❽</xsl:when>
+ <xsl:when test="$conum =
9">❾</xsl:when>
+ <xsl:when test="$conum =
10">❿</xsl:when>
+ </xsl:choose>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:message>
+ <xsl:text>Don't know how to generate Unicode callouts
</xsl:text>
+ <xsl:text>when $callout.unicode.start.character is
</xsl:text>
+ <xsl:value-of
select="$callout.unicode.start.character"/>
+ </xsl:message>
+ <fo:inline background-color="#404040"
+ force-page-count="no-force"
+ color="white"
+ padding-top="0.1em"
+ padding-bottom="0.1em"
+ padding-start="0.2em"
+ padding-end="0.2em"
+ baseline-shift="0.1em"
+ font-family="{$body.fontset}"
+ font-weight="bold"
+ font-size="75%">
+ <xsl:value-of select="$conum"/>
+ </fo:inline>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:variable>
+
+ <xsl:choose>
+ <xsl:when test="$callout.unicode.font != ''">
+ <fo:inline font-family="{$callout.unicode.font}">
+ <xsl:copy-of select="$comarkup"/>
+ </fo:inline>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:copy-of select="$comarkup"/>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:when>
+
+ <!-- Most safe: draw a dark gray square with a white number inside -->
+ <xsl:otherwise>
+ <fo:inline background-color="#404040"
+ force-page-count="no-force"
+ color="white"
+ padding-top="0.1em"
+ padding-bottom="0.1em"
+ padding-start="0.2em"
+ padding-end="0.2em"
+ baseline-shift="0.1em"
+ font-family="{$body.fontset}"
+ font-weight="bold"
+ font-size="75%">
+ <xsl:value-of select="$conum"/>
+ </fo:inline>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:template>
+
+ <!--avoid page sequence to generate blank pages after even page numbers -->
+
+ <xsl:template name="force.page.count">
+ <xsl:param name="element" select="local-name(.)"/>
+ <xsl:param name="master-reference" select="''"/>
+ <xsl:text>no-force</xsl:text>
+ </xsl:template>
</xsl:stylesheet>