TDE core libraries
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

tde-navig.xsl 8.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213
  1. <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  2. version="1.0">
  3. <xsl:template match="email">
  4. <xsl:call-template name="inline.monoseq">
  5. <xsl:with-param name="content">
  6. <xsl:text>(</xsl:text>
  7. <xsl:call-template name="replaceCharsInString">
  8. <xsl:with-param name="stringIn" select="."/>
  9. <xsl:with-param name="charsIn" select="'@'"/>
  10. <xsl:with-param name="charsOut" select="' AT '"/>
  11. </xsl:call-template>
  12. <xsl:text>)</xsl:text>
  13. </xsl:with-param>
  14. </xsl:call-template>
  15. </xsl:template>
  16. <xsl:template name="replaceCharsInString">
  17. <xsl:param name="stringIn"/>
  18. <xsl:param name="charsIn"/>
  19. <xsl:param name="charsOut"/>
  20. <xsl:choose>
  21. <xsl:when test="contains($stringIn,$charsIn)">
  22. <xsl:value-of select="concat(substring-before($stringIn,$charsIn),$charsOut)"/>
  23. <xsl:call-template name="replaceCharsInString">
  24. <xsl:with-param name="stringIn" select="substring-after($stringIn,$charsIn)"/>
  25. <xsl:with-param name="charsIn" select="$charsIn"/>
  26. <xsl:with-param name="charsOut" select="$charsOut"/>
  27. </xsl:call-template>
  28. </xsl:when>
  29. <xsl:otherwise>
  30. <xsl:value-of select="$stringIn"/>
  31. </xsl:otherwise>
  32. </xsl:choose>
  33. </xsl:template>
  34. <xsl:template name="header.navigation">
  35. <xsl:param name="prev" select="/foo"/>
  36. <xsl:param name="next" select="/foo"/>
  37. <xsl:variable name="home" select="/*[1]"/>
  38. <xsl:variable name="up" select="parent::*"/>
  39. <xsl:if test="$suppress.navigation = '0'">
  40. <div style="background-image: url({$tde.common}top-middle.png); width: 100%; height: 131px;">
  41. <div style="position: absolute;
  42. right: 0px;">
  43. <img src="{$tde.common}top-right-konqueror.png"
  44. style="margin: 0px" alt="" />
  45. </div>
  46. <div style="position: absolute;
  47. top: 25px;
  48. left: 140px;
  49. text-align: left;
  50. font-size: xx-large;
  51. font-weight: bold;
  52. text-shadow: #000000 1px 1px 5px;
  53. color: #fff">
  54. <xsl:apply-templates select="." mode="title.markup"/>
  55. </div>
  56. </div>
  57. <div style="margin-top: 20px; background-color: #white;
  58. color: black;
  59. margin-left: 20px;
  60. margin-right: 20px;">
  61. <div style="position: absolute;
  62. left: 20px;">
  63. <xsl:if test="count($prev)>0">
  64. <a accesskey="p">
  65. <xsl:attribute name="href">
  66. <xsl:call-template name="href.target">
  67. <xsl:with-param name="object" select="$prev"/>
  68. </xsl:call-template>
  69. </xsl:attribute>
  70. <xsl:call-template name="gentext.nav.prev"/>
  71. </a>
  72. </xsl:if>
  73. </div>
  74. <div style="position: absolute;
  75. right: 20px;">
  76. <xsl:if test="count($next)>0">
  77. <a accesskey="n">
  78. <xsl:attribute name="href">
  79. <xsl:call-template name="href.target">
  80. <xsl:with-param name="object" select="$next"/>
  81. </xsl:call-template>
  82. </xsl:attribute>
  83. <xsl:call-template name="gentext.nav.next"/>
  84. </a>
  85. </xsl:if>
  86. </div>
  87. <div class="navCenter">
  88. <xsl:choose>
  89. <xsl:when test="count($up) > 0 and $up != $home">
  90. <xsl:apply-templates select="$up" mode="title.markup"/>
  91. </xsl:when>
  92. <xsl:otherwise>&#160;</xsl:otherwise>
  93. </xsl:choose>
  94. </div>
  95. </div>
  96. </xsl:if>
  97. </xsl:template>
  98. <!-- ==================================================================== -->
  99. <xsl:template name="footer.navigation">
  100. <xsl:param name="prev" select="/foo"/>
  101. <xsl:param name="next" select="/foo"/>
  102. <xsl:variable name="home" select="/*[1]"/>
  103. <xsl:variable name="up" select="parent::*"/>
  104. <xsl:if test="$suppress.navigation = '0'">
  105. <div style="background-color: #white; color: black;
  106. margin-top: 20px; margin-left: 20px;
  107. margin-right: 20px;">
  108. <div style="position: absolute; left: 20px;">
  109. <xsl:if test="count($prev)>0">
  110. <a accesskey="p">
  111. <xsl:attribute name="href">
  112. <xsl:call-template name="href.target">
  113. <xsl:with-param name="object" select="$prev"/>
  114. </xsl:call-template>
  115. </xsl:attribute>
  116. <xsl:call-template name="gentext.nav.prev"/>
  117. </a>
  118. </xsl:if>
  119. </div>
  120. <div style="position: absolute; right: 20px;">
  121. <xsl:if test="count($next)>0">
  122. <a accesskey="n">
  123. <xsl:attribute name="href">
  124. <xsl:call-template name="href.target">
  125. <xsl:with-param name="object" select="$next"/>
  126. </xsl:call-template>
  127. </xsl:attribute>
  128. <xsl:call-template name="gentext.nav.next"/>
  129. </a>
  130. </xsl:if>
  131. </div>
  132. <div align="center">
  133. <xsl:choose>
  134. <xsl:when test="$home != .">
  135. <a accesskey="h">
  136. <xsl:attribute name="href">
  137. <xsl:call-template name="href.target">
  138. <xsl:with-param name="object" select="$home"/>
  139. </xsl:call-template>
  140. </xsl:attribute>
  141. <xsl:call-template name="gentext.nav.home"/>
  142. </a>
  143. </xsl:when>
  144. <xsl:otherwise>&#160;</xsl:otherwise>
  145. </xsl:choose>
  146. </div>
  147. </div>
  148. <div style="background-color: #white;
  149. color: black;
  150. margin-left: 20px;
  151. margin-right: 20px;">
  152. <div class="navLeft">
  153. <xsl:apply-templates select="$prev" mode="title.markup"/>
  154. <xsl:text>&#160;</xsl:text>
  155. </div>
  156. <div class="navRight">
  157. <xsl:text>&#160;</xsl:text>
  158. <xsl:apply-templates select="$next" mode="title.markup"/>
  159. </div>
  160. <div class="navCenter">
  161. <xsl:choose>
  162. <xsl:when test="count($up)>0">
  163. <a accesskey="u">
  164. <xsl:attribute name="href">
  165. <xsl:call-template name="href.target">
  166. <xsl:with-param name="object" select="$up"/>
  167. </xsl:call-template>
  168. </xsl:attribute>
  169. <xsl:call-template name="gentext.nav.up"/>
  170. </a>
  171. </xsl:when>
  172. <xsl:otherwise>&#160;</xsl:otherwise>
  173. </xsl:choose>
  174. </div>
  175. </div>
  176. <br/>
  177. <br/>
  178. <div class="bannerBottom" style="background-image: url({$tde.common}bottom-middle.png);
  179. background-repeat: x-repeat;
  180. width: 100%;
  181. height: 100px;
  182. bottom:0px;">
  183. <div class="BannerBottomRight">
  184. <img src="{$tde.common}bottom-right.png" style="margin: 0px" alt=""/>
  185. </div>
  186. <div class="bannerBottomLeft">
  187. <img src="{$tde.common}bottom-left.png" style="margin: 0px;" alt=""/>
  188. </div>
  189. <div id="comments" style="position:relative; top: 5px; left: 1em; height:85px; width: 50%; color: #000000">
  190. <p>Would you like to comment or contribute an update to this page?<br/>
  191. Send feedback to the <a href="mailto:trinity-devel@lists.pearsoncomputing.net" style="background:transparent; color:#000000; text-decoration: underline;">TDE Development Team</a></p>
  192. </div>
  193. </div>
  194. </xsl:if>
  195. </xsl:template>
  196. </xsl:stylesheet>