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 [2/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...

Copied: incubator/jsecurity/trunk/src/docbkx/resources/xsl/html_chunk.xsl (from r759680, incubator/jsecurity/trunk/docs/reference/styles/html_chunk.xsl)
URL: http://svn.apache.org/viewvc/incubator/jsecurity/trunk/src/docbkx/resources/xsl/html_chunk.xsl?p2=incubator/jsecurity/trunk/src/docbkx/resources/xsl/html_chunk.xsl&p1=incubator/jsecurity/trunk/docs/reference/styles/html_chunk.xsl&r1=759680&r2=759727&rev=759727&view=diff
==============================================================================
--- incubator/jsecurity/trunk/docs/reference/styles/html_chunk.xsl (original)
+++ incubator/jsecurity/trunk/src/docbkx/resources/xsl/html_chunk.xsl Sun Mar 29 16:52:41 2009
@@ -21,219 +21,216 @@
 <!--
     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/chunk.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="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
-    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
- ################################################### -->
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+                xmlns:fo="http://www.w3.org/1999/XSL/Format"
+                version="1.0">
 
-  <!-- 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>
-  <!--###################################################
-                  Headers and Footers
- ################################################### -->
-  <!-- let's have a Ki and Anjin 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.jsecurity.org/" title="Apache Ki">
-        <img style="border:none;" src="images/xdev-jsecurity_logo.jpg"/>
-      </a>
-      <!--  <a style="border:none;" href="http://www.anjinllc.com/" title="AnjinLLC">
-         <img style="border:none;position:absolute;padding-top:5px;right:42px;" src="images/anjin-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 Anjin LLC' 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
+    <xsl:import href="urn:docbkx:stylesheet"/>
+
+    <!--###################################################
+                    HTML Settings
+   ################################################### -->
+    <xsl:param name="chunk.section.depth">'5'</xsl:param>
+    <xsl:param name="use.id.as.filename">'1'</xsl:param>
+    <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
+        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
+   ################################################### -->
+
+    <!-- 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>
+    <!--###################################################
+                    Headers and Footers
+   ################################################### -->
+    <!-- let's have a Ki and Anjin 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.jsecurity.org/" title="Apache Ki">
+                <img style="border:none;" src="images/xdev-jsecurity_logo.jpg"/>
+            </a>
+            <!--  <a style="border:none;" href="http://www.anjinllc.com/" title="AnjinLLC">
+               <img style="border:none;position:absolute;padding-top:5px;right:42px;" src="images/anjin-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 Anjin LLC' 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)
+        <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>
+        <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.anjinllc.com/" title="Anjin, LLC.">Sponsored by Anjin, LLC.</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>
+                                <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.anjinllc.com/" title="Anjin, LLC.">Sponsored by Anjin,
+                                            LLC.
+                                        </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>
-      </div>
-    </xsl:if>
-  </xsl:template>
+    </xsl:template>
 </xsl:stylesheet>

Copied: incubator/jsecurity/trunk/src/docbkx/security-manager.xml (from r759680, incubator/jsecurity/trunk/docs/reference/src/security-manager.xml)
URL: http://svn.apache.org/viewvc/incubator/jsecurity/trunk/src/docbkx/security-manager.xml?p2=incubator/jsecurity/trunk/src/docbkx/security-manager.xml&p1=incubator/jsecurity/trunk/docs/reference/src/security-manager.xml&r1=759680&r2=759727&rev=759727&view=diff
==============================================================================
--- incubator/jsecurity/trunk/docs/reference/src/security-manager.xml (original)
+++ incubator/jsecurity/trunk/src/docbkx/security-manager.xml Sun Mar 29 16:52:41 2009
@@ -17,10 +17,13 @@
   ~ specific language governing permissions and limitations
   ~ under the License.
   -->
-<chapter id="security-manager">
+<chapter version="5.0" xml:id="security-manager"
+         xmlns="http://docbook.org/ns/docbook"
+         xmlns:xlink="http://www.w3.org/1999/xlink">
+
   <title>The Security Manager</title>
 
-  <section id="security-manager-introduction">
+  <section xml:id="security-manager-introduction">
     <title>Introduction</title>
 
     <para>This chapter covers Ki's notion of a Security Manager.</para>