[5d4975d] | 1 | <?xml version='1.0' encoding='ISO-8859-1'?>
|
---|
| 2 |
|
---|
| 3 | <!-- Version 0.9 - Manuel Canales Esparcia <macana@lfs-es.org> -->
|
---|
[9f6b04f] | 4 | <!-- Updates by Bruce Dubbs <bdubbs@linuxfromscratch.org> -->
|
---|
[5d4975d] | 5 |
|
---|
| 6 | <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
---|
| 7 | xmlns="http://www.w3.org/1999/xhtml"
|
---|
| 8 | version="1.0">
|
---|
| 9 |
|
---|
| 10 | <!-- Dropping the HEAD links -->
|
---|
| 11 | <xsl:template name="html.head">
|
---|
| 12 | <head>
|
---|
| 13 | <xsl:call-template name="system.head.content"/>
|
---|
| 14 | <xsl:call-template name="head.content"/>
|
---|
| 15 | <xsl:call-template name="user.head.content"/>
|
---|
| 16 | </head>
|
---|
| 17 | </xsl:template>
|
---|
| 18 |
|
---|
| 19 | <!-- Header Navigation-->
|
---|
| 20 | <xsl:template name="header.navigation">
|
---|
| 21 | <xsl:param name="prev" select="/foo"/>
|
---|
| 22 | <xsl:param name="next" select="/foo"/>
|
---|
| 23 | <xsl:param name="nav.context"/>
|
---|
| 24 | <xsl:variable name="home" select="/*[1]"/>
|
---|
| 25 | <xsl:variable name="up" select="parent::*"/>
|
---|
| 26 | <xsl:variable name="row" select="count($prev) > 0 or (count($up) > 0
|
---|
| 27 | and generate-id($up) != generate-id($home)) or count($next) > 0"/>
|
---|
| 28 | <xsl:if test="$row and $home != .">
|
---|
| 29 | <div class="navheader">
|
---|
| 30 | <xsl:if test="$home != .">
|
---|
| 31 | <div class="headertitles">
|
---|
| 32 | <p>
|
---|
| 33 | <xsl:apply-templates select="$home" mode="object.title.markup"/>
|
---|
[9f6b04f] | 34 | <xsl:text> – </xsl:text> <!-- ndash -->
|
---|
[5d4975d] | 35 | <xsl:apply-templates select="$home" mode="object.subtitle.markup"/>
|
---|
| 36 | </p>
|
---|
| 37 | <xsl:if test="$up != $home">
|
---|
| 38 | <p><b>
|
---|
| 39 | <xsl:apply-templates select="$up" mode="object.title.markup"/>
|
---|
| 40 | </b></p>
|
---|
| 41 | </xsl:if>
|
---|
| 42 | </div>
|
---|
| 43 | </xsl:if>
|
---|
[3984104] | 44 | <div class="headerlinks">
|
---|
[9f6b04f] | 45 | <div class='prev'>
|
---|
| 46 | <xsl:if test="count($prev)>0 and $prev != $home">
|
---|
[5d4975d] | 47 | <a accesskey="p">
|
---|
| 48 | <xsl:attribute name="href">
|
---|
| 49 | <xsl:call-template name="href.target">
|
---|
| 50 | <xsl:with-param name="object" select="$prev"/>
|
---|
| 51 | </xsl:call-template>
|
---|
| 52 | </xsl:attribute>
|
---|
| 53 | <xsl:text>Prev</xsl:text>
|
---|
| 54 | </a>
|
---|
[9f6b04f] | 55 | </xsl:if>
|
---|
| 56 | <xsl:text> </xsl:text></div> <!-- nbsp -->
|
---|
| 57 | <div class='next'><xsl:text> </xsl:text>
|
---|
| 58 | <xsl:if test="count($next)>0">
|
---|
[5d4975d] | 59 | <a accesskey="n">
|
---|
| 60 | <xsl:attribute name="href">
|
---|
| 61 | <xsl:call-template name="href.target">
|
---|
| 62 | <xsl:with-param name="object" select="$next"/>
|
---|
| 63 | </xsl:call-template>
|
---|
| 64 | </xsl:attribute>
|
---|
| 65 | <xsl:text>Next</xsl:text>
|
---|
| 66 | </a>
|
---|
[9f6b04f] | 67 | </xsl:if>
|
---|
| 68 | </div>
|
---|
[3984104] | 69 | <div class='home'>
|
---|
| 70 | <a accesskey="h">
|
---|
| 71 | <xsl:attribute name="href">
|
---|
| 72 | <xsl:call-template name="href.target">
|
---|
| 73 | <xsl:with-param name="object" select="$home"/>
|
---|
| 74 | </xsl:call-template>
|
---|
| 75 | </xsl:attribute>
|
---|
| 76 | <xsl:text>Home</xsl:text>
|
---|
| 77 | </a>
|
---|
| 78 | </div>
|
---|
| 79 | </div>
|
---|
[5d4975d] | 80 | </div>
|
---|
| 81 | </xsl:if>
|
---|
| 82 | </xsl:template>
|
---|
| 83 |
|
---|
| 84 | <!-- Footer Navigation-->
|
---|
| 85 | <xsl:template name="footer.navigation">
|
---|
| 86 | <xsl:param name="prev" select="/foo"/>
|
---|
| 87 | <xsl:param name="next" select="/foo"/>
|
---|
| 88 | <xsl:param name="nav.context"/>
|
---|
| 89 | <xsl:variable name="home" select="/*[1]"/>
|
---|
| 90 | <xsl:variable name="up" select="parent::*"/>
|
---|
| 91 | <xsl:variable name="row" select="count($prev) > 0 or count($up) > 0
|
---|
| 92 | or count($next) > 0 or generate-id($home) != generate-id(.)"/>
|
---|
| 93 | <xsl:if test="$row">
|
---|
| 94 | <div class="navfooter">
|
---|
[9f6b04f] | 95 | <div class='prev'>
|
---|
| 96 | <xsl:if test="count($prev)>0 and $prev != $home">
|
---|
[5d4975d] | 97 | <a accesskey="p">
|
---|
| 98 | <xsl:attribute name="href">
|
---|
| 99 | <xsl:call-template name="href.target">
|
---|
| 100 | <xsl:with-param name="object" select="$prev"/>
|
---|
| 101 | </xsl:call-template>
|
---|
| 102 | </xsl:attribute>
|
---|
| 103 | <xsl:text>Prev</xsl:text>
|
---|
[3984104] | 104 | </a><br/>
|
---|
| 105 | <!-- <xsl:text> </xsl:text> -->
|
---|
[5d4975d] | 106 | <xsl:apply-templates select="$prev" mode="object.title.markup"/>
|
---|
[9f6b04f] | 107 | </xsl:if>
|
---|
| 108 | <xsl:text> </xsl:text>
|
---|
| 109 | </div> <!-- nbsp -->
|
---|
| 110 | <div class='next'><xsl:text> </xsl:text>
|
---|
[3984104] | 111 | <xsl:if test="count($next)>0">
|
---|
| 112 | <a accesskey="n">
|
---|
| 113 | <xsl:attribute name="href">
|
---|
| 114 | <xsl:call-template name="href.target">
|
---|
| 115 | <xsl:with-param name="object" select="$next"/>
|
---|
| 116 | </xsl:call-template>
|
---|
| 117 | </xsl:attribute>
|
---|
| 118 | <xsl:text>Next</xsl:text>
|
---|
| 119 | </a><br/>
|
---|
| 120 | <!-- <xsl:text> </xsl:text> -->
|
---|
| 121 | <xsl:apply-templates select="$next" mode="object.title.markup"/>
|
---|
[9f6b04f] | 122 | </xsl:if>
|
---|
| 123 | </div>
|
---|
[5d4975d] | 124 | <xsl:if test="count($up)>0 and $up != $home">
|
---|
[3984104] | 125 | <div class='up'>
|
---|
[5d4975d] | 126 | <a accesskey="u">
|
---|
| 127 | <xsl:attribute name="href">
|
---|
| 128 | <xsl:call-template name="href.target">
|
---|
| 129 | <xsl:with-param name="object" select="$up"/>
|
---|
| 130 | </xsl:call-template>
|
---|
| 131 | </xsl:attribute>
|
---|
| 132 | <xsl:text>Up</xsl:text>
|
---|
| 133 | </a>
|
---|
[3984104] | 134 | </div>
|
---|
[5d4975d] | 135 | </xsl:if>
|
---|
[9f6b04f] | 136 | <div class='home'>
|
---|
| 137 | <xsl:if test="$home != .">
|
---|
[5d4975d] | 138 | <a accesskey="h">
|
---|
| 139 | <xsl:attribute name="href">
|
---|
| 140 | <xsl:call-template name="href.target">
|
---|
| 141 | <xsl:with-param name="object" select="$home"/>
|
---|
| 142 | </xsl:call-template>
|
---|
| 143 | </xsl:attribute>
|
---|
| 144 | <xsl:text>Home</xsl:text>
|
---|
| 145 | </a>
|
---|
[9f6b04f] | 146 | </xsl:if>
|
---|
| 147 | </div>
|
---|
[5d4975d] | 148 | </div>
|
---|
| 149 | </xsl:if>
|
---|
| 150 | </xsl:template>
|
---|
| 151 |
|
---|
| 152 | </xsl:stylesheet>
|
---|
| 153 |
|
---|
| 154 |
|
---|