From: Robert Soulliere <rsoulliere@libdog.mohawkcollege.ca>
Date: Fri, 7 Jan 2011 18:43:48 +0000 (-0500)
Subject: add 2.0 xhtml stylesheet for docbook html processing. Add about this doc... and more... 
X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=280ac9d5c306a161934c62681905d2d9b28831cc;p=contrib%2FConifer.git

add 2.0 xhtml stylesheet for docbook html processing. Add about this doc... and more infor appendices.
---

diff --git a/2.0/root.xml b/2.0/root.xml
index 533eb559d4..7ddee4218e 100755
--- a/2.0/root.xml
+++ b/2.0/root.xml
@@ -82,6 +82,8 @@
 			<title>Appendices</title>
 		</info>
 		<xi:include href="appendices/schema.xml"/>
+		<xi:include href="appendices/about_this_documentation.xml"/>
+		<xi:include href="appendices/more_info.xml"/>
 		<xi:include href="appendices/glossary.xml"/>
 		<xi:include href="appendices/bookindex.xml"/>
 	</part>
diff --git a/stylesheets/evergreen_docbook_files/evergreen_xhtml-2.0.xsl b/stylesheets/evergreen_docbook_files/evergreen_xhtml-2.0.xsl
new file mode 100644
index 0000000000..44bb3aa755
--- /dev/null
+++ b/stylesheets/evergreen_docbook_files/evergreen_xhtml-2.0.xsl
@@ -0,0 +1,115 @@
+<?xml version='1.0'?>
+<xsl:stylesheet  
+    xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
+
+<xsl:import href="docbook-xsl/xhtml/chunk.xsl"/>
+<xsl:import href="evergreen_xhtml_graphics.xsl"/> 
+
+<xsl:param name="img.src.path" select="''"/>
+<!--<xsl:param name="default.image.width" select="'900px'"/>-->
+<xsl:param name="keep.relative.image.uris" select="0"/>
+<xsl:param name="use.role.for.media.object" select="1"/>
+<xsl:param name="html.stylesheet" select="'../evergreen_doc.css'"/>
+<xsl:param name="para.propagates.style" select="1"/> <!-- applies "role" attribute as html class, for tracking changes in draft -->
+<xsl:param name="generate.revhistory.link" select="1"/>
+<xsl:param name="glossary.sort" select="1"/> <!-- sort glossterms aphabetically regardless of order in xml docs -->
+<xsl:param name="glossterm.separation" select="'0.1in'"/> <!-- vertical space between term and definition paragraph -->
+<xsl:param name="callout.graphics" select="1" />
+<xsl:param name="callout.graphics.extension" select="'.png'" />
+<xsl:param name="callout.graphics.path" select="'media/'" />
+<xsl:param name="use.id.as.filename" select="1"></xsl:param> 
+<!-- customized header, to add home link -->
+    
+    <xsl:template name="header.navigation">
+        <xsl:param name="prev" select="/d:foo"/>
+        <xsl:param name="next" select="/d:foo"/>
+        <xsl:param name="nav.context"/>
+        
+        <xsl:variable name="home" select="/*[1]"/>
+        <xsl:variable name="up" select="parent::*"/>
+        
+        <xsl:variable name="row1" select="$navig.showtitles != 0"/>
+        <xsl:variable name="row2" select="count($prev) &gt; 0                                     or (count($up) &gt; 0                                          and generate-id($up) != generate-id($home)                                         and $navig.showtitles != 0)                                     or count($next) &gt; 0"/>
+        
+        <xsl:if test="$suppress.navigation = '0' and $suppress.header.navigation = '0'">
+            <div class="navheader">
+                <xsl:if test="$row1 or $row2">
+                    <table width="100%" summary="Navigation header">
+                        <xsl:if test="$row1">
+                            <tr>
+                                <th colspan="3" align="center">
+                                    <xsl:apply-templates select="." mode="object.title.markup"/>
+                                </th>
+                            </tr>
+                        </xsl:if>
+                        
+                        <xsl:if test="$row2">
+                            <tr>
+                                <td width="20%" align="{$direction.align.start}">
+                                    <xsl:if test="count($prev)&gt;0">
+                                        
+                               <!-- the next line is custom, adds Home link to HTML pages -->         
+                                        
+                                        <a style="margin-right: 10px;" href="index.html">Home</a>
+                                        <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>
+                                <th width="60%" align="center">
+                                    <xsl:choose>
+                                        <xsl:when test="count($up) &gt; 0                                   and generate-id($up) != generate-id($home)                                   and $navig.showtitles != 0">
+                                            <xsl:apply-templates select="$up" mode="object.title.markup"/>
+                                        </xsl:when>
+                                        <xsl:otherwise>&#160;</xsl:otherwise>
+                                    </xsl:choose>
+                                </th>
+                                <td width="20%" align="{$direction.align.end}">
+                                    <xsl:text>&#160;</xsl:text>
+                                    <xsl:if test="count($next)&gt;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>
+                    </table>
+                </xsl:if>
+                <xsl:if test="$header.rule != 0">
+                    <hr/>
+                </xsl:if>
+            </div>
+        </xsl:if>
+    </xsl:template>
+   
+  <!-- custom footer for Evergreen copyright --> 
+   
+    <xsl:template name="user.footer.navigation">
+        
+       <div style="float: left;"> <p style="font-style: italic; font-size: .8em;">Documentation for Evergreen version 2.0 <br/>Copyright © 2011, Evergreen Community
+        </p><p><a href="http://creativecommons.org/licenses/by-sa/3.0/" title="Creative Commons license">
+            <img src="http://i.creativecommons.org/l/by-sa/3.0/80x15.png"/></a></p></div>
+        <div style="float: right;"> <a href="../pdf/style_guide.pdf" title="also availabe in PDF"><img src="../media/pdf_icon.gif"/></a></div>
+                
+    </xsl:template>
+    
+
+
+</xsl:stylesheet>
+