1 <xsl:stylesheet version = '
1.0' xmlns:xsl='http://www.w3.org/
1999/XSL/Transform' xmlns:
msxsl=
"urn:schemas-microsoft-com:xslt">
2 <xsl:output method=
"html" encoding=
"UTF-8"/>
3 <xsl:key name=
"cat" match=
"category" use=
"@name"/>
4 <xsl:template match=
"/">
5 <xsl:for-each select=
"site">
8 <title>org.eclipse.egit-updatesite
</title>
9 <style>@import url(
"web/site.css");
</style>
12 <h1 class=
"title">org.eclipse.egit-updatesite
</h1>
13 <p class=
"bodyText"><xsl:value-of select=
"description"/></p>
14 <table width=
"100%" border=
"0" cellspacing=
"1" cellpadding=
"2">
15 <xsl:for-each select=
"category-def">
16 <xsl:sort select=
"@label" order=
"ascending" case-order=
"upper-first"/>
17 <xsl:sort select=
"@name" order=
"ascending" case-order=
"upper-first"/>
18 <xsl:if test=
"count(key('cat',@name)) != 0">
20 <td class=
"sub-header" width=
"30%">
21 <xsl:value-of select=
"@name"/>
23 <td class=
"sub-header" width=
"70%">
24 <xsl:value-of select=
"@label"/>
27 <xsl:for-each select=
"key('cat',@name)">
28 <xsl:sort select=
"ancestor::feature//@version" order=
"ascending"/>
29 <xsl:sort select=
"ancestor::feature//@id" order=
"ascending" case-order=
"upper-first"/>
32 <xsl:when test=
"(position() mod 2 = 1)">
33 <xsl:attribute name=
"class">dark-row
</xsl:attribute>
36 <xsl:attribute name=
"class">light-row
</xsl:attribute>
39 <td class=
"log-text" id=
"indent">
41 <xsl:when test=
"ancestor::feature//@label">
42 <a href=
"{ancestor::feature//@url}"><xsl:value-of select=
"ancestor::feature//@label"/></a>
45 (
<xsl:value-of select=
"ancestor::feature//@id"/> -
<xsl:value-of select=
"ancestor::feature//@version"/>)
49 <a href=
"{ancestor::feature//@url}"><xsl:value-of select=
"ancestor::feature//@id"/> -
<xsl:value-of select=
"ancestor::feature//@version"/></a>
56 <xsl:if test=
"ancestor::feature//@os">
57 <tr><td class=
"log-text" id=
"indent">Operating Systems:
</td>
58 <td class=
"log-text" id=
"indent"><xsl:value-of select=
"ancestor::feature//@os"/></td>
61 <xsl:if test=
"ancestor::feature//@ws">
62 <tr><td class=
"log-text" id=
"indent">Windows Systems:
</td>
63 <td class=
"log-text" id=
"indent"><xsl:value-of select=
"ancestor::feature//@ws"/></td>
66 <xsl:if test=
"ancestor::feature//@nl">
67 <tr><td class=
"log-text" id=
"indent">Languages:
</td>
68 <td class=
"log-text" id=
"indent"><xsl:value-of select=
"ancestor::feature//@nl"/></td>
71 <xsl:if test=
"ancestor::feature//@arch">
72 <tr><td class=
"log-text" id=
"indent">Architecture:
</td>
73 <td class=
"log-text" id=
"indent"><xsl:value-of select=
"ancestor::feature//@arch"/></td>
80 <tr><td class=
"spacer"><br/></td><td class=
"spacer"><br/></td></tr>
83 <xsl:if test=
"count(feature) > count(feature/category)">
85 <td class=
"sub-header" colspan=
"2">
91 <xsl:when test=
"function-available('msxsl:node-set')">
92 <xsl:variable name=
"rtf-nodes">
93 <xsl:for-each select=
"feature[not(category)]">
94 <xsl:sort select=
"@id" order=
"ascending" case-order=
"upper-first"/>
95 <xsl:sort select=
"@version" order=
"ascending" />
96 <xsl:value-of select=
"."/>
97 <xsl:copy-of select=
"." />
100 <xsl:variable name=
"myNodeSet" select=
"msxsl:node-set($rtf-nodes)/*"/>
101 <xsl:for-each select=
"$myNodeSet">
104 <xsl:when test=
"position() mod 2 = 1">
105 <xsl:attribute name=
"class">dark-row
</xsl:attribute>
108 <xsl:attribute name=
"class">light-row
</xsl:attribute>
111 <td class=
"log-text" id=
"indent">
113 <xsl:when test=
"@label">
114 <a href=
"{@url}"><xsl:value-of select=
"@label"/></a>
117 (
<xsl:value-of select=
"@id"/> -
<xsl:value-of select=
"@version"/>)
121 <a href=
"{@url}"><xsl:value-of select=
"@id"/> -
<xsl:value-of select=
"@version"/></a>
129 <tr><td class=
"log-text" id=
"indent">Operating Systems:
</td>
130 <td class=
"log-text" id=
"indent"><xsl:value-of select=
"@os"/></td>
134 <tr><td class=
"log-text" id=
"indent">Windows Systems:
</td>
135 <td class=
"log-text" id=
"indent"><xsl:value-of select=
"@ws"/></td>
139 <tr><td class=
"log-text" id=
"indent">Languages:
</td>
140 <td class=
"log-text" id=
"indent"><xsl:value-of select=
"@nl"/></td>
143 <xsl:if test=
"@arch">
144 <tr><td class=
"log-text" id=
"indent">Architecture:
</td>
145 <td class=
"log-text" id=
"indent"><xsl:value-of select=
"@arch"/></td>
154 <xsl:for-each select=
"feature[not(category)]">
155 <xsl:sort select=
"@id" order=
"ascending" case-order=
"upper-first"/>
156 <xsl:sort select=
"@version" order=
"ascending" />
159 <xsl:when test=
"count(preceding-sibling::feature[not(category)]) mod 2 = 1">
160 <xsl:attribute name=
"class">dark-row
</xsl:attribute>
163 <xsl:attribute name=
"class">light-row
</xsl:attribute>
166 <td class=
"log-text" id=
"indent">
168 <xsl:when test=
"@label">
169 <a href=
"{@url}"><xsl:value-of select=
"@label"/></a>
172 (
<xsl:value-of select=
"@id"/> -
<xsl:value-of select=
"@version"/>)
176 <a href=
"{@url}"><xsl:value-of select=
"@id"/> -
<xsl:value-of select=
"@version"/></a>
184 <tr><td class=
"log-text" id=
"indent">Operating Systems:
</td>
185 <td class=
"log-text" id=
"indent"><xsl:value-of select=
"@os"/></td>
189 <tr><td class=
"log-text" id=
"indent">Windows Systems:
</td>
190 <td class=
"log-text" id=
"indent"><xsl:value-of select=
"@ws"/></td>
194 <tr><td class=
"log-text" id=
"indent">Languages:
</td>
195 <td class=
"log-text" id=
"indent"><xsl:value-of select=
"@nl"/></td>
198 <xsl:if test=
"@arch">
199 <tr><td class=
"log-text" id=
"indent">Architecture:
</td>
200 <td class=
"log-text" id=
"indent"><xsl:value-of select=
"@arch"/></td>