<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.1"
	xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
	xmlns:fo="http://www.w3.org/1999/XSL/Format"
	exclude-result-prefixes="fo">

	<xsl:output method="xml" version="1.0" omit-xml-declaration="no"
		indent="yes" />
	<xsl:template match="FichaAptidao">
		<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">

			<fo:layout-master-set>
				<fo:simple-page-master master-name="simpleA4"
					page-height="29.7cm" page-width="21cm" margin-top="3.5cm"
					margin-bottom="0.1cm" margin-left="1.5cm" margin-right="0.75cm">
					<fo:region-body />
				</fo:simple-page-master>
			</fo:layout-master-set>
			<fo:page-sequence master-reference="simpleA4">
				<fo:flow flow-name="xsl-region-body">
					<fo:block text-align="center" font-size="10pt"
						font-weight="bold" space-after="6pt">
						FICHA DE APTID&#xc3;O
					</fo:block>
					<fo:block text-align="center" font-size="7pt"
						font-weight="bold" space-after="6pt">
						(
						<xsl:value-of select="portaria" />
						)
					</fo:block>
					<fo:table table-layout="fixed" border-color="black"
						border-style="solid" border-width="medium" >
						<fo:table-column
							column-width="proportional-column-width(50)" />
						<fo:table-column
							column-width="proportional-column-width(50)" />
						<fo:table-body>
							<fo:table-row>
								<fo:table-cell
									border-bottom-color="black" border-bottom-style="solid"
									border-bottom-width="thin" number-columns-spanned="2">
									<fo:block font-size="8pt"
										space-before="0.3cm" space-after="0.3cm" margin-left="0.2cm"
										font-weight="bold">
										Empresa/Entidade
									</fo:block>
								</fo:table-cell>
							</fo:table-row>
							<fo:table-row>
								<fo:table-cell
									number-columns-spanned="2">
									<fo:block font-size="8pt"
										space-before="8pt" margin-left="0.2cm">
										DESIGNA&#xc7;&#xc3;O SOCIAL:
										<xsl:value-of
											select="empresa/designacao-social" />
									</fo:block>
								</fo:table-cell>
							</fo:table-row>
							<fo:table-row>
								<fo:table-cell
									number-columns-spanned="1">
									<fo:block font-size="8pt" margin-left="0.2cm">
										ESTABELECIMENTO:
										<xsl:value-of
											select="estabelecimento/nome" />
									</fo:block>
								</fo:table-cell>
								<fo:table-cell
									number-columns-spanned="1">
									<fo:block font-size="8pt" margin-left="0.2cm">
										LOCALIDADE:
										<xsl:value-of
											select="estabelecimento/localidade" />
									</fo:block>
								</fo:table-cell>
							</fo:table-row>
							<fo:table-row>
								<fo:table-cell
									number-columns-spanned="2">
									<fo:table >
										<fo:table-column />
										<fo:table-column
											column-width="10pt" />
										<fo:table-column
											column-width="50pt" />
										<fo:table-column
											column-width="10pt" />
										<fo:table-column
											column-width="64pt" />
										<fo:table-column
											column-width="10pt" />
										<fo:table-column
											column-width="50pt" />
										<fo:table-column
											column-width="10pt" />
										<fo:table-column
											column-width="150pt" />
										<fo:table-body>
											<fo:table-row>
												<fo:table-cell>
													<fo:block
														font-size="8pt" margin-left="0.2cm">
														SERVI&#xc7;O DE
														SA&#xda;DE: Tipo
													</fo:block>
												</fo:table-cell>
												<fo:table-cell>
													<fo:block
														font-size="8pt" margin-left="0.2cm"
														font-family="ZapfDingbats">
														&#x2750;
														<fo:inline
															font-size="8pt">
															&#160;&#160;&#160;&#160;
														</fo:inline>
													</fo:block>
													<xsl:if
														test="estabelecimento/servico-saude/tipo/interno='y'">
														<fo:block
															font-size="8pt" space-before="-19pt" margin-left="0.22cm"
															font-family="ZapfDingbats">
															&#x2713;
														</fo:block>
													</xsl:if>
												</fo:table-cell>
												<fo:table-cell>
													<fo:block
														font-size="8pt" margin-left="0.2cm">
														Interno
													</fo:block>
												</fo:table-cell>
												<fo:table-cell>
													<fo:block
														font-size="8pt" margin-left="0.2cm"
														font-family="ZapfDingbats">
														&#x2750;
														<fo:inline
															font-size="8pt">
															&#160;&#160;&#160;&#160;
														</fo:inline>
													</fo:block>
													<xsl:if
														test="estabelecimento/servico-saude/tipo/interempresas='y'">
														<fo:block
															font-size="8pt" space-before="-19pt" margin-left="0.22cm"
															font-family="ZapfDingbats">
															&#x2713;
														</fo:block>
													</xsl:if>
												</fo:table-cell>
												<fo:table-cell>
													<fo:block
														font-size="8pt" margin-left="0.2cm">
														Interempresas
													</fo:block>
												</fo:table-cell>
												<fo:table-cell>
													<fo:block
														font-size="8pt" margin-left="0.2cm"
														font-family="ZapfDingbats">
														&#x2750;
														<fo:inline
															font-size="8pt">
															&#160;&#160;&#160;&#160;
														</fo:inline>
													</fo:block>
													<xsl:if
														test="estabelecimento/servico-saude/tipo/externo='y'">
														<fo:block
															font-size="8pt" space-before="-19pt" margin-left="0.22cm"
															font-family="ZapfDingbats">
															&#x2713;
														</fo:block>
													</xsl:if>
												</fo:table-cell>
												<fo:table-cell>
													<fo:block
														font-size="8pt" margin-left="0.2cm">
														Externo
													</fo:block>
												</fo:table-cell>
												<fo:table-cell>
													<fo:block
														font-size="8pt" margin-left="0.2cm"
														font-family="ZapfDingbats">
														&#x2750;
														<fo:inline
															font-size="8pt">
															&#160;&#160;&#160;&#160;
														</fo:inline>
													</fo:block>
													<xsl:if
														test="estabelecimento/servico-saude/tipo/sns='y'">
														<fo:block
															font-size="8pt" space-before="-19pt" margin-left="0.22cm"
															font-family="ZapfDingbats">
															&#x2713;
														</fo:block>
													</xsl:if>
												</fo:table-cell>
												<fo:table-cell>
													<fo:block
														font-size="8pt" margin-left="0.2cm">
														Servi&#xe7;o
														Nacional de
														Sa&#xfa;de
													</fo:block>
												</fo:table-cell>
											</fo:table-row>
										</fo:table-body>
									</fo:table>
									<fo:block font-size="8pt"
										space-before="-8pt" margin-left="0.2cm">
										DESIGNA&#xc7;&#xc3;O:
										<xsl:value-of
											select="estabelecimento/servico-saude/designacao" />
									</fo:block>
									<fo:table >
										<fo:table-column />
										<fo:table-column
											column-width="10pt" />
										<fo:table-column
											column-width="50pt" />
										<fo:table-column
											column-width="10pt" />
										<fo:table-column
											column-width="64pt" />
										<fo:table-column
											column-width="10pt" />
										<fo:table-column
											column-width="50pt" />
										<fo:table-column
											column-width="10pt" />
										<fo:table-column
											column-width="80pt" />
										<fo:table-body>
											<fo:table-row>
												<fo:table-cell>
													<fo:block
														font-size="8pt" margin-left="0.2cm">
														SERVI&#xc7;O DE
														HIGIENE E
														SEGURAN&#xc7;A:
														Tipo
													</fo:block>
												</fo:table-cell>
												<fo:table-cell>
													<fo:block
														font-size="8pt" margin-left="0.2cm"
														font-family="ZapfDingbats">
														&#x2750;
													</fo:block>
													<xsl:if
														test="estabelecimento/servico-higiene-seguranca/tipo/interno='y'">
														<fo:block
															font-size="8pt" space-before="-10pt" margin-left="0.22cm"
															font-family="ZapfDingbats">
															&#x2713;
														</fo:block>
													</xsl:if>
												</fo:table-cell>
												<fo:table-cell>
													<fo:block
														font-size="8pt" margin-left="0.2cm">
														Interno
													</fo:block>
												</fo:table-cell>
												<fo:table-cell>
													<fo:block
														font-size="8pt" margin-left="0.2cm"
														font-family="ZapfDingbats">
														&#x2750;
													</fo:block>
													<xsl:if
														test="estabelecimento/servico-higiene-seguranca/tipo/interempresas='y'">
														<fo:block
															font-size="8pt" space-before="-10pt" margin-left="0.22cm"
															font-family="ZapfDingbats">
															&#x2713;
														</fo:block>
													</xsl:if>
												</fo:table-cell>
												<fo:table-cell>
													<fo:block
														font-size="8pt" margin-left="0.2cm">
														Interempresas
													</fo:block>
												</fo:table-cell>
												<fo:table-cell>
													<fo:block
														font-size="8pt" margin-left="0.2cm"
														font-family="ZapfDingbats">
														&#x2750;
													</fo:block>
													<xsl:if
														test="estabelecimento/servico-higiene-seguranca/tipo/externo='y'">
														<fo:block
															font-size="8pt" space-before="-10pt" margin-left="0.22cm"
															font-family="ZapfDingbats">
															&#x2713;
														</fo:block>
													</xsl:if>
												</fo:table-cell>
												<fo:table-cell>
													<fo:block
														font-size="8pt" margin-left="0.2cm">
														Externo
													</fo:block>
												</fo:table-cell>
												<fo:table-cell>
													<fo:block
														font-size="8pt" margin-left="0.2cm"
														font-family="ZapfDingbats">
														&#x2750;
													</fo:block>
													<xsl:if
														test="estabelecimento/servico-higiene-seguranca/tipo/outro='y'">
														<fo:block
															font-size="8pt" space-before="-10pt" margin-left="0.22cm"
															font-family="ZapfDingbats">
															&#x2713;
														</fo:block>
													</xsl:if>
												</fo:table-cell>
												<fo:table-cell>
													<fo:block
														font-size="8pt" margin-left="0.2cm">
														Outro
													</fo:block>
												</fo:table-cell>
											</fo:table-row>
										</fo:table-body>
									</fo:table>
									<fo:block font-size="8pt"
										margin-left="0.2cm">
										DESIGNA&#xc7;&#xc3;O:
										<xsl:value-of
											select="estabelecimento/servico-higiene-seguranca/designacao" />
									</fo:block>
								</fo:table-cell>
							</fo:table-row>
						</fo:table-body>
					</fo:table>
					<fo:table table-layout="fixed" space-before="5mm"
						border-color="black" border-style="solid" border-width="medium">
						<fo:table-column
							column-width="proportional-column-width(1)" />
						<fo:table-column
							column-width="proportional-column-width(1)" />
						<fo:table-column
							column-width="proportional-column-width(1)" />
						<fo:table-column
							column-width="proportional-column-width(1)" />
						<fo:table-column
							column-width="proportional-column-width(1)" />
						<fo:table-column
							column-width="proportional-column-width(1)" />
						<fo:table-body>
							<fo:table-row>
								<fo:table-cell
									border-bottom-color="black" border-bottom-style="solid"
									border-bottom-width="thin" number-columns-spanned="6">
									<fo:block font-size="8pt"
										space-before="0.3cm" space-after="0.3cm" margin-left="0.2cm"
										font-weight="bold">
										Trabalhador
									</fo:block>
								</fo:table-cell>
							</fo:table-row>
							<fo:table-row>
								<fo:table-cell
									number-columns-spanned="6">
									<fo:block font-size="8pt" space-before="8pt" margin-left="0.2cm">
										NOME:
										<xsl:value-of
											select="trabalhador/nome" />
									</fo:block>
								</fo:table-cell>
							</fo:table-row>
							<fo:table-row>
								<fo:table-cell
									number-columns-spanned="1">
									<fo:block font-size="8pt" margin-left="0.2cm">
										SEXO:
										<xsl:value-of
											select="trabalhador/sexo" />
									</fo:block>
								</fo:table-cell>
								<fo:table-cell
									number-columns-spanned="2">
									<fo:block font-size="8pt" margin-left="0.2cm">
										DATA DE NASCIMENTO:
										<xsl:value-of
											select="trabalhador/data-nascimento" />
									</fo:block>
								</fo:table-cell>
								<fo:table-cell
									number-columns-spanned="3">
									<fo:block font-size="8pt" margin-left="0.2cm">
										NACIONALIDADE:
										<xsl:value-of
											select="trabalhador/nacionalidade" />
									</fo:block>
								</fo:table-cell>
							</fo:table-row>
							<fo:table-row>
								<fo:table-cell
									number-columns-spanned="3">
									<fo:block font-size="8pt" margin-left="0.2cm">
										N&#xda;MERO
										MECANOGR&#xc1;FICO/OUTRO:
										<xsl:value-of
											select="trabalhador/numero-mecanografico" />
									</fo:block>
									<fo:block font-size="8pt" margin-left="0.2cm">
										CATEGORIA PROFISSIONAL:
										<xsl:value-of
											select="trabalhador/categoria-profissional" />
									</fo:block>
									<fo:block font-size="8pt" margin-left="0.2cm">
										FUN&#xc7;&#xc3;O PROPOSTA:
										<xsl:value-of
											select="trabalhador/funcao-proposta" />
									</fo:block>
								</fo:table-cell>
								<fo:table-cell
									number-columns-spanned="3">
									<fo:block font-size="8pt" margin-left="0.2cm">
										DATA DE ADMISS&#xc3;O:
										<xsl:value-of
											select="trabalhador/data-admissao" />
									</fo:block>
									<fo:block font-size="8pt" margin-left="0.2cm">
										LOCAL DE TRABALHO:
										<xsl:value-of
											select="trabalhador/local-trabalho" />
									</fo:block>
									<fo:block font-size="8pt" margin-left="0.2cm">
										DATA DE ADMISS&#xc3;O NA
										FUN&#xc7;&#xc3;O:
										<xsl:value-of
											select="trabalhador/data-admissao-funcao" />
									</fo:block>
								</fo:table-cell>
							</fo:table-row>
						</fo:table-body>
					</fo:table>
					<fo:table table-layout="fixed" space-before="5mm"
						border-color="black" border-style="solid" border-width="medium">
						<fo:table-column
							column-width="proportional-column-width(50)" />
						<fo:table-column
							column-width="proportional-column-width(50)" />
						<fo:table-body>
							<fo:table-row>
								<fo:table-cell
									border-bottom-color="black" border-bottom-style="solid"
									border-bottom-width="thin" number-columns-spanned="2">
									<fo:block font-size="8pt"
										space-before="0.3cm" space-after="0.3cm" margin-left="0.2cm"
										font-weight="bold">
										Observa&#xe7;&#xf5;es
									</fo:block>
								</fo:table-cell>
							</fo:table-row>
							<fo:table-row height="1cm">
								<fo:table-cell
									number-columns-spanned="2">
									<fo:block font-size="8pt"
										space-before="8pt" margin-left="0.2cm">
										<xsl:value-of
											select="observacoes" />
									</fo:block>
								</fo:table-cell>
							</fo:table-row>
						</fo:table-body>
					</fo:table>
					<fo:table table-layout="fixed" space-before="5mm"
						border-color="black" border-style="solid" border-width="medium">
						<fo:table-column
							column-width="proportional-column-width(50)" />
						<fo:table-column
							column-width="proportional-column-width(50)" />
						<fo:table-body>
							<fo:table-row>
								<fo:table-cell
									border-bottom-color="black" border-bottom-style="solid"
									border-bottom-width="thin" number-columns-spanned="2">
									<fo:block font-size="8pt"
										space-before="0.3cm" space-after="0.3cm" margin-left="0.2cm"
										font-weight="bold">
										Exame M&#xe9;dico
									</fo:block>
								</fo:table-cell>
							</fo:table-row>
							<fo:table-row>
								<fo:table-cell
									border-right-color="black" border-right-style="solid"
									border-right-width="thin" number-columns-spanned="1">
									<fo:block font-size="8pt"
										space-before="8pt" margin-left="0.2cm">
										DATA DO EXAME:
										<xsl:value-of
											select="exame-medico/data" />
									</fo:block>
									<fo:block font-size="8pt" space-before="8pt" margin-left="0.2cm">
										TIPO
									</fo:block>
									<fo:block font-size="8pt" margin-left="0.2cm">
										<fo:inline
											font-family="ZapfDingbats">
											&#x2750;
										</fo:inline>
										ADMISS&#xc3;O
									</fo:block>
									<xsl:if
										test="exame-medico/tipo/admissao='y'">
										<fo:block font-size="8pt"
											space-before="-10pt" margin-left="0.22cm"
											font-family="ZapfDingbats">
											&#x2713;
										</fo:block>
									</xsl:if>
									<fo:block font-size="8pt" margin-left="0.2cm">
										<fo:inline
											font-family="ZapfDingbats">
											&#x2750;
										</fo:inline>
										PERI&#xd3;DICO
									</fo:block>
									<xsl:if
										test="exame-medico/tipo/periodico='y'">
										<fo:block font-size="8pt"
											space-before="-10pt" margin-left="0.22cm"
											font-family="ZapfDingbats">
											&#x2713;
										</fo:block>
									</xsl:if>
									<fo:block font-size="8pt" margin-left="0.2cm">
										<fo:inline
											font-family="ZapfDingbats">
											&#x2750;
										</fo:inline>
										OCASIONAL
									</fo:block>
									<xsl:if
										test="exame-medico/tipo/ocasional='y'">
										<fo:block font-size="8pt"
											space-before="-10pt" margin-left="0.22cm"
											font-family="ZapfDingbats">
											&#x2713;
										</fo:block>
									</xsl:if>
									<fo:block font-size="8pt" margin-left="1.2cm">
										<fo:inline
											font-family="ZapfDingbats">
											&#x2750;
										</fo:inline>
										AP&#xd3;S DOEN&#xc7;A
									</fo:block>
									<xsl:if
										test="exame-medico/tipo/ocasional-doenca='y'">
										<fo:block font-size="8pt"
											space-before="-10pt" margin-left="1.23cm"
											font-family="ZapfDingbats">
											&#x2713;
										</fo:block>
									</xsl:if>
									<fo:block font-size="8pt" margin-left="1.2cm">
										<fo:inline
											font-family="ZapfDingbats">
											&#x2750;
										</fo:inline>
										AP&#xd3;S ACIDENTE
									</fo:block>
									<xsl:if
										test="exame-medico/tipo/ocasional-acidente='y'">
										<fo:block font-size="8pt"
											space-before="-10pt" margin-left="1.23cm"
											font-family="ZapfDingbats">
											&#x2713;
										</fo:block>
									</xsl:if>
									<fo:block font-size="8pt" margin-left="1.2cm">
										<fo:inline
											font-family="ZapfDingbats">
											&#x2750;
										</fo:inline>
										A PEDIDO DO TRABALHADOR
									</fo:block>
									<xsl:if
										test="exame-medico/tipo/ocasional-pedido-trabalhador='y'">
										<fo:block font-size="8pt"
											space-before="-10pt" margin-left="1.23cm"
											font-family="ZapfDingbats">
											&#x2713;
										</fo:block>
									</xsl:if>
									<fo:block font-size="8pt" margin-left="1.2cm">
										<fo:inline
											font-family="ZapfDingbats">
											&#x2750;
										</fo:inline>
										A PEDIDO DO SERVI&#xc7;O
									</fo:block>
									<xsl:if
										test="exame-medico/tipo/ocasional-pedido-servico='y'">
										<fo:block font-size="8pt"
											space-before="-10pt" margin-left="1.23cm"
											font-family="ZapfDingbats">
											&#x2713;
										</fo:block>
									</xsl:if>
									<fo:block font-size="8pt" margin-left="1.2cm">
										<fo:inline
											font-family="ZapfDingbats">
											&#x2750;
										</fo:inline>
										POR MUDANCA DE FUN&#xc7;&#xc3;O
									</fo:block>
									<xsl:if
										test="exame-medico/tipo/ocasional-mudanca-funcao='y'">
										<fo:block font-size="8pt"
											space-before="-10pt" margin-left="1.23cm"
											font-family="ZapfDingbats">
											&#x2713;
										</fo:block>
									</xsl:if>
									<fo:block font-size="8pt" margin-left="1.2cm">
										<fo:inline
											font-family="ZapfDingbats">
											&#x2750;
										</fo:inline>
										POR ALTERA&#xc7;&#xc3;O DAS
										CONDI&#xc7;&#xd5;ES DE TRABALHO
									</fo:block>
									<xsl:if
										test="exame-medico/tipo/ocasional-alteracao-condicoes-trabalho='y'">
										<fo:block font-size="8pt"
											space-before="-10pt" margin-left="1.23cm"
											font-family="ZapfDingbats">
											&#x2713;
										</fo:block>
									</xsl:if>
									<fo:block font-size="8pt" margin-left="1.2cm">
										<fo:inline
											font-family="ZapfDingbats">
											&#x2750;
										</fo:inline>
										OUTRO
									</fo:block>
									<xsl:if
										test="exame-medico/tipo/ocasional-outro='y'">
										<fo:block font-size="8pt"
											space-before="-10pt" margin-left="1.23cm"
											font-family="ZapfDingbats">
											&#x2713;
										</fo:block>
									</xsl:if>
									<fo:block font-size="8pt" margin-left="0.2cm">
										ESPECIFIQUE:
										<xsl:value-of
											select="exame-medico/tipo/ocasional-outro-descricao" />
									</fo:block>
								</fo:table-cell>
								<fo:table-cell
									number-columns-spanned="1">
									<fo:block font-size="8pt"
										space-before="8pt" margin-left="0.2cm">
										RESULTADO
									</fo:block>
									<fo:block font-size="8pt" margin-left="0.2cm">
										<fo:inline
											font-family="ZapfDingbats">
											&#x2750;
										</fo:inline>
										APTO
									</fo:block>
									<xsl:if
										test="exame-medico/resultado/apto='y'">
										<fo:block font-size="8pt"
											space-before="-10pt" margin-left="0.22cm"
											font-family="ZapfDingbats">
											&#x2713;
										</fo:block>
									</xsl:if>
									<fo:block font-size="8pt" margin-left="0.2cm">
										<fo:inline
											font-family="ZapfDingbats">
											&#x2750;
										</fo:inline>
										APTO CONDICIONALMENTE
									</fo:block>
									<xsl:if
										test="exame-medico/resultado/apto-condicionalmente='y'">
										<fo:block font-size="8pt"
											space-before="-10pt" margin-left="0.22cm"
											font-family="ZapfDingbats">
											&#x2713;
										</fo:block>
									</xsl:if>
									<fo:block font-size="8pt" margin-left="0.2cm">
										<fo:inline
											font-family="ZapfDingbats">
											&#x2750;
										</fo:inline>
										INAPTO TEMPORARIAMENTE
									</fo:block>
									<xsl:if
										test="exame-medico/resultado/inapto-temporariamente='y'">
										<fo:block font-size="8pt"
											space-before="-10pt" margin-left="0.22cm"
											font-family="ZapfDingbats">
											&#x2713;
										</fo:block>
									</xsl:if>
									<fo:block font-size="8pt" margin-left="0.2cm">
										<fo:inline
											font-family="ZapfDingbats">
											&#x2750;
										</fo:inline>
										INAPTO DEFINITIVAMENTE
									</fo:block>
									<xsl:if
										test="exame-medico/resultado/inapto-definitivamente='y'">
										<fo:block font-size="8pt"
											space-before="-10pt" margin-left="0.22cm"
											font-family="ZapfDingbats">
											&#x2713;
										</fo:block>
									</xsl:if>
									<fo:block font-size="8pt"
										space-before="8pt" margin-left="0.2cm">

									</fo:block>
									<fo:block font-size="8pt"
										space-before="8pt" margin-left="0.2cm">
										OUTRAS FUN&#xc7;&#xd5;ES QUE
										PODE DESEMPENHAR
									</fo:block>
									<fo:block font-size="8pt" margin-left="1.2cm">
										1
										<xsl:value-of
											select="exame-medico/resultado/outras-funcoes-1" />
									</fo:block>
									<fo:block font-size="8pt" margin-left="1.2cm">
										2
										<xsl:value-of
											select="exame-medico/resultado/outras-funcoes-2" />
									</fo:block>
									<fo:block font-size="8pt" margin-left="1.2cm">
										3
										<xsl:value-of
											select="exame-medico/resultado/outras-funcoes-3" />
									</fo:block>
									<fo:block font-size="8pt" margin-left="1.2cm">
										4
										<xsl:value-of
											select="exame-medico/resultado/outras-funcoes-4" />
									</fo:block>
									<fo:block font-size="8pt" margin-left="0.2cm">
										&#160;
									</fo:block>
								</fo:table-cell>
							</fo:table-row>
						</fo:table-body>
					</fo:table>
					<fo:table table-layout="fixed" space-before="5mm"
						border-color="black" border-style="solid" border-width="medium">
						<fo:table-column
							column-width="proportional-column-width(50)" />
						<fo:table-column
							column-width="proportional-column-width(50)" />
						<fo:table-body>
							<fo:table-row>
								<fo:table-cell
									border-bottom-color="black" border-bottom-style="solid"
									border-bottom-width="thin" number-columns-spanned="2">
									<fo:block font-size="8pt"
										space-before="0.3cm" space-after="0.3cm" margin-left="0.2cm"
										font-weight="bold">
										Outras Recomenda&#xe7;&#xf5;es
									</fo:block>
								</fo:table-cell>
							</fo:table-row>
							<fo:table-row>
								<fo:table-cell
									number-columns-spanned="2">
									<fo:block font-size="8pt"
										space-before="8pt" margin-left="0.2cm">
										PR&#xd3;XIMO EXAME:
										<xsl:value-of
											select="proximo-exame" />
									</fo:block>
									<fo:block font-size="8pt"
										space-before="8pt" margin-left="0.2cm">
										<xsl:value-of
											select="outras-recomendacoes" />
									</fo:block>
								</fo:table-cell>
							</fo:table-row>
						</fo:table-body>
					</fo:table>
					<fo:table table-layout="fixed" space-before="5mm"
						border-color="black" border-style="solid" border-width="medium">
						<fo:table-column
							column-width="proportional-column-width(50)" />
						<fo:table-column
							column-width="proportional-column-width(50)" />
						<fo:table-body>
							<fo:table-row>
								<fo:table-cell
									number-columns-spanned="1">
									<fo:block font-size="8pt"
										space-before="0.2cm" margin-left="0.2cm">
										M&#xc9;DICO DO TRABALHO:
										<xsl:value-of
											select="medico/nome" />
									</fo:block>
								</fo:table-cell>
								<fo:table-cell
									number-columns-spanned="1">
									<fo:block font-size="8pt"
										space-before="0.2cm" margin-left="0.2cm">
										C.P.
										<xsl:value-of
											select="medico/cedula" />
									</fo:block>
								</fo:table-cell>
							</fo:table-row>
							<fo:table-row>
								<fo:table-cell
									number-columns-spanned="2">
									<fo:block font-size="8pt"
										space-before="0.5cm" margin-left="0.2cm">
										ASSINATURA
										_____________________________________________________________________________________________
									</fo:block>
									<fo:block font-size="8pt"
										space-before="0.5cm" margin-left="0.2cm">
										TOMEI CONHECIMENTO
										___________________________________________________________________
										DATA: ___/___/______
									</fo:block>
									<fo:block font-size="8pt"
										space-before="8pt" margin-left="5.2cm">
										O RESPONS&#xc1;VEL DOS RECURSOS
										HUMANOS
									</fo:block>
								</fo:table-cell>
							</fo:table-row>
						</fo:table-body>
					</fo:table>
				</fo:flow>
			</fo:page-sequence>
		</fo:root>
	</xsl:template>
</xsl:stylesheet>
