~ubuntu-branches/debian/sid/pgadmin3/sid

« back to all changes in this revision

Viewing changes to docs/cs_CZ/default-xsl.html

  • Committer: Bazaar Package Importer
  • Author(s): Gerfried Fuchs
  • Date: 2009-07-30 12:27:16 UTC
  • mfrom: (1.1.6 upstream)
  • Revision ID: james.westby@ubuntu.com-20090730122716-fddbh42on721bbs2
Tags: 1.10.0-1
* New upstream release.
* Adjusted watch file to match release candidates.
* Updated to Standards-Version 3.8.2:
  - Moved to Section: database.
  - Add DEB_BUILD_OPTIONS support for parallel building.
  - Move from findstring to filter suggestion for DEB_BUILD_OPTIONS parsing.
* pgagent got split into its own separate source package by upstream.
* Exclude Docs.vcproj from installation.
* Move doc-base.enus from pgadmin3 to pgadmin3-data package, the files are
  in there too.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<html>
 
2
 
 
3
<head>
 
4
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
 
5
<link rel="STYLESHEET" type="text/css" href="pgadmin3.css">
 
6
<title>Výchozí styl XSL</title>
 
7
</head>
 
8
 
 
9
<body>
 
10
 
 
11
<h3>Výchozí styl XSL</h3>
 
12
 
 
13
<p>
 
14
Na ukázku a jako výchozí bod pro vaše vlastní styly je zde uveden styl zabudovaný v pgAdminu. pgAdmin jej
 
15
využívá k vytváření reportu v XHTML z dat XML daného reportu. Obsahuje výchozí HTML styl, který se vloží do reportu 
 
16
tak, aby měl vzhled a formu typické pro pgAdmin.
 
17
</p>
 
18
 
 
19
<pre style="background-color: #dddddd;">
 
20
&#60;?xml version=&#34;1.0&#34;?&#62;
 
21
&#60;xsl:stylesheet version=&#34;1.0&#34; xmlns:xsl=&#34;http://www.w3.org/1999/XSL/Transform&#34;&#62;
 
22
&#60;xsl:output method=&#34;xml&#34; doctype-system=&#34;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&#34; doctype-public=&#34;-//W3C//DTD XHTML 1.0 Transitional//EN&#34; indent=&#34;yes&#34; encoding=&#34;utf-8&#34; /&#62;
 
23
&#60;xsl:template match=&#34;/report&#34;&#62;
 
24
 
 
25
&#60;html&#62;
 
26
  &#60;head&#62;
 
27
    &#60;xsl:if test=&#34;header/title != &#39;&#39;&#34;&#62;
 
28
      &#60;title&#62;&#60;xsl:value-of select=&#34;header/title&#34; /&#62;&#60;/title&#62;
 
29
    &#60;/xsl:if&#62;
 
30
    &#60;meta http-equiv=&#34;Content-Type&#34; content=&#34;utf-8&#34; /&#62;
 
31
    &#60;style type=&#34;text/css&#34;&#62;
 
32
      body {  font-family: verdana, helvetica, sans-serif; margin: 0px; padding: 0; }
 
