fix highlighting in documentation for java/xml program listings

This commit is contained in:
Mark Pollack
2011-04-07 14:54:05 -04:00
parent 348924b865
commit dd684dd0e8
16 changed files with 919 additions and 1800 deletions

View File

@@ -127,7 +127,7 @@
<plugin> <plugin>
<groupId>com.agilejava.docbkx</groupId> <groupId>com.agilejava.docbkx</groupId>
<artifactId>docbkx-maven-plugin</artifactId> <artifactId>docbkx-maven-plugin</artifactId>
<version>2.0.7</version> <version>2.0.8</version>
<executions> <executions>
<execution> <execution>
<goals> <goals>

View File

@@ -113,7 +113,8 @@
<title>Registering a com.mongodb.Mongo object using Java based bean <title>Registering a com.mongodb.Mongo object using Java based bean
metadata</title> metadata</title>
<programlisting language="java">@Configuration <programlisting language="java"><![CDATA[
@Configuration
public class AppConfig { public class AppConfig {
/* /*
@@ -122,9 +123,8 @@ public class AppConfig {
public @Bean Mongo mongo() throws UnknownHostException, MongoException { public @Bean Mongo mongo() throws UnknownHostException, MongoException {
return new Mongo("localhost"); return new Mongo("localhost");
} }
} }
</programlisting> ]]></programlisting>
</example></para> </example></para>
<para>This approach allows you to use the standard <para>This approach allows you to use the standard

View File

@@ -5,7 +5,7 @@
.hl-keyword { .hl-keyword {
color: #7F0055; color: #7F0055;
font-weight: bold; font-weight: bold;
} }
.hl-comment { .hl-comment {

View File

@@ -1,383 +1,305 @@
@IMPORT url("highlight.css");
body { body {
text-align: justify; text-align: justify;
margin-right: 2em; margin-right: 2em;
margin-left: 2em; margin-left: 2em;
} }
a, a,
a[accesskey^ a[accesskey^="h"],
a[accesskey^="n"],
= a[accesskey^="u"],
"h" a[accesskey^="p"] {
] font-family: Verdana, Arial, helvetica, sans-serif;
, font-size: 12px;
a[accesskey^ color: #003399;
=
"n"
]
,
a[accesskey^
=
"u"
]
,
a[accesskey^
=
"p"
]
{
font-family: Verdana, Arial, helvetica, sans-serif
;
font-size: 12px
;
color: #003399
;
} }
a:active { a:active {
color: #003399; color: #003399;
} }
a:visited { a:visited {
color: #888888; color: #888888;
} }
p { p {
font-family: Verdana, Arial, sans-serif; font-family: Verdana, Arial, sans-serif;
} }
dt { dt {
font-family: Verdana, Arial, sans-serif; font-family: Verdana, Arial, sans-serif;
font-size: 12px; font-size: 12px;
} }
p, dl, dt, dd, blockquote { p, dl, dt, dd, blockquote {
color: #000000; color: #000000;
margin-bottom: 3px; margin-bottom: 3px;
margin-top: 3px; margin-top: 3px;
padding-top: 0px; padding-top: 0;
} }
ol, ul, p { ol, ul, p {
margin-top: 6px; margin-top: 6px;
margin-bottom: 6px; margin-bottom: 6px;
} }
p, blockquote { p, blockquote {
font-size: 90%; font-size: 90%;
} }
p.releaseinfo { p.releaseinfo {
font-size: 100%; font-size: 100%;
font-weight: bold; font-weight: bold;
font-family: Verdana, Arial, helvetica, sans-serif; font-family: Verdana, Arial, helvetica, sans-serif;
padding-top: 10px; padding-top: 10px;
} }
p.pubdate { p.pubdate {
font-size: 120%; font-size: 120%;
font-weight: bold; font-weight: bold;
font-family: Verdana, Arial, helvetica, sans-serif; font-family: Verdana, Arial, helvetica, sans-serif;
} }
td { td {
font-size: 80%; font-size: 80%;
} }
td, th, span { td, th, span {
color: #000000; color: #000000;
} }
td[width^ td[width^="40%"] {
font-family: Verdana, Arial, helvetica, sans-serif;
= font-size: 12px;
"40%" color: #003399;
]
{
font-family: Verdana, Arial, helvetica, sans-serif
;
font-size: 12px
;
color: #003399
;
} }
table[summary^ table[summary^="Navigation header"] tbody tr th[colspan^="3"] {
font-family: Verdana, Arial, helvetica, sans-serif;
=
"Navigation header"
]
tbody tr th[colspan^
=
"3"
]
{
font-family: Verdana, Arial, helvetica, sans-serif
;
} }
blockquote { blockquote {
margin-right: 0px; margin-right: 0;
} }
h1, h2, h3, h4, h6, H6 { h1, h2, h3, h4, h6 {
color: #000000; color: #000000;
font-weight: 500; font-weight: 500;
margin-top: 0px; margin-top: 0;
padding-top: 14px; padding-top: 14px;
font-family: Verdana, Arial, helvetica, sans-serif; font-family: Verdana, Arial, helvetica, sans-serif;
margin-bottom: 0px; margin-bottom: 0;
} }
h2.title { h2.title {
font-weight: 800; font-weight: 800;
margin-bottom: 8px; margin-bottom: 8px;
} }
h2.subtitle { h2.subtitle {
font-weight: 800; font-weight: 800;
margin-bottom: 20px; margin-bottom: 20px;
} }
.firstname, .surname { .firstname, .surname {
font-size: 12px; font-size: 12px;
font-family: Verdana, Arial, helvetica, sans-serif; font-family: Verdana, Arial, helvetica, sans-serif;
} }
table { table {
border-collapse: collapse; border-collapse: collapse;
border-spacing: 0; border-spacing: 0;
border: 1px black; border: 1px black;
empty-cells: hide; empty-cells: hide;
margin: 10px 0px 30px 50px; margin: 10px 0 30px 50px;
width: 90%; width: 90%;
} }
div.table { div.table {
margin: 30px 0px 30px 0px; margin: 30px 0 10px 0;
border: 1px dashed gray; border: 1px dashed gray;
padding: 10px; padding: 10px;
} }
div .table-contents table { div .table-contents table {
border: 1px solid black; border: 1px solid black;
} }
div.table > p.title { div.table > p.title {
padding-left: 10px; padding-left: 10px;
} }
table[summary^ table[summary^="Navigation footer"] {
border-collapse: collapse;
= border-spacing: 0;
"Navigation footer" border: 1px black;
] empty-cells: hide;
{ margin: 0px;
border-collapse: collapse width: 100%;
;
border-spacing: 0
;
border: 1px black
;
empty-cells: hide
;
margin: 0px
;
width: 100%
;
} }
table[summary^ table[summary^="Note"],
table[summary^="Warning"],
= table[summary^="Tip"] {
"Note" border-collapse: collapse;
] border-spacing: 0;
, border: 1px black;
table[summary^ empty-cells: hide;
margin: 10px 0px 10px -20px;
= width: 100%;
"Warning"
]
,
table[summary^
=
"Tip"
]
{
border-collapse: collapse
;
border-spacing: 0
;
border: 1px black
;
empty-cells: hide
;
margin: 10px 0px 10px -20px
;
width: 100%
;
} }
td { td {
padding: 4pt; padding: 4pt;
font-family: Verdana, Arial, helvetica, sans-serif; font-family: Verdana, Arial, helvetica, sans-serif;
} }
div.warning TD { div.warning TD {
text-align: justify; text-align: justify;
} }
h1 { h1 {
font-size: 150%; font-size: 150%;
} }
h2 { h2 {
font-size: 110%; font-size: 110%;
} }
h3 { h3 {
font-size: 100%; font-size: 100%; font-weight: bold;
font-weight: bold;
} }
h4 { h4 {
font-size: 90%; font-size: 90%; font-weight: bold;
font-weight: bold;
} }
h5 { h5 {
font-size: 90%; font-size: 90%; font-style: italic;
font-style: italic;
} }
h6 { h6 {
font-size: 100%; font-size: 100%; font-style: italic;
font-style: italic;
} }
tt { tt {
font-size: 110%; font-size: 110%;
font-family: "Courier New", Courier, monospace; font-family: "Courier New", Courier, monospace;
color: #000000; color: #000000;
} }
.navheader, .navfooter { .navheader, .navfooter {
border: none; border: none;
} }
div.navfooter table { div.navfooter table {
border: dashed gray; border-style: dashed;
border-width: 1px 1px 1px 1px; border-color: gray;
background-color: #cde48d; border-width: 1px 1px 1px 1px;
background-color: #cde48d;
} }
pre { pre {
font-size: 110%; font-size: 110%;
padding: 5px; padding: 5px;
border-style: solid; border-style: solid;
border-width: 1px; border-width: 1px;
border-color: #CCCCCC; border-color: #CCCCCC;
background-color: #f3f5e9; background-color: #f3f5e9;
} }
ul, ol, li { ul, ol, li {
list-style: disc; list-style: disc;
} }
hr { hr {
width: 100%; width: 100%;
height: 1px; height: 1px;
background-color: #CCCCCC; background-color: #CCCCCC;
border-width: 0px; border-width: 0;
padding: 0px; padding: 0;
} }
.variablelist { .variablelist {
padding-top: 10px; padding-top: 10px;
padding-bottom: 10px; padding-bottom: 10px;
margin: 0; margin: 0;
} }
.term { .term {
font-weight: bold; font-weight:bold;
} }
.mediaobject { .mediaobject {
padding-top: 30px; padding-top: 30px;
padding-bottom: 30px; padding-bottom: 30px;
} }
.legalnotice { .legalnotice {
font-family: Verdana, Arial, helvetica, sans-serif; font-family: Verdana, Arial, helvetica, sans-serif;
font-size: 12px; font-size: 12px;
font-style: italic; font-style: italic;
} }
.sidebar { .sidebar {
float: right; float: right;
margin: 10px 0px 10px 30px; margin: 10px 0 10px 30px;
padding: 10px 20px 20px 20px; padding: 10px 20px 20px 20px;
width: 33%; width: 33%;
border: 1px solid black; border: 1px solid black;
background-color: #F4F4F4; background-color: #F4F4F4;
font-size: 14px; font-size: 14px;
} }
.property { .property {
font-family: "Courier New", Courier, monospace; font-family: "Courier New", Courier, monospace;
} }
a code { a code {
font-family: Verdana, Arial, monospace; font-family: Verdana, Arial, monospace;
font-size: 12px; font-size: 12px;
} }
td code { td code {
font-size: 110%; font-size: 110%;
} }
div.note * td, div.note * td,
div.tip * td, div.tip * td,
div.warning * td, div.warning * td,
div.calloutlist * td { div.calloutlist * td {
text-align: justify; text-align: justify;
font-size: 100%; font-size: 100%;
}
.programlisting {
clear: both;
} }
.programlisting .interfacename, .programlisting .interfacename,
.programlisting .literal, .programlisting .literal,
.programlisting .classname { .programlisting .classname {
font-size: 95%; font-size: 95%;
} }
.title .interfacename, .title .interfacename,
.title .literal, .title .literal,
.title .classname { .title .classname {
font-size: 130%; font-size: 130%;
} }
/* everything in a <lineannotation/> is displayed in a coloured, comment-like font */ /* everything in a <lineannotation/> is displayed in a coloured, comment-like font */
.programlisting * .lineannotation, .programlisting * .lineannotation,
.programlisting * .lineannotation * { .programlisting * .lineannotation * {
color: green; color: green;
} }
.question * p {
font-size: 100%;
}
.answer * p {
font-size: 100%;
}

View File

@@ -1,99 +0,0 @@
@IMPORT url("highlight.css");
html {
padding: 0pt;
margin: 0pt;
}
body {
margin-left: 10%;
margin-right: 10%;
font-family: Arial, Sans-serif;
}
div {
margin: 0pt;
}
p {
text-align: justify;
}
hr {
border: 1px solid gray;
background: gray;
}
h1, h2, h3, h4 {
color: #234623;
font-family: Arial, Sans-serif;
}
pre {
line-height: 1.0;
color: black;
}
pre.programlisting {
font-size: 10pt;
padding: 7pt 3pt;
border: 1pt solid black;
background: #eeeeee;
clear: both;
}
div.table {
margin: 1em;
padding: 0.5em;
text-align: center;
}
div.table table {
display: table;
width: 100%;
}
div.table td {
padding-left: 7px;
padding-right: 7px;
}
.sidebar {
float: right;
margin: 10px 0 10px 30px;
padding: 10px 20px 20px 20px;
width: 33%;
border: 1px solid black;
background-color: #F4F4F4;
font-size: 14px;
}
.mediaobject {
padding-top: 30px;
padding-bottom: 30px;
}
.legalnotice {
font-family: Verdana, Arial, helvetica, sans-serif;
font-size: 12px;
font-style: italic;
}
p.releaseinfo {
font-size: 100%;
font-weight: bold;
font-family: Verdana, Arial, helvetica, sans-serif;
padding-top: 10px;
}
p.pubdate {
font-size: 120%;
font-weight: bold;
font-family: Verdana, Arial, helvetica, sans-serif;
}
span.productname {
font-size: 200%;
font-weight: bold;
font-family: Verdana, Arial, helvetica, sans-serif;
}

View File

@@ -1 +0,0 @@
/*.db

Binary file not shown.

Before

Width:  |  Height:  |  Size: 28 KiB

View File

@@ -1,418 +1,449 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<!-- <!--
This is the XSL FO (PDF) stylesheet for the Spring reference This is the XSL FO (PDF) stylesheet for the Spring Data reference
documentation. documentation.
Thanks are due to Christian Bauer of the Hibernate project
team for writing the original stylesheet upon which this one
is based.
--> -->
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:fo="http://www.w3.org/1999/XSL/Format"
version="1.0"> version="1.0">
<xsl:import href="urn:docbkx:stylesheet"/> <xsl:import href="urn:docbkx:stylesheet"/>
<xsl:import href="highlight-fo.xsl"/>
<!--################################################### <!--###################################################
Custom Title Page Custom Title Page
################################################### --> ################################################### -->
<xsl:template name="book.titlepage.recto"> <xsl:template name="book.titlepage.recto">
<fo:block> <fo:block>
<fo:table table-layout="fixed" width="175mm"> <fo:table table-layout="fixed" width="175mm">
<fo:table-column column-width="175mm"/> <fo:table-column column-width="175mm"/>
<fo:table-body> <fo:table-body>
<fo:table-row> <fo:table-row>
<fo:table-cell text-align="center"> <fo:table-cell text-align="center">
<fo:block> <!-- Logo
<fo:block font-family="Helvetica" font-size="24pt" padding-before="10mm"> <fo:block>
<xsl:value-of select="bookinfo/title"/> <fo:external-graphic src="file:src/docbkx/resources/images/s2_box_logo.png"/>
</fo:block> </fo:block>
</fo:block> -->
<fo:block font-family="Helvetica" font-size="22pt" padding-before="10mm"> <fo:block font-family="Helvetica" font-size="22pt" padding-before="10mm">
<xsl:value-of select="bookinfo/subtitle"/> <xsl:value-of select="bookinfo/subtitle"/>
</fo:block> </fo:block>
<fo:block font-family="Helvetica" font-size="12pt" padding="10mm"> <fo:block font-family="Helvetica" font-size="14pt" padding="10mm">
<xsl:value-of select="bookinfo/releaseinfo"/> <xsl:value-of select="bookinfo/title"/>
</fo:block> </fo:block>
</fo:table-cell> <fo:block font-family="Helvetica" font-size="12pt" padding="10mm">
</fo:table-row> <xsl:value-of select="bookinfo/releaseinfo"/>
<fo:table-row> </fo:block>
<fo:table-cell text-align="center"> </fo:table-cell>
<fo:block font-family="Helvetica" font-size="14pt" padding="10mm"> </fo:table-row>
<xsl:value-of select="bookinfo/pubdate"/> <fo:table-row>
</fo:block> <fo:table-cell text-align="center">
</fo:table-cell> <fo:block font-family="Helvetica" font-size="14pt" padding="10mm">
</fo:table-row> <xsl:value-of select="bookinfo/pubdate"/>
<fo:table-row> </fo:block>
<fo:table-cell text-align="center"> </fo:table-cell>
<fo:block font-family="Helvetica" font-size="12pt" padding="10mm"> </fo:table-row>
<xsl:text>Copyright &#xA9; 2010 </xsl:text> <fo:table-row>
<xsl:for-each select="bookinfo/authorgroup/author"> <fo:table-cell text-align="center">
<xsl:if test="position() > 1"> <fo:block font-family="Helvetica" font-size="12pt" padding="10mm">
<xsl:text>, </xsl:text> <xsl:for-each select="bookinfo/authorgroup/author">
</xsl:if> <xsl:if test="position() > 1">
<xsl:value-of select="firstname"/> <xsl:text>, </xsl:text>
<xsl:text> </xsl:text> </xsl:if>
<xsl:value-of select="surname"/> <xsl:value-of select="firstname"/>
</xsl:for-each> <xsl:text> </xsl:text>
</fo:block> <xsl:value-of select="surname"/>
<fo:block font-family="Helvetica" font-size="10pt" padding="1mm"> <xsl:text> (</xsl:text>
<xsl:value-of select="bookinfo/legalnotice"/> <xsl:value-of select="affiliation"/>
</fo:block> <xsl:text>)</xsl:text>
</fo:table-cell> </xsl:for-each>
</fo:table-row> </fo:block>
</fo:table-body> <fo:block font-family="Helvetica" font-size="12pt" padding="10mm">
</fo:table> <xsl:text>Copyright &#xA9; 2006-2009</xsl:text>
</fo:block> </fo:block>
</xsl:template>
<!-- Prevent blank pages in output --> <fo:block font-family="Helvetica" font-size="10pt" padding="1mm">
<xsl:template name="book.titlepage.before.verso"> <xsl:value-of select="bookinfo/legalnotice"/>
</xsl:template> </fo:block>
<xsl:template name="book.titlepage.verso"> </fo:table-cell>
</xsl:template> </fo:table-row>
<xsl:template name="book.titlepage.separator"> </fo:table-body>
</xsl:template> </fo:table>
</fo:block>
</xsl:template>
<!--################################################### <!-- Prevent blank pages in output -->
Header <xsl:template name="book.titlepage.before.verso">
################################################### --> </xsl:template>
<xsl:template name="book.titlepage.verso">
</xsl:template>
<xsl:template name="book.titlepage.separator">
</xsl:template>
<!-- More space in the center header for long text --> <!--###################################################
<xsl:attribute-set name="header.content.properties"> Header
<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>
<!--################################################### <!-- More space in the center header for long text -->
Custom Footer <xsl:attribute-set name="header.content.properties">
################################################### --> <xsl:attribute name="font-family">
<xsl:template name="footer.content"> <xsl:value-of select="$body.font.family"/>
<xsl:param name="pageclass" select="''"/> </xsl:attribute>
<xsl:param name="sequence" select="''"/> <xsl:attribute name="margin-left">-5em</xsl:attribute>
<xsl:param name="position" select="''"/> <xsl:attribute name="margin-right">-5em</xsl:attribute>
<xsl:param name="gentext-key" select="''"/> </xsl:attribute-set>
<xsl:variable name="Version">
<xsl:if test="//releaseinfo"> <!--###################################################
<xsl:text>Spring Datastore Document (</xsl:text> Custom Footer
<xsl:value-of select="//releaseinfo"/> ################################################### -->
<xsl:text>)</xsl:text> <xsl:template name="footer.content">
</xsl:if> <xsl:param name="pageclass" select="''"/>
</xsl:variable> <xsl:param name="sequence" select="''"/>
<xsl:choose> <xsl:param name="position" select="''"/>
<xsl:when test="$sequence='blank'"> <xsl:param name="gentext-key" select="''"/>
<xsl:if test="$position = 'center'"> <xsl:variable name="Version">
<xsl:value-of select="$Version"/> <xsl:if test="//releaseinfo">
</xsl:if> <xsl:text>Spring Data Redis (</xsl:text><xsl:value-of select="//releaseinfo" /><xsl:text>)</xsl:text>
</xsl:when> </xsl:if>
<!-- for double sided printing, print page numbers on alternating sides (of the page) --> </xsl:variable>
<xsl:when test="$double.sided != 0">
<xsl:choose> <xsl:choose>
<xsl:when test="$sequence = 'even' and $position='left'"> <xsl:when test="$sequence='blank'">
<fo:page-number/> <xsl:if test="$position = 'center'">
</xsl:when> <xsl:value-of select="$Version"/>
<xsl:when test="$sequence = 'odd' and $position='right'"> </xsl:if>
<fo:page-number/> </xsl:when>
</xsl:when> <!-- for double sided printing, print page numbers on alternating sides (of the page) -->
<xsl:when test="$position='center'"> <xsl:when test="$double.sided != 0">
<xsl:value-of select="$Version"/> <xsl:choose>
</xsl:when> <xsl:when test="$sequence = 'even' and $position='left'">
<fo:page-number/>
</xsl:when>
<xsl:when test="$sequence = 'odd' and $position='right'">
<fo:page-number/>
</xsl:when>
<xsl:when test="$position='center'">
<xsl:value-of select="$Version"/>
</xsl:when>
</xsl:choose>
</xsl:when>
<!-- for single sided printing, print all page numbers on the right (of the page) -->
<xsl:when test="$double.sided = 0">
<xsl:choose>
<xsl:when test="$position='center'">
<xsl:value-of select="$Version"/>
</xsl:when>
<xsl:when test="$position='right'">
<fo:page-number/>
</xsl:when>
</xsl:choose>
</xsl:when>
</xsl:choose> </xsl:choose>
</xsl:when> </xsl:template>
<!-- for single sided printing, print all page numbers on the right (of the page) -->
<xsl:when test="$double.sided = 0">
<xsl:choose>
<xsl:when test="$position='center'">
<xsl:value-of select="$Version"/>
</xsl:when>
<xsl:when test="$position='right'">
<fo:page-number/>
</xsl:when>
</xsl:choose>
</xsl:when>
</xsl:choose>
</xsl:template>
<!--################################################### <!--###################################################
Extensions Extensions
################################################### --> ################################################### -->
<!-- These extensions are required for table printing and other stuff --> <!-- 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="tablecolumns.extension">0</xsl:param> <!-- FOP provide only PDF Bookmarks at the moment -->
<xsl:param name="callout.extensions">1</xsl:param> <xsl:param name="fop.extensions">1</xsl:param>
<!-- FOP provide only PDF Bookmarks at the moment --> <xsl:param name="fop1.extensions">1</xsl:param>
<xsl:param name="fop.extensions">1</xsl:param> <xsl:param name="ignore.image.scaling">0</xsl:param>
<!--################################################### <!--###################################################
Table Of Contents Table Of Contents
################################################### --> ################################################### -->
<!-- Generate the TOCs for named components only --> <!-- Generate the TOCs for named components only -->
<xsl:param name="generate.toc"> <xsl:param name="generate.toc">
book toc book toc
</xsl:param> </xsl:param>
<!-- Show only Sections up to level 3 in the TOCs --> <!-- Show only Sections up to level 3 in the TOCs -->
<xsl:param name="toc.section.depth">2</xsl:param> <xsl:param name="toc.section.depth">2</xsl:param>
<!-- Dot and Whitespace as separator in TOC between Label and Title--> <!-- Dot and Whitespace as separator in TOC between Label and Title-->
<xsl:param name="autotoc.label.separator" select="'. '"/> <xsl:param name="autotoc.label.separator" select="'. '"/>
<!--################################################### <!--###################################################
Paper & Page Size Paper & Page Size
################################################### --> ################################################### -->
<!-- Paper type, no headers on blank pages, no double sided printing --> <!-- Paper type, no headers on blank pages, no double sided printing -->
<xsl:param name="paper.type" select="'A4'"/> <xsl:param name="paper.type" select="'A4'"/>
<xsl:param name="double.sided">0</xsl:param> <xsl:param name="double.sided">0</xsl:param>
<xsl:param name="headers.on.blank.pages">0</xsl:param> <xsl:param name="headers.on.blank.pages">0</xsl:param>
<xsl:param name="footers.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) --> <!-- Space between paper border and content (chaotic stuff, don't touch) -->
<xsl:param name="page.margin.top">5mm</xsl:param> <xsl:param name="page.margin.top">5mm</xsl:param>
<xsl:param name="region.before.extent">10mm</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.top">10mm</xsl:param>
<xsl:param name="body.margin.bottom">15mm</xsl:param> <xsl:param name="body.margin.bottom">15mm</xsl:param>
<xsl:param name="region.after.extent">10mm</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.bottom">0mm</xsl:param>
<xsl:param name="page.margin.outer">18mm</xsl:param> <xsl:param name="page.margin.outer">18mm</xsl:param>
<xsl:param name="page.margin.inner">18mm</xsl:param> <xsl:param name="page.margin.inner">18mm</xsl:param>
<!-- No intendation of Titles --> <!-- No intendation of Titles -->
<xsl:param name="title.margin.left">0pc</xsl:param> <xsl:param name="title.margin.left">0pc</xsl:param>
<!--################################################### <!--###################################################
Fonts & Styles Fonts & Styles
################################################### --> ################################################### -->
<!-- Left aligned text and no hyphenation --> <!-- Left aligned text and no hyphenation -->
<xsl:param name="alignment">justify</xsl:param> <xsl:param name="alignment">justify</xsl:param>
<xsl:param name="hyphenate">false</xsl:param> <xsl:param name="hyphenate">false</xsl:param>
<!-- Default Font size --> <!-- Default Font size -->
<xsl:param name="body.font.master">11</xsl:param> <xsl:param name="body.font.master">11</xsl:param>
<xsl:param name="body.font.small">8</xsl:param> <xsl:param name="body.font.small">8</xsl:param>
<!-- Line height in body text --> <!-- Line height in body text -->
<xsl:param name="line-height">1.4</xsl:param> <xsl:param name="line-height">1.4</xsl:param>
<!-- Monospaced fonts are smaller than regular text --> <!-- Monospaced fonts are smaller than regular text -->
<xsl:attribute-set name="monospace.properties"> <xsl:attribute-set name="monospace.properties">
<xsl:attribute name="font-family"> <xsl:attribute name="font-family">
<xsl:value-of select="$monospace.font.family"/> <xsl:value-of select="$monospace.font.family"/>
</xsl:attribute> </xsl:attribute>
<xsl:attribute name="font-size">0.8em</xsl:attribute> <xsl:attribute name="font-size">0.8em</xsl:attribute>
</xsl:attribute-set> </xsl:attribute-set>
<!--################################################### <!--###################################################
Tables Tables
################################################### --> ################################################### -->
<!-- The table width should be adapted to the paper size --> <!-- The table width should be adapted to the paper size -->
<xsl:param name="default.table.width">17.4cm</xsl:param> <xsl:param name="default.table.width">17.4cm</xsl:param>
<!-- Some padding inside tables --> <!-- Some padding inside tables -->
<xsl:attribute-set name="table.cell.padding"> <xsl:attribute-set name="table.cell.padding">
<xsl:attribute name="padding-left">4pt</xsl:attribute> <xsl:attribute name="padding-left">4pt</xsl:attribute>
<xsl:attribute name="padding-right">4pt</xsl:attribute> <xsl:attribute name="padding-right">4pt</xsl:attribute>
<xsl:attribute name="padding-top">4pt</xsl:attribute> <xsl:attribute name="padding-top">4pt</xsl:attribute>
<xsl:attribute name="padding-bottom">4pt</xsl:attribute> <xsl:attribute name="padding-bottom">4pt</xsl:attribute>
</xsl:attribute-set> </xsl:attribute-set>
<!-- Only hairlines as frame and cell borders in tables --> <!-- Only hairlines as frame and cell borders in tables -->
<xsl:param name="table.frame.border.thickness">0.1pt</xsl:param> <xsl:param name="table.frame.border.thickness">0.1pt</xsl:param>
<xsl:param name="table.cell.border.thickness">0.1pt</xsl:param> <xsl:param name="table.cell.border.thickness">0.1pt</xsl:param>
<!--################################################### <!--###################################################
Labels Labels
################################################### --> ################################################### -->
<!-- Label Chapters and Sections (numbering) --> <!-- Label Chapters and Sections (numbering) -->
<xsl:param name="chapter.autolabel">1</xsl:param> <xsl:param name="chapter.autolabel">1</xsl:param>
<xsl:param name="section.autolabel" select="1"/> <xsl:param name="section.autolabel" select="1"/>
<xsl:param name="section.label.includes.component.label" select="1"/> <xsl:param name="section.label.includes.component.label" select="1"/>
<!--################################################### <!--###################################################
Titles Titles
################################################### --> ################################################### -->
<!-- Chapter title size --> <!-- Chapter title size -->
<xsl:attribute-set name="chapter.titlepage.recto.style"> <xsl:attribute-set name="chapter.titlepage.recto.style">
<xsl:attribute name="text-align">left</xsl:attribute> <xsl:attribute name="text-align">left</xsl:attribute>
<xsl:attribute name="font-weight">bold</xsl:attribute> <xsl:attribute name="font-weight">bold</xsl:attribute>
<xsl:attribute name="font-size"> <xsl:attribute name="font-size">
<xsl:value-of select="$body.font.master * 1.8"/> <xsl:value-of select="$body.font.master * 1.8"/>
<xsl:text>pt</xsl:text> <xsl:text>pt</xsl:text>
</xsl:attribute> </xsl:attribute>
</xsl:attribute-set> </xsl:attribute-set>
<!-- Why is the font-size for chapters hardcoded in the XSL FO templates? <!-- Why is the font-size for chapters hardcoded in the XSL FO templates?
Let's remove it, so this sucker can use our attribute-set only... --> Let's remove it, so this sucker can use our attribute-set only... -->
<xsl:template match="title" mode="chapter.titlepage.recto.auto.mode"> <xsl:template match="title" mode="chapter.titlepage.recto.auto.mode">
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format"
xsl:use-attribute-sets="chapter.titlepage.recto.style"> xsl:use-attribute-sets="chapter.titlepage.recto.style">
<xsl:call-template name="component.title"> <xsl:call-template name="component.title">
<xsl:with-param name="node" select="ancestor-or-self::chapter[1]"/> <xsl:with-param name="node" select="ancestor-or-self::chapter[1]"/>
</xsl:call-template> </xsl:call-template>
</fo:block> </fo:block>
</xsl:template> </xsl:template>
<!-- Sections 1, 2 and 3 titles have a small bump factor and padding --> <!-- Sections 1, 2 and 3 titles have a small bump factor and padding -->
<xsl:attribute-set name="section.title.level1.properties"> <xsl:attribute-set name="section.title.level1.properties">
<xsl:attribute name="space-before.optimum">0.8em</xsl:attribute> <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.minimum">0.8em</xsl:attribute>
<xsl:attribute name="space-before.maximum">0.8em</xsl:attribute> <xsl:attribute name="space-before.maximum">0.8em</xsl:attribute>
<xsl:attribute name="font-size"> <xsl:attribute name="font-size">
<xsl:value-of select="$body.font.master * 1.5"/> <xsl:value-of select="$body.font.master * 1.5"/>
<xsl:text>pt</xsl:text> <xsl:text>pt</xsl:text>
</xsl:attribute> </xsl:attribute>
<xsl:attribute name="space-after.optimum">0.1em</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.minimum">0.1em</xsl:attribute>
<xsl:attribute name="space-after.maximum">0.1em</xsl:attribute> <xsl:attribute name="space-after.maximum">0.1em</xsl:attribute>
</xsl:attribute-set> </xsl:attribute-set>
<xsl:attribute-set name="section.title.level2.properties"> <xsl:attribute-set name="section.title.level2.properties">
<xsl:attribute name="space-before.optimum">0.6em</xsl:attribute> <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.minimum">0.6em</xsl:attribute>
<xsl:attribute name="space-before.maximum">0.6em</xsl:attribute> <xsl:attribute name="space-before.maximum">0.6em</xsl:attribute>
<xsl:attribute name="font-size"> <xsl:attribute name="font-size">
<xsl:value-of select="$body.font.master * 1.25"/> <xsl:value-of select="$body.font.master * 1.25"/>
<xsl:text>pt</xsl:text> <xsl:text>pt</xsl:text>
</xsl:attribute> </xsl:attribute>
<xsl:attribute name="space-after.optimum">0.1em</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.minimum">0.1em</xsl:attribute>
<xsl:attribute name="space-after.maximum">0.1em</xsl:attribute> <xsl:attribute name="space-after.maximum">0.1em</xsl:attribute>
</xsl:attribute-set> </xsl:attribute-set>
<xsl:attribute-set name="section.title.level3.properties"> <xsl:attribute-set name="section.title.level3.properties">
<xsl:attribute name="space-before.optimum">0.4em</xsl:attribute> <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.minimum">0.4em</xsl:attribute>
<xsl:attribute name="space-before.maximum">0.4em</xsl:attribute> <xsl:attribute name="space-before.maximum">0.4em</xsl:attribute>
<xsl:attribute name="font-size"> <xsl:attribute name="font-size">
<xsl:value-of select="$body.font.master * 1.0"/> <xsl:value-of select="$body.font.master * 1.0"/>
<xsl:text>pt</xsl:text> <xsl:text>pt</xsl:text>
</xsl:attribute> </xsl:attribute>
<xsl:attribute name="space-after.optimum">0.1em</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.minimum">0.1em</xsl:attribute>
<xsl:attribute name="space-after.maximum">0.1em</xsl:attribute> <xsl:attribute name="space-after.maximum">0.1em</xsl:attribute>
</xsl:attribute-set> </xsl:attribute-set>
<!-- Titles of formal objects (tables, examples, ...) --> <!-- Titles of formal objects (tables, examples, ...) -->
<xsl:attribute-set name="formal.title.properties" use-attribute-sets="normal.para.spacing"> <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-weight">bold</xsl:attribute>
<xsl:attribute name="font-size"> <xsl:attribute name="font-size">
<xsl:value-of select="$body.font.master"/> <xsl:value-of select="$body.font.master"/>
<xsl:text>pt</xsl:text> <xsl:text>pt</xsl:text>
</xsl:attribute> </xsl:attribute>
<xsl:attribute name="hyphenate">false</xsl:attribute> <xsl:attribute name="hyphenate">false</xsl:attribute>
<xsl:attribute name="space-after.minimum">0.4em</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.optimum">0.6em</xsl:attribute>
<xsl:attribute name="space-after.maximum">0.8em</xsl:attribute> <xsl:attribute name="space-after.maximum">0.8em</xsl:attribute>
</xsl:attribute-set> </xsl:attribute-set>
<!--################################################### <!--###################################################
Programlistings Programlistings
################################################### --> ################################################### -->
<!-- Verbatim text formatting (programlistings) --> <!-- Verbatim text formatting (programlistings) -->
<xsl:attribute-set name="monospace.verbatim.properties"> <xsl:attribute-set name="monospace.verbatim.properties">
<xsl:attribute name="font-size"> <xsl:attribute name="font-size">
<xsl:value-of select="$body.font.small * 1.0"/> <xsl:value-of select="$body.font.small * 1.0"/>
<xsl:text>pt</xsl:text> <xsl:text>pt</xsl:text>
</xsl:attribute> </xsl:attribute>
</xsl:attribute-set> </xsl:attribute-set>
<xsl:attribute-set name="verbatim.properties"> <xsl:attribute-set name="verbatim.properties">
<xsl:attribute name="space-before.minimum">1em</xsl:attribute> <xsl:attribute name="space-before.minimum">1em</xsl:attribute>
<xsl:attribute name="space-before.optimum">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-before.maximum">1em</xsl:attribute>
<xsl:attribute name="border-color">#444444</xsl:attribute> <xsl:attribute name="border-color">#444444</xsl:attribute>
<xsl:attribute name="border-style">solid</xsl:attribute> <xsl:attribute name="border-style">solid</xsl:attribute>
<xsl:attribute name="border-width">0.1pt</xsl:attribute> <xsl:attribute name="border-width">0.1pt</xsl:attribute>
<xsl:attribute name="padding-top">0.5em</xsl:attribute> <xsl:attribute name="padding-top">0.5em</xsl:attribute>
<xsl:attribute name="padding-left">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-right">0.5em</xsl:attribute>
<xsl:attribute name="padding-bottom">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-left">0.5em</xsl:attribute>
<xsl:attribute name="margin-right">0.5em</xsl:attribute> <xsl:attribute name="margin-right">0.5em</xsl:attribute>
</xsl:attribute-set> </xsl:attribute-set>
<!-- Shade (background) programlistings --> <!-- Shade (background) programlistings -->
<xsl:param name="shade.verbatim">1</xsl:param> <xsl:param name="shade.verbatim">1</xsl:param>
<xsl:attribute-set name="shade.verbatim.style"> <xsl:attribute-set name="shade.verbatim.style">
<xsl:attribute name="background-color">#F0F0F0</xsl:attribute> <xsl:attribute name="background-color">#F0F0F0</xsl:attribute>
</xsl:attribute-set> </xsl:attribute-set>
<!--################################################### <!--###################################################
Callouts Callouts
################################################### --> ################################################### -->
<!-- Use images for callouts instead of (1) (2) (3) --> <!-- Use images for callouts instead of (1) (2) (3) -->
<xsl:param name="callout.graphics">0</xsl:param> <xsl:param name="callout.graphics">0</xsl:param>
<xsl:param name="callout.unicode">1</xsl:param> <xsl:param name="callout.unicode">1</xsl:param>
<!-- Place callout marks at this column in annotated areas --> <!-- Place callout marks at this column in annotated areas -->
<xsl:param name="callout.defaultcolumn">90</xsl:param> <xsl:param name="callout.defaultcolumn">90</xsl:param>
<!--################################################### <!--###################################################
Admonitions Admonitions
################################################### --> ################################################### -->
<!-- Use nice graphics for admonitions --> <!-- Use nice graphics for admonitions -->
<xsl:param name="admon.graphics">'1'</xsl:param> <xsl:param name="admon.graphics">'1'</xsl:param>
<!-- <xsl:param name="admon.graphics.path">&admon_gfx_path;</xsl:param> --> <xsl:param name="admon.graphics.path">src/docbkx/resources/images/admons/</xsl:param>
<!--################################################### <!--###################################################
Misc Misc
################################################### --> ################################################### -->
<!-- Placement of titles --> <!-- Placement of titles -->
<xsl:param name="formal.title.placement"> <xsl:param name="formal.title.placement">
figure after figure after
example before example before
equation before equation before
table before table before
procedure before procedure before
</xsl:param> </xsl:param>
<!-- Format Variable Lists as Blocks (prevents horizontal overflow) --> <!-- Format Variable Lists as Blocks (prevents horizontal overflow) -->
<xsl:param name="variablelist.as.blocks">1</xsl:param> <xsl:param name="variablelist.as.blocks">1</xsl:param>
<!-- The horrible list spacing problems --> <!-- The horrible list spacing problems -->
<xsl:attribute-set name="list.block.spacing"> <xsl:attribute-set name="list.block.spacing">
<xsl:attribute name="space-before.optimum">0.8em</xsl:attribute> <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.minimum">0.8em</xsl:attribute>
<xsl:attribute name="space-before.maximum">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.optimum">0.1em</xsl:attribute>
<xsl:attribute name="space-after.minimum">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 name="space-after.maximum">0.1em</xsl:attribute>
</xsl:attribute-set> </xsl:attribute-set>
<!--################################################### <!--###################################################
colored and hyphenated links colored and hyphenated links
################################################### --> ################################################### -->
<xsl:template match="ulink"> <xsl:template match="ulink">
<fo:basic-link external-destination="{@url}" <fo:basic-link external-destination="{@url}"
xsl:use-attribute-sets="xref.properties" xsl:use-attribute-sets="xref.properties"
text-decoration="underline" text-decoration="underline"
color="blue"> color="blue">
<xsl:choose> <xsl:choose>
<xsl:when test="count(child::node())=0"> <xsl:when test="count(child::node())=0">
<xsl:value-of select="@url"/> <xsl:value-of select="@url"/>
</xsl:when> </xsl:when>
<xsl:otherwise> <xsl:otherwise>
<xsl:apply-templates/> <xsl:apply-templates/>
</xsl:otherwise> </xsl:otherwise>
</xsl:choose> </xsl:choose>
</fo:basic-link> </fo:basic-link>
</xsl:template> </xsl:template>
<xsl:template match="link">
<fo:basic-link internal-destination="{@linkend}"
xsl:use-attribute-sets="xref.properties"
text-decoration="underline"
color="blue">
<xsl:choose>
<xsl:when test="count(child::node())=0">
<xsl:value-of select="@linkend"/>
</xsl:when>
<xsl:otherwise>
<xsl:apply-templates/>
</xsl:otherwise>
</xsl:choose>
</fo:basic-link>
</xsl:template>
<!--
<xsl:template match="xref">
<fo:basic-link internal-destination="{@linkend}"
xsl:use-attribute-sets="xref.properties"
text-decoration="underline"
color="blue">
<xsl:apply-templates/>
</fo:basic-link>
</xsl:template>
-->
</xsl:stylesheet> </xsl:stylesheet>

View File

@@ -0,0 +1,44 @@
<?xml version='1.0'?>
<!--
Simple highlighter for FO/PDF output. Follows the Eclipse color scheme.
-->
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:fo="http://www.w3.org/1999/XSL/Format"
xmlns:xslthl="http://xslthl.sf.net"
exclude-result-prefixes="xslthl"
version='1.0'>
<xsl:template match='xslthl:keyword'>
<fo:inline font-weight="bold" color="#7F0055"><xsl:apply-templates/></fo:inline>
</xsl:template>
<xsl:template match='xslthl:comment'>
<fo:inline font-style="italic" color="#3F5F5F"><xsl:apply-templates/></fo:inline>
</xsl:template>
<xsl:template match='xslthl:oneline-comment'>
<fo:inline font-style="italic" color="#3F5F5F"><xsl:apply-templates/></fo:inline>
</xsl:template>
<xsl:template match='xslthl:multiline-comment'>
<fo:inline font-style="italic" color="#3F5FBF"><xsl:apply-templates/></fo:inline>
</xsl:template>
<xsl:template match='xslthl:tag'>
<fo:inline color="#3F7F7F"><xsl:apply-templates/></fo:inline>
</xsl:template>
<xsl:template match='xslthl:attribute'>
<fo:inline olor="#7F007F"><xsl:apply-templates/></fo:inline>
</xsl:template>
<xsl:template match='xslthl:value'>
<fo:inline color="#2A00FF"><xsl:apply-templates/></fo:inline>
</xsl:template>
<xsl:template match='xslthl:string'>
<fo:inline color="#2A00FF"><xsl:apply-templates/></fo:inline>
</xsl:template>
</xsl:stylesheet>

View File

@@ -0,0 +1,42 @@
<?xml version='1.0'?>
<!--
Simple highlighter for HTML output. Follows the Eclipse color scheme.
-->
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xslthl="http://xslthl.sf.net"
exclude-result-prefixes="xslthl"
version='1.0'>
<xsl:template match='xslthl:keyword'>
<span class="hl-keyword"><xsl:value-of select='.'/></span>
</xsl:template>
<xsl:template match='xslthl:comment'>
<span class="hl-comment"><xsl:value-of select='.'/></span>
</xsl:template>
<xsl:template match='xslthl:oneline-comment'>
<span class="hl-comment"><xsl:value-of select='.'/></span>
</xsl:template>
<xsl:template match='xslthl:multiline-comment'>
<span class="hl-multiline-comment"><xsl:value-of select='.'/></span>
</xsl:template>
<xsl:template match='xslthl:tag'>
<span class="hl-tag"><xsl:value-of select='.'/></span>
</xsl:template>
<xsl:template match='xslthl:attribute'>
<span class="hl-attribute"><xsl:value-of select='.'/></span>
</xsl:template>
<xsl:template match='xslthl:value'>
<span class="hl-value"><xsl:value-of select='.'/></span>
</xsl:template>
<xsl:template match='xslthl:string'>
<span class="hl-string"><xsl:value-of select='.'/></span>
</xsl:template>
</xsl:stylesheet>

View File

@@ -5,87 +5,103 @@
--> -->
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:fo="http://www.w3.org/1999/XSL/Format"
xmlns:xslthl="http://xslthl.sf.net"
exclude-result-prefixes="xslthl"
version="1.0"> version="1.0">
<xsl:import href="urn:docbkx:stylesheet"/>
<xsl:import href="highlight.xsl"/>
<!--###################################################
HTML Settings
################################################### -->
<!-- These extensions are required for table printing and other stuff -->
<xsl:param name="tablecolumns.extension">0</xsl:param>
<xsl:param name="graphicsize.extension">0</xsl:param>
<xsl:param name="ignore.image.scaling">1</xsl:param>
<xsl:import href="urn:docbkx:stylesheet"/> <!--###################################################
Table Of Contents
################################################### -->
<!--################################################### <!-- Generate the TOCs for named components only -->
HTML Settings <xsl:param name="generate.toc">
################################################### --> book toc
</xsl:param>
<xsl:param name="html.stylesheet">html.css</xsl:param> <!-- Show only Sections up to level 3 in the TOCs -->
<xsl:param name="toc.section.depth">3</xsl:param>
<!-- These extensions are required for table printing and other stuff --> <!--###################################################
<xsl:param name="use.extensions">1</xsl:param> Labels
<xsl:param name="tablecolumns.extension">0</xsl:param> ################################################### -->
<xsl:param name="callout.extensions">1</xsl:param>
<xsl:param name="graphicsize.extension">0</xsl:param>
<!--################################################### <!-- Label Chapters and Sections (numbering) -->
Table Of Contents <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"/>
<!-- Generate the TOCs for named components only --> <!--###################################################
<xsl:param name="generate.toc"> Callouts
book toc ################################################### -->
</xsl:param>
<!-- Show only Sections up to level 3 in the TOCs --> <!-- Use images for callouts instead of (1) (2) (3) -->
<xsl:param name="toc.section.depth">3</xsl:param> <xsl:param name="callout.graphics">1</xsl:param>
<!--################################################### <!-- Place callout marks at this column in annotated areas -->
Labels <xsl:param name="callout.defaultcolumn">90</xsl:param>
################################################### -->
<!-- Label Chapters and Sections (numbering) --> <!--###################################################
<xsl:param name="chapter.autolabel">1</xsl:param> Admonitions
<xsl:param name="section.autolabel" select="1"/> ################################################### -->
<xsl:param name="section.label.includes.component.label" select="1"/>
<!--################################################### <!-- Use nice graphics for admonitions -->
Callouts <xsl:param name="admon.graphics">1</xsl:param>
################################################### --> <xsl:param name="admon.graphics.path">images/admons/</xsl:param>
<!--###################################################
<!-- Use images for callouts instead of (1) (2) (3) --> Misc
<xsl:param name="callout.graphics">0</xsl:param> ################################################### -->
<!-- Placement of titles -->
<!-- Place callout marks at this column in annotated areas --> <xsl:param name="formal.title.placement">
<xsl:param name="callout.defaultcolumn">90</xsl:param> figure after
example before
<!--################################################### equation before
Admonitions table before
################################################### --> procedure before
</xsl:param>
<!-- Use nice graphics for admonitions --> <xsl:template match="author" mode="titlepage.mode">
<xsl:param name="admon.graphics">0</xsl:param> <xsl:if test="name(preceding-sibling::*[1]) = 'author'">
<xsl:text>, </xsl:text>
<!--################################################### </xsl:if>
Misc <span class="{name(.)}">
################################################### --> <xsl:call-template name="person.name"/>
<!-- Placement of titles --> (<xsl:value-of select="affiliation"/>)
<xsl:param name="formal.title.placement"> <xsl:apply-templates mode="titlepage.mode" select="./contrib"/>
figure after </span>
example before </xsl:template>
equation before <xsl:template match="authorgroup" mode="titlepage.mode">
table before <div class="{name(.)}">
procedure before <h2>Authors</h2>
</xsl:param> <p/>
<xsl:template match="author" mode="titlepage.mode"> <xsl:apply-templates mode="titlepage.mode"/>
<xsl:if test="name(preceding-sibling::*[1]) = 'author'"> </div>
<xsl:text>, </xsl:text> </xsl:template>
</xsl:if> <!--###################################################
<span class="{name(.)}"> Headers and Footers
<xsl:call-template name="person.name"/> ################################################### -->
<xsl:apply-templates mode="titlepage.mode" select="./contrib"/> <!-- let's have a Spring and I21 banner across the top of each page -->
<xsl:apply-templates mode="titlepage.mode" select="./affiliation"/> <xsl:template name="user.header.navigation">
</span> <div style="background-color:white;border:none;height:73px;border:1px solid black;">
</xsl:template> <a style="border:none;" href="http://www.springframework.org/osgi/"
<xsl:template match="authorgroup" mode="titlepage.mode"> title="The Spring Framework - Spring Data">
<div class="{name(.)}"> <img style="border:none;" src="images/xdev-spring_logo.jpg"/>
<h2>Authors</h2> </a>
<p/> <a style="border:none;" href="http://www.SpringSource.com/" title="SpringSource - Spring from the Source">
<xsl:apply-templates mode="titlepage.mode"/> <img style="border:none;position:absolute;padding-top:5px;right:42px;" src="images/s2-banner-rhs.png"/>
</div> </a>
</xsl:template> </div>
</xsl:template>
</xsl:stylesheet> </xsl:stylesheet>

View File

@@ -1,153 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xslthl="http://xslthl.sf.net"
exclude-result-prefixes="xslthl"
version='1.0'>
<xsl:param name="chunk.section.depth">'5'</xsl:param>
<xsl:param name="use.id.as.filename" select="1"/>
<!-- Extensions -->
<xsl:param name="use.extensions">1</xsl:param>
<xsl:param name="tablecolumns.extension">0</xsl:param>
<xsl:param name="callout.extensions">1</xsl:param>
<!-- Activate Graphics -->
<xsl:param name="admon.graphics" select="1"/>
<xsl:param name="admon.graphics.path">images/</xsl:param>
<xsl:param name="admon.graphics.extension">.gif</xsl:param>
<xsl:param name="callout.graphics" select="1"/>
<xsl:param name="callout.defaultcolumn">120</xsl:param>
<xsl:param name="callout.graphics.path">images/callouts/</xsl:param>
<xsl:param name="callout.graphics.extension">.gif</xsl:param>
<xsl:param name="table.borders.with.css" select="1"/>
<xsl:param name="html.stylesheet">css/stylesheet.css</xsl:param>
<xsl:param name="html.stylesheet.type">text/css</xsl:param>
<xsl:param name="generate.toc">book toc,title</xsl:param>
<xsl:param name="admonition.title.properties">text-align: left</xsl:param>
<!-- Label Chapters and Sections (numbering) -->
<xsl:param name="chapter.autolabel" select="1"/>
<xsl:param name="section.autolabel" select="1"/>
<xsl:param name="section.autolabel.max.depth" select="3"/>
<xsl:param name="section.label.includes.component.label" select="1"/>
<xsl:param name="table.footnote.number.format" select="'1'"/>
<!-- Show only Sections up to level 3 in the TOCs -->
<xsl:param name="toc.section.depth">3</xsl:param>
<!-- Remove "Chapter" from the Chapter titles... -->
<xsl:param name="local.l10n.xml" select="document('')"/>
<l:i18n xmlns:l="http://docbook.sourceforge.net/xmlns/l10n/1.0">
<l:l10n language="en">
<l:context name="title-numbered">
<l:template name="chapter" text="%n.&#160;%t"/>
<l:template name="section" text="%n&#160;%t"/>
</l:context>
</l:l10n>
</l:i18n>
<!-- Use code syntax highlighting -->
<xsl:param name="highlight.source" select="1"/>
<xsl:template match='xslthl:keyword'>
<span class="hl-keyword">
<xsl:value-of select='.'/>
</span>
</xsl:template>
<xsl:template match='xslthl:comment'>
<span class="hl-comment">
<xsl:value-of select='.'/>
</span>
</xsl:template>
<xsl:template match='xslthl:oneline-comment'>
<span class="hl-comment">
<xsl:value-of select='.'/>
</span>
</xsl:template>
<xsl:template match='xslthl:multiline-comment'>
<span class="hl-multiline-comment">
<xsl:value-of select='.'/>
</span>
</xsl:template>
<xsl:template match='xslthl:tag'>
<span class="hl-tag">
<xsl:value-of select='.'/>
</span>
</xsl:template>
<xsl:template match='xslthl:attribute'>
<span class="hl-attribute">
<xsl:value-of select='.'/>
</span>
</xsl:template>
<xsl:template match='xslthl:value'>
<span class="hl-value">
<xsl:value-of select='.'/>
</span>
</xsl:template>
<xsl:template match='xslthl:string'>
<span class="hl-string">
<xsl:value-of select='.'/>
</span>
</xsl:template>
<!-- Google Analytics -->
<xsl:template name="user.head.content">
<xsl:comment>Begin Google Analytics code</xsl:comment>
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js'
type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
var pageTracker = _gat._getTracker("UA-2728886-3");
pageTracker._setDomainName("none");
pageTracker._setAllowLinker(true);
pageTracker._trackPageview();
</script>
<xsl:comment>End Google Analytics code</xsl:comment>
</xsl:template>
<!-- Loopfuse -->
<xsl:template name="user.footer.content">
<xsl:comment>Begin LoopFuse code</xsl:comment>
<script src="http://loopfuse.net/webrecorder/js/listen.js" type="text/javascript">
</script>
<script type="text/javascript">
_lf_cid = "LF_48be82fa";
_lf_remora();
</script>
<xsl:comment>End LoopFuse code</xsl:comment>
</xsl:template>
</xsl:stylesheet>

View File

@@ -1,61 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->
<t:templates xmlns:t="http://nwalsh.com/docbook/xsl/template/1.0"
xmlns:param="http://nwalsh.com/docbook/xsl/template/1.0/param"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<!-- ==================================================================== -->
<t:titlepage t:element="book" t:wrapper="div" class="titlepage">
<t:titlepage-content t:side="recto">
<productname/>
<title/>
<subtitle/>
<!-- <corpauthor/>
<authorgroup/>
<author/>
<mediaobject/> -->
<othercredit/>
<releaseinfo/>
<copyright/>
<legalnotice/>
<pubdate/>
<revision/>
<revhistory/>
<abstract/>
</t:titlepage-content>
<t:titlepage-content t:side="verso">
</t:titlepage-content>
<t:titlepage-separator>
<hr/>
</t:titlepage-separator>
<t:titlepage-before t:side="recto">
</t:titlepage-before>
<t:titlepage-before t:side="verso">
</t:titlepage-before>
</t:titlepage>
</t:templates>

View File

@@ -6,203 +6,216 @@
xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:fo="http://www.w3.org/1999/XSL/Format"
version="1.0"> version="1.0">
<xsl:import href="urn:docbkx:stylesheet"/> <xsl:import href="urn:docbkx:stylesheet"/>
<!--################################################### <xsl:import href="highlight.xsl"/>
HTML Settings
################################################### -->
<xsl:param name="chunk.section.depth">'5'</xsl:param> <!--###################################################
<xsl:param name="use.id.as.filename">'1'</xsl:param> HTML Settings
<!-- These extensions are required for table printing and other stuff --> ################################################### -->
<xsl:param name="use.extensions">1</xsl:param> <xsl:param name="chunk.section.depth">'5'</xsl:param>
<xsl:param name="tablecolumns.extension">0</xsl:param> <xsl:param name="use.id.as.filename">'1'</xsl:param>
<xsl:param name="callout.extensions">1</xsl:param> <xsl:param name="tablecolumns.extension">0</xsl:param>
<xsl:param name="graphicsize.extension">0</xsl:param> <xsl:param name="graphicsize.extension">0</xsl:param>
<!--################################################### <xsl:param name="ignore.image.scaling">1</xsl:param>
Table Of Contents <!--###################################################
################################################### --> Table Of Contents
<!-- Generate the TOCs for named components only --> ################################################### -->
<xsl:param name="generate.toc"> <!-- Generate the TOCs for named components only -->
book toc <xsl:param name="generate.toc">
</xsl:param> book toc
<!-- Show only Sections up to level 3 in the TOCs --> qandaset toc
<xsl:param name="toc.section.depth">3</xsl:param> </xsl:param>
<!--################################################### <!-- Show only Sections up to level 3 in the TOCs -->
Labels <xsl:param name="toc.section.depth">3</xsl:param>
################################################### --> <!--###################################################
<!-- Label Chapters and Sections (numbering) --> Labels
<xsl:param name="chapter.autolabel">1</xsl:param> ################################################### -->
<xsl:param name="section.autolabel" select="1"/> <!-- Label Chapters and Sections (numbering) -->
<xsl:param name="section.label.includes.component.label" select="1"/> <xsl:param name="chapter.autolabel">1</xsl:param>
<!--################################################### <xsl:param name="section.autolabel" select="1"/>
Callouts <xsl:param name="section.label.includes.component.label" select="1"/>
################################################### --> <!--###################################################
<!-- Place callout marks at this column in annotated areas --> Callouts
<xsl:param name="callout.graphics">1</xsl:param> ################################################### -->
<xsl:param name="callout.defaultcolumn">90</xsl:param> <!-- Place callout marks at this column in annotated areas -->
<!--################################################### <xsl:param name="callout.graphics">1</xsl:param>
Misc <xsl:param name="callout.defaultcolumn">90</xsl:param>
################################################### -->
<!-- Placement of titles --> <!--###################################################
<xsl:param name="formal.title.placement"> Admonitions
figure after ################################################### -->
example before
equation before <!-- Use nice graphics for admonitions -->
table before <xsl:param name="admon.graphics">1</xsl:param>
procedure before <xsl:param name="admon.graphics.path">images/admons/</xsl:param>
</xsl:param> <!--###################################################
<xsl:template match="author" mode="titlepage.mode"> Misc
<xsl:if test="name(preceding-sibling::*[1]) = 'author'"> ################################################### -->
<xsl:text>, </xsl:text> <!-- Placement of titles -->
</xsl:if> <xsl:param name="formal.title.placement">
<span class="{name(.)}"> figure after
<xsl:call-template name="person.name"/> example before
<xsl:apply-templates mode="titlepage.mode" select="./contrib"/> equation before
<xsl:apply-templates mode="titlepage.mode" select="./affiliation"/> table before
</span> procedure before
</xsl:template> </xsl:param>
<xsl:template match="authorgroup" mode="titlepage.mode"> <xsl:template match="author" mode="titlepage.mode">
<div class="{name(.)}"> <xsl:if test="name(preceding-sibling::*[1]) = 'author'">
<h2>Authors</h2> <xsl:text>, </xsl:text>
<p/> </xsl:if>
<xsl:apply-templates mode="titlepage.mode"/> <span class="{name(.)}">
</div> <xsl:call-template name="person.name"/>
</xsl:template> (<xsl:value-of select="affiliation"/>)
<!--################################################### <xsl:apply-templates mode="titlepage.mode" select="./contrib"/>
Headers and Footers <!--
################################################### --> <xsl:apply-templates mode="titlepage.mode" select="./affiliation"/>
<!-- let's have a Spring and SpringSource banner across the top of each page --> -->
<xsl:template name="user.header.navigation"> </span>
<div style="background-color:white;border:none;height:73px;border:1px solid black;"> </xsl:template>
<a style="border:none;" href="http://static.springframework.org/spring-ws/site/" <xsl:template match="authorgroup" mode="titlepage.mode">
title="The Spring Framework - Spring Web Services"> <div class="{name(.)}">
<img style="border:none;" src="images/xdev-spring_logo.jpg"/> <h2>Authors</h2>
</a> <p/>
<a style="border:none;" href="http://www.springsource.com/" title="SpringSource"> <xsl:apply-templates mode="titlepage.mode"/>
<img style="border:none;position:absolute;padding-top:5px;right:42px;" src="images/s2_box_logo.png"/> </div>
</a> </xsl:template>
</div> <!--###################################################
</xsl:template> Headers and Footers
<!-- no other header navigation (prev, next, etc.) --> ################################################### -->
<xsl:template name="header.navigation"/> <!-- let's have a Spring and I21 banner across the top of each page -->
<xsl:param name="navig.showtitles">1</xsl:param> <xsl:template name="user.header.navigation">
<!-- let's have a 'Sponsored by SpringSource' strapline (or somesuch) across the bottom of each page --> <div style="background-color:white;border:none;height:73px;border:1px solid black;">
<xsl:template name="footer.navigation"> <a style="border:none;" href="http://www.springframework.org/osgi/"
<xsl:param name="prev" select="/foo"/> title="The Spring Framework - Spring Data">
<xsl:param name="next" select="/foo"/> <img style="border:none;" src="images/xdev-spring_logo.jpg"/>
<xsl:param name="nav.context"/> </a>
<xsl:variable name="home" select="/*[1]"/> <a style="border:none;" href="http://www.SpringSource.com/" title="SpringSource - Spring from the Source">
<xsl:variable name="up" select="parent::*"/> <img style="border:none;position:absolute;padding-top:5px;right:42px;" src="images/s2-banner-rhs.png"/>
<xsl:variable name="row1" select="count($prev) &gt; 0 </a>
</div>
</xsl:template>
<!-- no other header navigation (prev, next, etc.) -->
<xsl:template name="header.navigation"/>
<xsl:param name="navig.showtitles">1</xsl:param>
<!-- let's have a 'Sponsored by SpringSource' strapline (or somesuch) across the bottom of each page -->
<xsl:template name="footer.navigation">
<xsl:param name="prev" select="/foo"/>
<xsl:param name="next" select="/foo"/>
<xsl:param name="nav.context"/>
<xsl:variable name="home" select="/*[1]"/>
<xsl:variable name="up" select="parent::*"/>
<xsl:variable name="row1" select="count($prev) &gt; 0
or count($up) &gt; 0 or count($up) &gt; 0
or count($next) &gt; 0"/> or count($next) &gt; 0"/>
<xsl:variable name="row2" select="($prev and $navig.showtitles != 0) <xsl:variable name="row2" select="($prev and $navig.showtitles != 0)
or (generate-id($home) != generate-id(.) or (generate-id($home) != generate-id(.)
or $nav.context = 'toc') or $nav.context = 'toc')
or ($chunk.tocs.and.lots != 0 or ($chunk.tocs.and.lots != 0
and $nav.context != 'toc') and $nav.context != 'toc')
or ($next and $navig.showtitles != 0)"/> or ($next and $navig.showtitles != 0)"/>
<xsl:if test="$suppress.navigation = '0' and $suppress.footer.navigation = '0'"> <xsl:if test="$suppress.navigation = '0' and $suppress.footer.navigation = '0'">
<div class="navfooter"> <div class="navfooter">
<xsl:if test="$footer.rule != 0"> <xsl:if test="$footer.rule != 0">
<hr/> <hr/>
</xsl:if> </xsl:if>
<xsl:if test="$row1 or $row2"> <xsl:if test="$row1 or $row2">
<table width="100%" summary="Navigation footer"> <table width="100%" summary="Navigation footer">
<xsl:if test="$row1"> <xsl:if test="$row1">
<tr> <tr>
<td width="40%" align="left"> <td width="40%" align="left">
<xsl:if test="count($prev)>0"> <xsl:if test="count($prev)>0">
<a accesskey="p"> <a accesskey="p">
<xsl:attribute name="href"> <xsl:attribute name="href">
<xsl:call-template name="href.target"> <xsl:call-template name="href.target">
<xsl:with-param name="object" select="$prev"/> <xsl:with-param name="object" select="$prev"/>
</xsl:call-template> </xsl:call-template>
</xsl:attribute> </xsl:attribute>
<xsl:call-template name="navig.content"> <xsl:call-template name="navig.content">
<xsl:with-param name="direction" select="'prev'"/> <xsl:with-param name="direction" select="'prev'"/>
</xsl:call-template> </xsl:call-template>
</a> </a>
</xsl:if> </xsl:if>
<xsl:text>&#160;</xsl:text> <xsl:text>&#160;</xsl:text>
</td> </td>
<td width="20%" align="center"> <td width="20%" align="center">
<xsl:choose> <xsl:choose>
<xsl:when test="$home != . or $nav.context = 'toc'"> <xsl:when test="$home != . or $nav.context = 'toc'">
<a accesskey="h"> <a accesskey="h">
<xsl:attribute name="href"> <xsl:attribute name="href">
<xsl:call-template name="href.target"> <xsl:call-template name="href.target">
<xsl:with-param name="object" select="$home"/> <xsl:with-param name="object" select="$home"/>
</xsl:call-template> </xsl:call-template>
</xsl:attribute> </xsl:attribute>
<xsl:call-template name="navig.content"> <xsl:call-template name="navig.content">
<xsl:with-param name="direction" select="'home'"/> <xsl:with-param name="direction" select="'home'"/>
</xsl:call-template> </xsl:call-template>
</a> </a>
<xsl:if test="$chunk.tocs.and.lots != 0 and $nav.context != 'toc'"> <xsl:if test="$chunk.tocs.and.lots != 0 and $nav.context != 'toc'">
<xsl:text>&#160;|&#160;</xsl:text> <xsl:text>&#160;|&#160;</xsl:text>
</xsl:if> </xsl:if>
</xsl:when> </xsl:when>
<xsl:otherwise>&#160;</xsl:otherwise> <xsl:otherwise>&#160;</xsl:otherwise>
</xsl:choose> </xsl:choose>
<xsl:if test="$chunk.tocs.and.lots != 0 and $nav.context != 'toc'"> <xsl:if test="$chunk.tocs.and.lots != 0 and $nav.context != 'toc'">
<a accesskey="t"> <a accesskey="t">
<xsl:attribute name="href"> <xsl:attribute name="href">
<xsl:apply-templates select="/*[1]" mode="recursive-chunk-filename"> <xsl:apply-templates select="/*[1]" mode="recursive-chunk-filename">
<xsl:with-param name="recursive" select="true()"/> <xsl:with-param name="recursive" select="true()"/>
</xsl:apply-templates> </xsl:apply-templates>
<xsl:text>-toc</xsl:text> <xsl:text>-toc</xsl:text>
<xsl:value-of select="$html.ext"/> <xsl:value-of select="$html.ext"/>
</xsl:attribute> </xsl:attribute>
<xsl:call-template name="gentext"> <xsl:call-template name="gentext">
<xsl:with-param name="key" select="'nav-toc'"/> <xsl:with-param name="key" select="'nav-toc'"/>
</xsl:call-template> </xsl:call-template>
</a> </a>
</xsl:if> </xsl:if>
</td> </td>
<td width="40%" align="right"> <td width="40%" align="right">
<xsl:text>&#160;</xsl:text> <xsl:text>&#160;</xsl:text>
<xsl:if test="count($next)>0"> <xsl:if test="count($next)>0">
<a accesskey="n"> <a accesskey="n">
<xsl:attribute name="href"> <xsl:attribute name="href">
<xsl:call-template name="href.target"> <xsl:call-template name="href.target">
<xsl:with-param name="object" select="$next"/> <xsl:with-param name="object" select="$next"/>
</xsl:call-template> </xsl:call-template>
</xsl:attribute> </xsl:attribute>
<xsl:call-template name="navig.content"> <xsl:call-template name="navig.content">
<xsl:with-param name="direction" select="'next'"/> <xsl:with-param name="direction" select="'next'"/>
</xsl:call-template> </xsl:call-template>
</a> </a>
</xsl:if> </xsl:if>
</td> </td>
</tr> </tr>
</xsl:if> </xsl:if>
<xsl:if test="$row2"> <xsl:if test="$row2">
<tr> <tr>
<td width="40%" align="left" valign="top"> <td width="40%" align="left" valign="top">
<xsl:if test="$navig.showtitles != 0"> <xsl:if test="$navig.showtitles != 0">
<xsl:apply-templates select="$prev" mode="object.title.markup"/> <xsl:apply-templates select="$prev" mode="object.title.markup"/>
</xsl:if> </xsl:if>
<xsl:text>&#160;</xsl:text> <xsl:text>&#160;</xsl:text>
</td> </td>
<td width="20%" align="center"> <td width="20%" align="center">
<span style="color:white;font-size:90%;"> <span style="color:white;font-size:90%;">
<a href="http://www.springsource.com/" <a href="http://www.SpringSource.com/"
title="SpringSource">Sponsored by SpringSource title="SpringSource - Spring from the Source">Sponsored by SpringSource
</a> </a>
</span> </span>
</td> </td>
<td width="40%" align="right" valign="top"> <td width="40%" align="right" valign="top">
<xsl:text>&#160;</xsl:text> <xsl:text>&#160;</xsl:text>
<xsl:if test="$navig.showtitles != 0"> <xsl:if test="$navig.showtitles != 0">
<xsl:apply-templates select="$next" mode="object.title.markup"/> <xsl:apply-templates select="$next" mode="object.title.markup"/>
</xsl:if> </xsl:if>
</td> </td>
</tr> </tr>
</xsl:if> </xsl:if>
</table> </table>
</xsl:if>
</div>
</xsl:if> </xsl:if>
</div> </xsl:template>
</xsl:if>
</xsl:template>
</xsl:stylesheet> </xsl:stylesheet>

View File

@@ -1,534 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:fo="http://www.w3.org/1999/XSL/Format"
xmlns:xslthl="http://xslthl.sf.net"
exclude-result-prefixes="xslthl"
version='1.0'>
<!-- Use nice graphics for admonitions -->
<xsl:param name="admon.graphics">'1'</xsl:param>
<xsl:param name="admon.graphics.path">@file.prefix@@dbf.xsl@/images/</xsl:param>
<xsl:param name="draft.watermark.image" select="'@file.prefix@@dbf.xsl@/images/draft.png'"/>
<xsl:param name="paper.type" select="'@paper.type@'"/>
<xsl:param name="page.margin.top" select="'1cm'"/>
<xsl:param name="region.before.extent" select="'1cm'"/>
<xsl:param name="body.margin.top" select="'1.5cm'"/>
<xsl:param name="body.margin.bottom" select="'1.5cm'"/>
<xsl:param name="region.after.extent" select="'1cm'"/>
<xsl:param name="page.margin.bottom" select="'1cm'"/>
<xsl:param name="title.margin.left" select="'0cm'"/>
<!--###################################################
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>
<!--###################################################
Table of Contents
################################################### -->
<xsl:param name="generate.toc">
book toc,title
</xsl:param>
<!--###################################################
Custom Header
################################################### -->
<xsl:template name="header.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="//productname">
<xsl:value-of select="//productname"/><xsl:text> </xsl:text>
</xsl:when>
<xsl:otherwise>
<xsl:text>please define productname in your docbook file!</xsl:text>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:choose>
<xsl:when test="$sequence='blank'">
<xsl:choose>
<xsl:when test="$position='center'">
<xsl:value-of select="$Version"/>
</xsl:when>
<xsl:otherwise>
<!-- nop -->
</xsl:otherwise>
</xsl:choose>
</xsl:when>
<xsl:when test="$pageclass='titlepage'">
<!-- nop: other titlepage sequences have no header -->
</xsl:when>
<xsl:when test="$position='center'">
<xsl:value-of select="$Version"/>
</xsl:when>
<xsl:otherwise>
<!-- nop -->
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<!--###################################################
Custom Footer
################################################### -->
<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:value-of select="//releaseinfo"/>
</xsl:when>
<xsl:otherwise>
<!-- nop -->
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:variable name="Title">
<xsl:value-of select="//title"/>
</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:when test="$position='center'">
<xsl:value-of select="$Title"/>
</xsl:when>
<xsl:otherwise>
<!-- nop -->
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template match="processing-instruction('hard-pagebreak')">
<fo:block break-before='page'/>
</xsl:template>
<!--###################################################
Extensions
################################################### -->
<!-- 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="fop.extensions">1</xsl:param>
<!--###################################################
Paper & Page Size
################################################### -->
<!-- Paper type, no headers on blank pages, no double sided printing -->
<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>
<!--###################################################
Fonts & Styles
################################################### -->
<xsl:param name="hyphenate">false</xsl:param>
<!-- Default Font size -->
<xsl:param name="body.font.master">11</xsl:param>
<xsl:param name="body.font.small">8</xsl:param>
<!-- Line height in body text -->
<xsl:param name="line-height">1.4</xsl:param>
<!-- Chapter title size -->
<xsl:attribute-set name="chapter.titlepage.recto.style">
<xsl:attribute name="text-align">left</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>
<!-- Why is the font-size for chapters hardcoded in the XSL FO templates?
Let's remove it, so this sucker can use our attribute-set only... -->
<xsl:template match="title" mode="chapter.titlepage.recto.auto.mode">
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format"
xsl:use-attribute-sets="chapter.titlepage.recto.style">
<xsl:call-template name="component.title">
<xsl:with-param name="node" select="ancestor-or-self::chapter[1]"/>
</xsl:call-template>
</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>
<xsl:attribute-set name="section.title.level4.properties">
<xsl:attribute name="space-before.optimum">0.3em</xsl:attribute>
<xsl:attribute name="space-before.minimum">0.3em</xsl:attribute>
<xsl:attribute name="space-before.maximum">0.3em</xsl:attribute>
<xsl:attribute name="font-size">
<xsl:value-of select="$body.font.master * 0.9"/>
<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>
<!-- Use code syntax highlighting -->
<xsl:param name="highlight.source" select="1"/>
<xsl:param name="highlight.default.language" select="xml"/>
<xsl:template match='xslthl:keyword'>
<fo:inline font-weight="bold" color="#7F0055">
<xsl:apply-templates/>
</fo:inline>
</xsl:template>
<xsl:template match='xslthl:comment'>
<fo:inline font-style="italic" color="#3F5F5F">
<xsl:apply-templates/>
</fo:inline>
</xsl:template>
<xsl:template match='xslthl:oneline-comment'>
<fo:inline font-style="italic" color="#3F5F5F">
<xsl:apply-templates/>
</fo:inline>
</xsl:template>
<xsl:template match='xslthl:multiline-comment'>
<fo:inline font-style="italic" color="#3F5FBF">
<xsl:apply-templates/>
</fo:inline>
</xsl:template>
<xsl:template match='xslthl:tag'>
<fo:inline color="#3F7F7F">
<xsl:apply-templates/>
</fo:inline>
</xsl:template>
<xsl:template match='xslthl:attribute'>
<fo:inline color="#7F007F">
<xsl:apply-templates/>
</fo:inline>
</xsl:template>
<xsl:template match='xslthl:value'>
<fo:inline color="#2A00FF">
<xsl:apply-templates/>
</fo:inline>
</xsl:template>
<xsl:template match='xslthl:string'>
<fo:inline color="#2A00FF">
<xsl:apply-templates/>
</fo:inline>
</xsl:template>
<!--###################################################
Tables
################################################### -->
<!-- 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" select="1"/>
<xsl:param name="section.autolabel" select="1"/>
<xsl:param name="section.autolabel.max.depth" select="1"/>
<xsl:param name="section.label.includes.component.label" select="1"/>
<xsl:param name="table.footnote.number.format" select="'1'"/>
<!--###################################################
Programlistings
################################################### -->
<!-- Verbatim text formatting (programlistings) -->
<xsl:attribute-set name="monospace.verbatim.properties">
<xsl:attribute name="font-size">
<xsl:value-of select="$body.font.small * 1.0"/>
<xsl:text>pt</xsl:text>
</xsl:attribute>
</xsl:attribute-set>
<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>
<xsl:attribute-set name="list.block.spacing">
<xsl:attribute name="space-before.optimum">0.1em</xsl:attribute>
<xsl:attribute name="space-before.minimum">0.1em</xsl:attribute>
<xsl:attribute name="space-before.maximum">0.1em</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="example.properties">
<xsl:attribute name="space-before.minimum">0.5em</xsl:attribute>
<xsl:attribute name="space-before.optimum">0.5em</xsl:attribute>
<xsl:attribute name="space-before.maximum">0.5em</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="keep-together.within-column">always</xsl:attribute>
</xsl:attribute-set>
<!--###################################################
Title information for Figures, Examples etc.
################################################### -->
<xsl:attribute-set name="formal.title.properties" use-attribute-sets="normal.para.spacing">
<xsl:attribute name="font-weight">normal</xsl:attribute>
<xsl:attribute name="font-style">italic</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-before.minimum">0.1em</xsl:attribute>
<xsl:attribute name="space-before.optimum">0.1em</xsl:attribute>
<xsl:attribute name="space-before.maximum">0.1em</xsl:attribute>
</xsl:attribute-set>
<!--###################################################
Callouts
################################################### -->
<!-- don't use images for callouts -->
<xsl:param name="callout.graphics">0</xsl:param>
<xsl:param name="callout.unicode">1</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 after
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>
<xsl:param name="body.start.indent">0pt</xsl:param>
<!-- Show only Sections up to level 3 in the TOCs -->
<xsl:param name="toc.section.depth">3</xsl:param>
<!-- Remove "Chapter" from the Chapter titles... -->
<xsl:param name="local.l10n.xml" select="document('')"/>
<l:i18n xmlns:l="http://docbook.sourceforge.net/xmlns/l10n/1.0">
<l:l10n language="en">
<l:context name="title-numbered">
<l:template name="chapter" text="%n.&#160;%t"/>
<l:template name="section" text="%n&#160;%t"/>
</l:context>
<l:context name="title">
<l:template name="example" text="Example&#160;%n&#160;%t"/>
</l:context>
</l:l10n>
</l:i18n>
<!--###################################################
colored and hyphenated links
################################################### -->
<xsl:template match="ulink">
<fo:basic-link external-destination="{@url}"
xsl:use-attribute-sets="xref.properties"
text-decoration="underline"
color="blue">
<xsl:choose>
<xsl:when test="count(child::node())=0">
<xsl:value-of select="@url"/>
</xsl:when>
<xsl:otherwise>
<xsl:apply-templates/>
</xsl:otherwise>
</xsl:choose>
</fo:basic-link>
</xsl:template>
<xsl:template match="link">
<fo:basic-link internal-destination="{@linkend}"
xsl:use-attribute-sets="xref.properties"
text-decoration="underline"
color="blue">
<xsl:choose>
<xsl:when test="count(child::node())=0">
<xsl:value-of select="@linkend"/>
</xsl:when>
<xsl:otherwise>
<xsl:apply-templates/>
</xsl:otherwise>
</xsl:choose>
</fo:basic-link>
</xsl:template>
</xsl:stylesheet>

View File

@@ -1,101 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->
<!DOCTYPE t:templates [
<!ENTITY hsize0 "10pt">
<!ENTITY hsize1 "12pt">
<!ENTITY hsize2 "14.4pt">
<!ENTITY hsize3 "17.28pt">
<!ENTITY hsize4 "20.736pt">
<!ENTITY hsize5 "24.8832pt">
<!ENTITY hsize0space "7.5pt"> <!-- 0.75 * hsize0 -->
<!ENTITY hsize1space "9pt"> <!-- 0.75 * hsize1 -->
<!ENTITY hsize2space "10.8pt"> <!-- 0.75 * hsize2 -->
<!ENTITY hsize3space "12.96pt"> <!-- 0.75 * hsize3 -->
<!ENTITY hsize4space "15.552pt"> <!-- 0.75 * hsize4 -->
<!ENTITY hsize5space "18.6624pt"> <!-- 0.75 * hsize5 -->
]>
<t:templates xmlns:t="http://nwalsh.com/docbook/xsl/template/1.0"
xmlns:param="http://nwalsh.com/docbook/xsl/template/1.0/param"
xmlns:fo="http://www.w3.org/1999/XSL/Format"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<t:titlepage t:element="book" t:wrapper="fo:block">
<t:titlepage-content t:side="recto">
<title
t:named-template="division.title"
param:node="ancestor-or-self::book[1]"
text-align="center"
font-size="&hsize5;"
space-before="&hsize5space;"
font-weight="bold"
font-family="{$title.fontset}"/>
<subtitle
text-align="center"
font-size="&hsize4;"
space-before="&hsize4space;"
font-family="{$title.fontset}"/>
<!-- <corpauthor space-before="0.5em"
font-size="&hsize2;"/>
<authorgroup space-before="0.5em"
font-size="&hsize2;"/>
<author space-before="0.5em"
font-size="&hsize2;"/> -->
<mediaobject space-before="2em" space-after="2em"/>
<releaseinfo space-before="5em" font-size="&hsize2;"/>
<copyright space-before="1.5em"
font-weight="normal"
font-size="8"/>
<legalnotice space-before="5em"
font-weight="normal"
font-style="italic"
font-size="8"/>
<othercredit space-before="2em"
font-weight="normal"
font-size="8"/>
<pubdate space-before="0.5em"/>
<revision space-before="0.5em"/>
<revhistory space-before="0.5em"/>
<abstract space-before="0.5em"
text-align="start"
margin-left="0.5in"
margin-right="0.5in"
font-family="{$body.fontset}"/>
</t:titlepage-content>
<t:titlepage-content t:side="verso">
</t:titlepage-content>
<t:titlepage-separator>
</t:titlepage-separator>
<t:titlepage-before t:side="recto">
</t:titlepage-before>
<t:titlepage-before t:side="verso">
</t:titlepage-before>
</t:titlepage>
<!-- ==================================================================== -->
</t:templates>