Subversion Repositories bacoAlunos

Rev

Rev 1830 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
917 jmachado 1
<?xml version="1.0" encoding="ISO-8859-1"?>
2
<xsl:stylesheet version="1.0" xmlns:fo="http://www.w3.org/1999/XSL/Format"
3
                xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
4
                xmlns:uc="http://baco.estgp.pt/schemas/courseunits/program/">
5
    <xsl:param name="site">http://localhost/bacoTESTE</xsl:param>
6
    <xsl:param name="revisor">automático</xsl:param>
7
    <xsl:param name="validadoCC">false</xsl:param>
8
    <xsl:template match="/">
9
        <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
10
            <fo:layout-master-set>
11
                <fo:simple-page-master master-name="A4Vertical" page-width="210mm" page-height="297mm"
12
                                       margin-top="1cm" margin-bottom="1cm" margin-left="1cm" margin-right="1cm"
13
                                       reference-orientation="0">
14
                    <fo:region-body region-name="body" margin-top="20mm" margin-bottom="10mm" margin-right="0"
15
                                    margin-left="0"/>
16
 
17
                    <fo:region-before region-name="header" extent="15mm"/>
18
                    <fo:region-after region-name="footer" extent="1cm"/>
19
                </fo:simple-page-master>
20
                <fo:simple-page-master master-name="A4HorizontalRot" page-width="210mm" page-height="297mm"
21
                                       margin-top="0.5cm" margin-bottom="0.5cm" margin-left="0.5cm" margin-right="0.5cm"
22
                                       reference-orientation="90">
23
                    <fo:region-body region-name="body" margin-top="20mm" margin-bottom="10mm" margin-right="0"
24
                                    margin-left="0"/>
25
                    <fo:region-before region-name="header" extent="15mm"/>
26
                    <fo:region-after region-name="footer" extent="1cm"/>
27
                </fo:simple-page-master>
28
                <fo:simple-page-master master-name="A4Horizontal" page-width="297mm" page-height="210mm"
29
                                       margin-top="0.5cm" margin-bottom="0.5cm" margin-left="0.5cm"
30
                                       margin-right="0.5cm">
31
                    <fo:region-body region-name="body" margin-top="20mm" margin-bottom="15mm" margin-right="0"
32
                                    margin-left="0"/>
33
                    <fo:region-before region-name="header" extent="15mm"/>
34
                    <fo:region-after region-name="footer" extent="1cm"/>
35
                </fo:simple-page-master>
36
                <fo:page-sequence-master master-name="pages">
37
                    <fo:repeatable-page-master-alternatives>
38
                        <fo:conditional-page-master-reference master-reference="pages" page-position="any"/>
39
                    </fo:repeatable-page-master-alternatives>
40
                </fo:page-sequence-master>
41
            </fo:layout-master-set>
42
 
43
            <!--LAYOUT DE PAGINA ESCOLHIDO-->
44
            <fo:page-sequence master-reference="A4Vertical" initial-page-number="auto">
45
                <xsl:call-template name="page"/>
46
            </fo:page-sequence>
47
 
48
 
49
        </fo:root>
50
    </xsl:template>
51
 
52
 
53
    <xsl:template name="page">
54
        <fo:static-content flow-name="header">
55
 
56
            <fo:block text-align="left" >
57
                <fo:table width="100%" table-layout="fixed" border-bottom="1px solid black">
58
                    <fo:table-column column-width="100%"/>
59
 
60
 
61
                    <fo:table-body>
62
                        <fo:table-row>
63
                            <fo:table-cell >
64
                                <fo:block>
65
                                    <fo:external-graphic height="auto" width="auto"
66
                                                         content-height="30">
67
                                        <!--<xsl:attribute name="src">url('http://www.ipportalegre.pt/imagens/Logos/ESTG/Logotipo%20ESTG.jpg')</xsl:attribute>-->
68
                                        <xsl:attribute name="src">url('<xsl:value-of select="$site"/>/imgs/logoestg.gif')</xsl:attribute>
69
                                    </fo:external-graphic>