33
      h1 { font-weight: bold; font-size: 150%; border-bottom-style: solid; border-bottom-width: 2px; margin-top: 0px; padding-bottom: 0.5ex; color: #eeeeee; }
 
34
      h2 { font-size: 130%; padding-bottom: 0.5ex; color: #009ace; border-bottom-style: solid; border-bottom-width: 2px; }
 
35
      h3 { font-size: 110%; padding-bottom: 0.5ex; color: #000000; }
 
36
      th { text-align: left; background-color: #009ace; color: #eeeeee; }
 
37
      #ReportHeader { padding: 10px; background-color: #009ace; color: #eeeeee; border-bottom-style: solid; border-bottom-width: 2px; border-color: #999999; }
 
38
      #ReportHeader th { width: 25%; white-space: nowrap; vertical-align: top; }
 
39
      #ReportHeader td { vertical-align: top; color: #eeeeee; }
 
40
      #ReportNotes { padding: 10px; background-color: #eeeeee; font-size: 80%; border-bottom-style: solid; border-bottom-width: 2px; border-color: #999999; }
 
41
      .ReportSQL { margin-bottom: 10px; padding: 10px; display: block; background-color: #eeeeee; font-family: monospace; }
 
42
      #ReportDetails { margin-left: 10px; margin-right: 10px; margin-bottom: 10px; }
 
43
      #ReportDetails td, th { font-size: 80%; margin-left: 2px; margin-right: 2px; }
 
44
      #ReportDetails th { border-bottom-color: #777777; border-bottom-style: solid; border-bottom-width: 2px; }
 
45
      .ReportDetailsOddDataRow { background-color: #dddddd; }
 
46
      .ReportDetailsEvenDataRow { background-color: #eeeeee; }
 
47
      .ReportTableHeaderCell { background-color: #dddddd; color: #009ace; vertical-align: top; font-size: 80%; white-space: nowrap; }
 
48
      .ReportTableValueCell { vertical-align: top; font-size: 80%; white-space: nowrap; }
 
49
      .ReportTableInfo { font-size: 80%; font-style: italic; }
 
50
      #ReportFooter { font-weight: bold; font-size: 80%; text-align: right; background-color: #009ace; color: #eeeeee; margin-top: 10px; padding: 2px; border-bottom-style: solid; border-bottom-width: 2px; border-top-style: solid; border-top-width: 2px; border-color: #999999; }
 
51
      #ReportFooter a { color: #ffffff; text-decoration: none; }
 
52
    &#60;/style&#62;
 
53
  &#60;/head&#62;
 
54
 
 
55
  &#60;body&#62;
 
56
    &#60;div id=&#34;ReportHeader&#34;&#62;
 
57
 
 
58
    &#60;xsl:if test=&#34;header/title != &#39;&#39;&#34;&#62;
 
59
      &#60;h1&#62;&#60;xsl:value-of select=&#34;header/title&#34; /&#62;&#60;/h1&#62;
 
60
    &#60;/xsl:if&#62;
 
61
 
 
62
    &#60;xsl:if test=&#34;header/generated != &#39;&#39;&#34;&#62;
 
63
      &#60;b&#62;Generated: &#60;/b&#62;&#60;xsl:value-of select=&#34;header/generated&#34; /&#62;&#60;br /&#62;
 
64
    &#60;/xsl:if&#62;
 
65
 
 
66
    &#60;xsl:if test=&#34;header/server != &#39;&#39;&#34;&#62;
 
67
      &#60;b&#62;Server: &#60;/b&#62;&#60;xsl:value-of select=&#34;header/server&#34; /&#62;&#60;br /&#62;
 
68
    &#60;/xsl:if&#62;
 
69
 
 
70
    &#60;xsl:if test=&#34;header/database != &#39;&#39;&#34;&#62;
 
71
      &#60;b&#62;Database: &#60;/b&#62;&#60;xsl:value-of select=&#34;header/database&#34; /&#62;&#60;br /&#62;
 
72
    &#60;/xsl:if&#62;
 
73
 
 
74
    &#60;xsl:if test=&#34;header/catalog != &#39;&#39;&#34;&#62;
 
75
      &#60;b&#62;Catalog: &#60;/b&#62;&#60;xsl:value-of select=&#34;header/catalog&#34; /&#62;&#60;br /&#62;
 
76
    &#60;/xsl:if&#62;
 
77
 
 
78
    &#60;xsl:if test=&#34;header/schema != &#39;&#39;&#34;&#62;
 
79
      &#60;b&#62;Schema: &#60;/b&#62;&#60;xsl:value-of select=&#34;header/schema&#34; /&#62;&#60;br /&#62;
 
80
    &#60;/xsl:if&#62;
 
81
 
 
82
    &#60;xsl:if test=&#34;header/table != &#39;&#39;&#34;&#62;
 
83
      &#60;b&#62;Table: &#60;/b&#62;&#60;xsl:value-of select=&#34;header/table&#34; /&#62;&#60;br /&#62;
 
84
    &#60;/xsl:if&#62;
 
85
 
 
86
    &#60;xsl:if test=&#34;header/job != &#39;&#39;&#34;&#62;
 
87
      &#60;b&#62;Job: &#60;/b&#62;&#60;xsl:value-of select=&#34;header/job&#34; /&#62;&#60;br /&#62;
 
88
    &#60;/xsl:if&#62;
 
89
 
 
90
    &#60;/div&#62;
 
91
 
 
92
    &#60;xsl:if test=&#34;header/notes != &#39;&#39;&#34;&#62;
 
93
      &#60;div id=&#34;ReportNotes&#34;&#62;
 
94
      &#60;b&#62;Notes: &#60;/b&#62;&#60;br /&#62;&#60;br /&#62;
 
95
      &#60;xsl:call-template name=&#34;substitute&#34;&#62;
 
96
         &#60;xsl:with-param name=&#34;string&#34; select=&#34;header/notes&#34; /&#62;
 
97
      &#60;/xsl:call-template&#62;
 
98
      &#60;/div&#62;
 
99
    &#60;/xsl:if&#62;
 
100
 
 
101
    &#60;div id=&#34;ReportDetails&#34;&#62;
 
102
      &#60;xsl:apply-templates select=&#34;section&#34; &#62;
 
103
        &#60;xsl:sort select=&#34;@number&#34; data-type=&#34;number&#34; order=&#34;ascending&#34; /&#62;
 
104
      &#60;/xsl:apply-templates&#62;
 
105
    &#60;/div&#62;
 
106
 
 
107
    &#60;div id=&#34;ReportFooter&#34;&#62;
 
108
Report generated by &#60;a href=&#34;http://www.pgadmin.org/&#34;&#62;pgAdmin&#60;/a&#62;
 
109
    &#60;/div&#62;
 
110
 
 
111
    &#60;br /&#62;
 
112
  &#60;/body&#62;
 
113
&#60;/html&#62;
 
114
 
 
115
&#60;/xsl:template&#62;
 
116
 
 
117
&#60;xsl:template match=&#34;section&#34;&#62;
 
118
  &#60;xsl:if test=&#34;../section[@id = current()/@id]/@name != &#39;&#39;&#34;&#62;
 
119
    &#60;h2&#62;&#60;xsl:value-of select=&#34;../section[@id = current()/@id]/@name&#34; /&#62;&#60;/h2&#62;
 
120
  &#60;/xsl:if&#62;
 
121
 
 
122
  &#60;xsl:if test=&#34;count(../section[@id = current()/@id]/table/columns/column) &#62; 0&#34;&#62;
 
123
    &#60;table&#62;
 
124
      &#60;tr&#62;
 
125
        &#60;xsl:apply-templates select=&#34;../section[@id = current()/@id]/table/columns/column&#34;&#62;
 
126
          &#60;xsl:sort select=&#34;@number&#34; data-type=&#34;number&#34; order=&#34;ascending&#34; /&#62;
 
127
          &#60;xsl:with-param name=&#34;count&#34; select=&#34;count(../section[@id = current()/@id]/table/columns/column)&#34; /&#62;
 
128
        &#60;/xsl:apply-templates&#62;
 
129
      &#60;/tr&#62;
 
130
      &#60;xsl:apply-templates select=&#34;../section[@id = current()/@id]/table/rows/*&#34; mode=&#34;rows&#34;&#62;
 
131
          &#60;xsl:sort select=&#34;@number&#34; data-type=&#34;number&#34; order=&#34;ascending&#34; /&#62;
 
132
        &#60;xsl:with-param name=&#34;column-meta&#34; select=&#34;../section[@id = current()/@id]/table/columns/column&#34; /&#62;
 
133
      &#60;/xsl:apply-templates&#62;
 
134
    &#60;/table&#62;
 
135
    &#60;br /&#62;
 
136
    &#60;xsl:if test=&#34;../section[@id = current()/@id]/table/info != &#39;&#39;&#34;&#62;
 
137
      &#60;p class=&#34;ReportTableInfo&#34;&#62;&#60;xsl:value-of select=&#34;../section[@id = current()/@id]/table/info&#34; /&#62;&#60;/p&#62;
 
138
    &#60;/xsl:if&#62;
 
139
  &#60;/xsl:if&#62;
 
140
 
 
141
  &#60;xsl:if test=&#34;../section[@id = current()/@id]/sql != &#39;&#39;&#34;&#62;
 
142
    &#60;pre class=&#34;ReportSQL&#34;&#62;
 
143
      &#60;xsl:call-template name=&#34;substitute&#34;&#62;
 
144
         &#60;xsl:with-param name=&#34;string&#34; select=&#34;../section[@id = current()/@id]/sql&#34; /&#62;
 
145
      &#60;/xsl:call-template&#62;
 
146
    &#60;/pre&#62;
 
147
  &#60;/xsl:if&#62;
 
148
&#60;/xsl:template&#62;
 
149
 
 
150
&#60;xsl:template match=&#34;column&#34;&#62;
 
151
  &#60;xsl:param name=&#34;count&#34; /&#62;
 
152
  &#60;th class=&#34;ReportTableHeaderCell&#34;&#62;
 
153
  &#60;xsl:attribute name=&#34;width&#34;&#62;&#60;xsl:value-of select=&#34;100 div $count&#34; /&#62;%&#60;/xsl:attribute&#62;
 
154
    &#60;xsl:call-template name=&#34;substitute&#34;&#62;
 
155
       &#60;xsl:with-param name=&#34;string&#34; select=&#34;@name&#34; /&#62;
 
156
    &#60;/xsl:call-template&#62;
 
157
  &#60;/th&#62;
 
158
&#60;/xsl:template&#62;
 
159
 
 
160
&#60;xsl:template match=&#34;*&#34; mode=&#34;rows&#34;&#62;
 
161
  &#60;xsl:param name=&#34;column-meta&#34; /&#62;
 
162
  &#60;tr&#62;
 
163
  &#60;xsl:choose&#62;
 
164
  &#60;xsl:when test=&#34;position() mod 2 != 1&#34;&#62;
 
165
    &#60;xsl:attribute name=&#34;class&#34;&#62;ReportDetailsOddDataRow&#60;/xsl:attribute&#62;
 
166
  &#60;/xsl:when&#62;
 
167
  &#60;xsl:otherwise&#62;
 
168
    &#60;xsl:attribute name=&#34;class&#34;&#62;ReportDetailsEvenDataRow&#60;/xsl:attribute&#62;
 
169
  &#60;/xsl:otherwise&#62;
 
170
  &#60;/xsl:choose&#62;
 
171
    &#60;xsl:apply-templates select=&#34;$column-meta&#34; mode=&#34;cells&#34;&#62;
 
172
      &#60;xsl:with-param name=&#34;row&#34; select=&#34;.&#34; /&#62;
 
173
    &#60;/xsl:apply-templates&#62;
 
174
  &#60;/tr&#62;
 
175
&#60;/xsl:template&#62;
 
176
 
 
177
&#60;xsl:template match=&#34;*&#34; mode=&#34;cells&#34;&#62;
 
178
  &#60;xsl:param name=&#34;row&#34; /&#62;
 
179
    &#60;td class=&#34;ReportTableValueCell&#34;&#62;
 
180
    &#60;xsl:choose&#62;
 
181
      &#60;xsl:when test=&#34;$row/@*[name() = current()/@id]|$row/*[name() = current()/@id] != &#39;&#39;&#34;&#62;
 
182
        &#60;xsl:call-template name=&#34;substitute&#34;&#62;
 
183
          &#60;xsl:with-param name=&#34;string&#34; select=&#34;$row/@*[name() = current()/@id]|$row/*[name() = current()/@id]&#34; /&#62;
 
184
        &#60;/xsl:call-template&#62;
 
185
      &#60;/xsl:when&#62;
 
186
      &#60;xsl:otherwise&#62;
 
187
        &#60;xsl:text&#62; &#60;/xsl:text&#62;
 
188
      &#60;/xsl:otherwise&#62;
 
189
    &#60;/xsl:choose&#62;
 
190
  &#60;/td&#62;
 
191
&#60;/xsl:template&#62;
 
192
 
 
193
&#60;xsl:template name=&#34;substitute&#34;&#62;
 
194
   &#60;xsl:param name=&#34;string&#34; /&#62;
 
195
   &#60;xsl:param name=&#34;from&#34; select=&#34;&#39;&#38;#xA;&#39;&#34; /&#62;
 
196
   &#60;xsl:param name=&#34;to&#34;&#62;
 
197
      &#60;br /&#62;
 
198
   &#60;/xsl:param&#62;
 
199
   &#60;xsl:choose&#62;
 
200
      &#60;xsl:when test=&#34;contains($string, $from)&#34;&#62;
 
201
         &#60;xsl:value-of select=&#34;substring-before($string, $from)&#34; /&#62;
 
202
         &#60;xsl:copy-of select=&#34;$to&#34; /&#62;
 
203
         &#60;xsl:call-template name=&#34;substitute&#34;&#62;
 
204
            &#60;xsl:with-param name=&#34;string&#34; select=&#34;substring-after($string, $from)&#34; /&#62;
 
205
            &#60;xsl:with-param name=&#34;from&#34; select=&#34;$from&#34; /&#62;
 
206
            &#60;xsl:with-param name=&#34;to&#34; select=&#34;$to&#34; /&#62;
 
207
         &#60;/xsl:call-template&#62;
 
208
      &#60;/xsl:when&#62;
 
209
      &#60;xsl:otherwise&#62;
 
210
         &#60;xsl:value-of select=&#34;$string&#34; /&#62;
 
211
      &#60;/xsl:otherwise&#62;
 
212
   &#60;/xsl:choose&#62;
 
213
&#60;/xsl:template&#62;
 
214
 
 
215
&#60;/xsl:stylesheet&#62;
 
216
 
 
217
</pre>
 
218
</body>
 
219
</html>