[5415] | 1 | <?xml version="1.0" encoding="UTF-8"?>
|
---|
| 2 | <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
|
---|
| 3 |
|
---|
[6586] | 4 | <xsl:output method="html" encoding="UTF-8"/>
|
---|
[5415] | 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">
|
---|
| 17 | <html>
|
---|
| 18 | <head>
|
---|
| 19 | <title>The Greenstone Librarian Interface - Help Pages</title>
|
---|
| 20 | </head>
|
---|
[5417] | 21 | <body bgcolor="#E0F0E0">
|
---|
[5415] | 22 | <xsl:for-each select="Section">
|
---|
| 23 | <xsl:call-template name="processSection">
|
---|
| 24 | <xsl:with-param name="sectionHead" select="position()"/>
|
---|
| 25 | </xsl:call-template>
|
---|
| 26 | </xsl:for-each>
|
---|
| 27 | </body>
|
---|
| 28 | </html>
|
---|
| 29 | </xsl:template>
|
---|
| 30 |
|
---|
[5417] | 31 | <xsl:template match="ObviousSentence"/>
|
---|
| 32 |
|
---|
[5415] | 33 | <xsl:template match="Reference">
|
---|
| 34 | <a href="#{@target}"><xsl:apply-templates/></a>
|
---|
| 35 | </xsl:template>
|
---|
| 36 |
|
---|
| 37 | <xsl:template match="Section"/>
|
---|
| 38 |
|
---|
| 39 | <xsl:template match="Title"/>
|
---|
| 40 |
|
---|
| 41 |
|
---|
| 42 | <xsl:template name="processSection">
|
---|
| 43 | <xsl:param name="sectionHead"/>
|
---|
| 44 |
|
---|
| 45 | <xsl:if test="Title">
|
---|
| 46 | <a name="{@name}">
|
---|
| 47 | <xsl:call-template name="processTitle">
|
---|
| 48 | <xsl:with-param name="sectionNumber" select="$sectionHead"/>
|
---|
| 49 | <xsl:with-param name="sectionTitle" select="Title"/>
|
---|
| 50 | </xsl:call-template>
|
---|
| 51 | </a>
|
---|
| 52 | </xsl:if>
|
---|
| 53 |
|
---|
| 54 | <xsl:apply-templates/>
|
---|
| 55 |
|
---|
| 56 | <xsl:for-each select="Section">
|
---|
| 57 | <xsl:call-template name="processSection">
|
---|
| 58 | <xsl:with-param name="sectionHead" select="concat($sectionHead, '.', position())"/>
|
---|
| 59 | </xsl:call-template>
|
---|
| 60 | </xsl:for-each>
|
---|
| 61 | </xsl:template>
|
---|
| 62 |
|
---|
[5417] | 63 |
|
---|
[5415] | 64 | <xsl:template name="processTitle">
|
---|
| 65 | <xsl:param name="sectionNumber"/>
|
---|
| 66 | <xsl:param name="sectionTitle"/>
|
---|
| 67 |
|
---|
[5417] | 68 | <xsl:choose>
|
---|
| 69 | <xsl:when test="contains($sectionNumber, '.')">
|
---|
| 70 | <h3>Section <xsl:value-of select="concat($sectionNumber, ': ', $sectionTitle)"/></h3>
|
---|
| 71 | </xsl:when>
|
---|
| 72 | <xsl:otherwise>
|
---|
| 73 | <h1>Section <xsl:value-of select="concat($sectionNumber, ': ', $sectionTitle)"/></h1>
|
---|
| 74 | </xsl:otherwise>
|
---|
| 75 | </xsl:choose>
|
---|
[5415] | 76 | </xsl:template>
|
---|
| 77 |
|
---|
| 78 | </xsl:stylesheet> |
---|