[Swift-commit] r2602 - trunk/docs/formatting

noreply at svn.ci.uchicago.edu noreply at svn.ci.uchicago.edu
Tue Feb 24 10:50:30 CST 2009


Author: benc
Date: 2009-02-24 10:50:27 -0600 (Tue, 24 Feb 2009)
New Revision: 2602

Removed:
   trunk/docs/formatting/custom_fo.xsl
   trunk/docs/formatting/custom_html.xsl
   trunk/docs/formatting/vdl2_html.xsl
   trunk/docs/formatting/vdl2sh_html.xsl
Log:
remove vestigial stylesheets

Deleted: trunk/docs/formatting/custom_fo.xsl
===================================================================
--- trunk/docs/formatting/custom_fo.xsl	2009-02-24 15:18:50 UTC (rev 2601)
+++ trunk/docs/formatting/custom_fo.xsl	2009-02-24 16:50:27 UTC (rev 2602)
@@ -1,130 +0,0 @@
-<xsl:stylesheet version="1.0"  xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
-−
-	<!--
- now replace all these settings with those specific for use with the fo stylesheet (for pdf output) 
--->
-−
-	<!--
- just realized both html and fo can share many parameters - need to create common.xsl that gets imported to both so i can single source
- those variables 
--->
-<!-- which stylesheet to use? -->
-<!--  
-<xsl:import href="/usr/share/xml/docbook/stylesheet/nwalsh/fo/docbook.xsl"/>
--->
-<xsl:import href="/sw/share/xml/xsl/docbook-xsl/fo/docbook.xsl"/>
-
-<!-- enable extensions -->
-<xsl:param name="use.extensions" select="'0'"/>
-<xsl:param name="xep.extensions" select="0"/>
-−
-	<!--
- turn off table column extensions (unless you use xalan or saxon - it's a java thing 
--->
-<xsl:param name="tablecolumns.extension" select="'0'"/>
-<!-- should output be in draft mode? -->
-<xsl:param name="draft.mode" select="'no'"/>
-<!-- ALIGNMENT -->
-<xsl:param name="alignment">left</xsl:param>
-<!-- GRAPHICS -->
-−
-	<!--
- Use graphics in admonitions? like 'warnings' 'important' 'note' etc COMMON 
--->
-<xsl:param name="admon.graphics">1</xsl:param>
-<!-- Set path to admonition graphics  COMMON -->
-<xsl:param name="admon.graphics.path">/www/www-unix.globus.org/docbook-images/</xsl:param>
-−
-	<!--
- Set path to docbook graphics (testing)
-                                <xsl:param name="admon.graphics.path">file:///Z:/testing/alliance/docbook-images/</xsl:param> 
--->
-−
-	<!--
- Again, if 1 above, what is the filename extension for admon graphics?
--->
-<xsl:param name="admon.graphics.extension" select="'.png'"/>
-−
-	<!--
- for some reason, xep makes the admon graphics too large, this scales them back down 
--->
-<xsl:template match="*" mode="admon.graphic.width">14pt</xsl:template>
-−
-	<!--
- Set path to callout graphics COMMON
-               <xsl:param name="callout.graphics.path">/www/www-unix.globus.org/docbook-images/callouts/</xsl:param> 
--->
-−
-	<!--
- callouts look fuzzy in print - using the following two parameters to force unicode 
--->
-<xsl:param name="callout.graphics" select="'0'"/>
-<xsl:param name="callout.unicode" select="1"/>
-<!-- NUMBERING -->
-−
-	<!--
- are parts enumerated?  COMMON 
-               <xsl:param name="part.autolabel">1</xsl:param>
--->
-<!-- Are chapters automatically enumerated? COMMON-->
-<xsl:param name="chapter.autolabel">1</xsl:param>
-<!-- Are sections enumerated? COMMON -->
-<xsl:param name="section.autolabel">1</xsl:param>
-−
-	<!--
- how deep should each toc be? (how many levels?) COMMON 
--->
-<xsl:param name="toc.max.depth">2</xsl:param>
-−
-	<!--
- How deep should recursive sections appear in the TOC? COMMON 
--->
-<xsl:param name="toc.section.depth">1</xsl:param>
-<!-- LINKS -->
-<!-- display ulinks as footnotes at bottom of page? -->
-<xsl:param name="ulink.footnotes" select="1"/>
-<!-- display xref links with underline? -->
-−
-	<xsl:attribute-set name="xref.properties">
-<xsl:attribute name="text-decoration">underline</xsl:attribute>
-</xsl:attribute-set>
-<!-- TABLES -->
-<xsl:param name="default.table.width" select="'6in'"/>
-<!-- INDEX  -->
-<!-- do you want an index? COMMON -->
-<xsl:param name="generate.index">1</xsl:param>
-<!-- index attributes for xep -->
-−
-	<xsl:attribute-set name="xep.index.item.properties">
-<xsl:attribute name="merge-subsequent-page-numbers">true</xsl:attribute>
-<xsl:attribute name="link-back">true</xsl:attribute>
-</xsl:attribute-set>
-<!-- GLOSSARY  -->
-<!-- Display glossentry acronyms? COMMON> -->
-<xsl:param name="glossentry.show.acronym">yes</xsl:param>
-<!-- Name of the glossary collection file COMMON -->
-−
-	<xsl:param name="glossary.collection">
-/www/www-unix.globus.org/toolkit/docs/development/4.2-drafts/glossary.xml
-</xsl:param>
-−
-	<!--
- Generate links from glossterm to glossentry automatically?  COMMON
--->
-<xsl:param name="glossterm.auto.link">1</xsl:param>
-−
-	<!--
- if non-zero value for previous parameter, does automatic glossterm linking only apply to firstterms? COMMON
-                <xsl:param name="firstterm.only.link">1</xsl:param>
--->
-<!-- reduce 'indentation' of body text -->
-−
-	<xsl:param name="body.start.indent">
-−
-	<xsl:choose>
-<xsl:when test="$fop.extensions != 0">0pt</xsl:when>
-<xsl:when test="$passivetex.extensions != 0">0pt</xsl:when>
-<xsl:otherwise>0pc</xsl:otherwise>
-</xsl:choose>
-</xsl:param>
-</xsl:stylesheet>
\ No newline at end of file

Deleted: trunk/docs/formatting/custom_html.xsl
===================================================================
--- trunk/docs/formatting/custom_html.xsl	2009-02-24 15:18:50 UTC (rev 2601)
+++ trunk/docs/formatting/custom_html.xsl	2009-02-24 16:50:27 UTC (rev 2602)
@@ -1,236 +0,0 @@
-<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
-
-<!-- Which DocBook standard xsl file should we use as the default? --> <xsl:import href="http://docbook.sourceforge.net/release/xsl/current/html/chunk.xsl"/>
-<!--
- testing: if you want to generate your own html without installing stylesheets, substitute the following url
-                for the import href above:
-                http://docbook.sourceforge.net/release/xsl/current/html/chunk.xsl
-                
--->
-<!-- speed up the chunking process? -->
-<xsl:param name="chunk.fast">1</xsl:param>
-<!--
- which css stylesheet to use?
-<xsl:param name="html.stylesheet" select="'default.css'"></xsl:param> 
--->
-<!--
- Use graphics in admonitions? like 'warnings' 'important' 'note' etc 
--->
-<xsl:param name="admon.graphics">1</xsl:param>
-<!-- Set path to admonition graphics  -->
-<xsl:param name="admon.graphics.path">/docbook-images/</xsl:param>
-	<!--
- Set path to docbook graphics (testing)
-                                <xsl:param name="admon.graphics.path">file:///Z:/testing/alliance/docbook-images/</xsl:param> 
--->
-	<!--
- Again, if 1 above, what is the filename extension for admon graphics? 
--->
-<xsl:param name="admon.graphics.extension" select="'.gif'"/>
-<!-- Set path to callout graphics -->
-
-<xsl:param name="callout.graphics.path">/docbook-images/</xsl:param>
-<!-- Depth to which sections should be chunked -->
-<xsl:param name="chunk.section.depth">0</xsl:param>
-
-	<!--
- Are parts automatically enumerated?
-                <xsl:param name="part.autolabel">0</xsl:param> 
--->
-<!-- Are chapters automatically enumerated? -->
-<xsl:param name="chapter.autolabel">0</xsl:param>
-<!-- Are sections enumerated? -->
-<xsl:param name="section.autolabel">1</xsl:param>
-<!-- how deep should each toc be? (how many levels?) -->
-<xsl:param name="toc.max.depth">2</xsl:param>
-	<!--
- How deep should recursive sections appear in the TOC for chapters? 
--->
-<xsl:param name="toc.section.depth">4</xsl:param>
-	<!--
- Should the first section be chunked separately from its parent? > 0 = yes
--->
-<xsl:param name="chunk.first.sections">1</xsl:param>
-	<!--
- Instead of using default filenames, use ids for filenames (dbhtml directives take precedence) 
-                taking this out to avoid breaking any current bookmarks
-                <xsl:param name="use.id.as.filename">1</xsl:param>
--->
-<!-- custom toc - book only shows chapter -->
-	<xsl:template match="preface|chapter|appendix|article" mode="toc">
-<xsl:param name="toc-context" select="."/>
-	<xsl:choose>
-	<xsl:when test="local-name($toc-context) = 'book'">
-	<xsl:call-template name="subtoc">
-<xsl:with-param name="toc-context" select="$toc-context"/>
-<xsl:with-param name="nodes" select="foo"/>
-</xsl:call-template>
-</xsl:when>
-	<xsl:otherwise>
-
-	<xsl:call-template name="subtoc">
-<xsl:with-param name="toc-context" select="$toc-context"/>
-<xsl:with-param name="nodes" select="section|sect1|glossary|bibliography|index                                                                                                 |bridgehead[$bridgehead.in.toc != 0]"/>
-</xsl:call-template>
-</xsl:otherwise>
-</xsl:choose>
-</xsl:template>
-<!-- INDEX PARAMETERS -->
-<!-- do you want an index?  -->
-<xsl:param name="generate.index">1</xsl:param>
-<!-- Select indexterms based on type attribute value -->
-<xsl:param name="index.on.type">1</xsl:param>
-<!-- GLOSSARY PARAMETERS -->
-<!-- Display glossentry acronyms? -->
-<xsl:param name="glossentry.show.acronym">yes</xsl:param>
-
-	<!--
- Name of the glossary collection file
-                <xsl:param name="glossary.collection" select="'glossary.xml'"></xsl:param>
-                
--->
-
-	<!--
- Generate links from glossterm to glossentry automatically?
-                <xsl:param name="glossterm.auto.link">1</xsl:param>
-                
--->
-
-	<!--
- if non-zero value for previous parameter, does automatic glossterm linking only apply to firstterms?
-                <xsl:param name="firstterm.only.link">1</xsl:param> 
--->
-
-	<!--
- permit wrapping of long lines of code
-                <xsl:attribute-set name="monospace.verbatim.properties" 
-                                use-attribute-sets="verbatim.properties monospace.properties">
-                                <xsl:attribute name="wrap-option">wrap</xsl:attribute>
-                </xsl:attribute-set> 
--->
-<!-- INCORPORATING DOCBOOK PAGES INTO WEBSITE -->
-
-	<!--
- make sure there's a DOCTYPE in the html output (otherwise, some css renders strangely 
--->
-<xsl:param name="chunker.output.doctype-public" select="'-//W3C//DTD HTML 4.01 Transitional//EN'"/>
-<xsl:param name="chunker.output.doctype-system" select="'http://www.w3.org/TR/html4/loose.dtd'"/>
-<!-- add elements to the HEAD tag -->
-
-	<xsl:template name="user.head.content">
-<link href="default.css" rel="stylesheet" type="text/css"/>
-
-	<script>
-
-	<xsl:comment>
-
-                                                function GlobusSubmit()
-                                                {
-                                                var f=document.GlobusSearchForm;
-                                                
-                                                f.action="http://www.google.com/custom";
-                                                if (f.elements[0].checked) {
-                                                f.q.value = f.qinit.value + " -inurl:mail_archive " ;
-                                                } else {
-                                                f.q.value = f.qinit.value + " inurl:mail_archive " ;
-                                                }
-                                                }
-                                                
-</xsl:comment>
-</script>
-</xsl:template>
-<!-- add an attribute to the BODY tag -->
-
-	<xsl:template name="body.attributes">
-<xsl:attribute name="class">section-3</xsl:attribute>
-</xsl:template>
-
-	<!--
- pull in 'website' with this code by modifying chunk-element-content from html/chunk-common.xsl
--->
-
-	<xsl:template name="chunk-element-content">
-<xsl:param name="prev"/>
-<xsl:param name="next"/>
-<xsl:param name="nav.context"/>
-
-	<xsl:param name="content">
-<xsl:apply-imports/>
-</xsl:param>
-<xsl:call-template name="user.preroot"/>
-
-	<html>
-
-	<xsl:call-template name="html.head">
-<xsl:with-param name="prev" select="$prev"/>
-<xsl:with-param name="next" select="$next"/>
-</xsl:call-template>
-
-	<body>
-<xsl:call-template name="body.attributes"/>
-
-	<xsl:processing-instruction name="php">
-
-                                                                                include_once("http://www.globus.org/toolkit/docs/4.0/includes/globus_header_docbook.inc");
-                                                                                ?
-</xsl:processing-instruction>
-<xsl:call-template name="user.header.navigation"/>
-
-	<!--
- toggles whether header.navigation shows                                                              
-                                                                <xsl:call-template name="header.navigation">
-                                                                                <xsl:with-param name="prev" select="$prev"/>
-                                                                                <xsl:with-param name="next" select="$next"/>
-                                                                                <xsl:with-param name="nav.context" select="$nav.context"/>
-                                                                </xsl:call-template>
-                                                                
--->
-<xsl:call-template name="user.header.content"/>
-<xsl:copy-of select="$content"/>
-<xsl:call-template name="user.footer.content"/>
-
-	<!--
- 
-                                                                <xsl:call-template name="footer.navigation">
-                                                                                <xsl:with-param name="prev" select="$prev"/>
-                                                                                <xsl:with-param name="next" select="$next"/>
-                                                                                <xsl:with-param name="nav.context" select="$nav.context"/>
-                                                                </xsl:call-template>
-                                                                
--->
-<xsl:call-template name="user.footer.navigation"/>
-
-	<xsl:processing-instruction name="php">
-
-                                                                                include_once("http://www.globus.org/toolkit/docs/4.0/includes/globus_footer_docbook.inc");
-                                                                                ?
-</xsl:processing-instruction>
-</body>
-</html>
-</xsl:template>
-
-	<!--
- prevent h1 and h2 using clear: both - want to control in css, instead 
--->
-
-	<xsl:template name="section.heading">
-<xsl:param name="section" select="."/>
-<xsl:param name="level" select="'1'"/>
-<xsl:param name="title"/>
-
-	<xsl:element name="h{$level+1}">
-<xsl:attribute name="class">title</xsl:attribute>
-
-	<a>
-
-	<xsl:attribute name="name">
-
-	<xsl:call-template name="object.id">
-<xsl:with-param name="object" select="$section"/>
-</xsl:call-template>
-</xsl:attribute>
-</a>
-<xsl:copy-of select="$title"/>
-</xsl:element>
-</xsl:template>
-</xsl:stylesheet>
\ No newline at end of file

Deleted: trunk/docs/formatting/vdl2_html.xsl
===================================================================
--- trunk/docs/formatting/vdl2_html.xsl	2009-02-24 15:18:50 UTC (rev 2601)
+++ trunk/docs/formatting/vdl2_html.xsl	2009-02-24 16:50:27 UTC (rev 2602)
@@ -1,231 +0,0 @@
-<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
-
-	<!-- Which DocBook standard xsl file should we use as the default? -->
-	<!-- Well, xsltproc doesn't cache the xsl files fetched over the web, so better use a local copy -->
-	<xsl:import href="docbook/html/chunk.xsl"/>
-	<!--<xsl:import href="http://docbook.sourceforge.net/release/xsl/current/html/chunk.xsl"/>-->
-	<!--
-	
-		testing: if you want to generate your own html without installing
-		stylesheets, substitute the following url for the import href above:                
-		http://docbook.sourceforge.net/release/xsl/current/html/chunk.xsl
-                
-	-->
-	<!-- speed up the chunking process? -->
-	<xsl:param name="chunk.fast">1</xsl:param>
-	
-	<!--
-		Use graphics in admonitions? like 'warnings' 'important' 'note' etc 
-	-->
-	<xsl:param name="admon.graphics">1</xsl:param>
-	<!-- Set path to admonition graphics  -->
-	<xsl:param name="admon.graphics.path">/docbook-images/</xsl:param>
-	<!--
-	
-		Set path to docbook graphics (testing)
-        <xsl:param name="admon.graphics.path">file:///Z:/testing/alliance/docbook-images/</xsl:param> 
-	
-	-->
-	<!--
-		Again, if 1 above, what is the filename extension for admon graphics? 
-	-->
-	<xsl:param name="admon.graphics.extension" select="'.gif'"/>
-	<!-- Set path to callout graphics -->
-
-	<xsl:param name="callout.graphics.path">/docbook-images/</xsl:param>
-	<!-- Depth to which sections should be chunked -->
-	<xsl:param name="chunk.section.depth">0</xsl:param>
-
-	<!--
-		
-		Are parts automatically enumerated?
-		<xsl:param name="part.autolabel">0</xsl:param> 
-	
-	-->
-	<!-- Are chapters automatically enumerated? -->
-	<xsl:param name="chapter.autolabel">0</xsl:param>
-	<!-- Are sections enumerated? -->
-	<xsl:param name="section.autolabel">1</xsl:param>
-	<!-- how deep should each toc be? (how many levels?) -->
-	<xsl:param name="toc.max.depth">2</xsl:param>
-	<!--
-		How deep should recursive sections appear in the TOC for chapters? 
-	-->
-	<xsl:param name="toc.section.depth">4</xsl:param>
-	<!--
-		Should the first section be chunked separately from its parent? > 0 = yes
-	-->
-	<xsl:param name="chunk.first.sections">1</xsl:param>
-	<!--
-	
-		Instead of using default filenames, use ids for filenames (dbhtml 	 	 	
-		directives take precedence) taking this out to avoid breaking any
-		current bookmarks
-			
-                <xsl:param name="use.id.as.filename">1</xsl:param>
-				
-	-->
-	<!-- custom toc - book only shows chapter -->
-	<xsl:template match="preface|chapter|appendix|article" mode="toc">
-		<xsl:param name="toc-context" select="."/>
-	
-		<xsl:choose>
-			<xsl:when test="local-name($toc-context) = 'book'">
-				<xsl:call-template name="subtoc">
-					<xsl:with-param name="toc-context" select="$toc-context"/>
-					<xsl:with-param name="nodes" select="foo"/>
-				</xsl:call-template>
-			</xsl:when>
-			<xsl:otherwise>
-				<xsl:call-template name="subtoc">
-					<xsl:with-param name="toc-context" select="$toc-context"/>
-					<xsl:with-param name="nodes" select="section|sect1|glossary|bibliography|index                                                                                                 |bridgehead[$bridgehead.in.toc != 0]"/>
-				</xsl:call-template>
-			</xsl:otherwise>
-		</xsl:choose>
-	</xsl:template>
-	<!-- INDEX PARAMETERS -->
-	<!-- do you want an index?  -->
-	<xsl:param name="generate.index">1</xsl:param>
-	<!-- Select indexterms based on type attribute value -->
-	<xsl:param name="index.on.type">1</xsl:param>
-	<!-- GLOSSARY PARAMETERS -->
-	<!-- Display glossentry acronyms? -->
-	<xsl:param name="glossentry.show.acronym">yes</xsl:param>
-
-	<!--
-	
-		Name of the glossary collection file
-        
-		<xsl:param name="glossary.collection" select="'glossary.xml'"></xsl:param>
-          
-	-->
-
-	<!--
-		Generate links from glossterm to glossentry automatically?
-        
-		<xsl:param name="glossterm.auto.link">1</xsl:param>
-                
-	-->
-
-	<!--
-		
-		if non-zero value for previous parameter, does automatic glossterm
-		linking only apply to firstterms?
-        
-		<xsl:param name="firstterm.only.link">1</xsl:param> 
-	-->
-
-	<!--
-		
-		permit wrapping of long lines of code
-		
-		<xsl:attribute-set name="monospace.verbatim.properties" 
-			use-attribute-sets="verbatim.properties monospace.properties">
-            
-			<xsl:attribute name="wrap-option">wrap</xsl:attribute>
-		</xsl:attribute-set> 
-	-->
-	
-	<!-- INCORPORATING DOCBOOK PAGES INTO WEBSITE -->
-
-	<!--
-		make sure there's a DOCTYPE in the html output (otherwise, some css renders strangely 
-	-->
-	<xsl:param name="chunker.output.doctype-public" select="'-//W3C//DTD HTML 4.01 Transitional//EN'"/>
-	<xsl:param name="chunker.output.doctype-system" select="'http://www.w3.org/TR/html4/loose.dtd'"/>
-	<!-- add elements to the HEAD tag -->
-
-	<xsl:template name="user.head.content"> 
-		<link href="http://www.ci.uchicago.edu/swift/style.css" rel="stylesheet" type="text/css"/>
-	</xsl:template>
-
-	<!-- add an attribute to the BODY tag -->
-
-	<xsl:template name="body.attributes">
-		<xsl:attribute name="class">section-3</xsl:attribute>
-	</xsl:template>
-
-	<!--
-		pull in 'website' with this code by modifying chunk-element-content from html/chunk-common.xsl
-	-->
-
-	<xsl:template name="chunk-element-content">
-		<xsl:param name="prev"/>
-		<xsl:param name="next"/>
-		<xsl:param name="nav.context"/>
-		<xsl:param name="content">
-			<xsl:apply-imports/>
-		</xsl:param>
-	
-		<xsl:call-template name="user.preroot"/>
-
-		<html>
-
-			<xsl:call-template name="html.head">
-				<xsl:with-param name="prev" select="$prev"/>
-				<xsl:with-param name="next" select="$next"/>
-			</xsl:call-template>
-
-			<body>
-				<xsl:call-template name="body.attributes"/>
-
-				<xsl:call-template name="user.header.navigation"/>
-
-				<xsl:call-template name="user.header.content"/>
-			
-				<xsl:copy-of select="$content"/>
-			
-				<xsl:call-template name="user.footer.content"/>
-
-				<xsl:call-template name="user.footer.navigation"/>
-
-			</body>
-		</html>
-	</xsl:template>
-
-	<!--
-		prevent h1 and h2 using clear: both - want to control in css, instead 
-	-->
-
-	<xsl:template name="section.heading">
-		<xsl:param name="section" select="."/>
-		<xsl:param name="level" select="'1'"/>
-		<xsl:param name="title"/>
-
-		<xsl:element name="h{$level+1}">
-			<xsl:attribute name="class">title</xsl:attribute>
-
-			<a>
-				<xsl:attribute name="name">
-					<xsl:call-template name="object.id">
-						<xsl:with-param name="object" select="$section"/>
-					</xsl:call-template>
-				</xsl:attribute>
-			</a>
-		
-			<xsl:copy-of select="$title"/>
-		</xsl:element>
-	</xsl:template>
-	
-	<xsl:template name="user.header.content">
-		<xsl:text disable-output-escaping="yes"><![CDATA[
-			<table border="0">
-				<tr>
-					<td valign="top">
-						<!--#include virtual="menu.html" -->
-					</td>
-					<td valign="top" class="main">
-		]]>
-		</xsl:text>
-	</xsl:template>
-	
-	<xsl:template name="user.footer.content">
-		<xsl:text disable-output-escaping="yes"><![CDATA[
-					</td>
-				</tr>
-			</table>
-		]]>
-		</xsl:text>
-	</xsl:template>
-</xsl:stylesheet>

Deleted: trunk/docs/formatting/vdl2sh_html.xsl
===================================================================
--- trunk/docs/formatting/vdl2sh_html.xsl	2009-02-24 15:18:50 UTC (rev 2601)
+++ trunk/docs/formatting/vdl2sh_html.xsl	2009-02-24 16:50:27 UTC (rev 2602)
@@ -1,234 +0,0 @@
-<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
-
-	<!-- Which DocBook standard xsl file should we use as the default? -->
-	<!-- Well, xsltproc doesn't cache the xsl files fetched over the web, so better use a local copy -->
-	<xsl:import href="docbook/html/chunk.xsl"/>
-	<!--<xsl:import href="http://docbook.sourceforge.net/release/xsl/current/html/chunk.xsl"/>-->
-	<!--
-	
-		testing: if you want to generate your own html without installing
-		stylesheets, substitute the following url for the import href above:                
-		http://docbook.sourceforge.net/release/xsl/current/html/chunk.xsl
-                
-	-->
-	<!-- speed up the chunking process? -->
-	<xsl:param name="chunk.fast">1</xsl:param>
-	
-	<!--
-		Use graphics in admonitions? like 'warnings' 'important' 'note' etc 
-	-->
-	<xsl:param name="admon.graphics">1</xsl:param>
-	<!-- Set path to admonition graphics  -->
-	<xsl:param name="admon.graphics.path">/docbook-images/</xsl:param>
-	<!--
-	
-		Set path to docbook graphics (testing)
-        <xsl:param name="admon.graphics.path">file:///Z:/testing/alliance/docbook-images/</xsl:param> 
-	
-	-->
-	<!--
-		Again, if 1 above, what is the filename extension for admon graphics? 
-	-->
-	<xsl:param name="admon.graphics.extension" select="'.gif'"/>
-	<!-- Set path to callout graphics -->
-
-	<xsl:param name="callout.graphics.path">/docbook-images/</xsl:param>
-	<!-- Depth to which sections should be chunked -->
-	<xsl:param name="chunk.section.depth">0</xsl:param>
-
-	<!--
-		
-		Are parts automatically enumerated?
-		<xsl:param name="part.autolabel">0</xsl:param> 
-	
-	-->
-	<!-- Are chapters automatically enumerated? -->
-	<xsl:param name="chapter.autolabel">0</xsl:param>
-	<!-- Are sections enumerated? -->
-	<xsl:param name="section.autolabel">1</xsl:param>
-	<!-- how deep should each toc be? (how many levels?) -->
-	<xsl:param name="toc.max.depth">2</xsl:param>
-	<!--
-		How deep should recursive sections appear in the TOC for chapters? 
-	-->
-	<xsl:param name="toc.section.depth">4</xsl:param>
-	<!--
-		Should the first section be chunked separately from its parent? > 0 = yes
-	-->
-	<xsl:param name="chunk.first.sections">1</xsl:param>
-	<!--
-	
-		Instead of using default filenames, use ids for filenames (dbhtml 	 	 	
-		directives take precedence) taking this out to avoid breaking any
-		current bookmarks
-			
-                <xsl:param name="use.id.as.filename">1</xsl:param>
-				
-	-->
-	<!-- custom toc - book only shows chapter -->
-	<xsl:template match="preface|chapter|appendix|article" mode="toc">
-		<xsl:param name="toc-context" select="."/>
-	
-		<xsl:choose>
-			<xsl:when test="local-name($toc-context) = 'book'">
-				<xsl:call-template name="subtoc">
-					<xsl:with-param name="toc-context" select="$toc-context"/>
-					<xsl:with-param name="nodes" select="foo"/>
-				</xsl:call-template>
-			</xsl:when>
-			<xsl:otherwise>
-				<xsl:call-template name="subtoc">
-					<xsl:with-param name="toc-context" select="$toc-context"/>
-					<xsl:with-param name="nodes" select="section|sect1|glossary|bibliography|index                                                                                                 |bridgehead[$bridgehead.in.toc != 0]"/>
-				</xsl:call-template>
-			</xsl:otherwise>
-		</xsl:choose>
-	</xsl:template>
-	<!-- INDEX PARAMETERS -->
-	<!-- do you want an index?  -->
-	<xsl:param name="generate.index">1</xsl:param>
-	<!-- Select indexterms based on type attribute value -->
-	<xsl:param name="index.on.type">1</xsl:param>
-	<!-- GLOSSARY PARAMETERS -->
-	<!-- Display glossentry acronyms? -->
-	<xsl:param name="glossentry.show.acronym">yes</xsl:param>
-
-	<!--
-	
-		Name of the glossary collection file
-        
-		<xsl:param name="glossary.collection" select="'glossary.xml'"></xsl:param>
-          
-	-->
-
-	<!--
-		Generate links from glossterm to glossentry automatically?
-        
-		<xsl:param name="glossterm.auto.link">1</xsl:param>
-                
-	-->
-
-	<!--
-		
-		if non-zero value for previous parameter, does automatic glossterm
-		linking only apply to firstterms?
-        
-		<xsl:param name="firstterm.only.link">1</xsl:param> 
-	-->
-
-	<!--
-		
-		permit wrapping of long lines of code
-		
-		<xsl:attribute-set name="monospace.verbatim.properties" 
-			use-attribute-sets="verbatim.properties monospace.properties">
-            
-			<xsl:attribute name="wrap-option">wrap</xsl:attribute>
-		</xsl:attribute-set> 
-	-->
-	
-	<!-- INCORPORATING DOCBOOK PAGES INTO WEBSITE -->
-
-	<!--
-		make sure there's a DOCTYPE in the html output (otherwise, some css renders strangely 
-	-->
-	<xsl:param name="chunker.output.doctype-public" select="'-//W3C//DTD HTML 4.01 Transitional//EN'"/>
-	<xsl:param name="chunker.output.doctype-system" select="'http://www.w3.org/TR/html4/loose.dtd'"/>
-	<!-- add elements to the HEAD tag -->
-
-	<xsl:template name="user.head.content"> 
-		<link href="http://www.ci.uchicago.edu/swift/style.css" rel="stylesheet" type="text/css"/>
-		<script type="text/javascript" src="http://www.ci.uchicago.edu/swift/dhtml.js"></script>
-		<script class="javascript" src="http://www.ci.uchicago.edu/swift/shCoreu.js"></script>
-		<script class="javascript" src="http://www.ci.uchicago.edu/swift/shBrushVDL2.js"></script>
-	</xsl:template>
-
-	<!-- add an attribute to the BODY tag -->
-
-	<xsl:template name="body.attributes">
-		<xsl:attribute name="class">section-3</xsl:attribute>
-	</xsl:template>
-
-	<!--
-		pull in 'website' with this code by modifying chunk-element-content from html/chunk-common.xsl
-	-->
-
-	<xsl:template name="chunk-element-content">
-		<xsl:param name="prev"/>
-		<xsl:param name="next"/>
-		<xsl:param name="nav.context"/>
-		<xsl:param name="content">
-			<xsl:apply-imports/>
-		</xsl:param>
-	
-		<xsl:call-template name="user.preroot"/>
-
-		<html>
-
-			<xsl:call-template name="html.head">
-				<xsl:with-param name="prev" select="$prev"/>
-				<xsl:with-param name="next" select="$next"/>
-			</xsl:call-template>
-
-			<body onLoad="initjs();sh();">
-				<xsl:call-template name="body.attributes"/>
-
-				<xsl:call-template name="user.header.navigation"/>
-
-				<xsl:call-template name="user.header.content"/>
-			
-				<xsl:copy-of select="$content"/>
-			
-				<xsl:call-template name="user.footer.content"/>
-
-				<xsl:call-template name="user.footer.navigation"/>
-
-			</body>
-		</html>
-	</xsl:template>
-
-	<!--
-		prevent h1 and h2 using clear: both - want to control in css, instead 
-	-->
-
-	<xsl:template name="section.heading">
-		<xsl:param name="section" select="."/>
-		<xsl:param name="level" select="'1'"/>
-		<xsl:param name="title"/>
-
-		<xsl:element name="h{$level+1}">
-			<xsl:attribute name="class">title</xsl:attribute>
-
-			<a>
-				<xsl:attribute name="name">
-					<xsl:call-template name="object.id">
-						<xsl:with-param name="object" select="$section"/>
-					</xsl:call-template>
-				</xsl:attribute>
-			</a>
-		
-			<xsl:copy-of select="$title"/>
-		</xsl:element>
-	</xsl:template>
-	
-	<xsl:template name="user.header.content">
-		<xsl:text disable-output-escaping="yes"><![CDATA[
-			<table border="0">
-				<tr>
-					<td valign="top">
-						<!--#include virtual="menu.html" -->
-					</td>
-					<td valign="top" class="main">
-		]]>
-		</xsl:text>
-	</xsl:template>
-	
-	<xsl:template name="user.footer.content">
-		<xsl:text disable-output-escaping="yes"><![CDATA[
-					</td>
-				</tr>
-			</table>
-		]]>
-		</xsl:text>
-	</xsl:template>
-</xsl:stylesheet>




More information about the Swift-commit mailing list