70
                                </fo:block>
71
                                <xsl:if test="//closed = 'false'">
72
                                    <fo:block font-size="20pt">
73
                                        (Este documento não está fechado)
74
                                    </fo:block>
75
                                </xsl:if>
76
                                <xsl:if test="//closed = 'true'">
77
                                    <fo:block font-size="20pt">
964 jmachado 78
                                        Relatório de avaliação curricular <xsl:value-of select="//anoLectivo"/>
917 jmachado 79
                                    </fo:block>
80
                                </xsl:if>
81
                            </fo:table-cell>
82
 
83
                        </fo:table-row>
84
 
85
                    </fo:table-body>
86
                </fo:table>
87
 
88
            </fo:block>
89
 
90
 
91
        </fo:static-content>
92
        <fo:static-content flow-name="footer">
93
 
94
            <fo:table width="100%" table-layout="fixed"  border-top="1px solid black" font-size="6.5pt" >
95
                <fo:table-column column-width="20%"/>
96
                <fo:table-column column-width="80%"  />
97
 
98
 
99
                <fo:table-body>
100
                    <fo:table-row>
101
                        <fo:table-cell  padding-top="3pt">
102
                            <fo:block >
103
                               Revisto a <xsl:value-of select="//updateDate"/> por <xsl:value-of select="$revisor"/> / Página <fo:page-number/>
104
                            </fo:block>
105
                            <fo:block font-size="5pt">
106
                                ESTG.SA.xxxx.1
107
                            </fo:block>
108
 
109
                        </fo:table-cell>
110
                        <fo:table-cell padding-top="3pt" >
111
                            <fo:block font-size="6pt" text-align="right">
112
                                http://www.estgp.pt | gerado pela plataforma baco® 2015
113
                            </fo:block>
114
                        </fo:table-cell>
115
                    </fo:table-row>
116
                </fo:table-body>
117
            </fo:table>
118
        </fo:static-content>
119
 
120
        <fo:flow flow-name="body">
121
            <fo:block>
122
                <xsl:apply-templates select="/CourseUnitEvaluation"/>
123
            </fo:block>
124
        </fo:flow>
125
    </xsl:template>
126
 
127
    <xsl:template match="/CourseUnitEvaluation">
128
 
129
        <fo:table table-layout="fixed" border="0px solid black" margin="0.5em" font-size="8.5pt">
130
            <xsl:call-template name="gen_cols"/>
131
            <fo:table-body text-align="left">
132
 
133
                <xsl:call-template name="gen_header"/>
134
 
135
                <xsl:call-template name="gen_line"/>
136
 
137
            </fo:table-body>
138
        </fo:table>
139
    </xsl:template>
140
 
141
    <xsl:template name="gen_cols">
142
        <fo:table-column column-width="15em"  />
143
        <fo:table-column/>
144
    </xsl:template>
145
 
146
 
147
 
148
 
149
    <xsl:template name="gen_header">
150
 
151
    </xsl:template>
152
 
153
 
154
 
155
 
156
 
157
 
158
 
159
 
160
    <xsl:attribute-set name="myBorder">
161
        <xsl:attribute name="border">solid 0.2mm black</xsl:attribute>
162
    </xsl:attribute-set>
163
 
164
    <xsl:template name="gen_line">
165
 
166
        <fo:table-row background-color="#FFF" color="#000" padding="0">
953 jmachado 167
            <fo:table-cell border-right="1px solid gray"  border-bottom="1px solid gray" display-align="center"  >
956 jmachado 168
                <fo:block text-align="right" padding="3pt" font-weight="bold">
953 jmachado 169
                Ano Lectivo
956 jmachado 170
                </fo:block>
953 jmachado 171
            </fo:table-cell>
172
            <fo:table-cell border-right="1px solid gray"  border-bottom="1px solid gray" display-align="center"  >
956 jmachado 173
                <fo:block >
953 jmachado 174
                <xsl:value-of select="//anoLectivo"/>
956 jmachado 175
                </fo:block>
953 jmachado 176
            </fo:table-cell>
