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="Anchor"/>
|
---|
7 |
|
---|
8 | <xsl:template match="Break">
|
---|
9 | <p/>
|
---|
10 | </xsl:template>
|
---|
11 |
|
---|
12 | <xsl:template match="Contents">
|
---|
13 | <p/>
|
---|
14 | </xsl:template>
|
---|
15 |
|
---|
16 | <xsl:template match="Document-old">
|
---|
17 | <html>
|
---|
18 | <head>
|
---|
19 | <title>The Greenstone Librarian Interface - Help Pages</title>
|
---|
20 | </head>
|
---|
21 | <body bgcolor="#E0F0E0">
|
---|
22 | <xsl:for-each select="Section">
|
---|
23 | <!-- Skip the first section -->
|
---|
24 | <xsl:if test="position() > 1">
|
---|
25 | <xsl:call-template name="processSection">
|
---|
26 | <xsl:with-param name="sectionHead" select="position()"/>
|
---|
27 | </xsl:call-template>
|
---|
28 | </xsl:if>
|
---|
29 | </xsl:for-each>
|
---|
30 | </body>
|
---|
31 | </html>
|
---|
32 | </xsl:template>
|
---|
33 | <xsl:template match="Document">
|
---|
34 | % START OF AUTO-GENERATED GLI USER GUIDE
|
---|
35 | <xsl:for-each select="Section">
|
---|
36 | <!-- Skip the first section -->
|
---|
37 | <xsl:if test="position() > 1">
|
---|
38 | <xsl:call-template name="processSection">
|
---|
39 | <xsl:with-param name="sectionHead" select="position()"/>
|
---|
40 | </xsl:call-template>
|
---|
41 | </xsl:if>
|
---|
42 | </xsl:for-each>
|
---|
43 | </xsl:template>
|
---|
44 | <xsl:template match="ObviousSentence"/>
|
---|
45 |
|
---|
46 | <xsl:template match="Reference">
|
---|
47 | <xsl:apply-templates/>
|
---|
48 | </xsl:template>
|
---|
49 |
|
---|
50 | <xsl:template match="Section"/>
|
---|
51 |
|
---|
52 | <xsl:template match="Title"/>
|
---|
53 |
|
---|
54 |
|
---|
55 | <xsl:template name="processSection">
|
---|
56 | <xsl:param name="sectionHead"/>
|
---|
57 |
|
---|
58 | <xsl:if test="Title">
|
---|
59 | <xsl:call-template name="processTitle">
|
---|
60 | <xsl:with-param name="sectionNumber" select="$sectionHead"/>
|
---|
61 | <xsl:with-param name="sectionTitle" select="Title"/>
|
---|
62 | </xsl:call-template>
|
---|
63 | </xsl:if>
|
---|
64 |
|
---|
65 | <xsl:apply-templates/>
|
---|
66 |
|
---|
67 | <xsl:for-each select="Section">
|
---|
68 | <xsl:call-template name="processSection">
|
---|
69 | <xsl:with-param name="sectionHead" select="concat($sectionHead, '.', position())"/>
|
---|
70 | </xsl:call-template>
|
---|
71 | </xsl:for-each>
|
---|
72 | </xsl:template>
|
---|
73 |
|
---|
74 |
|
---|
75 | <xsl:template name="processTitle">
|
---|
76 | <xsl:param name="sectionNumber"/>
|
---|
77 | <xsl:param name="sectionTitle"/>
|
---|
78 |
|
---|
79 | <xsl:choose>
|
---|
80 | <xsl:when test="contains($sectionNumber, '.')">
|
---|
81 | <!--<h4><xsl:value-of select="$sectionTitle"/></h4>-->
|
---|
82 | \paragraph{\emph{<xsl:value-of select="$sectionTitle"/>}}<xsl:text>
|
---|
83 | </xsl:text>
|
---|
84 | </xsl:when>
|
---|
85 | <xsl:otherwise>
|
---|
86 | <!--<h3><xsl:value-of select="$sectionTitle"/></h3>-->
|
---|
87 | \subsubsection{<xsl:value-of select="$sectionTitle"/>}<xsl:text>
|
---|
88 | </xsl:text>
|
---|
89 | </xsl:otherwise>
|
---|
90 | </xsl:choose>
|
---|
91 | </xsl:template>
|
---|
92 |
|
---|
93 | </xsl:stylesheet> |
---|