Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

[b99104]: templates / default.xsl Maximize Restore History

Download this file

default.xsl    166 lines (143 with data), 5.4 kB

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
xmlns="http://www.w3.org/1999/xhtml"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:exslt="http://exslt.org/common"
xmlns:xhtml="http://www.w3.org/1999/xhtml"
xmlns:xi="http://www.w3.org/2001/XInclude"
extension-element-prefixes="exslt"
exclude-result-prefixes="xhtml xi #default">
<xsl:include href="news.xsl" />
<xsl:include href="releases.xsl" />
<xsl:include href="security.xsl" />
<xsl:include href="../generated/menu.xsl" />
<xsl:output omit-xml-declaration="yes" method="text" />
<xsl:strip-space elements="*" />
<xsl:template match="@xml:base"/>
<!-- from http://dev.ektron.com/kb_article.aspx?id=492 -->
<xsl:template match="*">
<xsl:element name="{name()}">
<xsl:apply-templates select="@*|node()"/>
</xsl:element>
</xsl:template>
<xsl:template match="@*|text()|comment()|processing-instruction()">
<xsl:copy>
<xsl:apply-templates select="@*|node()"/>
</xsl:copy>
</xsl:template>
<xsl:template name="page-content">
<xsl:param name="title" />
<xsl:param name="notitle" />
<xsl:param name="id" />
<xsl:param name="category" />
<xsl:param name="vxhtml" />
<xsl:param name="vxhtmlalt" />
<xsl:param name="vcss" />
<xsl:variable name="mycategory">
<xsl:choose>
<xsl:when test="$category">
<xsl:value-of select="$category" />
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$id" />
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<html xml:lang="en">
<head>
<title>the xine project - <xsl:value-of select="$title" /></title>
<meta name="robots" content="index, follow" />
<meta name="revisit-after" content="14 days" />
<link rel="shortcut icon" href="/images/xine-x.png" />
<!-- link rel="stylesheet" type="text/css" href="/css/framework.css" / -->
<link rel="stylesheet" type="text/css" href="/css/xineproject.css" />
</head>
<body>
<div id="teaser">
<img alt="xine logo" src="/images/teaser.png" height="50" width="800" />
</div>
<div id="hbar">
<!-- This div is left intentionally blank. The reason for this
is that we want it emitted either way, but we don't use
it on the standard website, just on Bugzilla we use
something similar.
-->
<xsl:text> </xsl:text>
</div>
<div id="menu">
<xsl:call-template name="xine-menu">
<xsl:with-param name="category" select="$mycategory" />
<xsl:with-param name="id" select="$id" />
</xsl:call-template>
<div class="logos">
<a href="http://sourceforge.net/projects/xine">
<img id="sflogo" alt="SourceForge.net"
src="http://sourceforge.net/sflogo.php?group_id=9655&amp;type=12" />
</a>
<br />
<a href="http://www.ios-solutions.de/">
<img id="ioslogo" alt="Integrated Open Source Solutions"
src="/images/ios-logo-small.png" />
</a>
</div>
<div class="logos">
<xsl:if test="$vxhtml != ''">
<a href="http://validator.w3.org/check?uri=referer">
<img src="http://www.w3.org/Icons/valid-xhtml{$vxhtml}-blue"
alt="Valid XHTML {$vxhtmlalt}!"
height="31" width="88" class="w3" />
</a>
</xsl:if>
<xsl:if test="$vcss != ''">
<a href="http://jigsaw.w3.org/css-validator/check?uri=referer">
<img src="http://jigsaw.w3.org/css-validator/images/vcss-blue"
title="Valid CSS {$vcss}!" alt="Valid CSS {$vcss}!"
height="31" width="88" class="w3" />
</a>
</xsl:if>
</div>
</div>
<div id="main">
<xsl:choose>
<xsl:when test="$notitle" />
<xsl:otherwise>
<h1><xsl:value-of select="$title" /></h1>
</xsl:otherwise>
</xsl:choose>
<xsl:apply-templates />
</div>
<div id="footer">Copyright �� 2002-2009 the xine project</div>
</body>
</html>
</xsl:template>
<xsl:template match="page">
<exslt:document href="output/{@id}.xhtml" encoding="UTF-8" method="xml" indent="yes"
standalone="yes" doctype-public="-//W3C//DTD XHTML 1.1//EN"
doctype-system="http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<xsl:call-template name="page-content">
<xsl:with-param name="title" select="@title" />
<xsl:with-param name="notitle" select="@no-title" />
<xsl:with-param name="id" select="@id" />
<xsl:with-param name="category" select="@category" />
<xsl:with-param name="vxhtml" select="'11'" />
<xsl:with-param name="vxhtmlalt" select="'1.1'" />
<xsl:with-param name="vcss" select="'2.1'" />
</xsl:call-template>
</exslt:document>
</xsl:template>
<xsl:template match="page-xhtml10-transitional">
<exslt:document href="output/{@id}.xhtml" encoding="UTF-8" method="xml" indent="yes"
standalone="yes" doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN"
doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<xsl:call-template name="page-content">
<xsl:with-param name="title" select="@title" />
<xsl:with-param name="notitle" select="@no-title" />
<xsl:with-param name="id" select="@id" />
<xsl:with-param name="category" select="@category" />
<xsl:with-param name="vxhtml" select="'10'" />
<xsl:with-param name="vxhtmlalt" select="'1.0 Transitional'" />
<xsl:with-param name="vcss" select="'2.1'" />
</xsl:call-template>
</exslt:document>
</xsl:template>
</xsl:stylesheet>