177
        </fo:table-row>
178
        <fo:table-row background-color="#FFF" color="#000" padding="0">
179
            <fo:table-cell border-right="1px solid gray"  border-bottom="1px solid gray" display-align="center"  >
956 jmachado 180
                <fo:block text-align="right" padding="3pt" font-weight="bold">
953 jmachado 181
                Curso
956 jmachado 182
                </fo:block>
953 jmachado 183
            </fo:table-cell>
184
            <fo:table-cell border-right="1px solid gray"  border-bottom="1px solid gray" display-align="center"  >
956 jmachado 185
                <fo:block >
953 jmachado 186
                <xsl:value-of select="//curso/nome"/> / <xsl:value-of select="//curso/codigo"/>
956 jmachado 187
                </fo:block>
953 jmachado 188
            </fo:table-cell>
189
        </fo:table-row>
190
        <fo:table-row background-color="#FFF" color="#000" padding="0">
191
            <fo:table-cell border-right="1px solid gray"  border-bottom="1px solid gray" display-align="center"  >
956 jmachado 192
                <fo:block text-align="right" padding="3pt" font-weight="bold">
953 jmachado 193
                Unidade Curricular
956 jmachado 194
                </fo:block>
953 jmachado 195
            </fo:table-cell>
196
            <fo:table-cell border-right="1px solid gray"  border-bottom="1px solid gray" display-align="center"  >
956 jmachado 197
                <fo:block >
959 jmachado 198
                <xsl:value-of select="//unidadecurricular/nome"/> / <xsl:value-of select="//unidadecurricular/codigo"/>
956 jmachado 199
                </fo:block>
953 jmachado 200
            </fo:table-cell>
201
        </fo:table-row>
202
        <fo:table-row background-color="#FFF" color="#000" padding="0">
203
            <fo:table-cell border-right="1px solid gray"  border-bottom="1px solid gray" display-align="center"  >
956 jmachado 204
                <fo:block text-align="right" padding="3pt" font-weight="bold">
205
                Professor Responsável
206
                </fo:block>
953 jmachado 207
            </fo:table-cell>
208
            <fo:table-cell border-right="1px solid gray"  border-bottom="1px solid gray" display-align="center"  >
956 jmachado 209
                <fo:block >
210
                <xsl:value-of select="//responsavel/nome"/> / <xsl:value-of select="//responsavel/email"/>
211
                </fo:block >
953 jmachado 212
            </fo:table-cell>
213
        </fo:table-row>
214
        <xsl:for-each select="//docente">
215
            <fo:table-row background-color="#FFF" color="#000" padding="0">
216
                <fo:table-cell border-right="1px solid gray"  border-bottom="1px solid gray" display-align="center"  >
956 jmachado 217
                    <fo:block text-align="right" padding="3pt" font-weight="bold">
953 jmachado 218
                    Docente
956 jmachado 219
                    </fo:block>
953 jmachado 220
                </fo:table-cell>
221
                <fo:table-cell border-right="1px solid gray"  border-bottom="1px solid gray" display-align="center"  >
956 jmachado 222
                    <fo:block >
953 jmachado 223
                    <xsl:value-of select="./nome"/> / <xsl:value-of select="./email"/>
956 jmachado 224
                    </fo:block>
953 jmachado 225
                </fo:table-cell>
226
            </fo:table-row>
227
        </xsl:for-each>
917 jmachado 228
 
953 jmachado 229
        <fo:table-row background-color="#FFF" color="#000" padding="0">
230
 
917 jmachado 231
            <fo:table-cell border-right="1px solid gray"  border-bottom="1px solid gray" display-align="center"  >
232
                <fo:block text-align="right" padding="3pt" font-weight="bold">
233
                    Dados relativos ao processo de avaliação
234
                </fo:block>
235
            </fo:table-cell>
236
 
237
            <fo:table-cell border-bottom="1px solid gray" padding="0" padding-top="5px" padding-bottom="5px" padding-left="0mm" display-align="center">
238
 
239
 
