Rev 1549 | Rev 1553 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
1549 | 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" |
||
1551 | jmachado | 4 | xmlns:rep="http://baco.estgp.pt/schemas/questionarios/reports/" |
1549 | jmachado | 5 | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
6 | xsi:schemaLocation="http://www.w3.org/1999/XSL/Format http://svn.apache.org/repos/asf/xmlgraphics/fop/trunk/fop/src/foschema/fop.xsd"> |
||
7 | <xsl:param name="site">http://localhost/bacoTESTE</xsl:param> |
||
8 | <xsl:param name="revisor">automático</xsl:param> |
||
9 | <xsl:param name="validadoCC">false</xsl:param> |
||
10 | |||
11 | <xsl:param name="anoLectivo">2015/2016</xsl:param> |
||
12 | <xsl:param name="nomeDocente">Jorge Miguel Calha Rainho Machado</xsl:param> |
||
13 | <xsl:param name="numeroDocente">20128</xsl:param> |
||
14 | |||
15 | <xsl:template match="/"> |
||
1551 | jmachado | 16 | <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" font-family="Helvetica" color="#58585A"> |
1549 | jmachado | 17 | <fo:layout-master-set> |
18 | <fo:simple-page-master master-name="A4Vertical" page-width="210mm" page-height="297mm" |
||
19 | margin-top="1cm" margin-bottom="1cm" margin-left="1cm" margin-right="1cm" |
||
20 | reference-orientation="0"> |
||
1551 | jmachado | 21 | <fo:region-body region-name="body" margin-top="40mm" margin-bottom="10mm" margin-right="0" |
1549 | jmachado | 22 | margin-left="0"/> |
23 | |||
24 | <fo:region-before region-name="header" extent="15mm"/> |
||
25 | <fo:region-after region-name="footer" extent="1cm"/> |
||
26 | </fo:simple-page-master> |
||
27 | |||
28 | <fo:simple-page-master master-name="A4VerticalFirstPage" page-width="210mm" page-height="297mm" |
||
29 | margin-top="1cm" margin-bottom="1cm" margin-left="1cm" margin-right="1cm" |
||
30 | reference-orientation="0"> |
||
31 | <fo:region-body region-name="body" margin-top="90mm" margin-bottom="10mm" margin-right="0" |
||
32 | margin-left="0"/> |
||
33 | |||
34 | <fo:region-before region-name="header" extent="15mm"/> |
||
35 | <fo:region-after region-name="footer" extent="1cm"/> |
||
36 | </fo:simple-page-master> |
||
37 | |||
38 | |||
39 | |||
40 | <fo:simple-page-master master-name="A4HorizontalRot" page-width="210mm" page-height="297mm" |
||
41 | margin-top="0.5cm" margin-bottom="0.5cm" margin-left="0.5cm" margin-right="0.5cm" |
||
42 | reference-orientation="90"> |
||
43 | <fo:region-body region-name="body" margin-top="20mm" margin-bottom="10mm" margin-right="0" |
||
44 | margin-left="0"/> |
||
45 | <fo:region-before region-name="header" extent="15mm"/> |
||
46 | <fo:region-after region-name="footer" extent="1cm"/> |
||
47 | </fo:simple-page-master> |
||
48 | <fo:simple-page-master master-name="A4Horizontal" page-width="297mm" page-height="210mm" |
||
49 | margin-top="0.5cm" margin-bottom="0.5cm" margin-left="0.5cm" |
||
50 | margin-right="0.5cm"> |
||
51 | <fo:region-body region-name="body" margin-top="20mm" margin-bottom="15mm" margin-right="0" |
||
52 | margin-left="0"/> |
||
53 | <fo:region-before region-name="header" extent="15mm"/> |
||
54 | <fo:region-after region-name="footer" extent="1cm"/> |
||
55 | </fo:simple-page-master> |
||
56 | <fo:page-sequence-master master-name="pages"> |
||
57 | <fo:repeatable-page-master-alternatives> |
||
58 | <fo:conditional-page-master-reference master-reference="pages" page-position="any"/> |
||
59 | </fo:repeatable-page-master-alternatives> |
||
60 | </fo:page-sequence-master> |
||
61 | </fo:layout-master-set> |
||
62 | |||
63 | <!--LAYOUT DE PAGINA ESCOLHIDO--> |
||
64 | |||
65 | <fo:page-sequence master-reference="A4VerticalFirstPage" initial-page-number="1"> |
||
66 | <xsl:call-template name="firstpage"/> |
||
67 | </fo:page-sequence> |
||
68 | <fo:page-sequence master-reference="A4Vertical" initial-page-number="2"> |
||
1551 | jmachado | 69 | <xsl:call-template name="indexPage"/> |
70 | </fo:page-sequence> |
||
71 | <fo:page-sequence master-reference="A4Vertical" initial-page-number="3"> |
||
1549 | jmachado | 72 | <xsl:call-template name="page"/> |
73 | </fo:page-sequence> |
||
74 | |||
75 | |||
76 | </fo:root> |
||
77 | </xsl:template> |
||
78 | |||
79 | |||
80 | <xsl:template name="firstpage"> |
||
81 | <fo:static-content flow-name="header"> |
||
82 | <fo:block text-align="left"> |
||
83 | <fo:table width="100%" table-layout="fixed" border-bottom="1px solid black"> |
||
84 | <fo:table-column column-width="100%"/> |
||
85 | <fo:table-body> |
||
86 | <fo:table-row> |
||
87 | <fo:table-cell> |
||
88 | <fo:block> |
||
89 | <fo:external-graphic height="auto" width="auto" |
||
90 | content-height="80"> |
||
91 | <!--<xsl:attribute name="src">url('http://www.ipportalegre.pt/imagens/Logos/ESTG/Logotipo%20ESTG.jpg')</xsl:attribute>--> |
||
92 | <xsl:attribute name="src">url('<xsl:value-of select="$site"/>/layout/themes/ipp/logo.png') |
||
93 | </xsl:attribute> |
||
94 | </fo:external-graphic> |
||
95 | </fo:block> |
||
96 | </fo:table-cell> |
||
97 | |||
98 | </fo:table-row> |
||
99 | |||
100 | </fo:table-body> |
||
101 | </fo:table> |
||
102 | |||
103 | </fo:block> |
||
104 | </fo:static-content> |
||
105 | <fo:static-content flow-name="footer"> |
||
1551 | jmachado | 106 | <xsl:call-template name="footerDefault"/> |
1549 | jmachado | 107 | </fo:static-content> |
108 | |||
109 | |||
110 | <fo:flow flow-name="body"> |
||
1551 | jmachado | 111 | <fo:block border-bottom="8px solid #58585A" border-top="4px solid #58585A" font-size="26px" padding="6px" text-align="center" color="white" background-color="#FFCA44"> |
1549 | jmachado | 112 | <fo:inline font-weight="bold"> Relatório de Avaliação Pedagógica</fo:inline> |
113 | </fo:block> |
||
114 | |||
115 | <fo:block font-size="20px" padding="4px" margin-top="40px" text-align="center" > |
||
116 | <fo:inline text-decoration="underline" font-weight="bold">Inquéritos Pedagógicos aos Alunos</fo:inline> |
||
117 | </fo:block> |
||
118 | |||
1551 | jmachado | 119 | <fo:block font-size="18px" padding="4px" margin-top="20px" text-align="center"> |
1549 | jmachado | 120 | <fo:inline>Relatório Docente</fo:inline> |
121 | </fo:block> |
||
122 | |||
1551 | jmachado | 123 | <fo:block font-size="14px" padding="4px" margin-top="5px" text-align="center" background-color="#fff9ea"> |
1549 | jmachado | 124 | <xsl:value-of select="$nomeDocente"/> |
125 | </fo:block> |
||
126 | <fo:block font-size="12px" padding="4px" margin-top="2px" text-align="center"> |
||
127 | <fo:inline>Docente Número: <xsl:value-of select="$numeroDocente"/></fo:inline> |
||
128 | </fo:block> |
||
129 | <fo:block font-size="12px" padding="4px" margin-top="20px" text-align="center" > |
||
1551 | jmachado | 130 | <fo:inline><fo:wrapper white-space-treatment="preserve" font-weight="bold">Ano letivo: </fo:wrapper> <xsl:value-of select="$anoLectivo"/></fo:inline> |
1549 | jmachado | 131 | </fo:block> |
132 | </fo:flow> |
||
133 | </xsl:template> |
||
134 | |||
1551 | jmachado | 135 | <xsl:template name="indexPage"> |
136 | <fo:static-content flow-name="header"> |
||
137 | <xsl:call-template name="headerTeacher"/> |
||
138 | </fo:static-content> |
||
139 | <fo:static-content flow-name="footer"> |
||
140 | <xsl:call-template name="footerDefault"/> |
||
141 | </fo:static-content> |
||
142 | |||
143 | <fo:flow flow-name="body"> |
||
144 | |||
145 | <fo:block font-size="20px" padding="4px" margin-top="40px" text-align="center" > |
||
146 | <fo:inline text-decoration="underline" font-weight="bold">Indice</fo:inline> |
||
147 | </fo:block> |
||
148 | |||
149 | |||
150 | <fo:block text-align-last="justify" font-weight="bold" margin-bottom="5px"> |
||
151 | <xsl:text> </xsl:text> |
||
152 | <fo:leader/> |
||
153 | Pag. |
||
154 | </fo:block> |
||
155 | |||
156 | <fo:block font-size="14px" text-align-last="justify"> |
||
157 | <fo:basic-link internal-destination="caracterizacaoCap"> |
||
158 | <fo:inline font-weight="bold" padding-top="3px" padding-bottom="2px" padding-left="3px" padding-right="3px" margin-right="10px" border-bottom="1px solid #58585A" font-size="16px" color="white" background-color="#FFCA44">1</fo:inline> |
||
159 | <xsl:text> </xsl:text> |
||
160 | Caracterização dos Alunos |
||
161 | <fo:leader leader-pattern="dots" /> |
||
162 | <fo:page-number-citation ref-id="caracterizacaoCap" /> |
||
163 | </fo:basic-link> |
||
164 | </fo:block> |
||
165 | <fo:block font-size="14px" text-align-last="justify" margin-top="5px"> |
||
166 | <fo:basic-link internal-destination="TESTE"> |
||
167 | <fo:inline font-weight="bold" padding-top="3px" padding-bottom="2px" padding-left="3px" padding-right="3px" margin-right="10px" border-bottom="1px solid #58585A" font-size="16px" color="white" background-color="#FFCA44">2</fo:inline> |
||
168 | <xsl:text> </xsl:text> |
||
169 | Analise Global de Respostas |
||
170 | <fo:leader leader-pattern="dots" /> |
||
171 | <fo:page-number-citation ref-id="caracterizacaoCap" /> |
||
172 | </fo:basic-link> |
||
173 | </fo:block> |
||
174 | |||
175 | |||
176 | </fo:flow> |
||
177 | </xsl:template> |
||
178 | |||
179 | |||
1549 | jmachado | 180 | <xsl:template name="page"> |
181 | <fo:static-content flow-name="header"> |
||
1551 | jmachado | 182 | <xsl:call-template name="headerTeacher"/> |
183 | </fo:static-content> |
||
184 | <fo:static-content flow-name="footer"> |
||
185 | <xsl:call-template name="footerDefault"/> |
||
186 | </fo:static-content> |
||
1549 | jmachado | 187 | |
1551 | jmachado | 188 | <fo:flow flow-name="body"> |
189 | <fo:block id="caracterizacaoCap" font-size="14px" font-weight="bold" padding="4px" margin-top="5px" text-align="left" background-color="#FFEAAE"> |
||
190 | 1 - Caracterização dos Alunos |
||
191 | </fo:block> |
||
192 | |||
193 | <fo:block text-align="center" margin-left="10px"> |
||
194 | <fo:table width="100%" table-layout="fixed"> |
||
1549 | jmachado | 195 | <fo:table-column column-width="50%"/> |
196 | <fo:table-column column-width="50%"/> |
||
197 | <fo:table-body> |
||
198 | <fo:table-row> |
||
199 | <fo:table-cell> |
||
200 | <fo:block> |
||
201 | |||
1551 | jmachado | 202 | |
203 | <fo:block font-size="10px" padding-top="1px" padding-left="1px" margin-top="10px" text-align="left" background-color="#C6C6CA"> |
||
204 | Género |
||
205 | </fo:block> |
||
206 | |||
207 | <fo:table width="90%" table-layout="fixed" margin-top="5px"> |
||
208 | <fo:table-column column-width="50%"/> |
||
209 | <fo:table-column column-width="50%"/> |
||
210 | <fo:table-body> |
||
211 | <fo:table-row> |
||
212 | <fo:table-cell> |
||
213 | <fo:block> |
||
214 | <xsl:value-of select="//rep:caracterizacao//rep:masculino"/> |
||
215 | </fo:block> |
||
216 | <fo:block> |
||
217 | <fo:external-graphic height="auto" width="auto" |
||
218 | content-height="80"> |
||
219 | <!--<xsl:attribute name="src">url('http://www.ipportalegre.pt/imagens/Logos/ESTG/Logotipo%20ESTG.jpg')</xsl:attribute>--> |
||
220 | <xsl:attribute name="src">url('<xsl:value-of select="$site"/>/imgs/studentMale.png') |
||
221 | </xsl:attribute> |
||
222 | </fo:external-graphic> |
||
223 | </fo:block> |
||
224 | <fo:block> |
||
225 | <xsl:value-of select="//rep:caracterizacao//rep:masculinoPercent"/>% |
||
226 | </fo:block> |
||
227 | </fo:table-cell> |
||
228 | <fo:table-cell> |
||
229 | <fo:block> |
||
230 | <xsl:value-of select="//rep:caracterizacao//rep:feminino"/> |
||
231 | </fo:block> |
||
232 | <fo:block> |
||
233 | <fo:external-graphic height="auto" width="auto" |
||
234 | content-height="80"> |
||
235 | <!--<xsl:attribute name="src">url('http://www.ipportalegre.pt/imagens/Logos/ESTG/Logotipo%20ESTG.jpg')</xsl:attribute>--> |
||
236 | <xsl:attribute name="src">url('<xsl:value-of select="$site"/>/imgs/studentFemale.png') |
||
237 | </xsl:attribute> |
||
238 | </fo:external-graphic> |
||
239 | </fo:block> |
||
240 | <fo:block> |
||
241 | <xsl:value-of select="//rep:caracterizacao//rep:femininoPercent"/>% |
||
242 | </fo:block> |
||
243 | </fo:table-cell> |
||
244 | |||
245 | </fo:table-row> |
||
246 | |||
247 | </fo:table-body> |
||
248 | </fo:table> |
||
249 | |||
250 | |||
251 | |||
1549 | jmachado | 252 | </fo:block> |
253 | </fo:table-cell> |
||
254 | <fo:table-cell> |
||
1551 | jmachado | 255 | <fo:block> |
256 | <fo:external-graphic height="auto" width="auto" |
||
257 | content-height="80"> |
||
258 | <!--<xsl:attribute name="src">url('http://www.ipportalegre.pt/imagens/Logos/ESTG/Logotipo%20ESTG.jpg')</xsl:attribute>--> |
||
259 | <xsl:attribute name="src">/Volumes/Home/jorgemachado/Documents/teste.png</xsl:attribute> |
||
260 | </fo:external-graphic> |
||
1549 | jmachado | 261 | </fo:block> |
262 | </fo:table-cell> |
||
263 | |||
264 | </fo:table-row> |
||
265 | |||
266 | </fo:table-body> |
||
267 | </fo:table> |
||
268 | |||
269 | </fo:block> |
||
1551 | jmachado | 270 | </fo:flow> |
271 | </xsl:template> |
||
1549 | jmachado | 272 | |
273 | |||
1551 | jmachado | 274 | <xsl:template name="footerDefault"> |
275 | <fo:table width="100%" table-layout="fixed" border-top="1px solid black" font-size="6.5pt"> |
||
276 | <fo:table-column column-width="20%"/> |
||
277 | <fo:table-column column-width="80%"/> |
||
1549 | jmachado | 278 | |
279 | |||
1551 | jmachado | 280 | <fo:table-body> |
281 | <fo:table-row> |
||
282 | <fo:table-cell padding-top="3pt"> |
||
283 | <fo:block> |
||
284 | Atualizado a |
||
285 | <xsl:value-of select="//updateDate"/> / Página |
||
286 | <fo:page-number/> |
||
287 | </fo:block> |
||
288 | <fo:block font-size="5pt"> |
||
289 | IPP.AC.xxxx.1 |
||
290 | </fo:block> |
||
291 | |||
292 | </fo:table-cell> |
||
293 | <fo:table-cell padding-top="3pt"> |
||
294 | <fo:block font-size="6pt" text-align="right"> |
||
295 | http://pae.ipportalegre.pt | gerado pela plataforma ipp-pae® 2016 |
||
296 | </fo:block> |
||
297 | </fo:table-cell> |
||
298 | </fo:table-row> |
||
299 | </fo:table-body> |
||
300 | </fo:table> |
||
301 | </xsl:template> |
||
302 | <xsl:template name="headerTeacher"> |
||
303 | <fo:block text-align="left" border-bottom="1px solid #58585A"> |
||
304 | <fo:table width="100%" table-layout="fixed" > |
||
1549 | jmachado | 305 | <fo:table-column column-width="80%"/> |
1551 | jmachado | 306 | <fo:table-column column-width="20%"/> |
1549 | jmachado | 307 | |
308 | |||
309 | <fo:table-body> |
||
310 | <fo:table-row> |
||
1551 | jmachado | 311 | <fo:table-cell> |
1549 | jmachado | 312 | <fo:block> |
1551 | jmachado | 313 | <fo:external-graphic height="auto" width="auto" |
314 | content-height="40"> |
||
315 | <!--<xsl:attribute name="src">url('http://www.ipportalegre.pt/imagens/Logos/ESTG/Logotipo%20ESTG.jpg')</xsl:attribute>--> |
||
316 | <xsl:attribute name="src">url('<xsl:value-of select="$site"/>/layout/themes/ipp/logo.png') |
||
317 | </xsl:attribute> |
||
318 | </fo:external-graphic> |
||
1549 | jmachado | 319 | </fo:block> |
1551 | jmachado | 320 | <fo:block font-size="10px" padding="0px" text-align="left"> |
321 | <fo:inline font-weight="bold"> Relatório de Avaliação Pedagógica</fo:inline> |
||
1549 | jmachado | 322 | </fo:block> |
1551 | jmachado | 323 | <fo:block font-size="10px" padding="0px" margin-top="0px" text-align="left" > |
324 | <fo:inline>Avaliação pelos alunos do docente:</fo:inline> |
||
325 | </fo:block> |
||
326 | </fo:table-cell> |
||
327 | <fo:table-cell> |
||
328 | <fo:block font-size="10px" text-align="right" > |
||
329 | Resultados dos Inquéritos Pedagógicos |
||
330 | </fo:block> |
||
331 | <fo:block font-size="10px" padding="0px" margin-top="0px" text-align="right" > |
||
332 | <fo:inline font-weight="bold">Ano letivo:</fo:inline> <xsl:value-of select="$anoLectivo"/> |
||
333 | </fo:block> |
||
334 | </fo:table-cell> |
||
1549 | jmachado | 335 | |
1551 | jmachado | 336 | </fo:table-row> |
337 | <fo:table-row background-color="#fff9ea"> |
||
338 | <fo:table-cell> |
||
339 | <fo:block font-size="12px" padding="2px" margin-top="0px" > |
||
340 | <fo:inline text-align="left"><xsl:value-of select="$nomeDocente"/> / Número: <xsl:value-of select="$numeroDocente"/></fo:inline> |
||
341 | </fo:block> |
||
1549 | jmachado | 342 | </fo:table-cell> |
1551 | jmachado | 343 | <fo:table-cell> |
344 | <fo:block font-size="12px" padding="2px" margin-top="0px" text-align="right" > |
||
345 | <fo:inline>Pagina: <fo:page-number/></fo:inline> |
||
1549 | jmachado | 346 | </fo:block> |
347 | </fo:table-cell> |
||
1551 | jmachado | 348 | |
1549 | jmachado | 349 | </fo:table-row> |
1551 | jmachado | 350 | |
1549 | jmachado | 351 | </fo:table-body> |
352 | </fo:table> |
||
353 | |||
354 | |||
355 | |||
356 | |||
1551 | jmachado | 357 | </fo:block> |
1549 | jmachado | 358 | </xsl:template> |
359 | |||
360 | |||
361 | |||
362 | </xsl:stylesheet> |