Subversion Repositories bacoAlunos

Rev

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

<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0" xmlns:fo="http://www.w3.org/1999/XSL/Format"
               xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
               xmlns:uc="http://baco.estgp.pt/schemas/courseunits/program/">
    <xsl:param name="site">http://localhost/bacoTESTE</xsl:param>
    <xsl:param name="revisor">automático</xsl:param>
    <xsl:param name="validadoCC">false</xsl:param>
    <xsl:template match="/">
        <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
            <fo:layout-master-set>
                <fo:simple-page-master master-name="A4Vertical" page-width="210mm" page-height="297mm"
                                      margin-top="1cm" margin-bottom="1cm" margin-left="1cm" margin-right="1cm"
                                      reference-orientation="0">
                    <fo:region-body region-name="body" margin-top="20mm" margin-bottom="10mm" margin-right="0"
                                   margin-left="0"/>

                    <fo:region-before region-name="header" extent="15mm"/>
                    <fo:region-after region-name="footer" extent="1cm"/>
                </fo:simple-page-master>
                <fo:simple-page-master master-name="A4HorizontalRot" page-width="210mm" page-height="297mm"
                                      margin-top="0.5cm" margin-bottom="0.5cm" margin-left="0.5cm" margin-right="0.5cm"
                                      reference-orientation="90">
                    <fo:region-body region-name="body" margin-top="20mm" margin-bottom="10mm" margin-right="0"
                                   margin-left="0"/>
                    <fo:region-before region-name="header" extent="15mm"/>
                    <fo:region-after region-name="footer" extent="1cm"/>
                </fo:simple-page-master>
                <fo:simple-page-master master-name="A4Horizontal" page-width="297mm" page-height="210mm"
                                      margin-top="0.5cm" margin-bottom="0.5cm" margin-left="0.5cm"
                                      margin-right="0.5cm">
                    <fo:region-body region-name="body" margin-top="20mm" margin-bottom="15mm" margin-right="0"
                                   margin-left="0"/>
                    <fo:region-before region-name="header" extent="15mm"/>
                    <fo:region-after region-name="footer" extent="1cm"/>
                </fo:simple-page-master>
                <fo:page-sequence-master master-name="pages">
                    <fo:repeatable-page-master-alternatives>
                        <fo:conditional-page-master-reference master-reference="pages" page-position="any"/>
                    </fo:repeatable-page-master-alternatives>
                </fo:page-sequence-master>
            </fo:layout-master-set>

            <!--LAYOUT DE PAGINA ESCOLHIDO-->
            <fo:page-sequence master-reference="A4Vertical" initial-page-number="auto">
                <xsl:call-template name="page"/>
            </fo:page-sequence>


        </fo:root>
    </xsl:template>


    <xsl:template name="page">
        <fo:static-content flow-name="header">

            <fo:block text-align="left" >
                <fo:table width="100%" table-layout="fixed" border-bottom="1px solid black">
                    <fo:table-column column-width="100%"/>


                    <fo:table-body>
                        <fo:table-row>
                            <fo:table-cell >
                                <fo:block>
                                    <fo:external-graphic height="auto" width="auto"
                                                        content-height="30">
                                        <!--<xsl:attribute name="src">url('http://www.ipportalegre.pt/imagens/Logos/ESTG/Logotipo%20ESTG.jpg')</xsl:attribute>-->
                                        <xsl:attribute name="src">url('<xsl:value-of select="$site"/>/imgs/logoestg.gif')</xsl:attribute>
                                    </fo:external-graphic>
                                </fo:block>
                                <xsl:if test="//closed = 'false'">
                                    <fo:block font-size="20pt">
                                        (Este documento não está fechado)
                                    </fo:block>
                                </xsl:if>
                                <xsl:if test="//closed = 'true'">
                                    <fo:block font-size="20pt">
                                        Relatório de avaliação curricular <xsl:value-of select="//anoLectivo"/>
                                    </fo:block>
                                </xsl:if>
                            </fo:table-cell>

                        </fo:table-row>

                    </fo:table-body>
                </fo:table>

            </fo:block>


        </fo:static-content>
        <fo:static-content flow-name="footer">

            <fo:table width="100%" table-layout="fixed"  border-top="1px solid black" font-size="6.5pt" >
                <fo:table-column column-width="20%"/>
                <fo:table-column column-width="80%"  />


                <fo:table-body>
                    <fo:table-row>
                        <fo:table-cell  padding-top="3pt">
                            <fo:block >
                               Revisto a <xsl:value-of select="//updateDate"/> por <xsl:value-of select="$revisor"/> / Página <fo:page-number/>
                            </fo:block>
                            <fo:block font-size="5pt">
                                ESTG.SA.xxxx.1
                            </fo:block>

                        </fo:table-cell>
                        <fo:table-cell padding-top="3pt" >
                            <fo:block font-size="6pt" text-align="right">
                                http://www.estgp.pt | gerado pela plataforma baco® 2015
                            </fo:block>
                        </fo:table-cell>
                    </fo:table-row>
                </fo:table-body>
            </fo:table>
        </fo:static-content>

        <fo:flow flow-name="body">
            <fo:block>
                <xsl:apply-templates select="/CourseUnitEvaluation"/>
            </fo:block>
        </fo:flow>
    </xsl:template>

    <xsl:template match="/CourseUnitEvaluation">

        <fo:table table-layout="fixed" border="0px solid black" margin="0.5em" font-size="8.5pt">
            <xsl:call-template name="gen_cols"/>
            <fo:table-body text-align="left">

                <xsl:call-template name="gen_header"/>

                <xsl:call-template name="gen_line"/>

            </fo:table-body>
        </fo:table>
    </xsl:template>

    <xsl:template name="gen_cols">
        <fo:table-column column-width="15em"  />
        <fo:table-column/>
    </xsl:template>




    <xsl:template name="gen_header">

    </xsl:template>








    <xsl:attribute-set name="myBorder">
        <xsl:attribute name="border">solid 0.2mm black</xsl:attribute>
    </xsl:attribute-set>

    <xsl:template name="gen_line">

        <fo:table-row background-color="#FFF" color="#000" padding="0">
            <fo:table-cell border-right="1px solid gray"  border-bottom="1px solid gray" display-align="center"  >
                <fo:block text-align="right" padding="3pt" font-weight="bold">
                Ano Lectivo
                </fo:block>
            </fo:table-cell>
            <fo:table-cell border-right="1px solid gray"  border-bottom="1px solid gray" display-align="center"  >
                <fo:block >
                <xsl:value-of select="//anoLectivo"/>
                </fo:block>
            </fo:table-cell>
        </fo:table-row>
        <fo:table-row background-color="#FFF" color="#000" padding="0">
            <fo:table-cell border-right="1px solid gray"  border-bottom="1px solid gray" display-align="center"  >
                <fo:block text-align="right" padding="3pt" font-weight="bold">
                Curso
                </fo:block>
            </fo:table-cell>
            <fo:table-cell border-right="1px solid gray"  border-bottom="1px solid gray" display-align="center"  >
                <fo:block >
                <xsl:value-of select="//curso/nome"/> / <xsl:value-of select="//curso/codigo"/>
                </fo:block>
            </fo:table-cell>
        </fo:table-row>
        <fo:table-row background-color="#FFF" color="#000" padding="0">
            <fo:table-cell border-right="1px solid gray"  border-bottom="1px solid gray" display-align="center"  >
                <fo:block text-align="right" padding="3pt" font-weight="bold">
                Unidade Curricular
                </fo:block>
            </fo:table-cell>
            <fo:table-cell border-right="1px solid gray"  border-bottom="1px solid gray" display-align="center"  >
                <fo:block >
                <xsl:value-of select="//unidadecurricular/nome"/> / <xsl:value-of select="//unidadecurricular/codigo"/>
                </fo:block>
            </fo:table-cell>
        </fo:table-row>
        <fo:table-row background-color="#FFF" color="#000" padding="0">
            <fo:table-cell border-right="1px solid gray"  border-bottom="1px solid gray" display-align="center"  >
                <fo:block text-align="right" padding="3pt" font-weight="bold">
                Professor Responsável
                </fo:block>
            </fo:table-cell>
            <fo:table-cell border-right="1px solid gray"  border-bottom="1px solid gray" display-align="center"  >
                <fo:block >
                <xsl:value-of select="//responsavel/nome"/> / <xsl:value-of select="//responsavel/email"/>
                </fo:block >
            </fo:table-cell>
        </fo:table-row>
        <xsl:for-each select="//docente">
            <fo:table-row background-color="#FFF" color="#000" padding="0">
                <fo:table-cell border-right="1px solid gray"  border-bottom="1px solid gray" display-align="center"  >
                    <fo:block text-align="right" padding="3pt" font-weight="bold">
                    Docente
                    </fo:block>
                </fo:table-cell>
                <fo:table-cell border-right="1px solid gray"  border-bottom="1px solid gray" display-align="center"  >
                    <fo:block >
                    <xsl:value-of select="./nome"/> / <xsl:value-of select="./email"/>
                    </fo:block>
                </fo:table-cell>
            </fo:table-row>
        </xsl:for-each>

        <fo:table-row background-color="#FFF" color="#000" padding="0">

            <fo:table-cell border-right="1px solid gray"  border-bottom="1px solid gray" display-align="center"  >
                <fo:block text-align="right" padding="3pt" font-weight="bold">
                    Dados relativos ao processo de avaliação
                </fo:block>
            </fo:table-cell>

            <fo:table-cell border-bottom="1px solid gray" padding="0" padding-top="5px" padding-bottom="5px" padding-left="0mm" display-align="center">


                <fo:table margin="0" margin-left="0mm"  border="0px solid black" font-size="5.5pt" >
                    <fo:table-column/>
                    <fo:table-column/>
                    <fo:table-column/>
                    <fo:table-column/>
                    <fo:table-column/>
                    <fo:table-column/>
                    <fo:table-column/>
                    <fo:table-column/>
                    <fo:table-column/>
                    <fo:table-column/>
                    <fo:table-body>
                        <fo:table-row>
                            <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>
                            <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>

                            <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>

                            <fo:table-cell xsl:use-attribute-sets="myBorder" number-rows-spanned="2" padding-top="3pt"><fo:block > Aprovados com a classificação entre 10 e 13 valores (%) </fo:block> </fo:table-cell>
                            <fo:table-cell xsl:use-attribute-sets="myBorder" number-rows-spanned="2" padding-top="3pt"><fo:block > Aprovados com a classificação entre 14 e 16 valores (%) </fo:block> </fo:table-cell>
                            <fo:table-cell xsl:use-attribute-sets="myBorder" number-rows-spanned="2" padding-top="3pt"><fo:block > Aprovados com a classificação entre 17 e 20 valores (%) </fo:block> </fo:table-cell>
                        </fo:table-row>
                        <fo:table-row>
                            <fo:table-cell xsl:use-attribute-sets="myBorder" padding-top="3pt"><fo:block > Avaliação de frequência </fo:block> </fo:table-cell>
                            <fo:table-cell xsl:use-attribute-sets="myBorder" padding-top="3pt"><fo:block > Exame Época Normal </fo:block> </fo:table-cell>
                            <fo:table-cell xsl:use-attribute-sets="myBorder" padding-top="3pt"><fo:block > Exame Época Recurso </fo:block> </fo:table-cell>
                            <fo:table-cell xsl:use-attribute-sets="myBorder" padding-top="3pt"><fo:block > Exame Época Especial </fo:block> </fo:table-cell>
                            <fo:table-cell xsl:use-attribute-sets="myBorder" padding-top="3pt"><fo:block > Total </fo:block> </fo:table-cell>

                        </fo:table-row>
                        <fo:table-row>
                            <fo:table-cell xsl:use-attribute-sets="myBorder"  padding-top="3pt"><fo:block > <xsl:value-of select="//numAlunosInscritos"/> </fo:block> </fo:table-cell>
                            <fo:table-cell xsl:use-attribute-sets="myBorder" padding-top="3pt"><fo:block > <xsl:value-of select="//numAlunosSemElementosAvaliacao"/> </fo:block> </fo:table-cell>

                            <fo:table-cell xsl:use-attribute-sets="myBorder" padding-top="3pt"><fo:block > <xsl:value-of select="//numAlunosAprovFrequencia"/> </fo:block> </fo:table-cell>
                            <fo:table-cell xsl:use-attribute-sets="myBorder" padding-top="3pt"><fo:block > <xsl:value-of select="//numAlunosAprovNormal"/> </fo:block> </fo:table-cell>
                            <fo:table-cell xsl:use-attribute-sets="myBorder" padding-top="3pt"><fo:block > <xsl:value-of select="//numAlunosAprovRecurso"/> </fo:block> </fo:table-cell>
                            <fo:table-cell xsl:use-attribute-sets="myBorder" padding-top="3pt"><fo:block > <xsl:value-of select="//numAlunosAprovEspecial"/> </fo:block> </fo:table-cell>
                            <fo:table-cell xsl:use-attribute-sets="myBorder" padding-top="3pt"><fo:block > <xsl:value-of select="//numAlunosAprovTotal"/> </fo:block> </fo:table-cell>

                            <fo:table-cell xsl:use-attribute-sets="myBorder" padding-top="3pt"><fo:block > <xsl:value-of select="//numAlunosAprov1013"/> </fo:block> </fo:table-cell>
                            <fo:table-cell xsl:use-attribute-sets="myBorder" padding-top="3pt"><fo:block > <xsl:value-of select="//numAlunosAprov1416"/> </fo:block> </fo:table-cell>
                            <fo:table-cell xsl:use-attribute-sets="myBorder" padding-top="3pt"><fo:block > <xsl:value-of select="//numAlunosAprov1720"/> </fo:block> </fo:table-cell>

                        </fo:table-row>
                    </fo:table-body>
                </fo:table>


            </fo:table-cell>



        </fo:table-row>

        <fo:table-row background-color="#FFF" color="#000">
            <fo:table-cell border-bottom="1px solid gray" border-right="1px solid gray" padding-right="0.1em" display-align="center">
                <fo:block text-align="center" font-weight="bold">Auto-avaliação</fo:block>
            </fo:table-cell>
            <fo:table-cell border-bottom="1px solid gray" display-align="center" padding="5px">


                <fo:table margin="0" margin-left="0mm"  border="0px solid black" font-size="5.5pt" >
                    <fo:table-column column-width="20%"/>
                    <fo:table-column/>
                    <fo:table-body>
                        <fo:table-row>
                            <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>
                            <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>
                        </fo:table-row>
                        <fo:table-row>
                            <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>
                            <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>
                        </fo:table-row>
                        <fo:table-row>
                            <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>
                            <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>
                        </fo:table-row>
                        <fo:table-row>
                            <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>
                            <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>
                        </fo:table-row>
                    </fo:table-body>
                </fo:table>


            </fo:table-cell>
        </fo:table-row>


    </xsl:template>







</xsl:stylesheet>