160,7 → 160,7 |
<fo:basic-link internal-destination="capParticipacao"> |
<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> |
<xsl:text> </xsl:text> |
Participação nos Questionários do Docente |
Participação nos questionários do docente |
<fo:leader leader-pattern="dots" /> |
<fo:page-number-citation ref-id="capParticipacao" /> |
</fo:basic-link> |
169,32 → 169,43 |
<fo:basic-link internal-destination="capCaracterizacao"> |
<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> |
<xsl:text> </xsl:text> |
Caracterização da Amostra |
Caracterização da qmostra |
<fo:leader leader-pattern="dots" /> |
<fo:page-number-citation ref-id="capCaracterizacao" /> |
</fo:basic-link> |
</fo:block> |
<fo:block font-size="14px" text-align-last="justify" margin-top="5px"> |
<fo:basic-link internal-destination="capQuestoes"> |
<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> |
<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">3</fo:inline> |
<xsl:text> </xsl:text> |
Análise das Questões sobre o Docente |
Análise das questões sobre o docente |
<fo:leader leader-pattern="dots" /> |
<fo:page-number-citation ref-id="capQuestoes" /> |
</fo:basic-link> |
</fo:block> |
<fo:block font-size="14px" text-align-last="justify" margin-top="5px"> |
<fo:basic-link internal-destination="capQuestoesUnidades"> |
<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">4</fo:inline> |
<xsl:text> </xsl:text> |
Análise das questões relativas ao grupo unidade para as unidades do docente |
<fo:leader leader-pattern="dots" /> |
<fo:page-number-citation ref-id="capQuestoesUnidades" /> |
</fo:basic-link> |
</fo:block> |
|
|
|
</fo:flow> |
</xsl:template> |
|
<xsl:template name="seccao"> |
<xsl:param name="text"/> |
<xsl:param name="marginTop">5px</xsl:param> |
<fo:block |
font-size="16px" |
font-weight="bold" |
padding="4px" |
margin-top="5px" |
margin-top="{$marginTop}" |
text-align="left" |
background-color="#FFEAAE"> |
<xsl:value-of select="$text"/> |
203,11 → 214,12 |
|
<xsl:template name="subSeccao"> |
<xsl:param name="text"/> |
<xsl:param name="marginTop">15px</xsl:param> |
<fo:block font-size="13px" |
padding-top="3px" |
padding-bottom="3px" |
padding-left="5px" |
margin-top="30px" |
margin-top="{$marginTop}" |
margin-bottom="20px" |
text-align="left" |
background-color="#D6D9BC"> |
215,6 → 227,20 |
</fo:block> |
</xsl:template> |
|
<xsl:template name="subSubSeccao"> |
<xsl:param name="text"/> |
<fo:block font-size="8px" |
padding-top="0" |
padding-bottom="0" |
padding-left="25px" |
margin-top="0" |
margin-bottom="5px" |
text-align="left" |
font-weight="bold"> |
<xsl:value-of select="$text"/> |
</fo:block> |
</xsl:template> |
|
<xsl:template name="page"> |
<fo:static-content flow-name="header"> |
<xsl:call-template name="headerTeacher"/> |
227,11 → 253,10 |
<fo:block-container padding="0" margin="0" id="capParticipacao" page-break-before="always"> |
<xsl:call-template name="seccao"> |
<xsl:with-param name="text">1 - Participação</xsl:with-param> |
<xsl:with-param name="marginTop">0</xsl:with-param> |
</xsl:call-template> |
</fo:block-container> |
|
|
|
<xsl:call-template name="subSeccao"> |
<xsl:with-param name="text">Taxa Global de Participação aos Questionários do Docente</xsl:with-param> |
</xsl:call-template> |
295,7 → 320,9 |
</xsl:with-param> |
</xsl:call-template> |
<fo:block text-align="center" margin-left="10px" font-size="10" font-weight="normal" margin-right="10px"> |
<xsl:apply-templates select="//tabelaTaxaRespostaUnidade" mode="DataTable"/> |
<xsl:apply-templates select="//tabelaTaxaRespostaUnidade" mode="DataTable"> |
<xsl:with-param name="firstColPercentSize">60%</xsl:with-param> |
</xsl:apply-templates> |
</fo:block> |
</fo:table-cell> |
</fo:table-row> |
306,9 → 333,8 |
|
<fo:block-container page-break-before="always" padding="0" margin="0" id="capCaracterizacao"> |
<xsl:call-template name="seccao"> |
<xsl:with-param name="text"> |
2 - Caracterização da Amostra Recolhida |
</xsl:with-param> |
<xsl:with-param name="text">2 - Caracterização da Amostra Recolhida</xsl:with-param> |
<xsl:with-param name="marginTop">0</xsl:with-param> |
</xsl:call-template> |
</fo:block-container> |
|
425,7 → 451,9 |
|
|
<fo:block text-align="center" margin-left="10px" font-size="10" font-weight="normal" margin-right="10px"> |
<xsl:apply-templates select="//tabelaDistritos" mode="DataTable"/> |
<xsl:apply-templates select="//tabelaDistritos" mode="DataTable"> |
<xsl:with-param name="firstColPercentSize">30%</xsl:with-param> |
</xsl:apply-templates> |
</fo:block> |
|
</fo:table-cell> |
441,32 → 469,330 |
<fo:block-container padding="0" margin="0" id="capQuestoes" page-break-before="always"> |
<xsl:call-template name="seccao"> |
<xsl:with-param name="text">3 - Análise das Questões sobre o Docente</xsl:with-param> |
<xsl:with-param name="marginTop">0</xsl:with-param> |
</xsl:call-template> |
</fo:block-container> |
|
<xsl:call-template name="subSeccao"> |
<xsl:with-param name="text">3.1 - Gráficos de respostas agregadas de todas as unidades do docente</xsl:with-param> |
</xsl:call-template> |
|
<xsl:apply-templates select="//respostasAgregadasCharts/respostasChartsRow" mode="graficosPerguntas"/> |
|
<fo:block-container padding="0" margin="0" page-break-before="always"> |
<xsl:call-template name="subSeccao"> |
<xsl:with-param name="text">3.2 - Tabela de respostas agregadas de todas as unidades do docente</xsl:with-param> |
<xsl:with-param name="marginTop">0</xsl:with-param> |
</xsl:call-template> |
</fo:block-container> |
<fo:block text-align="center" margin="0" font-size="10" font-weight="normal" > |
<xsl:apply-templates select="//respostasTable" mode="DataTable"> |
<xsl:with-param name="firstColPercentSize">40%</xsl:with-param> |
</xsl:apply-templates> |
</fo:block> |
<fo:block text-align="right" margin-top="10px" margin-left="10px" font-size="6.5pt" font-weight="normal" margin-right="10px"> |
Docentes avaliados nos cursos onde o docente leciona: <xsl:value-of select="//docentesNosCursos"/> |
</fo:block> |
<fo:block text-align="right" margin-left="10px" font-size="6.5pt" font-weight="normal" margin-right="10px"> |
Docentes avaliados nas escolas onde o docente leciona: <xsl:value-of select="//docentesNasEscolas"/> |
</fo:block> |
|
<fo:block-container margin-top="5px" margin-bottom="5px"> |
<xsl:apply-templates select="//mediasGrupoDocente" mode="mediasGrupo"> |
<xsl:with-param name="objetoAvaliacao">do docente</xsl:with-param> |
</xsl:apply-templates> |
</fo:block-container> |
|
<!--Considerando Respostas Superiores a 2 segindos--> |
<fo:block-container background-color="#aaaaaa" padding="5px" margin="0" margin-top="10px"> |
<fo:block-container padding="0" margin="0"> |
<xsl:call-template name="subSubSeccao"> |
<xsl:with-param name="text">Considerando apenas respostas de tempo superior a 2 segundos (Estes dados são apenas para efeitos de comparação)</xsl:with-param> |
</xsl:call-template> |
</fo:block-container> |
|
<fo:block text-align="center" margin-left="10px" font-size="10" font-weight="normal" margin-right="10px"> |
<xsl:apply-templates select="//respostasTableGt2Secs" mode="DataTable"> |
<xsl:with-param name="firstColPercentSize">40%</xsl:with-param> |
</xsl:apply-templates> |
</fo:block> |
</fo:block-container> |
|
|
|
|
|
<!--#######################################--> |
<!-- RESPOSTAS AGREGADAS DAS UNIDADES CURRICULARES --> |
|
<fo:block-container padding="0" margin="0" id="capQuestoesUnidades" page-break-before="always"> |
<xsl:call-template name="seccao"> |
<xsl:with-param name="text">4 - Análise das questões relativas ao grupo unidade para as unidades do docente</xsl:with-param> |
<xsl:with-param name="marginTop">0</xsl:with-param> |
</xsl:call-template> |
</fo:block-container> |
|
<xsl:call-template name="subSeccao"> |
<xsl:with-param name="text">4.1 - Gráficos de respostas agregadas de todas as unidades</xsl:with-param> |
</xsl:call-template> |
|
<xsl:apply-templates select="//respostasAgregadasUnidadesCharts/respostasChartsRow" mode="graficosPerguntas"/> |
|
|
<fo:block-container padding="0" margin="0" page-break-before="always"> |
<xsl:call-template name="subSeccao"> |
<xsl:with-param name="text">4.2 - Tabela de respostas agregadas de todas as unidades do docente</xsl:with-param> |
<xsl:with-param name="marginTop">0</xsl:with-param> |
</xsl:call-template> |
</fo:block-container> |
|
<fo:block text-align="center" margin="0" font-size="10" font-weight="normal" > |
<xsl:apply-templates select="//respostasUnidadesTable" mode="DataTable"> |
<xsl:with-param name="firstColPercentSize">40%</xsl:with-param> |
</xsl:apply-templates> |
</fo:block> |
|
<fo:block text-align="right" margin-top="10px" margin-left="10px" font-size="6.5pt" font-weight="normal" margin-right="10px"> |
Unidades avaliadas nos cursos onde o docente leciona: <xsl:value-of select="//unidadesNosCursos"/> |
</fo:block> |
<fo:block text-align="right" margin-left="10px" font-size="6.5pt" font-weight="normal" margin-right="10px"> |
Unidades avaliadas nas escolas onde o docente leciona: <xsl:value-of select="//unidadesNasEscolas"/> |
</fo:block> |
|
<fo:block-container margin-top="5px" margin-bottom="5px"> |
<xsl:apply-templates select="//mediasGrupoUnidades" mode="mediasGrupo"> |
<xsl:with-param name="objetoAvaliacao">das unidades</xsl:with-param> |
</xsl:apply-templates> |
</fo:block-container> |
|
</fo:flow> |
</xsl:template> |
|
<xsl:template match="*" mode="graficosPerguntas"> |
<fo:block text-align="center" margin-left="10px"> |
<fo:table width="100%" table-layout="fixed"> |
<xsl:for-each select="./respostasChartsRow[1]/respostasChart/respostasChart"> |
<fo:table-column/> |
</xsl:for-each> |
<fo:table-body> |
<xsl:for-each select="./respostasChartsRow"> |
<fo:table-row> |
<xsl:for-each select="./respostasChart/respostasChart"> |
<fo:table-cell> |
<fo:block> |
<fo:external-graphic |
width="100%" |
content-height="100%" |
content-width="scale-to-fit" |
scaling="uniform" |
> |
<xsl:attribute name="src">url('<xsl:value-of select="./tempFile"/>') |
</xsl:attribute> |
</fo:external-graphic> |
</fo:block> |
</fo:table-cell> |
</xsl:for-each> |
</fo:table-row> |
</xsl:for-each> |
|
</fo:table-body> |
</fo:table> |
</fo:block> |
|
<fo:block-container margin-top="20px"> |
<xsl:call-template name="legendaCoresPerguntas"/> |
</fo:block-container> |
</xsl:template> |
|
<xsl:template match="*" mode="mediasGrupo"> |
<xsl:param name="objetoAvaliacao"/> |
<fo:block> |
|
<fo:table width="100%" table-layout="fixed" font-size="10pt" font-weight="normal"> |
<fo:table-column column-width="60%"/> |
<fo:table-column column-width="40%"/> |
<fo:table-body> |
<fo:table-row> |
<fo:table-cell display-align="center" text-align="center" padding-right="10px" > |
<xsl:apply-templates select="." mode="globalSmile"> |
<xsl:with-param name="objetoAvaliacao" select="$objetoAvaliacao"/> |
</xsl:apply-templates> |
</fo:table-cell> |
<fo:table-cell display-align="center" text-align="center" padding-left="10px"> |
<fo:block> |
<xsl:apply-templates select="./mediasGlobaisTable" mode="DataTable"/> |
</fo:block> |
</fo:table-cell> |
</fo:table-row> |
</fo:table-body> |
</fo:table> |
|
</fo:block> |
</xsl:template> |
|
|
|
<xsl:template match="*" mode="globalSmile"> |
<xsl:param name="objetoAvaliacao"></xsl:param> |
<fo:block> |
<fo:table width="100%" table-layout="fixed" font-size="10pt" font-weight="normal"> |
<fo:table-column column-width="30%"/> |
<fo:table-column/> |
<fo:table-column/> |
<fo:table-column/> |
<fo:table-column/> |
<fo:table-column/> |
<fo:table-body> |
<fo:table-row> |
<fo:table-cell text-align="center" > |
<fo:block> |
|
</fo:block> |
</fo:table-cell> |
<fo:table-cell text-align="center" > |
<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/questionarios/sad.png') |
</xsl:attribute> |
</fo:external-graphic> |
</fo:block> |
</fo:table-cell> |
<fo:table-cell> |
<fo:block></fo:block> |
</fo:table-cell> |
<fo:table-cell text-align="center" > |
<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/questionarios/indiferent.png') |
</xsl:attribute> |
</fo:external-graphic> |
</fo:block> |
</fo:table-cell> |
<fo:table-cell> |
<fo:block></fo:block> |
</fo:table-cell> |
<fo:table-cell text-align="center" > |
<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/questionarios/smile.png') |
</xsl:attribute> |
</fo:external-graphic> |
</fo:block> |
</fo:table-cell> |
</fo:table-row> |
<fo:table-row border="2px solid black"> |
<fo:table-cell display-align="center" background-color="{$backgroundHeader}" text-align="center" padding="2px" border="2px solid black" font-size="7pt"> |
<fo:block>Avaliação média <xsl:value-of select="$objetoAvaliacao"/> em todas as questões</fo:block> |
</fo:table-cell> |
<fo:table-cell display-align="center" text-align="center" padding="4px" border="2px solid black"> |
<xsl:if test="./avaliacaoMediaArredondada=1"> |
<xsl:attribute name="background-color"><xsl:value-of select="./colorMedia"/></xsl:attribute> |
<xsl:attribute name="font-weight">bold</xsl:attribute> |
</xsl:if> |
<fo:block>1</fo:block> |
</fo:table-cell> |
<fo:table-cell display-align="center" text-align="center" padding="4px" border="2px solid black"> |
<xsl:if test="//avaliacaoMediaArredondada=2"> |
<xsl:attribute name="background-color"><xsl:value-of select="//colorMedia"/></xsl:attribute> |
<xsl:attribute name="font-weight">bold</xsl:attribute> |
</xsl:if> |
<fo:block>2</fo:block> |
</fo:table-cell> |
<fo:table-cell display-align="center" text-align="center" padding="4px" border="2px solid black"> |
<xsl:if test="//avaliacaoMediaArredondada=3"> |
<xsl:attribute name="background-color"><xsl:value-of select="//colorMedia"/></xsl:attribute> |
<xsl:attribute name="font-weight">bold</xsl:attribute> |
</xsl:if> |
<fo:block>3</fo:block> |
</fo:table-cell> |
<fo:table-cell display-align="center" text-align="center" padding="4px" border="2px solid black"> |
<xsl:if test="//avaliacaoMediaArredondada=4"> |
<xsl:attribute name="background-color"><xsl:value-of select="//colorMedia"/></xsl:attribute> |
<xsl:attribute name="font-weight">bold</xsl:attribute> |
</xsl:if> |
<fo:block>4</fo:block> |
</fo:table-cell> |
<fo:table-cell display-align="center" text-align="center" padding="4px" border="2px solid black"> |
<xsl:if test="//avaliacaoMediaArredondada=5"> |
<xsl:attribute name="background-color"><xsl:value-of select="//colorMedia"/></xsl:attribute> |
<xsl:attribute name="font-weight">bold</xsl:attribute> |
</xsl:if> |
<fo:block>5</fo:block> |
</fo:table-cell> |
</fo:table-row> |
</fo:table-body> |
</fo:table> |
</fo:block> |
</xsl:template> |
|
<xsl:template name="legendaCoresPerguntas"> |
<fo:block> |
<fo:table width="100%" table-layout="fixed" font-size="6.5pt" font-weight="normal"> |
<fo:table-column column-width="50"/> |
<fo:table-column/> |
|
<fo:table-body> |
<fo:table-row> |
<fo:table-cell padding="2pt" number-columns-spanned="2"> |
<fo:block text-align="left" font-weight="bold">Legenda de Cores:</fo:block> |
</fo:table-cell> |
</fo:table-row> |
<fo:table-row> |
<fo:table-cell background-color="rgb(253, 11, 0)" padding="2pt"> |
<fo:block text-align="center">1</fo:block> |
</fo:table-cell> |
<fo:table-cell padding="2pt" ><fo:block>O estudante avaliou a questão como Nada Satisfeito</fo:block></fo:table-cell> |
</fo:table-row> |
<fo:table-row> |
<fo:table-cell background-color="rgb(255, 190, 0)" padding="2pt"> |
<fo:block text-align="center">2</fo:block> |
</fo:table-cell> |
<fo:table-cell padding="2pt"><fo:block>O estudante avaliou a questão como Pouco Satisfeito</fo:block></fo:table-cell> |
</fo:table-row> |
<fo:table-row> |
<fo:table-cell background-color="rgb(255, 254, 0)" padding="2pt"> |
<fo:block text-align="center">3</fo:block> |
</fo:table-cell> |
<fo:table-cell padding="2pt"><fo:block>O estudante avaliou a questão Satisfeito</fo:block></fo:table-cell> |
</fo:table-row> |
<fo:table-row> |
<fo:table-cell background-color="rgb(188, 255, 0)" padding="2pt"> |
<fo:block text-align="center">4</fo:block> |
</fo:table-cell> |
<fo:table-cell padding="2pt"><fo:block>O estudante avaliou a questão bastante Satisfeito que corresponde a Bom</fo:block></fo:table-cell> |
</fo:table-row> |
<fo:table-row> |
<fo:table-cell background-color="rgb(32, 255, 5)" padding="2pt"> |
<fo:block text-align="center">5</fo:block> |
</fo:table-cell> |
<fo:table-cell padding="2pt"><fo:block>O Estudante avaliou o docente com nota máxima de Muito Satisfeito</fo:block></fo:table-cell> |
</fo:table-row> |
</fo:table-body> |
</fo:table> |
</fo:block> |
</xsl:template> |
|
|
|
<xsl:template name="barraPercentil"> |
<xsl:param name="valor"/> |
<xsl:param name="colors">false</xsl:param> |
<fo:block-container margin="2px" border="1px solid #C6C6CA" padding="0"> |
<fo:block-container margin="1px" border="1px solid #C6C6CA" padding="0"> |
<xsl:choose> |
<xsl:when test="$colors = 'false'"> |
<xsl:attribute name="border">1px solid #C6C6CA</xsl:attribute> |
</xsl:when> |
<xsl:otherwise> |
<xsl:attribute name="border">2px solid #FFEAAE</xsl:attribute> |
<xsl:attribute name="border">1px solid #FFEAAE</xsl:attribute> |
</xsl:otherwise> |
</xsl:choose> |
<fo:block-container border="1px solid #C6C6CA" margin="0" padding-top="2px" padding-bottom="0"> |
<fo:block-container border="1px solid #C6C6CA" margin="0" padding-top="1px" padding-bottom="0"> |
<xsl:choose> |
<xsl:when test="$colors = 'false'"> |
<xsl:attribute name="background-color">#B9F1B1</xsl:attribute> |
477,7 → 803,6 |
<xsl:choose> |
<xsl:when test="$valor < 25"> |
<xsl:attribute name="background-color">red</xsl:attribute> |
<xsl:attribute name="color">white</xsl:attribute> |
</xsl:when> |
<xsl:when test="$valor < 40"><xsl:attribute name="background-color">orange</xsl:attribute></xsl:when> |
<xsl:when test="$valor < 55"><xsl:attribute name="background-color">yellow</xsl:attribute></xsl:when> |
493,7 → 818,49 |
</fo:block-container> |
</xsl:template> |
|
<xsl:template name="barraPercentilDefined"> |
<xsl:param name="valor"/> |
<xsl:param name="percentDefined"/> |
<xsl:param name="colors">false</xsl:param> |
|
<fo:block-container margin="1px" border="1px solid #C6C6CA" padding="0"> |
|
<fo:block-container border="1px solid #C6C6CA" margin="0" padding-top="1px" padding-bottom="0"> |
<xsl:choose> |
<xsl:when test="$colors = 'false'"> |
<xsl:attribute name="border">1px solid #8D7F5C</xsl:attribute> |
<xsl:attribute name="background-color">#B9F1B1</xsl:attribute> |
|
</xsl:when> |
<xsl:otherwise> |
|
<xsl:choose> |
<xsl:when test="percentDefined < 25"> |
<xsl:attribute name="border">1px solid #B10000</xsl:attribute> |
<xsl:attribute name="background-color">red</xsl:attribute> |
</xsl:when> |
<xsl:when test="percentDefined < 40"> |
<xsl:attribute name="border">1px solid #B85C00</xsl:attribute> |
<xsl:attribute name="background-color">orange</xsl:attribute> |
</xsl:when> |
<xsl:when test="percentDefined < 55"> |
<xsl:attribute name="border">1px solid #868600</xsl:attribute> |
<xsl:attribute name="background-color">yellow</xsl:attribute> |
</xsl:when> |
<xsl:otherwise> |
<xsl:attribute name="border">1px solid #157C00</xsl:attribute> |
<xsl:attribute name="background-color">#24DD01</xsl:attribute> |
</xsl:otherwise> |
</xsl:choose> |
</xsl:otherwise> |
</xsl:choose> |
<xsl:attribute name="width"><xsl:value-of select="$percentDefined"/>%</xsl:attribute> |
<fo:block><xsl:value-of select="$valor"/></fo:block> |
</fo:block-container> |
</fo:block-container> |
</xsl:template> |
|
|
<xsl:template name="footerDefault"> |
<fo:table width="100%" table-layout="fixed" border-top="1px solid black" font-size="6.5pt"> |
<fo:table-column column-width="20%"/> |
581,19 → 948,29 |
</xsl:template> |
|
|
<xsl:variable name="backgroundHeader">#FFEAAE</xsl:variable> |
<xsl:variable name="backgroundNormal">#FFFFFF</xsl:variable> |
<xsl:variable name="backgroundFooter">#FFEAAE</xsl:variable> |
<xsl:variable name="borderInHeader">2px solid black</xsl:variable> |
<xsl:variable name="borderInCell">1px dashed black</xsl:variable> |
<xsl:variable name="borderInFooter">2px solid black</xsl:variable> |
<xsl:variable name="borderInCellVertical">1px solid black</xsl:variable> |
<xsl:variable name="borderTable">2px solid black</xsl:variable> |
|
<xsl:template match="*" mode="DataTable"> |
<xsl:variable name="backgroundHeader">#FFEAAE</xsl:variable> |
<xsl:variable name="backgroundNormal">#FFFFFF</xsl:variable> |
<xsl:variable name="backgroundFooter">#FFEAAE</xsl:variable> |
<xsl:variable name="borderInHeader">4px solid black</xsl:variable> |
<xsl:variable name="borderInCell">2px dashed black</xsl:variable> |
<xsl:variable name="borderInFooter">4px solid black</xsl:variable> |
<xsl:variable name="borderInCellVertical">2px solid black</xsl:variable> |
<xsl:variable name="borderTable">4px solid black</xsl:variable> |
<fo:table width="100%" table-layout="fixed"> |
<xsl:param name="firstColPercentSize"></xsl:param> |
|
|
<fo:table width="100%" table-layout="auto" font-size="7pt"> |
<xsl:attribute name="border"><xsl:value-of select="$borderTable"/></xsl:attribute> |
<xsl:for-each select="./rows/row[0]/cols/col"> |
<fo:table-column/> |
<xsl:for-each select="./rows/row[1]/cols/col"> |
<xsl:choose> |
<xsl:when test="$firstColPercentSize != '' and position() = 1"> |
<fo:table-column column-width="{$firstColPercentSize}"/> |
</xsl:when> |
<xsl:otherwise><fo:table-column/></xsl:otherwise> |
</xsl:choose> |
|
</xsl:for-each> |
<fo:table-body> |
<xsl:for-each select="./rows/row"> |
606,8 → 983,10 |
<xsl:when test="./type='footer'"><xsl:attribute name="background-color"><xsl:value-of select="$backgroundFooter"/></xsl:attribute></xsl:when> |
</xsl:choose> |
<xsl:for-each select="./cols/col"> |
<fo:table-cell padding="0"> |
|
<fo:table-cell padding="0" display-align="center"> |
<xsl:if test="./backgroundColor != ''"> |
<xsl:attribute name="background-color"><xsl:value-of select="./backgroundColor"/></xsl:attribute> |
</xsl:if> |
<xsl:choose> |
<xsl:when test="../../type='header'"><xsl:attribute name="border"><xsl:value-of select="$borderInHeader"/></xsl:attribute></xsl:when> |
<xsl:when test="../../type='normal'"><xsl:attribute name="border"><xsl:value-of select="$borderInCell"/></xsl:attribute></xsl:when> |
622,7 → 1001,7 |
<xsl:when test="./align='right'"><xsl:attribute name="text-align">end</xsl:attribute></xsl:when> |
</xsl:choose> |
<xsl:if test="../../cols/col/type = 'percentage' and ./type != 'percentage'"> |
<xsl:attribute name="padding-top">4px</xsl:attribute> |
<xsl:attribute name="padding-top">2px</xsl:attribute> |
</xsl:if> |
|
|
655,16 → 1034,26 |
|
<fo:block-container margin="0" padding="0"> |
<xsl:choose> |
<xsl:when test="./type='text'"><fo:block margin="0" padding-left="2px" padding-right="2px"><xsl:value-of select="./value"/></fo:block></xsl:when> |
<xsl:when test="./type='text'"><fo:block margin="0" padding-left="2px" padding-right="2px"><xsl:value-of select="./value"/></fo:block></xsl:when> |
<xsl:when test="./type='number'"><fo:block margin="0" padding-left="2px" padding-right="2px"><xsl:value-of select="./value"/></fo:block></xsl:when> |
<xsl:when test="./type='label'"><fo:block margin="0" padding-left="2px" padding-right="2px"><xsl:value-of select="./value"/></fo:block></xsl:when> |
<xsl:when test="./type='label'"><fo:block margin="0" padding-left="2px" padding-right="2px"><xsl:value-of select="./value"/></fo:block></xsl:when> |
<xsl:when test="./type='percentage'"> |
<xsl:attribute name="text-align">left</xsl:attribute> |
<xsl:attribute name="padding">0</xsl:attribute> |
<xsl:call-template name="barraPercentil"> |
<xsl:with-param name="valor" select="./value"/> |
<xsl:with-param name="colors" select="./usePercentageColor"/> |
</xsl:call-template> |
</xsl:when> |
<xsl:when test="./type='percentageDefined'"> |
<xsl:attribute name="text-align">left</xsl:attribute> |
<xsl:attribute name="padding">0</xsl:attribute> |
<xsl:call-template name="barraPercentilDefined"> |
<xsl:with-param name="valor" select="./value"/> |
<xsl:with-param name="percentDefined" select="./percentDefined"/> |
<xsl:with-param name="colors" select="./usePercentageColor"/> |
</xsl:call-template> |
</xsl:when> |
</xsl:choose> |
|
</fo:block-container> |