240
                <fo:table margin="0" margin-left="0mm"  border="0px solid black" font-size="5.5pt" >
241
                    <fo:table-column/>
242
                    <fo:table-column/>
243
                    <fo:table-column/>
244
                    <fo:table-column/>
245
                    <fo:table-column/>
246
                    <fo:table-column/>
247
                    <fo:table-column/>
248
                    <fo:table-column/>
249
                    <fo:table-column/>
250
                    <fo:table-column/>
1830 jmachado 251
                    <fo:table-column/>
252
                    <fo:table-column/>
253
                    <fo:table-column/>
917 jmachado 254
                    <fo:table-body>
255
                        <fo:table-row>
256
                            <fo:table-cell xsl:use-attribute-sets="myBorder" number-rows-spanned="2" padding-top="3pt"><fo:block > Nº Alunos Inscritos </fo:block> </fo:table-cell>
257
                            <fo:table-cell xsl:use-attribute-sets="myBorder" number-rows-spanned="2" padding-top="3pt"><fo:block > Nº de alunos sem elementos de avaliação </fo:block> </fo:table-cell>
258
 
259
                            <fo:table-cell xsl:use-attribute-sets="myBorder" number-rows-spanned="1" number-columns-spanned="5" padding-top="3pt" display-align="center"><fo:block display-align="center"> Nº de alunos aprovados em </fo:block> </fo:table-cell>
260
 
1830 jmachado 261
                            <fo:table-cell xsl:use-attribute-sets="myBorder" number-rows-spanned="1" number-columns-spanned="2" padding-top="3pt"><fo:block > Aprovados com a classificação entre 10 e 13 valores </fo:block> </fo:table-cell>
262
                            <fo:table-cell xsl:use-attribute-sets="myBorder" number-rows-spanned="1" number-columns-spanned="2" padding-top="3pt"><fo:block > Aprovados com a classificação entre 14 e 16 valores </fo:block> </fo:table-cell>
263
                            <fo:table-cell xsl:use-attribute-sets="myBorder" number-rows-spanned="1" number-columns-spanned="2" padding-top="3pt"><fo:block > Aprovados com a classificação entre 17 e 20 valores </fo:block> </fo:table-cell>
917 jmachado 264
                        </fo:table-row>
265
                        <fo:table-row>
266
                            <fo:table-cell xsl:use-attribute-sets="myBorder" padding-top="3pt"><fo:block > Avaliação de frequência </fo:block> </fo:table-cell>
267
                            <fo:table-cell xsl:use-attribute-sets="myBorder" padding-top="3pt"><fo:block > Exame Época Normal </fo:block> </fo:table-cell>
268
                            <fo:table-cell xsl:use-attribute-sets="myBorder" padding-top="3pt"><fo:block > Exame Época Recurso </fo:block> </fo:table-cell>
269
                            <fo:table-cell xsl:use-attribute-sets="myBorder" padding-top="3pt"><fo:block > Exame Época Especial </fo:block> </fo:table-cell>
270
                            <fo:table-cell xsl:use-attribute-sets="myBorder" padding-top="3pt"><fo:block > Total </fo:block> </fo:table-cell>
271
 
1830 jmachado 272
                            <fo:table-cell xsl:use-attribute-sets="myBorder" padding-top="3pt"><fo:block ></fo:block> </fo:table-cell>
273
                            <fo:table-cell xsl:use-attribute-sets="myBorder" padding-top="3pt"><fo:block > (%) </fo:block> </fo:table-cell>
274
                            <fo:table-cell xsl:use-attribute-sets="myBorder" padding-top="3pt"><fo:block ></fo:block> </fo:table-cell>
275
                            <fo:table-cell xsl:use-attribute-sets="myBorder" padding-top="3pt"><fo:block > (%) </fo:block> </fo:table-cell>
276
                            <fo:table-cell xsl:use-attribute-sets="myBorder" padding-top="3pt"><fo:block ></fo:block> </fo:table-cell>
277
                            <fo:table-cell xsl:use-attribute-sets="myBorder" padding-top="3pt"><fo:block > (%) </fo:block> </fo:table-cell>
