You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@shiro.apache.org by lh...@apache.org on 2009/03/29 18:52:43 UTC
svn commit: r759727 [1/2] - in /incubator/jsecurity/trunk: ./
docs/reference/images/admons/ docs/reference/src/ docs/reference/styles/
src/ src/docbkx/ src/docbkx/resources/ src/docbkx/resources/css/
src/docbkx/resources/images/ src/docbkx/resources/im...
Author: lhazlewood
Date: Sun Mar 29 16:52:41 2009
New Revision: 759727
URL: http://svn.apache.org/viewvc?rev=759727&view=rev
Log:
documentation work - prepared to use the docbkx plugin for DocBook documentation
Added:
incubator/jsecurity/trunk/src/
incubator/jsecurity/trunk/src/docbkx/
incubator/jsecurity/trunk/src/docbkx/index.xml
- copied, changed from r759680, incubator/jsecurity/trunk/docs/reference/src/index.xml
incubator/jsecurity/trunk/src/docbkx/preface.xml
- copied, changed from r759680, incubator/jsecurity/trunk/docs/reference/src/preface.xml
incubator/jsecurity/trunk/src/docbkx/resources/
incubator/jsecurity/trunk/src/docbkx/resources/css/
incubator/jsecurity/trunk/src/docbkx/resources/css/html.css
- copied unchanged from r759680, incubator/jsecurity/trunk/docs/reference/styles/html.css
incubator/jsecurity/trunk/src/docbkx/resources/images/
incubator/jsecurity/trunk/src/docbkx/resources/images/admons/
incubator/jsecurity/trunk/src/docbkx/resources/images/admons/blank.png (props changed)
- copied unchanged from r759680, incubator/jsecurity/trunk/docs/reference/images/admons/blank.png
incubator/jsecurity/trunk/src/docbkx/resources/images/admons/caution.gif (props changed)
- copied unchanged from r759680, incubator/jsecurity/trunk/docs/reference/images/admons/caution.gif
incubator/jsecurity/trunk/src/docbkx/resources/images/admons/caution.png (props changed)
- copied unchanged from r759680, incubator/jsecurity/trunk/docs/reference/images/admons/caution.png
incubator/jsecurity/trunk/src/docbkx/resources/images/admons/caution.tif (props changed)
- copied unchanged from r759680, incubator/jsecurity/trunk/docs/reference/images/admons/caution.tif
incubator/jsecurity/trunk/src/docbkx/resources/images/admons/draft.png (props changed)
- copied unchanged from r759680, incubator/jsecurity/trunk/docs/reference/images/admons/draft.png
incubator/jsecurity/trunk/src/docbkx/resources/images/admons/home.gif (props changed)
- copied unchanged from r759680, incubator/jsecurity/trunk/docs/reference/images/admons/home.gif
incubator/jsecurity/trunk/src/docbkx/resources/images/admons/home.png (props changed)
- copied unchanged from r759680, incubator/jsecurity/trunk/docs/reference/images/admons/home.png
incubator/jsecurity/trunk/src/docbkx/resources/images/admons/important.gif (props changed)
- copied unchanged from r759680, incubator/jsecurity/trunk/docs/reference/images/admons/important.gif
incubator/jsecurity/trunk/src/docbkx/resources/images/admons/important.png (props changed)
- copied unchanged from r759680, incubator/jsecurity/trunk/docs/reference/images/admons/important.png
incubator/jsecurity/trunk/src/docbkx/resources/images/admons/important.tif (props changed)
- copied unchanged from r759680, incubator/jsecurity/trunk/docs/reference/images/admons/important.tif
incubator/jsecurity/trunk/src/docbkx/resources/images/admons/next.gif (props changed)
- copied unchanged from r759680, incubator/jsecurity/trunk/docs/reference/images/admons/next.gif
incubator/jsecurity/trunk/src/docbkx/resources/images/admons/next.png (props changed)
- copied unchanged from r759680, incubator/jsecurity/trunk/docs/reference/images/admons/next.png
incubator/jsecurity/trunk/src/docbkx/resources/images/admons/note.gif (props changed)
- copied unchanged from r759680, incubator/jsecurity/trunk/docs/reference/images/admons/note.gif
incubator/jsecurity/trunk/src/docbkx/resources/images/admons/note.png (props changed)
- copied unchanged from r759680, incubator/jsecurity/trunk/docs/reference/images/admons/note.png
incubator/jsecurity/trunk/src/docbkx/resources/images/admons/note.tif (props changed)
- copied unchanged from r759680, incubator/jsecurity/trunk/docs/reference/images/admons/note.tif
incubator/jsecurity/trunk/src/docbkx/resources/images/admons/prev.gif (props changed)
- copied unchanged from r759680, incubator/jsecurity/trunk/docs/reference/images/admons/prev.gif
incubator/jsecurity/trunk/src/docbkx/resources/images/admons/prev.png (props changed)
- copied unchanged from r759680, incubator/jsecurity/trunk/docs/reference/images/admons/prev.png
incubator/jsecurity/trunk/src/docbkx/resources/images/admons/tip.gif (props changed)
- copied unchanged from r759680, incubator/jsecurity/trunk/docs/reference/images/admons/tip.gif
incubator/jsecurity/trunk/src/docbkx/resources/images/admons/tip.png (props changed)
- copied unchanged from r759680, incubator/jsecurity/trunk/docs/reference/images/admons/tip.png
incubator/jsecurity/trunk/src/docbkx/resources/images/admons/tip.tif (props changed)
- copied unchanged from r759680, incubator/jsecurity/trunk/docs/reference/images/admons/tip.tif
incubator/jsecurity/trunk/src/docbkx/resources/images/admons/toc-blank.png (props changed)
- copied unchanged from r759680, incubator/jsecurity/trunk/docs/reference/images/admons/toc-blank.png
incubator/jsecurity/trunk/src/docbkx/resources/images/admons/toc-minus.png (props changed)
- copied unchanged from r759680, incubator/jsecurity/trunk/docs/reference/images/admons/toc-minus.png
incubator/jsecurity/trunk/src/docbkx/resources/images/admons/toc-plus.png (props changed)
- copied unchanged from r759680, incubator/jsecurity/trunk/docs/reference/images/admons/toc-plus.png
incubator/jsecurity/trunk/src/docbkx/resources/images/admons/up.gif (props changed)
- copied unchanged from r759680, incubator/jsecurity/trunk/docs/reference/images/admons/up.gif
incubator/jsecurity/trunk/src/docbkx/resources/images/admons/up.png (props changed)
- copied unchanged from r759680, incubator/jsecurity/trunk/docs/reference/images/admons/up.png
incubator/jsecurity/trunk/src/docbkx/resources/images/admons/warning.gif (props changed)
- copied unchanged from r759680, incubator/jsecurity/trunk/docs/reference/images/admons/warning.gif
incubator/jsecurity/trunk/src/docbkx/resources/images/admons/warning.png (props changed)
- copied unchanged from r759680, incubator/jsecurity/trunk/docs/reference/images/admons/warning.png
incubator/jsecurity/trunk/src/docbkx/resources/images/admons/warning.tif (props changed)
- copied unchanged from r759680, incubator/jsecurity/trunk/docs/reference/images/admons/warning.tif
incubator/jsecurity/trunk/src/docbkx/resources/xsl/
incubator/jsecurity/trunk/src/docbkx/resources/xsl/fopdf.xsl
- copied, changed from r759680, incubator/jsecurity/trunk/docs/reference/styles/fopdf.xsl
incubator/jsecurity/trunk/src/docbkx/resources/xsl/html.xsl
- copied, changed from r759680, incubator/jsecurity/trunk/docs/reference/styles/html.xsl
incubator/jsecurity/trunk/src/docbkx/resources/xsl/html_chunk.xsl
- copied, changed from r759680, incubator/jsecurity/trunk/docs/reference/styles/html_chunk.xsl
incubator/jsecurity/trunk/src/docbkx/resources/xsl/tld.to.docbook.xsl
- copied unchanged from r759680, incubator/jsecurity/trunk/docs/reference/styles/tld.to.docbook.xsl
incubator/jsecurity/trunk/src/docbkx/security-manager.xml
- copied, changed from r759680, incubator/jsecurity/trunk/docs/reference/src/security-manager.xml
Removed:
incubator/jsecurity/trunk/docs/reference/images/admons/blank.png
incubator/jsecurity/trunk/docs/reference/images/admons/caution.gif
incubator/jsecurity/trunk/docs/reference/images/admons/caution.png
incubator/jsecurity/trunk/docs/reference/images/admons/caution.tif
incubator/jsecurity/trunk/docs/reference/images/admons/draft.png
incubator/jsecurity/trunk/docs/reference/images/admons/home.gif
incubator/jsecurity/trunk/docs/reference/images/admons/home.png
incubator/jsecurity/trunk/docs/reference/images/admons/important.gif
incubator/jsecurity/trunk/docs/reference/images/admons/important.png
incubator/jsecurity/trunk/docs/reference/images/admons/important.tif
incubator/jsecurity/trunk/docs/reference/images/admons/next.gif
incubator/jsecurity/trunk/docs/reference/images/admons/next.png
incubator/jsecurity/trunk/docs/reference/images/admons/note.gif
incubator/jsecurity/trunk/docs/reference/images/admons/note.png
incubator/jsecurity/trunk/docs/reference/images/admons/note.tif
incubator/jsecurity/trunk/docs/reference/images/admons/prev.gif
incubator/jsecurity/trunk/docs/reference/images/admons/prev.png
incubator/jsecurity/trunk/docs/reference/images/admons/tip.gif
incubator/jsecurity/trunk/docs/reference/images/admons/tip.png
incubator/jsecurity/trunk/docs/reference/images/admons/tip.tif
incubator/jsecurity/trunk/docs/reference/images/admons/toc-blank.png
incubator/jsecurity/trunk/docs/reference/images/admons/toc-minus.png
incubator/jsecurity/trunk/docs/reference/images/admons/toc-plus.png
incubator/jsecurity/trunk/docs/reference/images/admons/up.gif
incubator/jsecurity/trunk/docs/reference/images/admons/up.png
incubator/jsecurity/trunk/docs/reference/images/admons/warning.gif
incubator/jsecurity/trunk/docs/reference/images/admons/warning.png
incubator/jsecurity/trunk/docs/reference/images/admons/warning.tif
incubator/jsecurity/trunk/docs/reference/src/authentication.xml
incubator/jsecurity/trunk/docs/reference/src/authorization.xml
incubator/jsecurity/trunk/docs/reference/src/caching.xml
incubator/jsecurity/trunk/docs/reference/src/cryptography.xml
incubator/jsecurity/trunk/docs/reference/src/ehcache.xml
incubator/jsecurity/trunk/docs/reference/src/index.xml
incubator/jsecurity/trunk/docs/reference/src/integration.xml
incubator/jsecurity/trunk/docs/reference/src/ki.tld.xml
incubator/jsecurity/trunk/docs/reference/src/overview.xml
incubator/jsecurity/trunk/docs/reference/src/preface.xml
incubator/jsecurity/trunk/docs/reference/src/realms.xml
incubator/jsecurity/trunk/docs/reference/src/security-manager.xml
incubator/jsecurity/trunk/docs/reference/src/sessions.xml
incubator/jsecurity/trunk/docs/reference/src/terminology.xml
incubator/jsecurity/trunk/docs/reference/src/web-filter.xml
incubator/jsecurity/trunk/docs/reference/src/web-support.xml
incubator/jsecurity/trunk/docs/reference/src/web-taglibs.xml
incubator/jsecurity/trunk/docs/reference/styles/fopdf.xsl
incubator/jsecurity/trunk/docs/reference/styles/html.css
incubator/jsecurity/trunk/docs/reference/styles/html.xsl
incubator/jsecurity/trunk/docs/reference/styles/html_chunk.xsl
incubator/jsecurity/trunk/docs/reference/styles/tld.to.docbook.xsl
Modified:
incubator/jsecurity/trunk/pom.xml
Modified: incubator/jsecurity/trunk/pom.xml
URL: http://svn.apache.org/viewvc/incubator/jsecurity/trunk/pom.xml?rev=759727&r1=759726&r2=759727&view=diff
==============================================================================
--- incubator/jsecurity/trunk/pom.xml (original)
+++ incubator/jsecurity/trunk/pom.xml Sun Mar 29 16:52:41 2009
@@ -54,7 +54,11 @@
<system>Jira</system>
<url>http://issues.apache.org/jira/browse/KI</url>
</issueManagement>
-
+ <ciManagement>
+ <system>Hudson</system>
+ <url>http://hudson.zones.apache.org/hudson/view/Ki/</url>
+ </ciManagement>
+
<scm>
<connection>scm:svn:http://svn.apache.org/repos/asf/incubator/jsecurity/import/trunk</connection>
<developerConnection>scm:svn:https://svn.apache.org/repos/asf/incubator/jsecurity/import/trunk
@@ -125,6 +129,60 @@
<version>2.2</version>
<inherited>true</inherited>
</plugin>
+ <plugin>
+ <groupId>com.agilejava.docbkx</groupId>
+ <artifactId>docbkx-maven-plugin</artifactId>
+ <!-- <version>2.0.7</version> -->
+ <executions>
+ <execution>
+ <goals>
+ <goal>generate-html</goal>
+ <goal>generate-pdf</goal>
+ </goals>
+ <phase>pre-site</phase>
+ </execution>
+ </executions>
+ <dependencies>
+ <dependency>
+ <groupId>org.docbook</groupId>
+ <artifactId>docbook-xml</artifactId>
+ <version>4.4</version>
+ <scope>runtime</scope>
+ </dependency>
+ </dependencies>
+ <configuration>
+ <includes>index.xml</includes>
+ <xincludeSupported>true</xincludeSupported>
+ <!-- <foCustomization>src/docbkx/resources/xsl/fopdf.xsl</foCustomization>
+ <htmlCustomization>src/docbkx/resources/xsl/html_chunk.xsl</htmlCustomization>
+ <htmlStylesheet>css/html.css</htmlStylesheet> -->
+ <chunkedOutput>true</chunkedOutput>
+ <entities>
+ <entity>
+ <name>version</name>
+ <value>${pom.version}</value>
+ </entity>
+ </entities>
+ <postProcess>
+ <copy todir="target/site/reference">
+ <fileset dir="target/docbkx">
+ <include name="**/*.html"/>
+ <include name="**/*.pdf"/>
+ </fileset>
+ </copy>
+ <copy todir="target/site/reference/html">
+ <fileset dir="src/docbkx/resources">
+ <include name="**/*.css"/>
+ <include name="**/*.png"/>
+ <include name="**/*.gif"/>
+ <include name="**/*.jpg"/>
+ <include name="**/*.tif"/>
+ </fileset>
+ </copy>
+ </postProcess>
+ </configuration>
+ </plugin>
+
</plugins>
</build>
Copied: incubator/jsecurity/trunk/src/docbkx/index.xml (from r759680, incubator/jsecurity/trunk/docs/reference/src/index.xml)
URL: http://svn.apache.org/viewvc/incubator/jsecurity/trunk/src/docbkx/index.xml?p2=incubator/jsecurity/trunk/src/docbkx/index.xml&p1=incubator/jsecurity/trunk/docs/reference/src/index.xml&r1=759680&r2=759727&rev=759727&view=diff
==============================================================================
--- incubator/jsecurity/trunk/docs/reference/src/index.xml (original)
+++ incubator/jsecurity/trunk/src/docbkx/index.xml Sun Mar 29 16:52:41 2009
@@ -1,4 +1,4 @@
-<?xml version='1.0' encoding="iso-8859-1" ?>
+<?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
@@ -17,49 +17,56 @@
~ specific language governing permissions and limitations
~ under the License.
-->
-<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN" "../../../lib/docbook/docbook-dtd/docbookx.dtd"
- [
- <!ENTITY preface SYSTEM "preface.xml">
- <!ENTITY terminology SYSTEM "terminology.xml">
- <!ENTITY overview SYSTEM "overview.xml">
- <!ENTITY security-manager SYSTEM "security-manager.xml">
- <!ENTITY realms SYSTEM "realms.xml">
- <!ENTITY authentication SYSTEM "authentication.xml">
- <!ENTITY authorization SYSTEM "authorization.xml">
- <!ENTITY sessions SYSTEM "sessions.xml">
- <!ENTITY cryptography SYSTEM "cryptography.xml">
- <!ENTITY caching SYSTEM "caching.xml">
- <!ENTITY web-support SYSTEM "web-support.xml">
- <!ENTITY web-filter SYSTEM "web-filter.xml">
- <!ENTITY web-taglibs SYSTEM "web-taglibs.xml">
- <!ENTITY ki.tld SYSTEM "ki.tld.xml">
- ]>
-<book>
- <bookinfo>
- <title>Apache Ki Reference Documentation</title>
- <releaseinfo>1.0.0</releaseinfo>
+<book version="5.0" xml:id="apache-ki-reference-documentation"
+ xmlns="http://docbook.org/ns/docbook"
+ xmlns:xlink="http://www.w3.org/1999/xlink"
+ xmlns:xi="http://www.w3.org/2001/XInclude">
+
+ <info>
+ <title>Apache Ki</title>
+ <subtitle>Reference Documentation</subtitle>
<authorgroup>
<author>
- <firstname>Les</firstname>
- <surname>Hazlewood</surname>
+ <personname>
+ <firstname>Les</firstname>
+ <surname>Hazlewood</surname>
+ </personname>
</author>
</authorgroup>
<legalnotice>
<para>
- Copies of this document may be made for your own use and for
- distribution to others, provided that you do not charge any
- fee for such copies and further provided that each copy
- contains this Copyright Notice, whether distributed in print
- or electronically.
+ 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
+ </para>
+ <para>
+ <link href="http://www.apache.org/licenses/LICENSE-2.0">
+ http://www.apache.org/licenses/LICENSE-2.0
+ </link>
+ </para>
+ <para>
+ 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.
</para>
</legalnotice>
- </bookinfo>
+ </info>
+
<!-- front matter -->
<toc/>
- &preface;
- <part id="ki-quickstart">
+
+ <xi:include href="preface.xml"/>
+
+ <part xml:id="ki-quickstart">
<title>Apache Ki Quickstart</title>
- <partintro id="ki-quickstart-intro">
+ <partintro xml:id="ki-quickstart-intro">
<para>
This initial part of the reference documentation walks through the simplest quickstart application
so that you may become familiarized Ki's programming API and general concepts. While this
@@ -71,15 +78,16 @@
<note>
<para>
- The code for this quickstart application is in the <filename>samples/quickstart</filename>
+ The code for this quickstart application is in the
+ <filename>samples/quickstart</filename>
directory of the source distribution.
</para>
</note>
</partintro>
</part>
- <part id="ki-core">
+ <part xml:id="ki-core">
<title>Apache Ki Core</title>
- <partintro id="ki-core-intro">
+ <partintro xml:id="ki-core-intro">
<para>
This part of the reference documentation covers
Ki's core architectural components that support
@@ -88,7 +96,7 @@
clustered enterprise applications.
</para>
<para>
- Most important among these are the Subject and
+ Most important among these are the <interfacename>Subject</interfacename> and
SecurityManager components. These are then followed
by comprehensive coverage of the supporting compnents
responsiple for handling logging in, called an
@@ -116,10 +124,10 @@
<itemizedlist>
<listitem>
<para>
- <xref linkend="security-manager"/>
+ <link linkend="security-manager"/>
</para>
</listitem>
- <!-- <listitem>
+ <!-- <listitem>
<para><xref linkend="authentication"/></para>
</listitem>
<listitem>
@@ -136,16 +144,12 @@
</listitem> -->
</itemizedlist>
</partintro>
- &security-manager;
- &authentication;
- &authorization;
- &realms;
- &sessions;
- &cryptography;
+ <xi:include href="security-manager.xml"/>
</part>
- <!-- <part id="ki-web">
+
+ <!-- <part xml:id="ki-web">
<title>Web Support</title>
- <partintro id="ki-web-intro">
+ <partintro xml:id="ki-web-intro">
<para>
This part of the reference documentation covers
Ki's web support, specifically using Ki in
@@ -224,5 +228,5 @@
</partintro>
</part> -->
<!-- back matter -->
- &ki.tld;
+ <!-- <xi:include href="ki.tld.xml"/> -->
</book>
Copied: incubator/jsecurity/trunk/src/docbkx/preface.xml (from r759680, incubator/jsecurity/trunk/docs/reference/src/preface.xml)
URL: http://svn.apache.org/viewvc/incubator/jsecurity/trunk/src/docbkx/preface.xml?p2=incubator/jsecurity/trunk/src/docbkx/preface.xml&p1=incubator/jsecurity/trunk/docs/reference/src/preface.xml&r1=759680&r2=759727&rev=759727&view=diff
==============================================================================
--- incubator/jsecurity/trunk/docs/reference/src/preface.xml (original)
+++ incubator/jsecurity/trunk/src/docbkx/preface.xml Sun Mar 29 16:52:41 2009
@@ -16,7 +16,10 @@
~ specific language governing permissions and limitations
~ under the License.
-->
-<preface>
+<preface version="5.0" xml:id="preface"
+ xmlns="http://docbook.org/ns/docbook"
+ xmlns:xlink="http://www.w3.org/1999/xlink">
+
<title>Preface</title>
<para>
@@ -31,8 +34,7 @@
While application security is usually a necessity, it would be nice if we could implement it whenever
we want, and without it being too difficult. Actually, it
<emphasis>shouldn't</emphasis>
- be difficult.
- In fact, it
+ be difficult. In fact, it
<emphasis>should</emphasis>
be downright easy. It should also be as transparent and
unintrusive as possible, so you don't have to change a lot of code to secure what you want.
@@ -53,20 +55,19 @@
most complete documentation on Ki and all of its features. It is
very much a work-in-progress, and we welcome suggestions and recommendations. If you have any,
we'd very much appreciate your feedback on our forums at
- <ulink url="http://www.jsecurity.org/forum">http://www.jsecurity.org/forum</ulink>
+ <link href="http://www.jsecurity.org/forum">http://www.jsecurity.org/forum</link>
or
mailing lists at
- <ulink url="http://www.jsecurity.org/mailinglists">http://www.jsecurity.org/mailinglists</ulink>
- .
+ <link href="http://www.jsecurity.org/mailinglists">http://www.jsecurity.org/mailinglists</link>.
</para>
<para>
Before continuing on, we'd like to give credit where it is due for the format of this
book. We sincerely appreciate all the work that Christian Bauer from the
- <ulink url="http://www.hibernate.org">Hibernate</ulink>
+ <link href="http://www.hibernate.org">Hibernate</link>
team and
Juergen Hoeller of the
- <ulink url="http://www.springframework.org">Spring</ulink>
+ <link href="http://www.springframework.org">Spring</link>
team did in ensuring this
document could be created in PDF and HTML formats. Without their efforts, it would have been an agnoizing
task for us to do ourselves.
Propchange: incubator/jsecurity/trunk/src/docbkx/resources/images/admons/blank.png
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Propchange: incubator/jsecurity/trunk/src/docbkx/resources/images/admons/caution.gif
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Propchange: incubator/jsecurity/trunk/src/docbkx/resources/images/admons/caution.png
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Propchange: incubator/jsecurity/trunk/src/docbkx/resources/images/admons/caution.tif
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Propchange: incubator/jsecurity/trunk/src/docbkx/resources/images/admons/draft.png
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Propchange: incubator/jsecurity/trunk/src/docbkx/resources/images/admons/home.gif
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Propchange: incubator/jsecurity/trunk/src/docbkx/resources/images/admons/home.png
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Propchange: incubator/jsecurity/trunk/src/docbkx/resources/images/admons/important.gif
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Propchange: incubator/jsecurity/trunk/src/docbkx/resources/images/admons/important.png
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Propchange: incubator/jsecurity/trunk/src/docbkx/resources/images/admons/important.tif
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Propchange: incubator/jsecurity/trunk/src/docbkx/resources/images/admons/next.gif
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Propchange: incubator/jsecurity/trunk/src/docbkx/resources/images/admons/next.png
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Propchange: incubator/jsecurity/trunk/src/docbkx/resources/images/admons/note.gif
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Propchange: incubator/jsecurity/trunk/src/docbkx/resources/images/admons/note.png
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Propchange: incubator/jsecurity/trunk/src/docbkx/resources/images/admons/note.tif
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Propchange: incubator/jsecurity/trunk/src/docbkx/resources/images/admons/prev.gif
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Propchange: incubator/jsecurity/trunk/src/docbkx/resources/images/admons/prev.png
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Propchange: incubator/jsecurity/trunk/src/docbkx/resources/images/admons/tip.gif
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Propchange: incubator/jsecurity/trunk/src/docbkx/resources/images/admons/tip.png
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Propchange: incubator/jsecurity/trunk/src/docbkx/resources/images/admons/tip.tif
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Propchange: incubator/jsecurity/trunk/src/docbkx/resources/images/admons/toc-blank.png
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Propchange: incubator/jsecurity/trunk/src/docbkx/resources/images/admons/toc-minus.png
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Propchange: incubator/jsecurity/trunk/src/docbkx/resources/images/admons/toc-plus.png
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Propchange: incubator/jsecurity/trunk/src/docbkx/resources/images/admons/up.gif
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Propchange: incubator/jsecurity/trunk/src/docbkx/resources/images/admons/up.png
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Propchange: incubator/jsecurity/trunk/src/docbkx/resources/images/admons/warning.gif
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Propchange: incubator/jsecurity/trunk/src/docbkx/resources/images/admons/warning.png
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Propchange: incubator/jsecurity/trunk/src/docbkx/resources/images/admons/warning.tif
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Copied: incubator/jsecurity/trunk/src/docbkx/resources/xsl/fopdf.xsl (from r759680, incubator/jsecurity/trunk/docs/reference/styles/fopdf.xsl)
URL: http://svn.apache.org/viewvc/incubator/jsecurity/trunk/src/docbkx/resources/xsl/fopdf.xsl?p2=incubator/jsecurity/trunk/src/docbkx/resources/xsl/fopdf.xsl&p1=incubator/jsecurity/trunk/docs/reference/styles/fopdf.xsl&r1=759680&r2=759727&rev=759727&view=diff
==============================================================================
--- incubator/jsecurity/trunk/docs/reference/styles/fopdf.xsl (original)
+++ incubator/jsecurity/trunk/src/docbkx/resources/xsl/fopdf.xsl Sun Mar 29 16:52:41 2009
@@ -27,495 +27,412 @@
and Juergen Hoeller of the Spring Framework team
for writing the original stylesheet(s) upon which this one is based.
-->
-
-<!DOCTYPE xsl:stylesheet [
- <!ENTITY db_xsl_path "../../../lib/docbook/docbook-xsl/">
- <!ENTITY admon_gfx_path "../images/admons/">
- <!ENTITY copyright "©">
- ]>
-
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- version="1.0"
- xmlns="http://www.w3.org/TR/xhtml1/transitional"
xmlns:fo="http://www.w3.org/1999/XSL/Format"
- exclude-result-prefixes="#default">
+ version="1.0">
- <xsl:import href="&db_xsl_path;/fo/docbook.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">
- <!-- TODO: re-enable
- <fo:block>
- <fo:external-graphic src="file:images/logo.jpg"/>
- </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:text>Version </xsl:text>
- <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:text>Copyright ©right; 2004-2009 </xsl:text>
- <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:for-each>
- </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>Apache Ki (</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>
-
- <!--###################################################
- Custom Toc Line
- ################################################### -->
-
- <!-- The default DocBook XSL TOC printing is seriously broken... -->
- <xsl:template name="toc.line">
- <xsl:variable name="id">
- <xsl:call-template name="object.id"/>
- </xsl:variable>
-
- <xsl:variable name="label">
- <xsl:apply-templates select="." mode="label.markup"/>
- </xsl:variable>
-
- <!-- justify-end removed from block attributes (space problem in title.markup) -->
- <fo:block end-indent="{$toc.indent.width}pt"
- last-line-end-indent="-{$toc.indent.width}pt"
- white-space-treatment="ignore"
- linefeed-treatment="ignore"
- text-align-last="justify"
- white-space-collapse="true">
- <fo:inline keep-with-next.within-line="always">
- <!-- print Chapters in bold style -->
+ <xsl:import href="urn:docbkx:stylesheet"/>
+
+ <!--###################################################
+ 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">
+ <fo:block>
+ <fo:block font-family="Helvetica" font-size="22pt" padding-before="10mm">
+ <xsl:value-of select="bookinfo/title"/>
+ </fo:block>
+ </fo:block>
+ <fo:block font-family="Helvetica" font-size="20pt" padding-before="10mm">
+ <xsl:value-of select="bookinfo/subtitle"/>
+ </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:text>Copyright © 2008-2009 Apache Software Foundation, </xsl:text>
+ <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:for-each>
+ </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>Apache Ki (</xsl:text>
+ <xsl:value-of select="//releaseinfo"/>
+ <xsl:text>)</xsl:text>
+ </xsl:if>
+ </xsl:variable>
<xsl:choose>
- <xsl:when test="local-name(.) = 'chapter'">
- <xsl:attribute name="font-weight">bold</xsl:attribute>
- </xsl:when>
+ <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>
- <fo:basic-link internal-destination="{$id}">
- <xsl:if test="$label != ''">
- <xsl:copy-of select="$label"/>
- <fo:inline white-space-treatment="ignore"
- linefeed-treatment="ignore"
- white-space-collapse="true">
- <xsl:value-of select="$autotoc.label.separator"/>
- </fo:inline>
- </xsl:if>
- <xsl:apply-templates select="." mode="title.markup"/>
- </fo:basic-link>
- </fo:inline>
- <fo:inline keep-together.within-line="always">
- <xsl:text></xsl:text>
- <fo:leader leader-pattern="dots"
- leader-pattern-width="3pt"
- leader-alignment="reference-area"
- keep-with-next.within-line="always"/>
- <xsl:text></xsl:text>
- <fo:basic-link internal-destination="{$id}">
- <fo:page-number-citation ref-id="{$id}"/>
+ </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>
+ <!-- FOP provide only PDF Bookmarks at the moment -->
+ <xsl:param name="fop.extensions">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">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">&admon_gfx_path;</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>
- </fo:inline>
- </fo:block>
- </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>
- <!-- FOP provide only PDF Bookmarks at the moment -->
- <xsl:param name="fop.extensions">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">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">&admon_gfx_path;</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>
</xsl:stylesheet>
+
Copied: incubator/jsecurity/trunk/src/docbkx/resources/xsl/html.xsl (from r759680, incubator/jsecurity/trunk/docs/reference/styles/html.xsl)
URL: http://svn.apache.org/viewvc/incubator/jsecurity/trunk/src/docbkx/resources/xsl/html.xsl?p2=incubator/jsecurity/trunk/src/docbkx/resources/xsl/html.xsl&p1=incubator/jsecurity/trunk/docs/reference/styles/html.xsl&r1=759680&r2=759727&rev=759727&view=diff
==============================================================================
--- incubator/jsecurity/trunk/docs/reference/styles/html.xsl (original)
+++ incubator/jsecurity/trunk/src/docbkx/resources/xsl/html.xsl Sun Mar 29 16:52:41 2009
@@ -22,98 +22,90 @@
This is the XSL HTML configuration file for the Apache Ki
Reference Documentation.
-->
-<!DOCTYPE xsl:stylesheet [
- <!ENTITY db_xsl_path "../../../lib/docbook/docbook-xsl/">
- <!ENTITY callout_gfx_path "../images/callouts/">
- <!ENTITY admon_gfx_path "../images/admons/">
- ]>
-
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- version="1.0"
- xmlns="http://www.w3.org/TR/xhtml1/transitional"
- exclude-result-prefixes="#default">
-
- <xsl:import href="&db_xsl_path;/html/docbook.xsl"/>
-
- <!--###################################################
- HTML Settings
- ################################################### -->
-
- <xsl:param name="html.stylesheet">html.css</xsl:param>
-
- <!-- 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="graphicsize.extension">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">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>
- <xsl:param name="callout.graphics.path">&callout_gfx_path;</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">&admon_gfx_path;</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: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>
+ xmlns:fo="http://www.w3.org/1999/XSL/Format"
+ version="1.0">
+
+ <xsl:import href="urn:docbkx:stylesheet"/>
+
+
+ <!--###################################################
+ HTML Settings
+ ################################################### -->
+
+ <xsl:param name="html.stylesheet">html.css</xsl:param>
+
+ <!-- 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="graphicsize.extension">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">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>
+
+ <!--###################################################
+ 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: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>
</xsl:stylesheet>