Mercurial > dive4elements > river
annotate artifacts/contrib/themes2html.xsl @ 9285:9b16f58c62a7
Small cleanup/renames
author | mschaefer |
---|---|
date | Mon, 23 Jul 2018 19:18:11 +0200 |
parents | 5aa05a7a34b7 |
children |
rev | line source |
---|---|
3262
e01f74c3ec1e
Themes: Added XSL transformation to generate a better overview of the themes.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
1 <?xml version="1.0" encoding="UTF-8"?> |
e01f74c3ec1e
Themes: Added XSL transformation to generate a better overview of the themes.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
2 <xsl:stylesheet |
e01f74c3ec1e
Themes: Added XSL transformation to generate a better overview of the themes.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
3 version="1.0" |
e01f74c3ec1e
Themes: Added XSL transformation to generate a better overview of the themes.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
4 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> |
e01f74c3ec1e
Themes: Added XSL transformation to generate a better overview of the themes.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
5 |
e01f74c3ec1e
Themes: Added XSL transformation to generate a better overview of the themes.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
6 <xsl:output method="xml" encoding="UTF-8" |
e01f74c3ec1e
Themes: Added XSL transformation to generate a better overview of the themes.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
7 doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" |
e01f74c3ec1e
Themes: Added XSL transformation to generate a better overview of the themes.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
8 doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN" indent="yes"/> |
e01f74c3ec1e
Themes: Added XSL transformation to generate a better overview of the themes.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
9 |
e01f74c3ec1e
Themes: Added XSL transformation to generate a better overview of the themes.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
10 |
e01f74c3ec1e
Themes: Added XSL transformation to generate a better overview of the themes.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
11 <xsl:template match="/themes/themegroup" mode="header"> |
e01f74c3ec1e
Themes: Added XSL transformation to generate a better overview of the themes.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
12 <li><a href="#tg-{@name}"><xsl:value-of select="@name"/></a> (<xsl:value-of select="count(theme)"/> themes)</li> |
e01f74c3ec1e
Themes: Added XSL transformation to generate a better overview of the themes.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
13 </xsl:template> |
e01f74c3ec1e
Themes: Added XSL transformation to generate a better overview of the themes.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
14 |
e01f74c3ec1e
Themes: Added XSL transformation to generate a better overview of the themes.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
15 <xsl:template match="field" mode="theme-inherits"> |
e01f74c3ec1e
Themes: Added XSL transformation to generate a better overview of the themes.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
16 <tr> |
e01f74c3ec1e
Themes: Added XSL transformation to generate a better overview of the themes.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
17 <td><i><xsl:value-of select="@name"/></i> (<a |
e01f74c3ec1e
Themes: Added XSL transformation to generate a better overview of the themes.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
18 href="#theme-{../../../@name}-{../../@name}"><xsl:value-of select="../../@name"/></a>)</td> |
e01f74c3ec1e
Themes: Added XSL transformation to generate a better overview of the themes.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
19 <td><xsl:value-of select="@display"/></td> |
e01f74c3ec1e
Themes: Added XSL transformation to generate a better overview of the themes.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
20 <td><xsl:value-of select="@type"/></td> |
e01f74c3ec1e
Themes: Added XSL transformation to generate a better overview of the themes.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
21 <td><xsl:value-of select="@default"/></td> |
e01f74c3ec1e
Themes: Added XSL transformation to generate a better overview of the themes.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
22 <td><xsl:value-of select="@hints"/></td> |
e01f74c3ec1e
Themes: Added XSL transformation to generate a better overview of the themes.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
23 </tr> |
e01f74c3ec1e
Themes: Added XSL transformation to generate a better overview of the themes.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
24 </xsl:template> |
e01f74c3ec1e
Themes: Added XSL transformation to generate a better overview of the themes.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
25 |
e01f74c3ec1e
Themes: Added XSL transformation to generate a better overview of the themes.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
26 <xsl:template match="field" mode="theme-fields"> |
e01f74c3ec1e
Themes: Added XSL transformation to generate a better overview of the themes.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
27 <tr> |
e01f74c3ec1e
Themes: Added XSL transformation to generate a better overview of the themes.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
28 <td><xsl:value-of select="@name"/></td> |
e01f74c3ec1e
Themes: Added XSL transformation to generate a better overview of the themes.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
29 <td><xsl:value-of select="@display"/></td> |
e01f74c3ec1e
Themes: Added XSL transformation to generate a better overview of the themes.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
30 <td><xsl:value-of select="@type"/></td> |
e01f74c3ec1e
Themes: Added XSL transformation to generate a better overview of the themes.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
31 <td><xsl:value-of select="@default"/></td> |
e01f74c3ec1e
Themes: Added XSL transformation to generate a better overview of the themes.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
32 <td><xsl:value-of select="@hints"/></td> |
e01f74c3ec1e
Themes: Added XSL transformation to generate a better overview of the themes.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
33 </tr> |
e01f74c3ec1e
Themes: Added XSL transformation to generate a better overview of the themes.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
34 </xsl:template> |
e01f74c3ec1e
Themes: Added XSL transformation to generate a better overview of the themes.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
35 |
e01f74c3ec1e
Themes: Added XSL transformation to generate a better overview of the themes.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
36 <xsl:template match="inherit" mode="theme-inherits"> |
e01f74c3ec1e
Themes: Added XSL transformation to generate a better overview of the themes.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
37 <xsl:variable name="target" select="@from"/> |
e01f74c3ec1e
Themes: Added XSL transformation to generate a better overview of the themes.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
38 <xsl:apply-templates |
e01f74c3ec1e
Themes: Added XSL transformation to generate a better overview of the themes.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
39 select="../../../theme[@name = $target]/inherits/inherit | /themes/themegroup/theme[@type='virtual' and @name=$target]/inherits/inherit" |
e01f74c3ec1e
Themes: Added XSL transformation to generate a better overview of the themes.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
40 mode="theme-inherits"/> |
e01f74c3ec1e
Themes: Added XSL transformation to generate a better overview of the themes.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
41 <xsl:apply-templates |
e01f74c3ec1e
Themes: Added XSL transformation to generate a better overview of the themes.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
42 select="../../../theme[@name = $target]/fields/field | /themes/themegroup/theme[@type='virtual' and @name=$target]/fields/field" |
e01f74c3ec1e
Themes: Added XSL transformation to generate a better overview of the themes.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
43 mode="theme-inherits"/> |
e01f74c3ec1e
Themes: Added XSL transformation to generate a better overview of the themes.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
44 </xsl:template> |
e01f74c3ec1e
Themes: Added XSL transformation to generate a better overview of the themes.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
45 |
3267
ee37ccea3b09
Create a list of direct sub themes of a theme.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
3262
diff
changeset
|
46 <xsl:template match="theme" mode="sub-themes"> |
ee37ccea3b09
Create a list of direct sub themes of a theme.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
3262
diff
changeset
|
47 <xsl:variable name="tname" select="../@name"/> |
ee37ccea3b09
Create a list of direct sub themes of a theme.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
3262
diff
changeset
|
48 <xsl:variable name="name" select="@name"/> |
ee37ccea3b09
Create a list of direct sub themes of a theme.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
3262
diff
changeset
|
49 <li><a href="#theme-{$tname}-{$name}"><xsl:value-of select="$tname"/>/<xsl:value-of select="$name"/></a></li> |
ee37ccea3b09
Create a list of direct sub themes of a theme.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
3262
diff
changeset
|
50 </xsl:template> |
ee37ccea3b09
Create a list of direct sub themes of a theme.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
3262
diff
changeset
|
51 |
3262
e01f74c3ec1e
Themes: Added XSL transformation to generate a better overview of the themes.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
52 <xsl:template match="theme" mode="theme-groups"> |
e01f74c3ec1e
Themes: Added XSL transformation to generate a better overview of the themes.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
53 <div> |
3267
ee37ccea3b09
Create a list of direct sub themes of a theme.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
3262
diff
changeset
|
54 <h4>[<a href="#theme-groups">Groups</a>] [<a href="#tg-{../@name}"><xsl:value-of select="../@name"/></a>] <a |
ee37ccea3b09
Create a list of direct sub themes of a theme.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
3262
diff
changeset
|
55 name="theme-{../@name}-{@name}">Theme '<xsl:value-of select="@name"/>'<xsl:if |
ee37ccea3b09
Create a list of direct sub themes of a theme.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
3262
diff
changeset
|
56 test="@type = 'virtual'"> (virtual)</xsl:if></a></h4> |
ee37ccea3b09
Create a list of direct sub themes of a theme.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
3262
diff
changeset
|
57 |
ee37ccea3b09
Create a list of direct sub themes of a theme.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
3262
diff
changeset
|
58 <xsl:variable name="tname" select="../@name"/> |
ee37ccea3b09
Create a list of direct sub themes of a theme.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
3262
diff
changeset
|
59 <xsl:variable name="is-virtual" select="$tname = 'virtual'"/> |
ee37ccea3b09
Create a list of direct sub themes of a theme.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
3262
diff
changeset
|
60 <xsl:variable name="name" select="@name"/> |
ee37ccea3b09
Create a list of direct sub themes of a theme.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
3262
diff
changeset
|
61 |
ee37ccea3b09
Create a list of direct sub themes of a theme.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
3262
diff
changeset
|
62 <xsl:if |
ee37ccea3b09
Create a list of direct sub themes of a theme.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
3262
diff
changeset
|
63 test="count(/themes/themegroup[$is-virtual or @name=$tname or @name='virtual']/theme[inherits/inherit/@from=$name]) > 0"> |
ee37ccea3b09
Create a list of direct sub themes of a theme.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
3262
diff
changeset
|
64 <strong>Sub themes</strong> |
ee37ccea3b09
Create a list of direct sub themes of a theme.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
3262
diff
changeset
|
65 <ul> |
ee37ccea3b09
Create a list of direct sub themes of a theme.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
3262
diff
changeset
|
66 <xsl:apply-templates |
ee37ccea3b09
Create a list of direct sub themes of a theme.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
3262
diff
changeset
|
67 select="/themes/themegroup[$is-virtual or @name=$tname or @name='virtual']/theme[inherits/inherit/@from=$name]" |
ee37ccea3b09
Create a list of direct sub themes of a theme.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
3262
diff
changeset
|
68 mode="sub-themes"/> |
ee37ccea3b09
Create a list of direct sub themes of a theme.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
3262
diff
changeset
|
69 </ul> |
ee37ccea3b09
Create a list of direct sub themes of a theme.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
3262
diff
changeset
|
70 </xsl:if> |
ee37ccea3b09
Create a list of direct sub themes of a theme.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
3262
diff
changeset
|
71 |
3262
e01f74c3ec1e
Themes: Added XSL transformation to generate a better overview of the themes.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
72 <table border="1" cellspacing="0" width="80%" summary="Definition of theme {@name}"> |
e01f74c3ec1e
Themes: Added XSL transformation to generate a better overview of the themes.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
73 <tr> |
e01f74c3ec1e
Themes: Added XSL transformation to generate a better overview of the themes.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
74 <th>Name</th> |
e01f74c3ec1e
Themes: Added XSL transformation to generate a better overview of the themes.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
75 <th>Display</th> |
e01f74c3ec1e
Themes: Added XSL transformation to generate a better overview of the themes.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
76 <th>Type</th> |
e01f74c3ec1e
Themes: Added XSL transformation to generate a better overview of the themes.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
77 <th>Default</th> |
e01f74c3ec1e
Themes: Added XSL transformation to generate a better overview of the themes.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
78 <th>Hints</th> |
e01f74c3ec1e
Themes: Added XSL transformation to generate a better overview of the themes.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
79 </tr> |
e01f74c3ec1e
Themes: Added XSL transformation to generate a better overview of the themes.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
80 <xsl:apply-templates mode="theme-inherits" select="inherits/inherit"/> |
e01f74c3ec1e
Themes: Added XSL transformation to generate a better overview of the themes.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
81 <xsl:apply-templates mode="theme-fields" select="fields/field"/> |
e01f74c3ec1e
Themes: Added XSL transformation to generate a better overview of the themes.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
82 </table> |
e01f74c3ec1e
Themes: Added XSL transformation to generate a better overview of the themes.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
83 </div> |
e01f74c3ec1e
Themes: Added XSL transformation to generate a better overview of the themes.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
84 <hr/> |
e01f74c3ec1e
Themes: Added XSL transformation to generate a better overview of the themes.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
85 </xsl:template> |
e01f74c3ec1e
Themes: Added XSL transformation to generate a better overview of the themes.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
86 |
e01f74c3ec1e
Themes: Added XSL transformation to generate a better overview of the themes.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
87 <xsl:template match="theme" mode="theme-list"> |
e01f74c3ec1e
Themes: Added XSL transformation to generate a better overview of the themes.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
88 <li><a href="#theme-{../@name}-{@name}"><xsl:value-of select="@name"/></a></li> |
e01f74c3ec1e
Themes: Added XSL transformation to generate a better overview of the themes.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
89 </xsl:template> |
e01f74c3ec1e
Themes: Added XSL transformation to generate a better overview of the themes.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
90 |
e01f74c3ec1e
Themes: Added XSL transformation to generate a better overview of the themes.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
91 <xsl:template match="/themes/themegroup" mode="theme-groups"> |
e01f74c3ec1e
Themes: Added XSL transformation to generate a better overview of the themes.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
92 <div> |
e01f74c3ec1e
Themes: Added XSL transformation to generate a better overview of the themes.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
93 <h2><a name="tg-{@name}">Theme group '<xsl:value-of select="@name"/>'</a></h2> |
e01f74c3ec1e
Themes: Added XSL transformation to generate a better overview of the themes.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
94 <div> |
e01f74c3ec1e
Themes: Added XSL transformation to generate a better overview of the themes.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
95 <h3>Theme List</h3> |
e01f74c3ec1e
Themes: Added XSL transformation to generate a better overview of the themes.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
96 <ul> |
e01f74c3ec1e
Themes: Added XSL transformation to generate a better overview of the themes.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
97 <xsl:apply-templates mode="theme-list" select="theme"/> |
e01f74c3ec1e
Themes: Added XSL transformation to generate a better overview of the themes.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
98 </ul> |
e01f74c3ec1e
Themes: Added XSL transformation to generate a better overview of the themes.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
99 </div> |
e01f74c3ec1e
Themes: Added XSL transformation to generate a better overview of the themes.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
100 <div> |
e01f74c3ec1e
Themes: Added XSL transformation to generate a better overview of the themes.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
101 <h3>Theme Definitions</h3> |
e01f74c3ec1e
Themes: Added XSL transformation to generate a better overview of the themes.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
102 <xsl:apply-templates mode="theme-groups" select="theme"/> |
e01f74c3ec1e
Themes: Added XSL transformation to generate a better overview of the themes.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
103 </div> |
e01f74c3ec1e
Themes: Added XSL transformation to generate a better overview of the themes.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
104 </div> |
e01f74c3ec1e
Themes: Added XSL transformation to generate a better overview of the themes.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
105 </xsl:template> |
e01f74c3ec1e
Themes: Added XSL transformation to generate a better overview of the themes.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
106 |
e01f74c3ec1e
Themes: Added XSL transformation to generate a better overview of the themes.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
107 <xsl:template match="mapping" mode="mappings"> |
e01f74c3ec1e
Themes: Added XSL transformation to generate a better overview of the themes.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
108 <xsl:variable name="target" select="@to"/> |
e01f74c3ec1e
Themes: Added XSL transformation to generate a better overview of the themes.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
109 <tr> |
e01f74c3ec1e
Themes: Added XSL transformation to generate a better overview of the themes.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
110 <td><xsl:value-of select="@from"/></td> |
e01f74c3ec1e
Themes: Added XSL transformation to generate a better overview of the themes.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
111 <td><a |
e01f74c3ec1e
Themes: Added XSL transformation to generate a better overview of the themes.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
112 href="#theme-{/themes/themegroup/theme[@name = $target][1]/../@name}-{$target}" |
e01f74c3ec1e
Themes: Added XSL transformation to generate a better overview of the themes.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
113 ><xsl:value-of select="@to"/></a></td> |
e01f74c3ec1e
Themes: Added XSL transformation to generate a better overview of the themes.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
114 <td><xsl:if test="@pattern"><pre><xsl:value-of select="@pattern"/></pre></xsl:if></td> |
e01f74c3ec1e
Themes: Added XSL transformation to generate a better overview of the themes.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
115 <td><xsl:if test="@masterAttr"><pre><xsl:value-of select="@masterAttr"/></pre></xsl:if></td> |
e01f74c3ec1e
Themes: Added XSL transformation to generate a better overview of the themes.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
116 </tr> |
e01f74c3ec1e
Themes: Added XSL transformation to generate a better overview of the themes.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
117 </xsl:template> |
e01f74c3ec1e
Themes: Added XSL transformation to generate a better overview of the themes.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
118 |
e01f74c3ec1e
Themes: Added XSL transformation to generate a better overview of the themes.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
119 <xsl:template match="mappings" mode="mappings"> |
e01f74c3ec1e
Themes: Added XSL transformation to generate a better overview of the themes.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
120 <div> |
e01f74c3ec1e
Themes: Added XSL transformation to generate a better overview of the themes.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
121 <h3><a name="mappings">Mappings</a></h3> |
e01f74c3ec1e
Themes: Added XSL transformation to generate a better overview of the themes.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
122 <table width="80%" border="1" cellspacing="0" summary="Mappings from facets to themes"> |
e01f74c3ec1e
Themes: Added XSL transformation to generate a better overview of the themes.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
123 <tr> |
e01f74c3ec1e
Themes: Added XSL transformation to generate a better overview of the themes.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
124 <th>From</th> |
e01f74c3ec1e
Themes: Added XSL transformation to generate a better overview of the themes.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
125 <th>To</th> |
e01f74c3ec1e
Themes: Added XSL transformation to generate a better overview of the themes.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
126 <th>Pattern</th> |
e01f74c3ec1e
Themes: Added XSL transformation to generate a better overview of the themes.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
127 <th>Condition</th> |
e01f74c3ec1e
Themes: Added XSL transformation to generate a better overview of the themes.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
128 </tr> |
e01f74c3ec1e
Themes: Added XSL transformation to generate a better overview of the themes.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
129 <xsl:apply-templates select="mapping" mode="mappings"/> |
e01f74c3ec1e
Themes: Added XSL transformation to generate a better overview of the themes.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
130 </table> |
e01f74c3ec1e
Themes: Added XSL transformation to generate a better overview of the themes.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
131 </div> |
e01f74c3ec1e
Themes: Added XSL transformation to generate a better overview of the themes.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
132 </xsl:template> |
e01f74c3ec1e
Themes: Added XSL transformation to generate a better overview of the themes.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
133 |
e01f74c3ec1e
Themes: Added XSL transformation to generate a better overview of the themes.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
134 <xsl:template match="/"> |
e01f74c3ec1e
Themes: Added XSL transformation to generate a better overview of the themes.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
135 <html> |
e01f74c3ec1e
Themes: Added XSL transformation to generate a better overview of the themes.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
136 <head> |
e01f74c3ec1e
Themes: Added XSL transformation to generate a better overview of the themes.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
137 <title>FLYS3 - Themes</title> |
e01f74c3ec1e
Themes: Added XSL transformation to generate a better overview of the themes.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
138 </head> |
e01f74c3ec1e
Themes: Added XSL transformation to generate a better overview of the themes.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
139 <body> |
3267
ee37ccea3b09
Create a list of direct sub themes of a theme.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
3262
diff
changeset
|
140 <h1>FLYS3 - Themes</h1> |
ee37ccea3b09
Create a list of direct sub themes of a theme.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
3262
diff
changeset
|
141 <div> |
ee37ccea3b09
Create a list of direct sub themes of a theme.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
3262
diff
changeset
|
142 <h2><a name="theme-groups">Theme groups</a> (<xsl:value-of select="count(/themes/themegroup)"/> groups)</h2> |
ee37ccea3b09
Create a list of direct sub themes of a theme.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
3262
diff
changeset
|
143 <ul> |
ee37ccea3b09
Create a list of direct sub themes of a theme.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
3262
diff
changeset
|
144 <xsl:apply-templates mode="header" select="/themes/themegroup[@name != 'virtual']"/> |
ee37ccea3b09
Create a list of direct sub themes of a theme.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
3262
diff
changeset
|
145 <xsl:apply-templates mode="header" select="/themes/themegroup[@name = 'virtual']"/> |
ee37ccea3b09
Create a list of direct sub themes of a theme.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
3262
diff
changeset
|
146 </ul> |
ee37ccea3b09
Create a list of direct sub themes of a theme.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
3262
diff
changeset
|
147 </div> |
ee37ccea3b09
Create a list of direct sub themes of a theme.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
3262
diff
changeset
|
148 <div> |
ee37ccea3b09
Create a list of direct sub themes of a theme.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
3262
diff
changeset
|
149 <h2><a href="#mappings">Mappings</a> (<xsl:value-of select="count(/themes/mappings/mapping)"/> mappings)</h2> |
ee37ccea3b09
Create a list of direct sub themes of a theme.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
3262
diff
changeset
|
150 </div> |
ee37ccea3b09
Create a list of direct sub themes of a theme.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
3262
diff
changeset
|
151 <hr/> |
ee37ccea3b09
Create a list of direct sub themes of a theme.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
3262
diff
changeset
|
152 <div> |
ee37ccea3b09
Create a list of direct sub themes of a theme.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
3262
diff
changeset
|
153 <xsl:apply-templates mode="theme-groups" select="/themes/themegroup[@name != 'virtual']"/> |
ee37ccea3b09
Create a list of direct sub themes of a theme.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
3262
diff
changeset
|
154 <xsl:apply-templates mode="theme-groups" select="/themes/themegroup[@name = 'virtual']"/> |
ee37ccea3b09
Create a list of direct sub themes of a theme.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
3262
diff
changeset
|
155 </div> |
ee37ccea3b09
Create a list of direct sub themes of a theme.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
3262
diff
changeset
|
156 <xsl:apply-templates mode="mappings" select="/themes/mappings"/> |
3262
e01f74c3ec1e
Themes: Added XSL transformation to generate a better overview of the themes.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
157 </body> |
e01f74c3ec1e
Themes: Added XSL transformation to generate a better overview of the themes.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
158 </html> |
e01f74c3ec1e
Themes: Added XSL transformation to generate a better overview of the themes.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
159 </xsl:template> |
e01f74c3ec1e
Themes: Added XSL transformation to generate a better overview of the themes.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
160 |
e01f74c3ec1e
Themes: Added XSL transformation to generate a better overview of the themes.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
161 <xsl:template match="text()"/> |
e01f74c3ec1e
Themes: Added XSL transformation to generate a better overview of the themes.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
162 <xsl:template match="text()" mode="header"/> |
e01f74c3ec1e
Themes: Added XSL transformation to generate a better overview of the themes.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
163 <xsl:template match="text()" mode="theme-groups"/> |
e01f74c3ec1e
Themes: Added XSL transformation to generate a better overview of the themes.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
164 <xsl:template match="text()" mode="theme-list"/> |
3267
ee37ccea3b09
Create a list of direct sub themes of a theme.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
3262
diff
changeset
|
165 <xsl:template match="text()" mode="sub-themes"/> |
3262
e01f74c3ec1e
Themes: Added XSL transformation to generate a better overview of the themes.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
166 <xsl:template match="text()" mode="theme-fields"/> |
e01f74c3ec1e
Themes: Added XSL transformation to generate a better overview of the themes.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
167 <xsl:template match="text()" mode="theme-inherits"/> |
e01f74c3ec1e
Themes: Added XSL transformation to generate a better overview of the themes.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
168 <xsl:template match="text()" mode="mappings"/> |
e01f74c3ec1e
Themes: Added XSL transformation to generate a better overview of the themes.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
169 |
e01f74c3ec1e
Themes: Added XSL transformation to generate a better overview of the themes.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
170 </xsl:stylesheet> |