278
 
279
 
917 jmachado 280
                        </fo:table-row>
281
                        <fo:table-row>
282
                            <fo:table-cell xsl:use-attribute-sets="myBorder"  padding-top="3pt"><fo:block > <xsl:value-of select="//numAlunosInscritos"/> </fo:block> </fo:table-cell>
283
                            <fo:table-cell xsl:use-attribute-sets="myBorder" padding-top="3pt"><fo:block > <xsl:value-of select="//numAlunosSemElementosAvaliacao"/> </fo:block> </fo:table-cell>
284
 
285
                            <fo:table-cell xsl:use-attribute-sets="myBorder" padding-top="3pt"><fo:block > <xsl:value-of select="//numAlunosAprovFrequencia"/> </fo:block> </fo:table-cell>
286
                            <fo:table-cell xsl:use-attribute-sets="myBorder" padding-top="3pt"><fo:block > <xsl:value-of select="//numAlunosAprovNormal"/> </fo:block> </fo:table-cell>
287
                            <fo:table-cell xsl:use-attribute-sets="myBorder" padding-top="3pt"><fo:block > <xsl:value-of select="//numAlunosAprovRecurso"/> </fo:block> </fo:table-cell>
288
                            <fo:table-cell xsl:use-attribute-sets="myBorder" padding-top="3pt"><fo:block > <xsl:value-of select="//numAlunosAprovEspecial"/> </fo:block> </fo:table-cell>
289
                            <fo:table-cell xsl:use-attribute-sets="myBorder" padding-top="3pt"><fo:block > <xsl:value-of select="//numAlunosAprovTotal"/> </fo:block> </fo:table-cell>
290
 
291
                            <fo:table-cell xsl:use-attribute-sets="myBorder" padding-top="3pt"><fo:block > <xsl:value-of select="//numAlunosAprov1013"/> </fo:block> </fo:table-cell>
1830 jmachado 292
                            <fo:table-cell xsl:use-attribute-sets="myBorder" padding-top="3pt"><fo:block > <xsl:value-of select="//numAlunosAprov1013Percent"/>% </fo:block> </fo:table-cell>
917 jmachado 293
                            <fo:table-cell xsl:use-attribute-sets="myBorder" padding-top="3pt"><fo:block > <xsl:value-of select="//numAlunosAprov1416"/> </fo:block> </fo:table-cell>
1830 jmachado 294
                            <fo:table-cell xsl:use-attribute-sets="myBorder" padding-top="3pt"><fo:block > <xsl:value-of select="//numAlunosAprov1416Percent"/>% </fo:block> </fo:table-cell>
917 jmachado 295
                            <fo:table-cell xsl:use-attribute-sets="myBorder" padding-top="3pt"><fo:block > <xsl:value-of select="//numAlunosAprov1720"/> </fo:block> </fo:table-cell>
1830 jmachado 296
                            <fo:table-cell xsl:use-attribute-sets="myBorder" padding-top="3pt"><fo:block > <xsl:value-of select="//numAlunosAprov1720Percent"/>% </fo:block> </fo:table-cell>
917 jmachado 297
 
298
                        </fo:table-row>
299
                    </fo:table-body>
300
                </fo:table>
301
 
302
 
303
            </fo:table-cell>
304
 
305
 
306
 
307
        </fo:table-row>
308
 
309
        <fo:table-row background-color="#FFF" color="#000">
310
            <fo:table-cell border-bottom="1px solid gray" border-right="1px solid gray" padding-right="0.1em" display-align="center">
311
                <fo:block text-align="center" font-weight="bold">Auto-avaliação</fo:block>
312
            </fo:table-cell>
313
            <fo:table-cell border-bottom="1px solid gray" display-align="center" padding="5px">
314
 
315
 
316
                <fo:table margin="0" margin-left="0mm"  border="0px solid black" font-size="5.5pt" >
317
                    <fo:table-column column-width="20%"/>
318
                    <fo:table-column/>
319
                    <fo:table-body>
