1 | <?xml version="1.0"?> |
---|
2 | <dbx:transform |
---|
3 | xmlns:dbx="http://www.windhouwer.nl/sloot/dbx" |
---|
4 | xmlns:xsl="http://www.w3.org/1999/XSL/Transform" |
---|
5 | xmlns:cat="http://www.isocat.org/" |
---|
6 | > |
---|
7 | <dbx:param name="login"/> |
---|
8 | <dbx:param name="view"/> |
---|
9 | <dbx:param name="props"/> |
---|
10 | |
---|
11 | <dbx:process> |
---|
12 | <cat:workspace user="{$login}"> |
---|
13 | <dbx:choose> |
---|
14 | <dbx:when test="$login!='guest'"> |
---|
15 | <dbx:for-each table="core_user"> |
---|
16 | <dbx:where field="login" select="$login" type="string"/> |
---|
17 | <dbx:variable name="user" field="id"/> |
---|
18 | <cat:private href="{string($props//site)}rest/user/{$login}/private"> |
---|
19 | <dbx:for-each table="core_data_category_selection"> |
---|
20 | <dbx:where field="owner" select="$current/id" type="integer"/> |
---|
21 | <dbx:sort field="name" function="upper"/> |
---|
22 | <cat:dcs> |
---|
23 | <dbx:attribute name="id" field="id"/> |
---|
24 | <dbx:attribute name="name" field="name"/> |
---|
25 | <dbx:attribute name="parent" field="parent" when="normalize-space($current/parent)!=''"/> |
---|
26 | <dbx:attribute name="mode" value="ru"/> |
---|
27 | <dbx:attribute name="href" value="{string($props//site)}rest/dcs/{$current/id}"/> |
---|
28 | </cat:dcs> |
---|
29 | </dbx:for-each> |
---|
30 | <dbx:for-each table="core_dcr_board" min="1" max="1"> |
---|
31 | <dbx:variable name="gname" field="name"/> |
---|
32 | <dbx:for-each table="link_group_members" min="0" max="1"> |
---|
33 | <dbx:where field="group" select="$current/id" type="integer"/> |
---|
34 | <dbx:where field="member" select="$user" type="integer"/> |
---|
35 | <dbx:where field="role" value="chair" type="string"/> |
---|
36 | <cat:dcrb> |
---|
37 | <dbx:attribute name="id" field="group"/> |
---|
38 | <dbx:attribute name="name" select="$gname"/> |
---|
39 | <dbx:attribute name="mode" value="ru"/> |
---|
40 | <dbx:attribute name="href" value="{string($props//site)}rest/dcrb"/> |
---|
41 | <dbx:for-each table="core_change_request"> |
---|
42 | <dbx:sort field="id"/> |
---|
43 | <cat:cr> |
---|
44 | <dbx:attribute name="id" field="id"/> |
---|
45 | <dbx:attribute name="name" field="name"/> |
---|
46 | <dbx:attribute name="mode" value="ru"/> |
---|
47 | <dbx:attribute name="href" value="{string($props//site)}rest/cr/{$current/id}"/> |
---|
48 | <dbx:attribute name="status" field="status"/> |
---|
49 | </cat:cr> |
---|
50 | </dbx:for-each> |
---|
51 | </cat:dcrb> |
---|
52 | </dbx:for-each> |
---|
53 | </dbx:for-each> |
---|
54 | <dbx:for-each table="core_thematic_domain_group"> |
---|
55 | <dbx:sort field="order"/> |
---|
56 | <dbx:variable name="gname" field="name"/> |
---|
57 | <dbx:for-each table="link_group_members" min="0" max="1"> |
---|
58 | <dbx:where field="group" select="$current/id" type="integer"/> |
---|
59 | <dbx:where field="member" select="$user" type="integer"/> |
---|
60 | <dbx:where field="role" value="chair" type="string"/> |
---|
61 | <cat:tdg> |
---|
62 | <dbx:attribute name="id" field="group"/> |
---|
63 | <dbx:attribute name="name" select="$gname"/> |
---|
64 | <dbx:attribute name="mode" value="ru"/> |
---|
65 | <dbx:attribute name="href" value="{string($props//site)}rest/tdg/{$current/group}"/> |
---|
66 | <dbx:for-each table="view_link_dcs_access" min="0" max="*"> |
---|
67 | <dbx:where field="account" select="$current/group"/> |
---|
68 | <dbx:sort field="name" function="upper"/> |
---|
69 | <dbx:variable name="rights" field="rights"/> |
---|
70 | <dbx:for-each table="core_data_category_selection" min="1" max="1"> |
---|
71 | <dbx:where field="id" select="$current/dcs" type="integer"/> |
---|
72 | <cat:dcs> |
---|
73 | <dbx:attribute name="id" field="id"/> |
---|
74 | <dbx:attribute name="name" field="name"/> |
---|
75 | <dbx:attribute name="parent" field="parent" when="normalize-space($current/parent)!=''"/> |
---|
76 | <dbx:attribute name="href" value="{string($props//site)}rest/dcs/{$current/id}"/> |
---|
77 | <dbx:attribute name="mode" select="$rights"/> |
---|
78 | </cat:dcs> |
---|
79 | </dbx:for-each> |
---|
80 | </dbx:for-each> |
---|
81 | <dbx:for-each table="core_change_request"> |
---|
82 | <dbx:where field="tdg" select="$current/group" type="integer"/> |
---|
83 | <dbx:sort field="id"/> |
---|
84 | <cat:cr> |
---|
85 | <dbx:attribute name="id" field="id"/> |
---|
86 | <dbx:attribute name="name" field="name"/> |
---|
87 | <dbx:attribute name="mode" value="ru"/> |
---|
88 | <dbx:attribute name="href" value="{string($props//site)}rest/cr/{$current/id}"/> |
---|
89 | <dbx:attribute name="status" field="status"/> |
---|
90 | </cat:cr> |
---|
91 | </dbx:for-each> |
---|
92 | </cat:tdg> |
---|
93 | </dbx:for-each> |
---|
94 | </dbx:for-each> |
---|
95 | <dbx:for-each table="core_adhoc_group"> |
---|
96 | <dbx:where field="owner" select="$current/id" type="integer"/> |
---|
97 | <dbx:sort field="name" function="upper"/> |
---|
98 | <cat:group> |
---|
99 | <dbx:attribute name="id" field="id"/> |
---|
100 | <dbx:attribute name="name" field="name"/> |
---|
101 | <dbx:attribute name="mode" value="rud"/> |
---|
102 | <dbx:attribute name="href" value="{string($props//site)}rest/group/{$current/id}"/> |
---|
103 | <dbx:for-each table="view_link_dcs_access" min="0" max="*"> |
---|
104 | <dbx:where field="account" select="$current/id"/> |
---|
105 | <dbx:sort field="name" function="upper"/> |
---|
106 | <dbx:variable name="rights" field="rights"/> |
---|
107 | <dbx:for-each table="core_data_category_selection"> |
---|
108 | <dbx:where field="id" select="$current/dcs" type="integer"/> |
---|
109 | <cat:dcs> |
---|
110 | <dbx:attribute name="id" field="id"/> |
---|
111 | <dbx:attribute name="name" field="name"/> |
---|
112 | <dbx:attribute name="parent" field="parent" when="normalize-space($current/parent)!=''"/> |
---|
113 | <dbx:attribute name="href" value="{string($props//site)}rest/dcs/{$current/id}"/> |
---|
114 | <dbx:attribute name="mode" select="$rights"/> |
---|
115 | </cat:dcs> |
---|
116 | </dbx:for-each> |
---|
117 | </dbx:for-each> |
---|
118 | </cat:group> |
---|
119 | </dbx:for-each> |
---|
120 | <dbx:for-each table="view_cr_submission_group"> |
---|
121 | <dbx:where field="member" select="$current/id" type="integer"/> |
---|
122 | <dbx:where field="role" value="chair" type="string"/> |
---|
123 | <dbx:sort field="cr"/> |
---|
124 | <dbx:for-each table="core_change_request"> |
---|
125 | <dbx:where field="id" select="$current/cr" type="integer"/> |
---|
126 | <cat:cr> |
---|
127 | <dbx:attribute name="id" field="id"/> |
---|
128 | <dbx:attribute name="name" field="name"/> |
---|
129 | <dbx:attribute name="mode" value="r"/> |
---|
130 | <dbx:attribute name="href" value="{string($props//site)}rest/cr/{$current/id}"/> |
---|
131 | <dbx:attribute name="status" field="status"/> |
---|
132 | </cat:cr> |
---|
133 | </dbx:for-each> |
---|
134 | </dbx:for-each> |
---|
135 | </cat:private> |
---|
136 | <cat:shared href="{string($props//site)}rest/user/{$login}/shared"> |
---|
137 | <!-- |
---|
138 | <dbx:for-each table="link_data_category_selection_users"> |
---|
139 | <dbx:where field="user" select="$current/id" type="integer"/> |
---|
140 | <dbx:for-each table="core_data_category_selection"> |
---|
141 | <dbx:where field="id" select="$current/dcs" type="integer"/> |
---|
142 | <cat:dcs> |
---|
143 | <dbx:attribute name="id" field="id"/> |
---|
144 | <dbx:attribute name="name" field="name"/> |
---|
145 | <dbx:attribute name="parent" field="parent" when="normalize-space($current/parent)!=''"/> |
---|
146 | <dbx:attribute name="mode" value="r"/> |
---|
147 | <dbx:attribute name="href" value="{string($props//site)}rest/dcs/{$current/id}"/> |
---|
148 | </cat:dcs> |
---|
149 | </dbx:for-each> |
---|
150 | </dbx:for-each> |
---|
151 | --> |
---|
152 | <dbx:for-each table="core_dcr_board" min="1" max="1"> |
---|
153 | <dbx:variable name="gname" field="name"/> |
---|
154 | <dbx:for-each table="link_group_members" min="0" max="1"> |
---|
155 | <dbx:where field="group" select="$current/id" type="integer"/> |
---|
156 | <dbx:where field="member" select="$user" type="integer"/> |
---|
157 | <dbx:where field="role" operator="ne" value="chair" type="string"/> <!-- role is NOT chair --> |
---|
158 | <dbx:where field="status" value="accepted" type="string"/> |
---|
159 | <cat:dcrb> |
---|
160 | <dbx:attribute name="id" field="group"/> |
---|
161 | <dbx:attribute name="name" select="$gname"/> |
---|
162 | <dbx:attribute name="mode" value="r"/> |
---|
163 | <dbx:attribute name="href" value="{string($props//site)}rest/dcrb"/> |
---|
164 | <dbx:for-each table="view_cr_decision_group_dcrb"> |
---|
165 | <dbx:where field="member" select="$user" type="integer"/> |
---|
166 | <dbx:sort field="cr"/> |
---|
167 | <dbx:for-each table="core_change_request"> |
---|
168 | <dbx:where field="id" select="$current/cr" type="integer"/> |
---|
169 | <cat:cr> |
---|
170 | <dbx:attribute name="id" field="id"/> |
---|
171 | <dbx:attribute name="name" field="name"/> |
---|
172 | <dbx:attribute name="mode" value="ru"/> |
---|
173 | <dbx:attribute name="href" value="{string($props//site)}rest/cr/{$current/id}"/> |
---|
174 | <dbx:attribute name="status" field="status"/> |
---|
175 | </cat:cr> |
---|
176 | </dbx:for-each> |
---|
177 | </dbx:for-each> |
---|
178 | </cat:dcrb> |
---|
179 | </dbx:for-each> |
---|
180 | </dbx:for-each> |
---|
181 | <dbx:for-each table="core_thematic_domain_group"> |
---|
182 | <dbx:sort field="order"/> |
---|
183 | <dbx:variable name="gname" field="name"/> |
---|
184 | <dbx:variable name="tdg" field="id"/> |
---|
185 | <dbx:for-each table="link_group_members" min="0" max="1"> |
---|
186 | <dbx:where field="group" select="$current/id" type="integer"/> |
---|
187 | <dbx:where field="member" select="$user" type="integer"/> |
---|
188 | <dbx:where field="role" value="chair" operator="ne" type="string"/> <!-- role is NOT chair --> |
---|
189 | <dbx:where field="status" value="accepted" type="string"/> |
---|
190 | <cat:tdg> |
---|
191 | <dbx:attribute name="id" field="group"/> |
---|
192 | <dbx:attribute name="name" select="$gname"/> |
---|
193 | <dbx:attribute name="mode" value="r"/> |
---|
194 | <dbx:attribute name="href" value="{string($props//site)}rest/tdg/{$current/group}"/> |
---|
195 | <dbx:for-each table="view_link_dcs_access" min="0" max="*"> |
---|
196 | <dbx:where field="account" select="$current/group"/> |
---|
197 | <dbx:sort field="name" function="upper"/> |
---|
198 | <dbx:variable name="rights" field="rights"/> |
---|
199 | <dbx:for-each table="core_data_category_selection"> |
---|
200 | <dbx:where field="id" select="$current/dcs" type="integer"/> |
---|
201 | <cat:dcs> |
---|
202 | <dbx:attribute name="id" field="id"/> |
---|
203 | <dbx:attribute name="name" field="name"/> |
---|
204 | <dbx:attribute name="parent" field="parent" when="normalize-space($current/parent)!=''"/> |
---|
205 | <dbx:attribute name="href" value="{string($props//site)}rest/dcs/{$current/id}"/> |
---|
206 | <dbx:attribute name="mode" select="$rights"/> |
---|
207 | </cat:dcs> |
---|
208 | </dbx:for-each> |
---|
209 | </dbx:for-each> |
---|
210 | <dbx:for-each table="view_cr_decision_group_tdg"> |
---|
211 | <dbx:where field="member" select="$user" type="integer"/> |
---|
212 | <dbx:sort field="cr"/> |
---|
213 | <dbx:for-each table="core_change_request"> |
---|
214 | <dbx:where field="id" select="$current/cr" type="integer"/> |
---|
215 | <dbx:where field="tdg" select="$tdg" type="integer"/> |
---|
216 | <cat:cr> |
---|
217 | <dbx:attribute name="id" field="id"/> |
---|
218 | <dbx:attribute name="name" field="name"/> |
---|
219 | <dbx:attribute name="mode" value="ru"/> |
---|
220 | <dbx:attribute name="href" value="{string($props//site)}rest/cr/{$current/id}"/> |
---|
221 | <dbx:attribute name="status" field="status"/> |
---|
222 | </cat:cr> |
---|
223 | </dbx:for-each> |
---|
224 | </dbx:for-each> |
---|
225 | </cat:tdg> |
---|
226 | </dbx:for-each> |
---|
227 | </dbx:for-each> |
---|
228 | <dbx:for-each table="core_adhoc_group"> |
---|
229 | <dbx:where field="owner" operator="ne" select="$current/id" type="integer"/> |
---|
230 | <dbx:sort field="name" function="upper"/> |
---|
231 | <dbx:variable name="gname" field="name"/> |
---|
232 | <dbx:for-each table="link_group_members" min="0" max="1"> |
---|
233 | <dbx:where field="group" select="$current/id" type="integer"/> |
---|
234 | <dbx:where field="member" select="$user" type="integer"/> |
---|
235 | <dbx:where field="status" value="accepted" type="string"/> <!-- status is accepted --> |
---|
236 | <cat:group> |
---|
237 | <dbx:attribute name="id" field="group"/> |
---|
238 | <dbx:attribute name="name" select="$gname"/> |
---|
239 | <dbx:attribute name="mode" value="r"/> |
---|
240 | <dbx:attribute name="href" value="{string($props//site)}rest/group/{$current/group}"/> |
---|
241 | <dbx:for-each table="view_link_dcs_access" min="0" max="*"> |
---|
242 | <dbx:where field="account" select="$current/group"/> |
---|
243 | <dbx:sort field="name" function="upper"/> |
---|
244 | <dbx:variable name="rights" field="rights"/> |
---|
245 | <dbx:for-each table="core_data_category_selection" min="1" max="1"> |
---|
246 | <dbx:where field="id" select="$current/dcs" type="integer"/> |
---|
247 | <cat:dcs> |
---|
248 | <dbx:attribute name="id" field="id"/> |
---|
249 | <dbx:attribute name="name" field="name"/> |
---|
250 | <dbx:attribute name="parent" field="parent" when="normalize-space($current/parent)!=''"/> |
---|
251 | <dbx:attribute name="href" value="{string($props//site)}rest/dcs/{$current/id}"/> |
---|
252 | <dbx:attribute name="mode" select="$rights"/> |
---|
253 | </cat:dcs> |
---|
254 | </dbx:for-each> |
---|
255 | </dbx:for-each> |
---|
256 | </cat:group> |
---|
257 | </dbx:for-each> |
---|
258 | </dbx:for-each> |
---|
259 | <dbx:for-each table="view_cr_submission_group"> |
---|
260 | <dbx:where field="member" select="$current/id" type="integer"/> |
---|
261 | <dbx:where field="role" operator="ne" value="chair" type="string"/> |
---|
262 | <dbx:sort field="cr"/> |
---|
263 | <dbx:for-each table="core_change_request"> |
---|
264 | <dbx:where field="id" select="$current/cr" type="integer"/> |
---|
265 | <cat:cr> |
---|
266 | <dbx:attribute name="id" field="id"/> |
---|
267 | <dbx:attribute name="name" field="name"/> |
---|
268 | <dbx:attribute name="mode" value="r"/> |
---|
269 | <dbx:attribute name="href" value="{string($props//site)}rest/cr/{$current/id}"/> |
---|
270 | <dbx:attribute name="status" field="status"/> |
---|
271 | <dbx:for-each table="core_data_category_selection"> |
---|
272 | <dbx:where field="id" select="$current/dcs" type="integer"/> |
---|
273 | <cat:dcs> |
---|
274 | <dbx:attribute name="id" field="id"/> |
---|
275 | <dbx:attribute name="name" field="name"/> |
---|
276 | <dbx:attribute name="mode" value="r"/> |
---|
277 | <dbx:attribute name="href" value="{string($props//site)}rest/dcs/{$current/id}"/> |
---|
278 | </cat:dcs> |
---|
279 | </dbx:for-each> |
---|
280 | </cat:cr> |
---|
281 | </dbx:for-each> |
---|
282 | </dbx:for-each> |
---|
283 | </cat:shared> |
---|
284 | </dbx:for-each> |
---|
285 | </dbx:when> |
---|
286 | </dbx:choose> |
---|
287 | <cat:public> |
---|
288 | <cat:views> |
---|
289 | <dbx:for-each table="core_thematic_domain_group"> |
---|
290 | <dbx:where field="name" select="$view" type="string" when="$view!='isocat'"/> |
---|
291 | <dbx:sort field="order"/> |
---|
292 | <cat:tdg> |
---|
293 | <dbx:attribute name="id" field="id"/> |
---|
294 | <dbx:attribute name="name" field="name"/> |
---|
295 | <dbx:attribute name="mode" value="r"/> |
---|
296 | <dbx:attribute name="href" value="{string($props//site)}rest/tdg/{$current/id}"/> |
---|
297 | <dbx:for-each table="core_profile"> |
---|
298 | <dbx:where field="tdg" select="$current/id" type="integer"/> |
---|
299 | <dbx:sort field="order"/> |
---|
300 | <cat:profile> |
---|
301 | <dbx:attribute name="id" field="id"/> |
---|
302 | <dbx:attribute name="name" field="name"/> |
---|
303 | <dbx:attribute name="parent" field="parent" when="normalize-space($current/parent)!=''"/> |
---|
304 | <dbx:attribute name="mode" value="r"/> |
---|
305 | <dbx:attribute name="href" value="{string($props//site)}rest/profile/{$current/id}"/> |
---|
306 | </cat:profile> |
---|
307 | </dbx:for-each> |
---|
308 | <dbx:for-each table="core_data_category_selection"> |
---|
309 | <dbx:where field="owner" select="$current/id" type="integer"/> |
---|
310 | <dbx:where field="private" value="false"/> |
---|
311 | <dbx:sort field="name" function="upper"/> |
---|
312 | <cat:dcs> |
---|
313 | <dbx:attribute name="id" field="id"/> |
---|
314 | <dbx:attribute name="name" field="name"/> |
---|
315 | <dbx:attribute name="parent" field="parent" when="normalize-space($current/parent)!=''"/> |
---|
316 | <dbx:attribute name="mode" value="r"/> |
---|
317 | <dbx:attribute name="href" value="{string($props//site)}rest/dcs/{$current/id}"/> |
---|
318 | </cat:dcs> |
---|
319 | </dbx:for-each> |
---|
320 | <dbx:for-each table="view_link_dcs_access" min="0" max="*"> |
---|
321 | <dbx:where field="account" select="$current/id"/> |
---|
322 | <dbx:sort field="name" function="upper"/> |
---|
323 | <dbx:for-each table="core_data_category_selection"> |
---|
324 | <dbx:where field="id" select="$current/dcs" type="integer"/> |
---|
325 | <dbx:where field="private" value="false"/> |
---|
326 | <cat:dcs> |
---|
327 | <dbx:attribute name="id" field="id"/> |
---|
328 | <dbx:attribute name="name" field="name"/> |
---|
329 | <dbx:attribute name="mode" value="r"/> |
---|
330 | <dbx:attribute name="href" value="{string($props//site)}rest/dcs/{$current/id}"/> |
---|
331 | </cat:dcs> |
---|
332 | </dbx:for-each> |
---|
333 | </dbx:for-each> |
---|
334 | </cat:tdg> |
---|
335 | </dbx:for-each> |
---|
336 | </cat:views> |
---|
337 | <!-- groups with one or more public DCS --> |
---|
338 | <dbx:variable name="groups" query=" |
---|
339 | SELECT DISTINCT |
---|
340 | core_adhoc_group.*, upper(core_adhoc_group.name) |
---|
341 | FROM |
---|
342 | core_adhoc_group |
---|
343 | JOIN |
---|
344 | link_dcs_access |
---|
345 | ON |
---|
346 | link_dcs_access.account = core_adhoc_group.id |
---|
347 | JOIN |
---|
348 | core_data_category_selection |
---|
349 | ON |
---|
350 | core_data_category_selection.id = link_dcs_access.dcs |
---|
351 | WHERE |
---|
352 | core_data_category_selection.private = false |
---|
353 | ORDER BY |
---|
354 | upper(core_adhoc_group.name) |
---|
355 | ; |
---|
356 | "/> |
---|
357 | <dbx:for-each select="$groups//row"> |
---|
358 | <dbx:choose> |
---|
359 | <dbx:when test="$view='isocat' or $view=$current/name"> |
---|
360 | <cat:group> |
---|
361 | <dbx:attribute name="id" field="id"/> |
---|
362 | <dbx:attribute name="name" field="name"/> |
---|
363 | <dbx:attribute name="mode" value="r"/> |
---|
364 | <dbx:attribute name="href" value="{string($props//site)}rest/group/{$current/id}"/> |
---|
365 | <dbx:variable name="dcss" query=" |
---|
366 | SELECT DISTINCT |
---|
367 | core_data_category_selection.*, upper(core_data_category_selection.name) |
---|
368 | FROM |
---|
369 | core_data_category_selection |
---|
370 | JOIN |
---|
371 | link_dcs_access |
---|
372 | ON |
---|
373 | link_dcs_access.dcs= core_data_category_selection.id |
---|
374 | WHERE |
---|
375 | core_data_category_selection.private = false |
---|
376 | AND |
---|
377 | link_dcs_access.account = {$current/id} |
---|
378 | ORDER BY |
---|
379 | upper(core_data_category_selection.name) |
---|
380 | ; |
---|
381 | "/> |
---|
382 | <dbx:for-each select="$dcss//row"> |
---|
383 | <cat:dcs> |
---|
384 | <dbx:attribute name="id" field="id"/> |
---|
385 | <dbx:attribute name="name" field="name"/> |
---|
386 | <dbx:attribute name="parent" field="parent" when="normalize-space($current/parent)!=''"/> |
---|
387 | <dbx:attribute name="mode" value="r"/> |
---|
388 | <dbx:attribute name="href" value="{string($props//site)}rest/dcs/{$current/id}"/> |
---|
389 | </cat:dcs> |
---|
390 | </dbx:for-each> |
---|
391 | </cat:group> |
---|
392 | </dbx:when> |
---|
393 | </dbx:choose> |
---|
394 | </dbx:for-each> |
---|
395 | </cat:public> |
---|
396 | </cat:workspace> |
---|
397 | </dbx:process> |
---|
398 | |
---|
399 | <dbx:postprocess> |
---|
400 | <dbx:stylesheet template="identity"> |
---|
401 | <!-- |
---|
402 | <xsl:template match="*[name()='profile' or name()='dcs']" mode="copy"> |
---|
403 | --> |
---|
404 | <xsl:template match="cat:profile | cat:dcs" mode="copy"> |
---|
405 | <xsl:copy> |
---|
406 | <xsl:apply-templates select="@* except @parent"/> |
---|
407 | <xsl:apply-templates select="node()"/> |
---|
408 | <xsl:apply-templates mode="copy" select="//*[name()=current()/name()][@parent=current()/@id]"/> |
---|
409 | </xsl:copy> |
---|
410 | </xsl:template> |
---|
411 | |
---|
412 | <xsl:template match="*[self::cat:profile | self::cat:dcs][exists(@parent)]"/> |
---|
413 | |
---|
414 | <xsl:template match="*[self::cat:profile | self::cat:dcs][empty(@parent)]"> |
---|
415 | <xsl:apply-templates mode="copy" select="."/> |
---|
416 | </xsl:template> |
---|
417 | |
---|
418 | <xsl:template match="cat:cr"> |
---|
419 | <xsl:if test="empty(preceding::cat:cr[empty(parent::cat:dcrb)][@id=current()/@id])"> |
---|
420 | <xsl:copy> |
---|
421 | <xsl:apply-templates select="@*|node()"/> |
---|
422 | </xsl:copy> |
---|
423 | </xsl:if> |
---|
424 | </xsl:template> |
---|
425 | |
---|
426 | <xsl:template match="cat:views[empty(*)]"/> |
---|
427 | </dbx:stylesheet> |
---|
428 | </dbx:postprocess> |
---|
429 | |
---|
430 | </dbx:transform> |
---|
431 | |
---|