Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

update build system to Gradle 1.0 and latest plugin

  • Loading branch information...
commit d536e70f82e9c1664949cb7c81dc410b89fdeb50 1 parent a440291
Costin Leau authored
Showing with 179 additions and 2,148 deletions.
  1. +131 −125 build.gradle
  2. +0 −99 docs/build.gradle
  3. +1 −1  docs/src/reference/docbook/appendix/appendix-schema.xml
  4. +2 −2 docs/src/reference/docbook/index.xml
  5. +0 −35 docs/src/reference/resources/css/highlight.css
  6. +0 −99 docs/src/reference/resources/css/manual.css
  7. BIN  docs/src/reference/resources/images/admon/blank.png
  8. BIN  docs/src/reference/resources/images/admon/caution.gif
  9. BIN  docs/src/reference/resources/images/admon/caution.png
  10. BIN  docs/src/reference/resources/images/admon/caution.tif
  11. BIN  docs/src/reference/resources/images/admon/draft.png
  12. BIN  docs/src/reference/resources/images/admon/home.gif
  13. BIN  docs/src/reference/resources/images/admon/home.png
  14. BIN  docs/src/reference/resources/images/admon/important.gif
  15. BIN  docs/src/reference/resources/images/admon/important.png
  16. BIN  docs/src/reference/resources/images/admon/important.tif
  17. BIN  docs/src/reference/resources/images/admon/next.gif
  18. BIN  docs/src/reference/resources/images/admon/next.png
  19. BIN  docs/src/reference/resources/images/admon/note.gif
  20. BIN  docs/src/reference/resources/images/admon/note.png
  21. BIN  docs/src/reference/resources/images/admon/note.tif
  22. BIN  docs/src/reference/resources/images/admon/prev.gif
  23. BIN  docs/src/reference/resources/images/admon/prev.png
  24. BIN  docs/src/reference/resources/images/admon/tip.gif
  25. BIN  docs/src/reference/resources/images/admon/tip.png
  26. BIN  docs/src/reference/resources/images/admon/tip.tif
  27. BIN  docs/src/reference/resources/images/admon/toc-blank.png
  28. BIN  docs/src/reference/resources/images/admon/toc-minus.png
  29. BIN  docs/src/reference/resources/images/admon/toc-plus.png
  30. BIN  docs/src/reference/resources/images/admon/up.gif
  31. BIN  docs/src/reference/resources/images/admon/up.png
  32. BIN  docs/src/reference/resources/images/admon/warning.gif
  33. BIN  docs/src/reference/resources/images/admon/warning.png
  34. BIN  docs/src/reference/resources/images/admon/warning.tif
  35. BIN  docs/src/reference/resources/images/callouts/1.png
  36. BIN  docs/src/reference/resources/images/callouts/10.png
  37. BIN  docs/src/reference/resources/images/callouts/11.png
  38. BIN  docs/src/reference/resources/images/callouts/12.png
  39. BIN  docs/src/reference/resources/images/callouts/13.png
  40. BIN  docs/src/reference/resources/images/callouts/14.png
  41. BIN  docs/src/reference/resources/images/callouts/15.png
  42. BIN  docs/src/reference/resources/images/callouts/2.png
  43. BIN  docs/src/reference/resources/images/callouts/3.png
  44. BIN  docs/src/reference/resources/images/callouts/4.png
  45. BIN  docs/src/reference/resources/images/callouts/5.png
  46. BIN  docs/src/reference/resources/images/callouts/6.png
  47. BIN  docs/src/reference/resources/images/callouts/7.png
  48. BIN  docs/src/reference/resources/images/callouts/8.png
  49. BIN  docs/src/reference/resources/images/callouts/9.png
  50. BIN  docs/src/reference/resources/images/logo.png
  51. BIN  docs/src/reference/resources/images/xdev-spring_logo.jpg
  52. +0 −449 docs/src/reference/resources/xsl/fopdf.xsl
  53. +0 −44 docs/src/reference/resources/xsl/highlight-fo.xsl
  54. +0 −42 docs/src/reference/resources/xsl/highlight.xsl
  55. +0 −145 docs/src/reference/resources/xsl/html-custom.xsl
  56. +0 −142 docs/src/reference/resources/xsl/html-single-custom.xsl
  57. +0 −107 docs/src/reference/resources/xsl/html.xsl
  58. +0 −221 docs/src/reference/resources/xsl/html_chunk.xsl
  59. +0 −522 docs/src/reference/resources/xsl/pdf-custom.xsl
  60. +1 −1  gradle.properties
  61. +43 −109 maven.gradle
  62. +1 −5 settings.gradle