320
                        <fo:table-row>
1159 jmachado 321
                            <fo:table-cell xsl:use-attribute-sets="myBorder" display-align="center" padding="3pt"><fo:block  font-weight="bold"> Apreciação dos resultados quantitativos obtidos pelos estudantes </fo:block> </fo:table-cell>
322
                            <fo:table-cell xsl:use-attribute-sets="myBorder" padding="3pt"><fo:block font-family="monospace" wrap-option="wrap" linefeed-treatment="preserve" white-space-collapse="false" white-space-treatment="preserve"> <xsl:value-of select="//qualApreciacaoQuantitivos"/> </fo:block> </fo:table-cell>
917 jmachado 323
                        </fo:table-row>
324
                        <fo:table-row>
325
                            <fo:table-cell xsl:use-attribute-sets="myBorder" display-align="center" padding="3pt"><fo:block font-weight="bold"> Apreciação do funcionamento da UC (Condições de funcionamento da UC; problemas detetados; identificação de práticas pedagógicas de mérito ou deficientes; etc.) </fo:block> </fo:table-cell>
1159 jmachado 326
                            <fo:table-cell xsl:use-attribute-sets="myBorder" padding="3pt"><fo:block font-family="monospace" wrap-option="wrap" linefeed-treatment="preserve" white-space-collapse="false" white-space-treatment="preserve" > <xsl:value-of select="//qualApreciacaoUC"/> </fo:block> </fo:table-cell>
917 jmachado 327
                        </fo:table-row>
328
                        <fo:table-row>
1843 jmachado 329
                            <fo:table-cell xsl:use-attribute-sets="myBorder" display-align="center" padding="3pt"><fo:block font-weight="bold"> Percentage de cumprimento do programa da UC </fo:block> </fo:table-cell>
330
                            <fo:table-cell xsl:use-attribute-sets="myBorder" padding="3pt"><fo:block font-family="monospace" wrap-option="wrap" linefeed-treatment="preserve" white-space-collapse="false" white-space-treatment="preserve" > <xsl:value-of select="//cumprimentoProgramaPercent"/> </fo:block> </fo:table-cell>
331
                        </fo:table-row>
332
                        <fo:table-row>
917 jmachado 333
                            <fo:table-cell xsl:use-attribute-sets="myBorder" display-align="center" padding="3pt"><fo:block font-weight="bold"> Apreciação do cumprimento do programa da UC (Adequação das metodologias de ensino/aprendizagem utilizadas; competências efetivamente adquiridas e cumprimento dos conteúdos planificados) </fo:block> </fo:table-cell>
1159 jmachado 334
                            <fo:table-cell xsl:use-attribute-sets="myBorder" padding="3pt"><fo:block font-family="monospace" wrap-option="wrap" linefeed-treatment="preserve" white-space-collapse="false" white-space-treatment="preserve" > <xsl:value-of select="//qualApreciacaoCumprimentoPrograma"/> </fo:block> </fo:table-cell>
917 jmachado 335
                        </fo:table-row>
336
                        <fo:table-row>
337
                            <fo:table-cell xsl:use-attribute-sets="myBorder" display-align="center" padding="3pt"><fo:block font-weight="bold"> Conclusões (Pontos fortes e fracos; sugestões de melhoria e respetivo plano de ação para a sua concretização) </fo:block> </fo:table-cell>
1159 jmachado 338
                            <fo:table-cell xsl:use-attribute-sets="myBorder" padding="3pt"><fo:block font-family="monospace" wrap-option="wrap" linefeed-treatment="preserve" white-space-collapse="false" white-space-treatment="preserve"> <xsl:value-of select="//qualConclusoes"/> </fo:block> </fo:table-cell>
917 jmachado 339
                        </fo:table-row>
340
                    </fo:table-body>
341
                </fo:table>
342
 
343
 
344
            </fo:table-cell>
345
        </fo:table-row>
346
 
347
 
348
    </xsl:template>
349
 
350
 
351
 
352
 
353
 
354
 
355
 
356
</xsl:stylesheet>