1 |
neysx 08/04/02 19:44:09 |
2 |
|
3 |
Modified: index.xml staffing-needs.xsl |
4 |
Removed: new-staffing-needs.xsl |
5 |
Log: |
6 |
Renamed new xsl and made idex use it to avoid potential confusion |
7 |
|
8 |
Revision Changes Path |
9 |
1.87 xml/htdocs/proj/en/devrel/staffing-needs/index.xml |
10 |
|
11 |
file : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/proj/en/devrel/staffing-needs/index.xml?rev=1.87&view=markup |
12 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/proj/en/devrel/staffing-needs/index.xml?rev=1.87&content-type=text/plain |
13 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/proj/en/devrel/staffing-needs/index.xml?r1=1.86&r2=1.87 |
14 |
|
15 |
Index: index.xml |
16 |
=================================================================== |
17 |
RCS file: /var/cvsroot/gentoo/xml/htdocs/proj/en/devrel/staffing-needs/index.xml,v |
18 |
retrieving revision 1.86 |
19 |
retrieving revision 1.87 |
20 |
diff -u -r1.86 -r1.87 |
21 |
--- index.xml 2 Apr 2008 17:32:17 -0000 1.86 |
22 |
+++ index.xml 2 Apr 2008 19:44:08 -0000 1.87 |
23 |
@@ -1,5 +1,5 @@ |
24 |
<?xml version="1.0" encoding="UTF-8"?> |
25 |
-<?xml-stylesheet href="/proj/en/devrel/staffing-needs/new-staffing-needs.xsl" type="text/xsl"?> |
26 |
+<?xml-stylesheet href="/proj/en/devrel/staffing-needs/staffing-needs.xsl" type="text/xsl"?> |
27 |
<?xml-stylesheet href="/xsl/guide.xsl" type="text/xsl"?> |
28 |
|
29 |
<!DOCTYPE staffingNeeds SYSTEM "/dtd/guide.dtd" [ |
30 |
|
31 |
|
32 |
|
33 |
1.12 xml/htdocs/proj/en/devrel/staffing-needs/staffing-needs.xsl |
34 |
|
35 |
file : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/proj/en/devrel/staffing-needs/staffing-needs.xsl?rev=1.12&view=markup |
36 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/proj/en/devrel/staffing-needs/staffing-needs.xsl?rev=1.12&content-type=text/plain |
37 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/proj/en/devrel/staffing-needs/staffing-needs.xsl?r1=1.11&r2=1.12 |
38 |
|
39 |
Index: staffing-needs.xsl |
40 |
=================================================================== |
41 |
RCS file: /var/cvsroot/gentoo/xml/htdocs/proj/en/devrel/staffing-needs/staffing-needs.xsl,v |
42 |
retrieving revision 1.11 |
43 |
retrieving revision 1.12 |
44 |
diff -u -r1.11 -r1.12 |
45 |
--- staffing-needs.xsl 14 Jul 2007 07:07:42 -0000 1.11 |
46 |
+++ staffing-needs.xsl 2 Apr 2008 19:44:08 -0000 1.12 |
47 |
@@ -1,124 +1,72 @@ |
48 |
<?xml version="1.0" encoding="UTF-8"?> |
49 |
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" |
50 |
xmlns:exslt="http://exslt.org/common" |
51 |
- xmlns:func="http://exslt.org/functions" |
52 |
- extension-element-prefixes="exslt func" |
53 |
+ extension-element-prefixes="exslt" |
54 |
version="1.0"> |
55 |
|
56 |
-<xsl:output encoding="UTF-8" method="xml" indent="no" doctype-system="/dtd/project.dtd"/> |
57 |
-<xsl:include href="/xsl/inserts.xsl"/> |
58 |
+<xsl:include href="/xsl/job.xsl"/> |
59 |
+ |
60 |
+<xsl:output encoding="UTF-8" method="xml" indent="no" doctype-system="/dtd/guide.dtd"/> |
61 |
|
62 |
<xsl:template match="/staffingNeeds"> |
63 |
-<project> |
64 |
- <name>Staffing Needs</name> |
65 |
- <longname>Gentoo Linux Staffing Needs</longname> |
66 |
+<guide> |
67 |
+<xsl:apply-templates/> |
68 |
+</guide> |
69 |
+</xsl:template> |
70 |
+ |
71 |
|
72 |
+<xsl:template match="today"> |
73 |
+ <!--<date><xsl:value-of select="exslt:node-set($devaway)/devaway/@date"/></date>--> |
74 |
<date>today</date> |
75 |
- <author title="Script"><mail link="devrel@g.o">Gentoo Developer Relations</mail></author> |
76 |
+</xsl:template> |
77 |
|
78 |
- <description> |
79 |
- This page lists requests for Gentoo Developers the Gentoo Recruiters have received. |
80 |
- </description> |
81 |
- <longdescription><p> |
82 |
- This page aims to list the areas in which Gentoo actively seeks to |
83 |
- expand development efforts. Positions are open to both existing |
84 |
- Gentoo developers and also those wishing to become a Gentoo |
85 |
- developer. The priorities shown are sorted from highest to lowest. |
86 |
- </p></longdescription> |
87 |
- <extrachapter position="bottom"> |
88 |
- <title>Gentoo Linux Staffing Needs</title> |
89 |
- <section> |
90 |
- <body> |
91 |
- <p> |
92 |
- This page does not list the only areas where contributions are |
93 |
- welcome, but is only a reflection of where developers are |
94 |
- needed the most. If you are interested in helping out in |
95 |
- another area, then do not hesitate to contact the relevant |
96 |
- development group anyway. |
97 |
- </p> |
98 |
- <p> |
99 |
- If you are interested in helping the Gentoo Documentation |
100 |
- Project, then please see |
101 |
- the <uri link="/proj/en/gdp/roadmap.xml">GDP Roadmap</uri> for |
102 |
- bugs that require attention. |
103 |
- </p> |
104 |
- <p> |
105 |
- If you are interested in helping out with any of the following tasks, |
106 |
- please contact the <mail link="recruiters@g.o">Gentoo Recruiters</mail>, |
107 |
- CCing the displayed "Contact" on your application. |
108 |
- </p> |
109 |
- <table> |
110 |
- <tr> |
111 |
- <th>Priority</th> |
112 |
- <th>Summary</th> |
113 |
- <th>Description</th> |
114 |
- </tr> |
115 |
- <xsl:for-each select="needed"> |
116 |
- <!-- Key by priority; then alphabetically... |
117 |
- No @priority is treated lowest, so this works as we need it to. --> |
118 |
- <xsl:sort select="summary/@priority" order="ascending"/> |
119 |
- <!-- Yes, this is messy; but XSLT doesn't natively |
120 |
- support case-insensitive sorting. This does it. --> |
121 |
- <xsl:sort select="translate(summary, 'abcdefghijklmnopqrstuvwxyz', 'ABCDEFGHIJKLMNOPQRSTUVWXYZ')"/> |
122 |
- <tr> |
123 |
- <ti> |
124 |
- <xsl:choose> |
125 |
- <xsl:when test="summary/@priority != ''"> |
126 |
- <xsl:value-of select="summary/@priority"/> |
127 |
- </xsl:when> |
128 |
- <xsl:otherwise>1</xsl:otherwise> |
129 |
- </xsl:choose> |
130 |
- </ti> |
131 |
- <ti> |
132 |
- <xsl:value-of select="summary"/> |
133 |
- </ti> |
134 |
- <ti> |
135 |
- Requested on |
136 |
- <xsl:value-of select="func:format-date(summary/@dateRequested,'en')"/> by |
137 |
- <xsl:choose> |
138 |
- <xsl:when test="contact/@herd != ''">the </xsl:when> |
139 |
- <xsl:when test="contact/@team != ''">the </xsl:when> |
140 |
- </xsl:choose> |
141 |
- <xsl:choose> |
142 |
- <xsl:when test="contact/@name != ''"> |
143 |
- <mail link="{contact}"> |
144 |
- <xsl:value-of select="contact/@name"/> |
145 |
- <xsl:choose> |
146 |
- <!-- IMPORTANT: Do not split up the two |
147 |
- lines below --> |
148 |
- <xsl:when test="contact/@herd != ''"> Herd</xsl:when> |
149 |
- <xsl:when test="contact/@team != ''"> Team</xsl:when> |
150 |
- </xsl:choose> |
151 |
- </mail>: |
152 |
- </xsl:when> |
153 |
- <xsl:otherwise> |
154 |
- <mail link="{contact}"> |
155 |
- <xsl:value-of select="contact"/> |
156 |
- <xsl:choose> |
157 |
- <!-- IMPORTANT: Do not split up the two |
158 |
- lines below --> |
159 |
- <xsl:when test="contact/@herd != ''"> Herd</xsl:when> |
160 |
- <xsl:when test="contact/@team != ''"> Team</xsl:when> |
161 |
- </xsl:choose> |
162 |
- </mail>: |
163 |
- </xsl:otherwise> |
164 |
- </xsl:choose> |
165 |
- <xsl:text> </xsl:text> |
166 |
- <xsl:apply-templates select="description"/> |
167 |
- </ti> |
168 |
- </tr> |
169 |
- </xsl:for-each> |
170 |
- </table> |
171 |
- </body> |
172 |
- </section> |
173 |
- </extrachapter> |
174 |
-</project> |
175 |
+<xsl:template match="jobs"> |
176 |
+ <xsl:variable name="projects" select="document('/proj/en/index.xml')/projects"/> |
177 |
+ <chapter><title>Calls for recruitment</title><section><body><table> |
178 |
+ <tr> |
179 |
+ <th>Project</th> |
180 |
+ <th>Job</th> |
181 |
+ <th>Description</th> |
182 |
+ <th>Requirements</th> |
183 |
+ <th>Contacts</th> |
184 |
+ </tr> |
185 |
+ <xsl:for-each select="document($projects)/project/subproject"> |
186 |
+ <xsl:sort select="translate(normalize-space(document(string(@ref))/project/name),'QWERTYUIOPLKJHGFDSAZXCVBNM','qwertyuioplkjhgfdsazxcvbnm')"/> |
187 |
+ <xsl:call-template name="a-project"> |
188 |
+ <xsl:with-param name="prefix" select="''"/> |
189 |
+ <xsl:with-param name="project-page" select="@ref"/> |
190 |
+ </xsl:call-template> |
191 |
+ </xsl:for-each> |
192 |
+ </table></body></section></chapter> |
193 |
</xsl:template> |
194 |
|
195 |
+<xsl:template name="a-project"> |
196 |
+ <xsl:param name="prefix"/> |
197 |
+ <xsl:param name="project-page"/> |
198 |
+ |
199 |
+ <xsl:variable name="project" select="document($project-page)"/> |
200 |
+ <xsl:if test="$project/project/recruitment"> |
201 |
+ <xsl:apply-templates select="$project/project/recruitment/job" mode="table"> |
202 |
+ <xsl:with-param name="rows" select="count($project/project/recruitment/job)"/> |
203 |
+ <xsl:with-param name="link" select="$project-page"/> |
204 |
+ <xsl:with-param name="name" select="concat($prefix, $project/project/name)"/> |
205 |
+ </xsl:apply-templates> |
206 |
+ </xsl:if> |
207 |
+ |
208 |
+ <!-- Do subprojects --> |
209 |
+ <xsl:for-each select="$project/project/subproject"> |
210 |
+ <xsl:sort select="translate(normalize-space(document(string(@ref))/project/name),'QWERTYUIOPLKJHGFDSAZXCVBNM','qwertyuioplkjhgfdsazxcvbnm')"/> |
211 |
+ <xsl:call-template name="a-project"> |
212 |
+ <xsl:with-param name="prefix" select="concat($project/project/name, ' — ')"/> |
213 |
+ <xsl:with-param name="project-page" select="@ref"/> |
214 |
+ </xsl:call-template> |
215 |
+ </xsl:for-each> |
216 |
+ |
217 |
+</xsl:template> |
218 |
|
219 |
-<xsl:template match="description//node()|description//@*"> |
220 |
+<xsl:template match="*|@*|text()"> |
221 |
<xsl:copy> |
222 |
- <xsl:apply-templates select="node()|@*"/> |
223 |
+ <xsl:apply-templates select="*|@*|text()"/> |
224 |
</xsl:copy> |
225 |
</xsl:template> |
226 |
|
227 |
|
228 |
|
229 |
|
230 |
-- |
231 |
gentoo-commits@l.g.o mailing list |