source: trunk/gli/help/gen-one-tex.xsl@ 11092

Last change on this file since 11092 was 11092, checked in by kjdon, 18 years ago

removed references to Anchor, Contents, ObviousSentence, which are no longer used

  • Property svn:keywords set to Author Date Id Revision
File size: 2.4 KB
Line 
1<?xml version="1.0" encoding="UTF-8"?>
2<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
3
4 <xsl:output method="text" encoding="iso-8859-1"/>
5
6 <xsl:template match="Break">
7 <p/>
8 </xsl:template>
9
10 <xsl:template match="Document-old">
11 <html>
12 <head>
13 <title>The Greenstone Librarian Interface - Help Pages</title>
14 </head>
15 <body bgcolor="#E0F0E0">
16 <xsl:for-each select="Section">
17 <!-- Skip the first section -->
18 <xsl:if test="position() > 1">
19 <xsl:call-template name="processSection">
20 <xsl:with-param name="sectionHead" select="position()"/>
21 </xsl:call-template>
22 </xsl:if>
23 </xsl:for-each>
24 </body>
25 </html>
26 </xsl:template>
27 <xsl:template match="Document">
28 % START OF AUTO-GENERATED GLI USER GUIDE
29 <xsl:for-each select="Section">
30 <!-- Skip the first section -->
31 <xsl:if test="position() > 1">
32 <xsl:call-template name="processSection">
33 <xsl:with-param name="sectionHead" select="position()"/>
34 </xsl:call-template>
35 </xsl:if>
36 </xsl:for-each>
37 </xsl:template>
38
39 <xsl:template match="Reference">
40 <xsl:apply-templates/>
41 </xsl:template>
42
43 <xsl:template match="Section"/>
44
45 <xsl:template match="Title"/>
46
47
48 <xsl:template name="processSection">
49 <xsl:param name="sectionHead"/>
50
51 <xsl:if test="Title">
52 <xsl:call-template name="processTitle">
53 <xsl:with-param name="sectionNumber" select="$sectionHead"/>
54 <xsl:with-param name="sectionTitle" select="Title"/>
55 </xsl:call-template>
56 </xsl:if>
57
58 <xsl:apply-templates/>
59
60 <xsl:for-each select="Section">
61 <xsl:call-template name="processSection">
62 <xsl:with-param name="sectionHead" select="concat($sectionHead, '.', position())"/>
63 </xsl:call-template>
64 </xsl:for-each>
65 </xsl:template>
66
67
68 <xsl:template name="processTitle">
69 <xsl:param name="sectionNumber"/>
70 <xsl:param name="sectionTitle"/>
71
72 <xsl:choose>
73 <xsl:when test="contains($sectionNumber, '.')">
74 <!--<h4><xsl:value-of select="$sectionTitle"/></h4>-->
75\paragraph{\emph{<xsl:value-of select="$sectionTitle"/>}}<xsl:text>
76 </xsl:text>
77 </xsl:when>
78 <xsl:otherwise>
79 <!--<h3><xsl:value-of select="$sectionTitle"/></h3>-->
80\subsubsection{<xsl:value-of select="$sectionTitle"/>}<xsl:text>
81 </xsl:text>
82 </xsl:otherwise>
83 </xsl:choose>
84 </xsl:template>
85
86</xsl:stylesheet>
Note: See TracBrowser for help on using the repository browser.