View
256 build.gradle
@@ -1,72 +1,29 @@
-// used for artifact names, building doc upload urls, etc.
-description = 'Spring Data Redis'
-abbreviation = 'DATAREDIS'
-
-apply plugin: 'base'
-
buildscript {
repositories {
-// add(new org.apache.ivy.plugins.resolver.FileSystemResolver()) {
-// name = "local"
-// addIvyPattern "e:/work/i21/gradle-plugins/build/repo/[organisation].[module]-ivy-[revision].xml"
-// addArtifactPattern "e:/work/i21/gradle-plugins/build/repo/[organisation].[module]-[revision](-[classifier]).[ext]"
-// }
-
- add(new org.apache.ivy.plugins.resolver.URLResolver()) {
- name = "GitHub"
- addIvyPattern 'http://cloud.github.com/downloads/costin/gradle-stuff/[organization].[module]-[artifact]-[revision].[ext]'
- addArtifactPattern 'http://cloud.github.com/downloads/costin/gradle-stuff/[organization].[module]-[revision].[ext]'
- }
- mavenCentral()
- mavenLocal()
- mavenRepo name: "springsource-org-release", urls: "http://repository.springsource.com/maven/bundles/release"
- mavenRepo name: "springsource-org-external", urls: "http://repository.springsource.com/maven/bundles/external"
+ maven { url 'http://repo.springsource.org/plugins-release' }
}
-
dependencies {
- classpath 'org.springframework:gradle-stuff:0.1-20110421'
- classpath 'net.sf.docbook:docbook-xsl:1.75.2:ns-resources@zip'
+ classpath 'org.springframework.build.gradle:bundlor-plugin:0.1.2'
+ classpath 'org.springframework.build.gradle:docbook-reference-plugin:0.1.5'
}
}
-repositories {
- mavenRepo name: "springsource", urls: "http://repo.springsource.org/libs-snapshot"
-}
-
-
-allprojects {
- group = 'org.springframework.data.redis'
- version = "$springDataRedisVersion"
-
- releaseBuild = version.endsWith('RELEASE')
- snapshotBuild = version.endsWith('SNAPSHOT')
-
-
- repositories {
- mavenLocal()
- mavenCentral()
- // Public Spring artefacts
- mavenRepo name: "springsource-org-release", urls: "http://repository.springsource.com/maven/bundles/release"
- mavenRepo name: "spring-release", urls: "http://maven.springframework.org/release"
- mavenRepo name: "spring-milestone", urls: "http://maven.springframework.org/milestone"
- mavenRepo name: "spring-snapshot", urls: "http://maven.springframework.org/snapshot"
- mavenRepo name: "sonatype-snapshot", urls: "http://oss.sonatype.org/content/repositories/snapshots"
- mavenRepo name: "jboss", urls: "http://repository.jboss.org/maven2/"
- mavenRepo name: "java.net", urls: "http://download.java.net/maven/2/"
- mavenRepo name: "ext-snapshots", urls: "http://springframework.svn.sourceforge.net/svnroot/springframework/repos/repo-ext/"
- }
+description = 'Spring Data Redis'
+group = 'org.springframework.data.redis'
+repositories {
+ maven { url "http://repo.springsource.org/libs-snapshot" }
+ maven { url "http://repo.springsource.org/ext-release-local" }
}
-
apply plugin: "java"
-apply plugin: "maven"
-apply plugin: 'eclipse' // `gradle eclipse` to generate .classpath/.project
-apply plugin: 'idea' // `gradle idea` to generate .ipr/.iml
-apply plugin: 'docbook'
-apply plugin: 'bundlor' // all core projects should be OSGi-compliant
+apply plugin: 'eclipse'
+apply plugin: 'idea'
+apply from: "$rootDir/maven.gradle"
+apply plugin: 'docbook-reference'
+//apply plugin: 'bundlor'
-bundlor.useProjectProps = true
+//bundlor.ext.useProjectProps = true
[compileJava, compileTestJava]*.options*.compilerArgs = ["-Xlint:-serial"]
// Common dependencies
@@ -83,35 +40,33 @@ dependencies {
}
compile "org.springframework:spring-context-support:$springVersion"
compile "org.springframework:spring-tx:$springVersion"
- compile("org.springframework:spring-oxm:$springVersion") { optional = true }
+ compile("org.springframework:spring-oxm:$springVersion", optional)
// Redis Drivers
compile "redis.clients:jedis:$jedisVersion"
compile "com.github.spullara.redis:client:$srpVersion"
- compile("org.jredis:jredis-anthonylauzon:$jredisVersion") { optional = true }
- compile("org.idevlab:rjc:$rjcVersion") { optional = true }
+ compile("org.jredis:jredis-anthonylauzon:$jredisVersion", optional)
+ compile("org.idevlab:rjc:$rjcVersion", optional)
// Mappers
- compile("org.codehaus.jackson:jackson-mapper-asl:$jacksonVersion") { optional = true }
- compile("commons-beanutils:commons-beanutils-core:1.8.3") { optional = true }
+ compile("org.codehaus.jackson:jackson-mapper-asl:$jacksonVersion", optional)
+ compile("commons-beanutils:commons-beanutils-core:1.8.3", optional)
// Testing
testCompile "junit:junit:$junitVersion"
testCompile "org.springframework:spring-test:$springVersion"
testCompile "org.mockito:mockito-all:$mockitoVersion"
- testCompile("javax.annotation:jsr250-api:1.0") { optional = true }
- testCompile("com.thoughtworks.xstream:xstream:1.3") { optional = true }
+ testCompile("javax.annotation:jsr250-api:1.0", optional)
+ testCompile("com.thoughtworks.xstream:xstream:1.3", optional)
}
-javaprojects = rootProject
-
sourceCompatibility = 1.5
targetCompatibility = 1.5
javadoc {
- srcDir = file("${projectDir}/docs/src/api")
+ ext.srcDir = file("${projectDir}/docs/src/api")
destinationDir = file("${buildDir}/api")
- tmpDir = file("${buildDir}/api-work")
+ ext.tmpDir = file("${buildDir}/api-work")
configure(options) {
stylesheetFile = file("${srcDir}/spring-javadoc.css")
@@ -134,82 +89,133 @@ javadoc {
}
title = "${rootProject.description} ${version} API"
+}
- // collect all the sources that will be included in the javadoc output
- source javaprojects.collect {project ->
- project.sourceSets.main.allJava
- }
+jar {
+ manifest.attributes['Implementation-Title'] = 'spring-data-redis'
+ manifest.attributes['Implementation-Version'] = project.version
- // collect all main classpaths to be able to resolve @see refs, etc.
- // this collection also determines the set of projects that this
- // task dependsOn, thus the runtimeClasspath is used to ensure all
- // projects are included, not just *dependencies* of all classes.
- // this is awkward and took me a while to figure out.
- classpath = files(javaprojects.collect {project ->
- project.sourceSets.main.runtimeClasspath
- })
-
- // copy the images from the doc-files dir over to the target
- doLast { task ->
- copy {
- from file("${task.srcDir}/doc-files")
- into file("${task.destinationDir}/doc-files")
- }
- }
+ from("$rootDir/docs/src/info") {
+ include "license.txt"
+ include "notice.txt"
+ into "META-INF"
+ expand(copyright: new Date().format('yyyy'), version: project.version)
+ }
}
-ideaProject {
- withXml { provider ->
- provider.node.component.find { it.@name == 'VcsDirectoryMappings' }.mapping.@vcs = 'Git'
- }
+task sourcesJar(type: Jar, dependsOn:classes) {
+ classifier = 'sources'
+ from sourceSets.main.allJava
}
-task wrapper(type: Wrapper) {
- gradleVersion = '1.0-milestone-3'
- description = "Generate the Gradle wrapper"
- group = "Distribution"
+task javadocJar(type: Jar) {
+ classifier = 'javadoc'
+ from javadoc
}
-apply from: "$rootDir/maven.gradle"
+reference {
+ sourceDir = file('docs/src/reference/docbook')
+}
+
+task docsZip(type: Zip) {
+ group = 'Distribution'
+ classifier = 'docs'
+ description = "Builds -${classifier} archive containing api and reference for deployment"
-assemble.dependsOn = ['jar', 'sourceJar', 'javadocJar']
+ from('docs/src/info') {
+ include 'changelog.txt'
+ }
-// Distribution tasks
-task dist(type: Zip) {
- description = "Generate the ZIP Distribution"
- group = "Distribution"
- dependsOn assemble, subprojects*.tasks*.matching { task -> task.name == 'assemble' }
+ from (javadoc) {
+ into 'api'
+ }
+
+ from (reference) {
+ into 'reference'
+ }
+}
- evaluationDependsOn(':docs')
+task schemaZip(type: Zip) {
+ group = 'Distribution'
+ classifier = 'schema'
+ description = "Builds -${classifier} archive containing all XSDs for deployment"
- def zipRootDir = "${project.name}-$version"
- into(zipRootDir) {
- from('/docs/src/info') {
- include '*.txt'
+ def Properties schemas = new Properties();
+
+ sourceSets.main.resources.find {
+ it.path.endsWith('META-INF' + File.separator + 'spring.schemas')
+ }?.withInputStream { schemas.load(it) }
+
+ ext.paths = [] as Set
+
+ for (def key : schemas.keySet()) {
+ def shortName = key.replaceAll(/http.*schema.(.*).spring-.*/, '$1')
+ assert shortName != key
+ File xsdFile = sourceSets.main.resources.find {
+ it.path.replace('\\', '/').endsWith(schemas.get(key))
}
- from('/docs/build/') {
- into 'docs'
- include 'reference/**/*'
+ assert xsdFile != null
+ def input = xsdFile.path
+
+ if (!paths.contains(input)) {
+ paths.add(input)
+ into (shortName) {
+ from input
+ }
}
- from('build/') {
- into 'docs'
- include 'api/**/*'
+ }
+}
+
+task distZip(type: Zip, dependsOn: [jar, docsZip, schemaZip, sourcesJar, javadocJar]) {
+ group = 'Distribution'
+ classifier = 'dist'
+ description = "Builds -${classifier} archive, containing all jars and docs, " +
+ "suitable for community download page."
+
+ ext.zipRootDir = "${project.name}-${project.version}"
+
+ into (zipRootDir) {
+ from('docs/src/info') {
+ include 'readme.txt'
+ include 'license.txt'
+ include 'notice.txt'
+ expand(copyright: new Date().format('yyyy'), version: project.version)
+ }
+
+ from('samples/') {
+ into 'samples'
+ exclude '**/build/**'
+ exclude '**/bin/**'
+ exclude '**/.settings/**'
+ exclude '**/.gradle/**'
+ exclude '**/.*'
}
- into('dist') {
- from javaprojects.collect {project -> project.libsDir }
+
+ from(zipTree(docsZip.archivePath)) {
+ into "docs"
+ }
+
+ from(zipTree(schemaZip.archivePath)) {
+ into "schema"
+ }
+ into ("dist") {
+ from rootProject.collect { project -> project.libsDir }
}
}
- doLast {
- ant.checksum(file: archivePath, algorithm: 'SHA1', fileext: '.sha1')
- }
}
-task uploadDist(type: org.springframework.gradle.tasks.S3DistroUpload, dependsOn: dist) {
- description = "Upload the ZIP Distribution"
- group = "Distribution"
- archiveFile = dist.archivePath
- projectKey = 'DATAKV'
- projectName = 'Spring Data Redis'
+artifacts {
+ archives sourcesJar
+ archives javadocJar
+
+ archives docsZip
+ archives schemaZip
+ archives distZip
+}
+
+task wrapper(type: Wrapper) {
+ description = 'Generates gradlew[.bat] scripts'
+ gradleVersion = '1.0'
}
defaultTasks 'clean', 'build'
View
99 docs/build.gradle
@@ -1,99 +0,0 @@
-import org.apache.tools.ant.filters.ReplaceTokens
-
-// -----------------------------------------------------------------------------
-// Configuration for the docs subproject
-// -----------------------------------------------------------------------------
-
-apply plugin: 'base'
-apply plugin: 'docbook'
-
-assemble.dependsOn = [rootProject.javadoc, 'reference']
-
-[docbookHtml, docbookFoPdf, docbookHtmlSingle]*.group = 'Documentation'
-[docbookHtml, docbookFoPdf, docbookHtmlSingle]*.sourceFileName = 'index.xml'
-[docbookHtml, docbookFoPdf, docbookHtmlSingle]*.sourceDirectory = new File(projectDir, 'src/reference/docbook')
-
-docbookHtml.stylesheet = new File(projectDir, 'src/reference/resources/xsl/html-custom.xsl')
-docbookHtmlSingle.stylesheet = new File(projectDir, 'src/reference/resources/xsl/html-single-custom.xsl')
-docbookFoPdf.stylesheet = new File(projectDir, 'src/reference/resources/xsl/pdf-custom.xsl')
-
-def imagesDir = new File(projectDir, 'src/reference/resources/images');
-docbookFoPdf.admonGraphicsPath = "${imagesDir}/admon"
-docbookFoPdf.imgSrcPath = "${imagesDir}"
-
-// defined separately to prevent the replacement from taking place (seems to affect the images)
-imgSpec = copySpec {
- into ('reference') {
- from("$projectDir/src/reference/resources") {
- include "css/**/*"
- }
- from("$buildDir/docs") {
- include '*.pdf'
- }
- }
-
- into ('reference/images') {
- from (imagesDir)
- }
-}
-
-refSpec = copySpec {
- into ('reference') {
- from("$buildDir/docs") {
- exclude '*.fo'
- exclude '*.pdf'
- }
- }
-
- p = new Properties()
-
- for (e in project.properties) {
- if (e.key != null && e.value != null)
- p.setProperty(e.key, e.value.toString())
- }
-
- filter(ReplaceTokens, tokens: p)
- with(imgSpec)
-}
-
-task reference (type: Copy) {
- dependsOn 'docbook'
- description = "Builds aggregated DocBook"
- group = "Documentation"
- destinationDir = buildDir
- with(refSpec)
-}
-
-
-apiSpec = copySpec {
- into('api') {
- from(rootProject.javadoc.destinationDir)
- }
-}
-
-task docSiteLogin(type: org.springframework.gradle.tasks.Login) {
- if (project.hasProperty('sshHost')) {
- host = project.property('sshHost')
- username = project.property('sshUsername')
- key = project.property('sshPrivateKey')
- }
-}
-
-infoSpec = copySpec {
- from("$projectDir/src/info") {
- include 'changelog.txt'
- }
-}
-
-// upload task
-task uploadDocs(type: org.springframework.gradle.tasks.ScpUpload) {
- dependsOn rootProject.javadoc, reference
- description = "Upload API Distribution"
- group = "Distribution"
- remoteDir = "/opt/www/domains/springframework.org/www/htdocs/spring-data/data-redis/docs/${project.version}"
- login = docSiteLogin
-
- with(apiSpec)
- with(refSpec)
- with(infoSpec)
-}
View
2  docs/src/reference/docbook/appendix/appendix-schema.xml
@@ -3,7 +3,7 @@
<title>Spring Data Redis Schema(s)</title>
<para>Core schema</para>
- <programlisting language="xml"><xi:include href="../../../../../src/main/resources/org/springframework/data/redis/config/spring-redis-1.0.xsd" parse="text" xmlns:xi="http://www.w3.org/2001/XInclude">
+ <programlisting language="xml"><xi:include href="../../../src/main/resources/org/springframework/data/redis/config/spring-redis-1.0.xsd" parse="text" xmlns:xi="http://www.w3.org/2001/XInclude">
<xi:fallback>
<para><emphasis>FIXME: REDIS SCHEMA LOCATION/NAME CHANGED</emphasis></para>
</xi:fallback>
View
4 docs/src/reference/docbook/index.xml
@@ -6,8 +6,8 @@
<bookinfo>
<title>Spring Data Redis Reference Documentation</title>
- <titleabbrev>Spring Data Redis @version@</titleabbrev>
- <releaseinfo>@version@</releaseinfo>
+ <titleabbrev>Spring Data Redis ${version}</titleabbrev>
+ <releaseinfo>${version}</releaseinfo>
<productname>Spring Data Redis</productname>
<authorgroup>
View
35 docs/src/reference/resources/css/highlight.css
@@ -1,35 +0,0 @@
-/*
- code highlight CSS resemblign the Eclipse IDE default color schema
- @author Costin Leau
-*/
-
-.hl-keyword {
- color: #7F0055;
- font-weight: bold;
-}
-
-.hl-comment {
- color: #3F5F5F;
- font-style: italic;
-}
-
-.hl-multiline-comment {
- color: #3F5FBF;
- font-style: italic;
-}
-
-.hl-tag {
- color: #3F7F7F;
-}
-
-.hl-attribute {
- color: #7F007F;
-}
-
-.hl-value {
- color: #2A00FF;
-}
-
-.hl-string {
- color: #2A00FF;
-}
View
99 docs/src/reference/resources/css/manual.css
@@ -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
BIN  docs/src/reference/resources/images/admon/blank.png
Deleted file not rendered
View
BIN  docs/src/reference/resources/images/admon/caution.gif
Deleted file not rendered
View
BIN  docs/src/reference/resources/images/admon/caution.png
Deleted file not rendered
View
BIN  docs/src/reference/resources/images/admon/caution.tif
Binary file not shown
View
BIN  docs/src/reference/resources/images/admon/draft.png
Deleted file not rendered
View
BIN  docs/src/reference/resources/images/admon/home.gif
Deleted file not rendered
View
BIN  docs/src/reference/resources/images/admon/home.png
Deleted file not rendered
View
BIN  docs/src/reference/resources/images/admon/important.gif
Deleted file not rendered
View
BIN  docs/src/reference/resources/images/admon/important.png
Deleted file not rendered
View
BIN  docs/src/reference/resources/images/admon/important.tif
Binary file not shown
View
BIN  docs/src/reference/resources/images/admon/next.gif
Deleted file not rendered
View
BIN  docs/src/reference/resources/images/admon/next.png
Deleted file not rendered
View
BIN  docs/src/reference/resources/images/admon/note.gif
Deleted file not rendered
View
BIN  docs/src/reference/resources/images/admon/note.png
Deleted file not rendered
View
BIN  docs/src/reference/resources/images/admon/note.tif
Binary file not shown
View
BIN  docs/src/reference/resources/images/admon/prev.gif
Deleted file not rendered
View
BIN  docs/src/reference/resources/images/admon/prev.png
Deleted file not rendered
View
BIN  docs/src/reference/resources/images/admon/tip.gif
Deleted file not rendered
View
BIN  docs/src/reference/resources/images/admon/tip.png
Deleted file not rendered
View
BIN  docs/src/reference/resources/images/admon/tip.tif
Binary file not shown
View
BIN  docs/src/reference/resources/images/admon/toc-blank.png
Deleted file not rendered
View
BIN  docs/src/reference/resources/images/admon/toc-minus.png
Deleted file not rendered
View
BIN  docs/src/reference/resources/images/admon/toc-plus.png
Deleted file not rendered
View
BIN  docs/src/reference/resources/images/admon/up.gif
Deleted file not rendered
View
BIN  docs/src/reference/resources/images/admon/up.png
Deleted file not rendered
View
BIN  docs/src/reference/resources/images/admon/warning.gif
Deleted file not rendered
View
BIN  docs/src/reference/resources/images/admon/warning.png
Deleted file not rendered
View
BIN  docs/src/reference/resources/images/admon/warning.tif
Binary file not shown
View
BIN  docs/src/reference/resources/images/callouts/1.png
Deleted file not rendered
View
BIN  docs/src/reference/resources/images/callouts/10.png
Deleted file not rendered
View
BIN  docs/src/reference/resources/images/callouts/11.png
Diff not rendered
View
BIN  docs/src/reference/resources/images/callouts/12.png
Diff not rendered
View
BIN  docs/src/reference/resources/images/callouts/13.png
Diff not rendered
View
BIN  docs/src/reference/resources/images/callouts/14.png
Diff not rendered
View
BIN  docs/src/reference/resources/images/callouts/15.png
Diff not rendered
View
BIN  docs/src/reference/resources/images/callouts/2.png
Diff not rendered
View
BIN  docs/src/reference/resources/images/callouts/3.png
Diff not rendered
View
BIN  docs/src/reference/resources/images/callouts/4.png
Diff not rendered
View
BIN  docs/src/reference/resources/images/callouts/5.png
Diff not rendered
View
BIN  docs/src/reference/resources/images/callouts/6.png
Diff not rendered
View
BIN  docs/src/reference/resources/images/callouts/7.png
Diff not rendered
View
BIN  docs/src/reference/resources/images/callouts/8.png
Diff not rendered
View
BIN  docs/src/reference/resources/images/callouts/9.png
Diff not rendered
View
BIN  docs/src/reference/resources/images/logo.png
Diff not rendered
View
BIN  docs/src/reference/resources/images/xdev-spring_logo.jpg
Diff not rendered
View
449 docs/src/reference/resources/xsl/fopdf.xsl
@@ -1,449 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!--
-
- This is the XSL FO (PDF) stylesheet for the Spring Data reference
- documentation.
--->
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:fo="http://www.w3.org/1999/XSL/Format"
- version="1.0">
-
-
- <xsl:import href="urn:docbkx:stylesheet"/>
- <xsl:import href="highlight-fo.xsl"/>
-
- <!--###################################################
- Custom Title Page
- ################################################### -->
-
- <xsl:template name="book.titlepage.recto">
- <fo:block>
- <fo:table table-layout="fixed" width="175mm">
- <fo:table-column column-width="175mm"/>
- <fo:table-body>
- <fo:table-row>
- <fo:table-cell text-align="center">
- <!-- Logo
- <fo:block>
- <fo:external-graphic src="file:src/docbkx/resources/images/s2_box_logo.png"/>
- </fo:block>
- -->
- <fo:block font-family="Helvetica" font-size="22pt" padding-before="10mm">
- <xsl:value-of select="bookinfo/subtitle"/>
- </fo:block>
- <fo:block font-family="Helvetica" font-size="14pt" padding="10mm">
- <xsl:value-of select="bookinfo/title"/>
- </fo:block>
- <fo:block font-family="Helvetica" font-size="12pt" padding="10mm">
- <xsl:value-of select="bookinfo/releaseinfo"/>
- </fo:block>
- </fo:table-cell>
- </fo:table-row>
- <fo:table-row>
- <fo:table-cell text-align="center">
- <fo:block font-family="Helvetica" font-size="14pt" padding="10mm">
- <xsl:value-of select="bookinfo/pubdate"/>
- </fo:block>
- </fo:table-cell>
- </fo:table-row>
- <fo:table-row>
- <fo:table-cell text-align="center">
- <fo:block font-family="Helvetica" font-size="12pt" padding="10mm">
- <xsl:for-each select="bookinfo/authorgroup/author">
- <xsl:if test="position() > 1">
- <xsl:text>, </xsl:text>
- </xsl:if>
- <xsl:value-of select="firstname"/>
- <xsl:text> </xsl:text>
- <xsl:value-of select="surname"/>
- <xsl:text> (</xsl:text>
- <xsl:value-of select="affiliation"/>
- <xsl:text>)</xsl:text>
- </xsl:for-each>
- </fo:block>
- <fo:block font-family="Helvetica" font-size="12pt" padding="10mm">
- <xsl:text>Copyright &#xA9; 2010-2011</xsl:text>
- </fo:block>
-
- <fo:block font-family="Helvetica" font-size="10pt" padding="1mm">
- <xsl:value-of select="bookinfo/legalnotice"/>
- </fo:block>
- </fo:table-cell>
- </fo:table-row>
- </fo:table-body>
- </fo:table>
- </fo:block>
- </xsl:template>
-
- <!-- Prevent blank pages in output -->
- <xsl:template name="book.titlepage.before.verso">
- </xsl:template>
- <xsl:template name="book.titlepage.verso">
- </xsl:template>
- <xsl:template name="book.titlepage.separator">
- </xsl:template>
-
- <!--###################################################
- Header
- ################################################### -->
-
- <!-- More space in the center header for long text -->
- <xsl:attribute-set name="header.content.properties">
- <xsl:attribute name="font-family">
- <xsl:value-of select="$body.font.family"/>
- </xsl:attribute>
- <xsl:attribute name="margin-left">-5em</xsl:attribute>
- <xsl:attribute name="margin-right">-5em</xsl:attribute>
- </xsl:attribute-set>
-
- <!--###################################################
- Custom Footer
- ################################################### -->
- <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:if test="//releaseinfo">
- <xsl:text>Spring Data Redis (</xsl:text><xsl:value-of select="//releaseinfo" /><xsl:text>)</xsl:text>
- </xsl:if>
- </xsl:variable>
- <xsl:choose>
- <xsl:when test="$sequence='blank'">
- <xsl:if test="$position = 'center'">
- <xsl:value-of select="$Version"/>
- </xsl:if>
- </xsl:when>
- <!-- for double sided printing, print page numbers on alternating sides (of the page) -->
- <xsl:when test="$double.sided != 0">
- <xsl:choose>
- <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:template>
-
- <!--###################################################
- Extensions
- ################################################### -->
-
- <!-- These extensions are required for table printing and other stuff -->
- <xsl:param name="tablecolumns.extension">0</xsl:param>
- <!-- FOP provide only PDF Bookmarks at the moment -->
- <xsl:param name="fop.extensions">1</xsl:param>
- <xsl:param name="fop1.extensions">1</xsl:param>
- <xsl:param name="ignore.image.scaling">0</xsl:param>
-
- <!--###################################################
- Table Of Contents
- ################################################### -->
-
- <!-- Generate the TOCs for named components only -->
- <xsl:param name="generate.toc">
- book toc
- </xsl:param>
-
- <!-- Show only Sections up to level 3 in the TOCs -->
- <xsl:param name="toc.section.depth">2</xsl:param>
-
- <!-- Dot and Whitespace as separator in TOC between Label and Title-->
- <xsl:param name="autotoc.label.separator" select="'. '"/>
-
-
- <!--###################################################
- Paper & Page Size
- ################################################### -->
-
- <!-- Paper type, no headers on blank pages, no double sided printing -->
- <xsl:param name="paper.type" select="'A4'"/>
- <xsl:param name="double.sided">0</xsl:param>
- <xsl:param name="headers.on.blank.pages">0</xsl:param>
- <xsl:param name="footers.on.blank.pages">0</xsl:param>
-
- <!-- Space between paper border and content (chaotic stuff, don't touch) -->
- <xsl:param name="page.margin.top">5mm</xsl:param>
- <xsl:param name="region.before.extent">10mm</xsl:param>
- <xsl:param name="body.margin.top">10mm</xsl:param>
-
- <xsl:param name="body.margin.bottom">15mm</xsl:param>
- <xsl:param name="region.after.extent">10mm</xsl:param>
- <xsl:param name="page.margin.bottom">0mm</xsl:param>
-
- <xsl:param name="page.margin.outer">18mm</xsl:param>
- <xsl:param name="page.margin.inner">18mm</xsl:param>
-
- <!-- No intendation of Titles -->
- <xsl:param name="title.margin.left">0pc</xsl:param>
-
- <!--###################################################
- Fonts & Styles
- ################################################### -->
-
- <!-- Left aligned text and no hyphenation -->
- <xsl:param name="alignment">justify</xsl:param>
- <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>
-
- <!-- Monospaced fonts are smaller than regular text -->
- <xsl:attribute-set name="monospace.properties">
- <xsl:attribute name="font-family">
- <xsl:value-of select="$monospace.font.family"/>
- </xsl:attribute>
- <xsl:attribute name="font-size">0.8em</xsl:attribute>
- </xsl:attribute-set>
-
- <!--###################################################
- Tables
- ################################################### -->
-
- <!-- The table width should be adapted to the paper size -->
- <xsl:param name="default.table.width">17.4cm</xsl:param>
-
- <!-- Some padding inside tables -->
- <xsl:attribute-set name="table.cell.padding">
- <xsl:attribute name="padding-left">4pt</xsl:attribute>
- <xsl:attribute name="padding-right">4pt</xsl:attribute>
- <xsl:attribute name="padding-top">4pt</xsl:attribute>
- <xsl:attribute name="padding-bottom">4pt</xsl:attribute>
- </xsl:attribute-set>
-
- <!-- Only hairlines as frame and cell borders in tables -->
- <xsl:param name="table.frame.border.thickness">0.1pt</xsl:param>
- <xsl:param name="table.cell.border.thickness">0.1pt</xsl:param>
-
- <!--###################################################
- Labels
- ################################################### -->
-
- <!-- Label Chapters and Sections (numbering) -->
- <xsl:param name="chapter.autolabel">1</xsl:param>
- <xsl:param name="section.autolabel" select="1"/>
- <xsl:param name="section.label.includes.component.label" select="1"/>
-
- <!--###################################################
- Titles
- ################################################### -->
-
- <!-- 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>
-
- <!-- Titles of formal objects (tables, examples, ...) -->
- <xsl:attribute-set name="formal.title.properties" use-attribute-sets="normal.para.spacing">
- <xsl:attribute name="font-weight">bold</xsl:attribute>
- <xsl:attribute name="font-size">
- <xsl:value-of select="$body.font.master"/>
- <xsl:text>pt</xsl:text>
- </xsl:attribute>
- <xsl:attribute name="hyphenate">false</xsl:attribute>
- <xsl:attribute name="space-after.minimum">0.4em</xsl:attribute>
- <xsl:attribute name="space-after.optimum">0.6em</xsl:attribute>
- <xsl:attribute name="space-after.maximum">0.8em</xsl:attribute>
- </xsl:attribute-set>
-
- <!--###################################################
- 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="border-color">#444444</xsl:attribute>
- <xsl:attribute name="border-style">solid</xsl:attribute>
- <xsl:attribute name="border-width">0.1pt</xsl:attribute>
- <xsl:attribute name="padding-top">0.5em</xsl:attribute>
- <xsl:attribute name="padding-left">0.5em</xsl:attribute>
- <xsl:attribute name="padding-right">0.5em</xsl:attribute>
- <xsl:attribute name="padding-bottom">0.5em</xsl:attribute>
- <xsl:attribute name="margin-left">0.5em</xsl:attribute>
- <xsl:attribute name="margin-right">0.5em</xsl:attribute>
- </xsl:attribute-set>
-
- <!-- Shade (background) programlistings -->
- <xsl:param name="shade.verbatim">1</xsl:param>
- <xsl:attribute-set name="shade.verbatim.style">
- <xsl:attribute name="background-color">#F0F0F0</xsl:attribute>
- </xsl:attribute-set>
-
- <!--###################################################
- Callouts
- ################################################### -->
-
- <!-- Use images for callouts instead of (1) (2) (3) -->
- <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>
-
- <!--###################################################
- Admonitions
- ################################################### -->
-
- <!-- Use nice graphics for admonitions -->
- <xsl:param name="admon.graphics">'1'</xsl:param>
- <xsl:param name="admon.graphics.path">src/docbkx/resources/images/admons/</xsl:param>
-
- <!--###################################################
- Misc
- ################################################### -->
-
- <!-- Placement of titles -->
- <xsl:param name="formal.title.placement">
- figure after
- example before
- equation before
- table before
- procedure before
- </xsl:param>
-
- <!-- Format Variable Lists as Blocks (prevents horizontal overflow) -->
- <xsl:param name="variablelist.as.blocks">1</xsl:param>
-
- <!-- The horrible list spacing problems -->
- <xsl:attribute-set name="list.block.spacing">
- <xsl:attribute name="space-before.optimum">0.8em</xsl:attribute>
- <xsl:attribute name="space-before.minimum">0.8em</xsl:attribute>
- <xsl:attribute name="space-before.maximum">0.8em</xsl:attribute>
- <xsl:attribute name="space-after.optimum">0.1em</xsl:attribute>
- <xsl:attribute name="space-after.minimum">0.1em</xsl:attribute>
- <xsl:attribute name="space-after.maximum">0.1em</xsl:attribute>
- </xsl:attribute-set>
-
- <!--###################################################
- 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: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>
View
44 docs/src/reference/resources/xsl/highlight-fo.xsl
@@ -1,44 +0,0 @@
-<?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
42 docs/src/reference/resources/xsl/highlight.xsl
@@ -1,42 +0,0 @@
-<?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
145 docs/src/reference/resources/xsl/html-custom.xsl
@@ -1,145 +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:import href="http://docbook.sourceforge.net/release/xsl/current/html/chunk.xsl"/>
- <xsl:import href="http://docbook.sourceforge.net/release/xsl/current/html/highlight.xsl"/>
-
- <xsl:param name="chunk.section.depth">'5'</xsl:param>
- <xsl:param name="use.id.as.filename">'1'</xsl:param>
-
- <!-- Only use scaling in FO -->
- <xsl:param name="ignore.image.scaling">1</xsl:param>
-
- <!-- Use code syntax highlighting -->
- <xsl:param name="highlight.source">1</xsl:param>
-
-<!-- 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/admon/</xsl:param>
- <xsl:param name="admon.graphics.extension">.png</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">.png</xsl:param>
-
- <xsl:param name="table.borders.with.css" select="1"/>
- <xsl:param name="html.stylesheet">css/manual.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>
-
- <!-- Leave image paths as relative when navigating XInclude -->
- <xsl:param name="keep.relative.image.uris" select="1"/>
-
-<!-- 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="2"/>
-
- <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>
-
- <xsl:template match='xslthl:keyword' mode="xslthl">
- <span class="hl-keyword"><xsl:apply-templates mode="xslthl"/></span>
- </xsl:template>
-
- <xsl:template match='xslthl:comment' mode="xslthl">
- <span class="hl-comment"><xsl:apply-templates mode="xslthl"/></span>
- </xsl:template>
-
- <xsl:template match='xslthl:oneline-comment' mode="xslthl">
- <span class="hl-comment"><xsl:apply-templates mode="xslthl"/></span>
- </xsl:template>
-
- <xsl:template match='xslthl:multiline-comment' mode="xslthl">
- <span class="hl-multiline-comment"><xsl:apply-templates mode="xslthl"/></span>
- </xsl:template>
-
- <xsl:template match='xslthl:tag' mode="xslthl">
- <span class="hl-tag"><xsl:apply-templates mode="xslthl"/></span>
- </xsl:template>
-
- <xsl:template match='xslthl:attribute' mode="xslthl">
- <span class="hl-attribute"><xsl:apply-templates mode="xslthl"/></span>
- </xsl:template>
-
- <xsl:template match='xslthl:value' mode="xslthl">
- <span class="hl-value"><xsl:apply-templates mode="xslthl"/></span>
- </xsl:template>
-
- <xsl:template match='xslthl:string' mode="xslthl">
- <span class="hl-string"><xsl:apply-templates mode="xslthl"/></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
142 docs/src/reference/resources/xsl/html-single-custom.xsl
@@ -1,142 +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:import href="http://docbook.sourceforge.net/release/xsl/current/html/docbook.xsl"/>
- <xsl:import href="http://docbook.sourceforge.net/release/xsl/current/html/highlight.xsl"/>
-
- <!-- Only use scaling in FO -->
- <xsl:param name="ignore.image.scaling">1</xsl:param>
-
- <!-- Use code syntax highlighting -->
- <xsl:param name="highlight.source">1</xsl:param>
-
-<!-- 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/admon/</xsl:param>
- <xsl:param name="admon.graphics.extension">.png</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">.png</xsl:param>
-
- <xsl:param name="table.borders.with.css" select="1"/>
- <xsl:param name="html.stylesheet">css/manual.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>
-
- <!-- Leave image paths as relative when navigating XInclude -->
- <xsl:param name="keep.relative.image.uris" select="1"/>
-
-<!-- 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="2"/>
-
- <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 2 in the TOCs -->
- <xsl:param name="toc.section.depth">2</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>
-
- <xsl:template match='xslthl:keyword' mode="xslthl">
- <span class="hl-keyword"><xsl:apply-templates mode="xslthl"/></span>
- </xsl:template>
-
- <xsl:template match='xslthl:comment' mode="xslthl">
- <span class="hl-comment"><xsl:apply-templates mode="xslthl"/></span>
- </xsl:template>
-
- <xsl:template match='xslthl:oneline-comment' mode="xslthl">
- <span class="hl-comment"><xsl:apply-templates mode="xslthl"/></span>
- </xsl:template>
-
- <xsl:template match='xslthl:multiline-comment' mode="xslthl">
- <span class="hl-multiline-comment"><xsl:apply-templates mode="xslthl"/></span>
- </xsl:template>
-
- <xsl:template match='xslthl:tag' mode="xslthl">
- <span class="hl-tag"><xsl:apply-templates mode="xslthl"/></span>
- </xsl:template>
-
- <xsl:template match='xslthl:attribute' mode="xslthl">
- <span class="hl-attribute"><xsl:apply-templates mode="xslthl"/></span>
- </xsl:template>
-
- <xsl:template match='xslthl:value' mode="xslthl">
- <span class="hl-value"><xsl:apply-templates mode="xslthl"/></span>
- </xsl:template>
-
- <xsl:template match='xslthl:string' mode="xslthl">
- <span class="hl-string"><xsl:apply-templates mode="xslthl"/></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
107 docs/src/reference/resources/xsl/html.xsl
@@ -1,107 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!--
- This is the XSL HTML configuration file for the Spring
- Reference Documentation.
--->
-<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: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>
-
- <!--###################################################
- Table Of Contents
- ################################################### -->
-
- <!-- Generate the TOCs for named components only -->
- <xsl:param name="generate.toc">
- book toc
- </xsl:param>
-
- <!-- Show only Sections up to level 3 in the TOCs -->
- <xsl:param name="toc.section.depth">3</xsl:param>
-
- <!--###################################################
- Labels
- ################################################### -->
-
- <!-- Label Chapters and Sections (numbering) -->
- <xsl:param name="chapter.autolabel">1</xsl:param>
- <xsl:param name="section.autolabel" select="1"/>
- <xsl:param name="section.label.includes.component.label" select="1"/>
-
- <!--###################################################
- Callouts
- ################################################### -->
-
- <!-- Use images for callouts instead of (1) (2) (3) -->
- <xsl:param name="callout.graphics">1</xsl:param>
-
- <!-- Place callout marks at this column in annotated areas -->
- <xsl:param name="callout.defaultcolumn">90</xsl:param>
-
- <!--###################################################
- Admonitions
- ################################################### -->
-
- <!-- Use nice graphics for admonitions -->
- <xsl:param name="admon.graphics">1</xsl:param>
- <xsl:param name="admon.graphics.path">images/admons/</xsl:param>
- <!--###################################################
- Misc
- ################################################### -->
- <!-- Placement of titles -->
- <xsl:param name="formal.title.placement">
- figure after
- example before
- equation before
- table before
- procedure before
- </xsl:param>
- <xsl:template match="author" mode="titlepage.mode">
- <xsl:if test="name(preceding-sibling::*[1]) = 'author'">
- <xsl:text>, </xsl:text>
- </xsl:if>
- <span class="{name(.)}">
- <xsl:call-template name="person.name"/>
- (<xsl:value-of select="affiliation"/>)
- <xsl:apply-templates mode="titlepage.mode" select="./contrib"/>
- </span>
- </xsl:template>
- <xsl:template match="authorgroup" mode="titlepage.mode">
- <div class="{name(.)}">
- <h2>Authors</h2>
- <p/>
- <xsl:apply-templates mode="titlepage.mode"/>
- </div>
- </xsl:template>
- <!--###################################################
- Headers and Footers
- ################################################### -->
- <!-- let's have a Spring and I21 banner across the top of each page -->
- <xsl:template name="user.header.navigation">
- <div style="background-color:white;border:none;height:73px;border:1px solid black;">
- <a style="border:none;" href="http://www.springframework.org/osgi/"
- title="The Spring Framework - Spring Data">
- <img style="border:none;" src="images/xdev-spring_logo.jpg"/>
- </a>
- <a style="border:none;" href="http://www.SpringSource.com/" title="SpringSource - Spring from the Source">
- <img style="border:none;position:absolute;padding-top:5px;right:42px;" src="images/s2-banner-rhs.png"/>
- </a>
- </div>
- </xsl:template>
-
-</xsl:stylesheet>
-
View
221 docs/src/reference/resources/xsl/html_chunk.xsl
@@ -1,221 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!--
- This is the XSL HTML configuration file for the Spring Reference Documentation.
--->
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:fo="http://www.w3.org/1999/XSL/Format"
- version="1.0">
-
- <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>
- <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>
- <!--###################################################
- Table Of Contents
- ################################################### -->
- <!-- Generate the TOCs for named components only -->
- <xsl:param name="generate.toc">
- book toc
- qandaset toc
- </xsl:param>
- <!-- Show only Sections up to level 3 in the TOCs -->
- <xsl:param name="toc.section.depth">3</xsl:param>
- <!--###################################################
- Labels
- ################################################### -->
- <!-- Label Chapters and Sections (numbering) -->
- <xsl:param name="chapter.autolabel">1</xsl:param>
- <xsl:param name="section.autolabel" select="1"/>
- <xsl:param name="section.label.includes.component.label" select="1"/>
- <!--###################################################
- Callouts
- ################################################### -->
- <!-- Place callout marks at this column in annotated areas -->
- <xsl:param name="callout.graphics">1</xsl:param>
- <xsl:param name="callout.defaultcolumn">90</xsl:param>
-
- <!--###################################################
- Admonitions
- ################################################### -->
-
- <!-- Use nice graphics for admonitions -->
- <xsl:param name="admon.graphics">1</xsl:param>
- <xsl:param name="admon.graphics.path">images/admons/</xsl:param>
- <!--###################################################
- Misc
- ################################################### -->
- <!-- Placement of titles -->
- <xsl:param name="formal.title.placement">
- figure after
- example before
- equation before
- table before
- procedure before
- </xsl:param>
- <xsl:template match="author" mode="titlepage.mode">
- <xsl:if test="name(preceding-sibling::*[1]) = 'author'">
- <xsl:text>, </xsl:text>
- </xsl:if>
- <span class="{name(.)}">
- <xsl:call-template name="person.name"/>
- (<xsl:value-of select="affiliation"/>)
- <xsl:apply-templates mode="titlepage.mode" select="./contrib"/>
- <!--
- <xsl:apply-templates mode="titlepage.mode" select="./affiliation"/>
- -->
- </span>
- </xsl:template>
- <xsl:template match="authorgroup" mode="titlepage.mode">
- <div class="{name(.)}">
- <h2>Authors</h2>
- <p/>
- <xsl:apply-templates mode="titlepage.mode"/>
- </div>
- </xsl:template>
- <!--###################################################
- Headers and Footers
- ################################################### -->
- <!-- let's have a Spring and I21 banner across the top of each page -->
- <xsl:template name="user.header.navigation">
- <div style="background-color:white;border:none;height:73px;border:1px solid black;">
- <a style="border:none;" href="http://www.springframework.org/osgi/"
- title="The Spring Framework - Spring Data">
- <img style="border:none;" src="images/xdev-spring_logo.jpg"/>
- </a>
- <a style="border:none;" href="http://www.SpringSource.com/" title="SpringSource - Spring from the Source">
- <img style="border:none;position:absolute;padding-top:5px;right:42px;" src="images/s2-banner-rhs.png"/>
- </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($next) &gt; 0"/>
- <xsl:variable name="row2" select="($prev and $navig.showtitles != 0)
- or (generate-id($home) != generate-id(.)
- or $nav.context = 'toc')
- or ($chunk.tocs.and.lots != 0
- and $nav.context != 'toc')
- or ($next and $navig.showtitles != 0)"/>
- <xsl:if test="$suppress.navigation = '0' and $suppress.footer.navigation = '0'">
- <div class="navfooter">
- <xsl:if test="$footer.rule != 0">
- <hr/>
- </xsl:if>
- <xsl:if test="$row1 or $row2">
- <table width="100%" summary="Navigation footer">
- <xsl:if test="$row1">
- <tr>
- <td width="40%" align="left">
- <xsl:if test="count($prev)>0">
- <a accesskey="p">
- <xsl:attribute name="href">
- <xsl:call-template name="href.target">
- <xsl:with-param name="object" select="$prev"/>
- </xsl:call-template>
- </xsl:attribute>
- <xsl:call-template name="navig.content">
- <xsl:with-param name="direction" select="'prev'"/>
- </xsl:call-template>
- </a>
- </xsl:if>
- <xsl:text>&#160;</xsl:text>
- </td>
-
- <td width="20%" align="center">
- <xsl:choose>
- <xsl:when test="$home != . or $nav.context = 'toc'">
- <a accesskey="h">
- <xsl:attribute name="href">
- <xsl:call-template name="href.target">
- <xsl:with-param name="object" select="$home"/>
- </xsl:call-template>
- </xsl:attribute>
- <xsl:call-template name="navig.content">
- <xsl:with-param name="direction" select="'home'"/>
- </xsl:call-template>
- </a>
- <xsl:if test="$chunk.tocs.and.lots != 0 and $nav.context != 'toc'">
- <xsl:text>&#160;|&#160;</xsl:text>
- </xsl:if>
- </xsl:when>
- <xsl:otherwise>&#160;</xsl:otherwise>
- </xsl:choose>
- <xsl:if test="$chunk.tocs.and.lots != 0 and $nav.context != 'toc'">
- <a accesskey="t">
- <xsl:attribute name="href">
- <xsl:apply-templates select="/*[1]" mode="recursive-chunk-filename">
- <xsl:with-param name="recursive" select="true()"/>
- </xsl:apply-templates>
- <xsl:text>-toc</xsl:text>
- <xsl:value-of select="$html.ext"/>
- </xsl:attribute>
- <xsl:call-template name="gentext">
- <xsl:with-param name="key" select="'nav-toc'"/>
- </xsl:call-template>
- </a>
- </xsl:if>
- </td>
- <td width="40%" align="right">
- <xsl:text>&#160;</xsl:text>
- <xsl:if test="count($next)>0">
- <a accesskey="n">
- <xsl:attribute name="href">
- <xsl:call-template name="href.target">
- <xsl:with-param name="object" select="$next"/>
- </xsl:call-template>
- </xsl:attribute>
- <xsl:call-template name="navig.content">
- <xsl:with-param name="direction" select="'next'"/>
- </xsl:call-template>
- </a>
- </xsl:if>
- </td>
- </tr>
- </xsl:if>
- <xsl:if test="$row2">
- <tr>
- <td width="40%" align="left" valign="top">
- <xsl:if test="$navig.showtitles != 0">
- <xsl:apply-templates select="$prev" mode="object.title.markup"/>
- </xsl:if>
- <xsl:text>&#160;</xsl:text>
- </td>
- <td width="20%" align="center">
- <span style="color:white;font-size:90%;">
- <a href="http://www.SpringSource.com/"
- title="SpringSource - Spring from the Source">Sponsored by SpringSource
- </a>
- </span>
- </td>
- <td width="40%" align="right" valign="top">
- <xsl:text>&#160;</xsl:text>
- <xsl:if test="$navig.showtitles != 0">
- <xsl:apply-templates select="$next" mode="object.title.markup"/>
- </xsl:if>
- </td>
- </tr>
- </xsl:if>
- </table>
- </xsl:if>
- </div>
- </xsl:if>
- </xsl:template>
-</xsl:stylesheet>
View
522 docs/src/reference/resources/xsl/pdf-custom.xsl
@@ -1,522 +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'>
-
- <xsl:import href="http://docbook.sourceforge.net/release/xsl/current/fo/docbook.xsl"/>
- <xsl:import href="http://docbook.sourceforge.net/release/xsl/current/fo/highlight.xsl"/>
-
-<!-- Use nice graphics for admonitions -->
- <xsl:param name="admon.graphics">'1'</xsl:param>
- <xsl:param name="admon.graphics.path">images/admon/</xsl:param>
- <xsl:param name="admon.graphics.extension">.png</xsl:param>
-
-<!-- resize the admon graphics. they're width 36pt by default
- even though the graphics that ship with docbook are 24x24 -->
- <xsl:template match="*" mode="admon.graphic.width">
- <xsl:param name="node" select="."/>
- <xsl:text>24pt</xsl:text>
- </xsl:template>
-
- <xsl:param name="paper.type" select="'A4'"/>
- <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&