<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format">
    <xsl:output encoding="UTF-8" method="xml" indent="yes"/>
    <xsl:template match="/datosPadron">
        <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" font-family="FreeSans">
            <fo:layout-master-set>
                <fo:simple-page-master master-name="volante" page-height="29.7cm" page-width="21cm" margin-top="0.5cm" margin-bottom="0.5cm" margin-left="1.2cm" margin-right="1.2cm">
                    <fo:region-body region-name="xsl-region-body" margin-top="3cm" margin-bottom="1cm" margin-right="0.6cm"/>
                    <fo:region-before region-name="xsl-region-before" extent="3.0cm"/>
                    <fo:region-after region-name="xsl-region-after" extent="1.70cm" margin-left="3cm" margin-right="3cm"/>
                    <fo:region-end region-name="xsl-region-end" extent="0.4cm"/>
                </fo:simple-page-master>
            </fo:layout-master-set>
            <fo:declarations>
              <x:xmpmeta xmlns:x="adobe:ns:meta/">
                <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
                  <rdf:Description rdf:about=""
                      xmlns:dc="http://purl.org/dc/elements/1.1/">
                    <!-- Dublin Core properties go here -->
                    <dc:title>Volante de Empadronamiento en el Municipio de Valladolid</dc:title>
                    <dc:creator>Sede Electrónica del Ayuntamiento de Valladolid</dc:creator>
                    <dc:description>Este documento tiene carácter informativo en relación con la residencia y el domicilio habitual en este Municipio de acuerdo con lo establecido en el artículo 61 del R.D. 26/12/1996, de 20 de Diciembre por el que se modifica el reglamento de población y demarcación territorial de las Entidades Locales por el R.D. 1690/1986, de 11 de julio.</dc:description>
                  </rdf:Description>
                  <rdf:Description rdf:about=""
                      xmlns:xmp="http://ns.adobe.com/xap/1.0/">
                    <!-- XMP properties go here -->
                    <xmp:CreatorTool>Proxia Suite using FOP</xmp:CreatorTool>
                  </rdf:Description>
                  <rdf:Description rdf:about=""
                      xmlns:pdf="http://ns.adobe.com/pdf/1.3/">
                      <pdf:Keywords>Volante de Empadronamiento, Ayuntamiento de Valladolid, Sede Electrónica</pdf:Keywords>
                  </rdf:Description>
                </rdf:RDF>
              </x:xmpmeta>
            </fo:declarations>            
            <fo:page-sequence master-reference="volante">
                <fo:title>VOLANTE DE EMPADRONAMIENTO</fo:title>
                <!-- header -->
                <fo:static-content flow-name="xsl-region-before">
                    <fo:table width="18.3cm" margin-left="0cm" table-layout="fixed">
                        <fo:table-column column-number="1" column-width="10.0cm"/>
                        <fo:table-column column-number="2" column-width="2.3cm"/>
                        <fo:table-column column-number="3" column-width="6.0cm"/>
                        <fo:table-body>
                            <fo:table-row>
                                <fo:table-cell border="1px" border-style="solid" border-color="black">
                                    <fo:block margin="0.2cm" text-align="justify" font-size="8pt" >
                                        Este documento tiene carácter informativo en relación con la residencia y el domicilio habitual en este Municipio de acuerdo
                                        con lo establecido en el artículo 61 del R.D. 26/12/1996, de 20 de Diciembre por el que se modifica el reglamento de 
                                        población y demarcación territorial de las Entidades Locales por el R.D. 1690/1986, de 11 de julio.
                                    </fo:block>
                                </fo:table-cell>
                                <fo:table-cell>
                                    <fo:block/>
                                </fo:table-cell>
                                <fo:table-cell>
                                    <fo:block text-align="left">
                                        <fo:table width="6.0cm" margin-left="0cm" table-layout="fixed">
                                            <fo:table-column column-number="1" column-width="4.7cm"/>
                                            <fo:table-column column-number="2" column-width="1.3cm"/>
                                            <fo:table-body>
                                                <fo:table-row>
                                                    <fo:table-cell number-columns-spanned="2">
                                                        <fo:block padding-bottom="0.1cm" padding-top="0.1cm" font-size="13pt">
                                                            Ayuntamiento de <fo:inline font-weight="bold">Valladolid</fo:inline>
                                                        </fo:block>
                                                    </fo:table-cell>
                                                </fo:table-row>
                                                <fo:table-row>
                                                    <fo:table-cell>
                                                        <fo:block font-size="8pt" >
                                                        </fo:block>
                                                    </fo:table-cell>

<!--                                                
                                                    <fo:table-cell>
                                                        <fo:block font-size="8pt" >
                                                            Area de Atención y Participación Ciudadana
                                                        </fo:block>
                                                        <fo:block font-size="8pt" >
                                                            Servicio de Información y Participación Ciudadana
                                                        </fo:block>
                                                        <fo:block font-size="8pt" >
                                                            Negociado de Población
                                                        </fo:block>
                                                    </fo:table-cell>
-->
                                                    <fo:table-cell>
                                                        <fo:block background-color="#ffffff" text-align="center">
                                                            <fo:external-graphic src="http://www.divisait.com/images/logoAVA.jpg" height="1.2cm" content-width="scale-to-fit"  content-height="scale-to-fit"/>
<!--
                                                            <fo:external-graphic src="d:\_descargas\logoAVA.jpg" width="1.2cm" content-width="scale-to-fit" content-height="scale-to-fit"/>
-->                                                            
                                                        </fo:block>
                                                    </fo:table-cell>
                                                </fo:table-row>
                                            </fo:table-body>
                                        </fo:table>
                                    </fo:block>
                                </fo:table-cell>
                            </fo:table-row>
                        </fo:table-body>
                    </fo:table>
                </fo:static-content>
                <!-- footer -->
                <fo:static-content flow-name="xsl-region-after">
                    <fo:block/>
                    <!--
                            <fo:block text-align="center" font-size="9pt" color="gray" margin-left="1.6cm">
                                 Documento generado a fecha: <fo:inline font-weight="bold">
                                    <xsl:value-of select="fechaGenera"/>
                                </fo:inline> con Código Seguro de Verificación (CSV): <fo:inline font-weight="bold">
                                    <xsl:value-of select="csv"/>
                                </fo:inline>.
                                 Puede verificar el documento introduciendo el CSV en 
                                 <fo:basic-link external-destination="url(/urlWeb))" text-decoration="underline" color="blue">
                                    <xsl:value-of select="urlWeb"/>
                                </fo:basic-link>.
                             </fo:block>
                             -->
                </fo:static-content>
                <fo:static-content flow-name="xsl-region-end">
                    <fo:block-container reference-orientation="-90">
                        <fo:block text-align="center" font-size="8pt" color="gray">
                                Código Seguro de Verificación (CSV): <xsl:value-of select="csv"/>. Puede verificar el documento en 
                                 <fo:basic-link external-destination="url(/urlWeb))" text-decoration="underline" color="blue">
                                <xsl:value-of select="urlWeb"/>
                            </fo:basic-link>.
                                </fo:block>
                    </fo:block-container>
                </fo:static-content>
                <fo:flow flow-name="xsl-region-body">
                    <fo:block background-color="#ffffff" padding-top="0cm" text-align="left">
                        <!-- Nombre del procedimiento -->
                        <fo:block text-align="center" font-size="12pt" font-weight="bold" >
                            VOLANTE DE EMPADRONAMIENTO
                        </fo:block>
                        <fo:block padding-top="0.2cm" text-align="justify" font-size="10pt" >
                            <fo:leader leader-pattern="space" leader-length="1cm"/>Consultado mediante ordenador el fichero mecanizado del Padrón de Habitantes
                            de este Municipio, renovado al 1 de Mayo de 1996 y actualizado con la anotación de las altas y bajas producidas hasta el día de la
                            fecha, aparecen las siguientes inscripciones en relación con la persona que se indica.
                        </fo:block>
                        <fo:block padding-top="0.3cm" font-size="10pt"  font-weight="bold">
                            DATOS PERSONALES
                        </fo:block>
                        <xsl:apply-templates select="datosPersonales"/>
                        <fo:block padding-top="0.2cm" font-size="10pt"  font-weight="bold">
                        DATOS DEL PADRÓN MUNICIPAL DE HABITANTES
                        </fo:block>
                        <xsl:apply-templates select="datosPadron"/>
                        <fo:block padding-top="0.2cm" font-size="10pt"  font-weight="bold">
                        DATOS DE LA VIVIENDA
                        </fo:block>
                        <xsl:apply-templates select="datosVivienda"/>
                        <fo:block padding-top="0.2cm" font-size="10pt"  font-weight="bold">
                        DATOS DE INSCRIPCIONES
                        </fo:block>
                        <xsl:apply-templates select="datosInscripciones"/>
                        <fo:table width="18cm" table-layout="fixed">
                            <fo:table-column column-number="1" column-width="14.0cm"/>
                            <fo:table-column column-number="2" column-width="4.0cm"/>
                            <fo:table-body>
                                <fo:table-row>
                                    <fo:table-cell>
                                        <fo:block padding-top="0.2cm" margin-left="0.5cm" font-size="10pt" >
                                        A efectos de : <fo:leader leader-pattern="space" leader-length="0.5cm"/>
                                            <fo:inline font-family="FreeMono">
                                                <xsl:value-of select="a_efectos"/>
                                            </fo:inline>
                                        </fo:block>
                                    </fo:table-cell>
                                    <fo:table-cell>
                                        <fo:block  padding-top="0.2cm" font-size="10pt" text-align="right" margin-right="0.2cm">
                                                    Hoja: <fo:inline font-family="FreeMono">
                                                <fo:page-number/>
                                            </fo:inline> 
                                                    de <fo:inline font-family="FreeMono">
                                                <fo:page-number-citation ref-id="last-page"/>
                                            </fo:inline>
                                        </fo:block>
                                    </fo:table-cell>
                                </fo:table-row>
                                <fo:table-row>
                                    <fo:table-cell number-columns-spanned="2">
                                        <fo:block padding-top="0.2cm" margin-left="0.5cm" font-size="10pt" >
                                            Valladolid a <fo:leader leader-pattern="space" leader-length="0.5cm"/>
                                            <fo:inline font-family="FreeMono">
                                                <xsl:value-of select="fechaTexto"/>
                                            </fo:inline>
                                        </fo:block>
                                    </fo:table-cell>
                                </fo:table-row>
                            </fo:table-body>
                        </fo:table>
                    </fo:block>
                    <fo:block id="last-page"/>
                </fo:flow>
            </fo:page-sequence>
        </fo:root>
    </xsl:template>
    <xsl:template match="datosPersonales">
        <fo:table width="18cm" table-layout="fixed" border="1px" border-style="solid">
            <fo:table-column column-number="1" column-width="3.0cm"/>
            <fo:table-column column-number="2" column-width="5.0cm"/>
            <fo:table-column column-number="3" column-width="5.0cm"/>
            <fo:table-column column-number="4" column-width="3.0cm"/>
            <fo:table-column column-number="5" column-width="2.0cm"/>
            <fo:table-body>
                <fo:table-row>
                    <fo:table-cell number-columns-spanned="5" border="0.5pt" border-style="solid">
                        <xsl:call-template name="tableCell">
                            <xsl:with-param name="cellName">APELLIDOS Y NOMBRE</xsl:with-param>
                            <xsl:with-param name="cellValue">
                                <xsl:value-of select="nombreCompleto"/>
                            </xsl:with-param>
                        </xsl:call-template>
                    </fo:table-cell>
                </fo:table-row>
                <fo:table-row>
                    <fo:table-cell number-columns-spanned="2" border="0.5pt" border-style="solid">
                        <xsl:call-template name="tableCell">
                            <xsl:with-param name="cellName">SEXO</xsl:with-param>
                            <xsl:with-param name="cellValue">
                                <xsl:value-of select="sexo"/>
                            </xsl:with-param>
                        </xsl:call-template>
                    </fo:table-cell>
                    <fo:table-cell border="0.5pt" border-style="solid">
                        <xsl:call-template name="tableCell">
                            <xsl:with-param name="cellName">TIPO DOCUMENTO</xsl:with-param>
                            <xsl:with-param name="cellValue">
                                <xsl:value-of select="docTipo"/>
                            </xsl:with-param>
                        </xsl:call-template>
                    </fo:table-cell>
                    <fo:table-cell border="0.5pt" border-style="solid">
                        <xsl:call-template name="tableCell">
                            <xsl:with-param name="cellName">NUMERO DOCUMENTO</xsl:with-param>
                            <xsl:with-param name="cellValue">
                                <xsl:value-of select="docNumero"/>
                            </xsl:with-param>
                        </xsl:call-template>
                    </fo:table-cell>
                    <fo:table-cell border="0.5pt" border-style="solid">
                        <xsl:call-template name="tableCell">
                            <xsl:with-param name="cellName">LETRA</xsl:with-param>
                            <xsl:with-param name="cellValue">
                                <xsl:value-of select="docLetra"/>
                            </xsl:with-param>
                        </xsl:call-template>
                    </fo:table-cell>
                </fo:table-row>
                <fo:table-row>
                    <fo:table-cell border="0.5pt" border-style="solid">
                        <xsl:call-template name="tableCell">
                            <xsl:with-param name="cellName">FECHA DE NACIMIENTO</xsl:with-param>
                            <xsl:with-param name="cellValue">
                                <xsl:value-of select="nacFecha"/>
                            </xsl:with-param>
                        </xsl:call-template>
                    </fo:table-cell>
                    <fo:table-cell border="0.5pt" border-style="solid">
                        <xsl:call-template name="tableCell">
                            <xsl:with-param name="cellName">MUNICIPIO DE NACIMIENTO</xsl:with-param>
                            <xsl:with-param name="cellValue">
                                <xsl:value-of select="nacMunicipio"/>
                            </xsl:with-param>
                        </xsl:call-template>
                    </fo:table-cell>
                    <fo:table-cell border="0.5pt" border-style="solid">
                        <xsl:call-template name="tableCell">
                            <xsl:with-param name="cellName">PROVINICIA DE NACIMIENTO</xsl:with-param>
                            <xsl:with-param name="cellValue">
                                <xsl:value-of select="nacProvincia"/>
                            </xsl:with-param>
                        </xsl:call-template>
                    </fo:table-cell>
                    <fo:table-cell number-columns-spanned="2" border="0.5pt" border-style="solid">
                        <xsl:call-template name="tableCell">
                            <xsl:with-param name="cellName">PAÍS DE NACIMIENTO</xsl:with-param>
                            <xsl:with-param name="cellValue">
                                <xsl:value-of select="nacPais"/>
                            </xsl:with-param>
                        </xsl:call-template>
                    </fo:table-cell>
                </fo:table-row>
                <fo:table-row>
                    <fo:table-cell number-columns-spanned="2" border="0.5pt" border-style="solid">
                        <xsl:call-template name="tableCell">
                            <xsl:with-param name="cellName">TIEMPO DE RESIDENCIA</xsl:with-param>
                            <xsl:with-param name="cellValue">
                                <xsl:value-of select="tiempoResidencia"/>
                            </xsl:with-param>
                        </xsl:call-template>
                    </fo:table-cell>
                    <fo:table-cell border="0.5pt" border-style="solid">
                        <xsl:call-template name="tableCell">
                            <xsl:with-param name="cellName">NOMBRE DEL PADRE</xsl:with-param>
                            <xsl:with-param name="cellValue">
                                <xsl:value-of select="nombrePadre"/>
                            </xsl:with-param>
                        </xsl:call-template>
                    </fo:table-cell>
                    <fo:table-cell number-columns-spanned="2" border="0.5pt" border-style="solid">
                        <xsl:call-template name="tableCell">
                            <xsl:with-param name="cellName">NOMBRE DE LA MADRE</xsl:with-param>
                            <xsl:with-param name="cellValue">
                                <xsl:value-of select="nombreMadre"/>
                            </xsl:with-param>
                        </xsl:call-template>
                    </fo:table-cell>
                </fo:table-row>
                <fo:table-row>
                    <fo:table-cell number-columns-spanned="2" border="0.5pt" border-style="solid">
                        <xsl:call-template name="tableCell">
                            <xsl:with-param name="cellName">MOTIVO DEL ALTA</xsl:with-param>
                            <xsl:with-param name="cellValue">
                                <xsl:value-of select="motivoAlta"/>
                            </xsl:with-param>
                        </xsl:call-template>
                    </fo:table-cell>
                    <fo:table-cell border="0.5pt" border-style="solid">
                        <xsl:call-template name="tableCell">
                            <xsl:with-param name="cellName">FECHA DE ALTA</xsl:with-param>
                            <xsl:with-param name="cellValue">
                                <xsl:value-of select="fechaAlta"/>
                            </xsl:with-param>
                        </xsl:call-template>
                    </fo:table-cell>
                    <fo:table-cell number-columns-spanned="2" border="0.5pt" border-style="solid">
                        <xsl:call-template name="tableCell">
                            <xsl:with-param name="cellName">NÚMERO DEL INE</xsl:with-param>
                            <xsl:with-param name="cellValue">
                                <xsl:value-of select="numINE"/>
                            </xsl:with-param>
                        </xsl:call-template>
                    </fo:table-cell>
                </fo:table-row>
            </fo:table-body>
        </fo:table>
    </xsl:template>
    <xsl:template match="datosPadron">
        <fo:table width="18cm" table-layout="fixed" border="1px" border-style="solid">
            <fo:table-column column-number="1" column-width="5.0cm"/>
            <fo:table-column column-number="2" column-width="0.5cm"/>
            <fo:table-column column-number="3" column-width="4.5cm"/>
            <fo:table-column column-number="4" column-width="2.5cm"/>
            <fo:table-column column-number="5" column-width="1.5cm"/>
            <fo:table-column column-number="6" column-width="4.0cm"/>
            <fo:table-body>
                <fo:table-row>
                    <fo:table-cell number-columns-spanned="2" border="0.5pt" border-style="solid">
                        <xsl:call-template name="tableCell">
                            <xsl:with-param name="cellName">ENTIDAD COLECTIVA</xsl:with-param>
                            <xsl:with-param name="cellValue">
                                <xsl:value-of select="entColectiva"/>
                            </xsl:with-param>
                        </xsl:call-template>
                    </fo:table-cell>
                    <fo:table-cell number-columns-spanned="2" border="0.5pt" border-style="solid">
                        <xsl:call-template name="tableCell">
                            <xsl:with-param name="cellName">ENTIDAD SINGULAR</xsl:with-param>
                            <xsl:with-param name="cellValue">
                                <xsl:value-of select="entSingular"/>
                            </xsl:with-param>
                        </xsl:call-template>
                    </fo:table-cell>
                    <fo:table-cell number-columns-spanned="2" border="0.5pt" border-style="solid">
                        <xsl:call-template name="tableCell">
                            <xsl:with-param name="cellName">NUCLEO / DISEMINADO</xsl:with-param>
                            <xsl:with-param name="cellValue">
                                <xsl:value-of select="nucleoDiseminado"/>
                            </xsl:with-param>
                        </xsl:call-template>
                    </fo:table-cell>
                </fo:table-row>
                <fo:table-row>
                    <fo:table-cell border="0.5pt" border-style="solid">
                        <xsl:call-template name="tableCell">
                            <xsl:with-param name="cellName">AÑO</xsl:with-param>
                            <xsl:with-param name="cellValue">
                                <xsl:value-of select="anio"/>
                            </xsl:with-param>
                        </xsl:call-template>
                    </fo:table-cell>
                    <fo:table-cell number-columns-spanned="2" border="0.5pt" border-style="solid">
                        <xsl:call-template name="tableCell">
                            <xsl:with-param name="cellName">DISTRITO</xsl:with-param>
                            <xsl:with-param name="cellValue">
                                <xsl:value-of select="distrito"/>
                            </xsl:with-param>
                        </xsl:call-template>
                    </fo:table-cell>
                    <fo:table-cell number-columns-spanned="2" border="0.5pt" border-style="solid">
                        <xsl:call-template name="tableCell">
                            <xsl:with-param name="cellName">SECCIÓN</xsl:with-param>
                            <xsl:with-param name="cellValue">
                                <xsl:value-of select="seccion"/>
                            </xsl:with-param>
                        </xsl:call-template>
                    </fo:table-cell>
                    <fo:table-cell border="0.5pt" border-style="solid">
                        <xsl:call-template name="tableCell">
                            <xsl:with-param name="cellName">LOCALIZACIÓN PADRONAL</xsl:with-param>
                            <xsl:with-param name="cellValue">
                                <xsl:value-of select="localizacion"/>
                            </xsl:with-param>
                        </xsl:call-template>
                    </fo:table-cell>
                </fo:table-row>
            </fo:table-body>
        </fo:table>
    </xsl:template>
    <xsl:template match="datosVivienda">
        <fo:table width="18cm" table-layout="fixed" border="1px" border-style="solid">
            <fo:table-column column-number="1" column-width="18.0cm"/>
            <fo:table-body>
                <fo:table-row>
                    <fo:table-cell border="0.5pt" border-style="solid">
                        <xsl:call-template name="tableCell">
                            <xsl:with-param name="cellName"/>
                            <xsl:with-param name="cellValue">
                                <xsl:value-of select="."/>
                            </xsl:with-param>
                        </xsl:call-template>
                    </fo:table-cell>
                </fo:table-row>
            </fo:table-body>
        </fo:table>
    </xsl:template>
    <xsl:template match="datosInscripciones">
        <fo:table width="18cm" table-layout="fixed" border="1px" border-style="solid">
            <fo:table-column column-number="1" column-width="3.0cm"/>
            <fo:table-column column-number="2" column-width="5.0cm"/>
            <fo:table-column column-number="3" column-width="5.0cm"/>
            <fo:table-column column-number="4" column-width="3.0cm"/>
            <fo:table-column column-number="5" column-width="2.0cm"/>
            <fo:table-body>
                <xsl:call-template name="inscripcion">
                    <xsl:with-param name="counter">3</xsl:with-param>
                </xsl:call-template>
            </fo:table-body>
        </fo:table>
    </xsl:template>
    <xsl:template name="inscripcion">
        <xsl:param name="counter"/>
        <fo:table-row>
            <fo:table-cell number-columns-spanned="5" border="0.5pt" border-style="solid">
                <xsl:call-template name="tableCell">
                    <xsl:with-param name="cellName">APELLIDOS Y NOMBRE</xsl:with-param>
                    <xsl:with-param name="cellValue">*****************************************************************</xsl:with-param>
                </xsl:call-template>
            </fo:table-cell>
        </fo:table-row>
        <fo:table-row>
            <fo:table-cell number-columns-spanned="2" border="0.5pt" border-style="solid">
                <xsl:call-template name="tableCell">
                    <xsl:with-param name="cellName">SEXO</xsl:with-param>
                    <xsl:with-param name="cellValue">**********************<xsl:value-of select="sexo"/>
                    </xsl:with-param>
                </xsl:call-template>
            </fo:table-cell>
            <fo:table-cell border="0.5pt" border-style="solid">
                <xsl:call-template name="tableCell">
                    <xsl:with-param name="cellName">TIPO DOCUMENTO</xsl:with-param>
                    <xsl:with-param name="cellValue">******************<xsl:value-of select="docTipo"/>
                    </xsl:with-param>
                </xsl:call-template>
            </fo:table-cell>
            <fo:table-cell border="0.5pt" border-style="solid">
                <xsl:call-template name="tableCell">
                    <xsl:with-param name="cellName">NUMERO DOCUMENTO</xsl:with-param>
                    <xsl:with-param name="cellValue">***********<xsl:value-of select="docNumero"/>
                    </xsl:with-param>
                </xsl:call-template>
            </fo:table-cell>
            <fo:table-cell border="0.5pt" border-style="solid">
                <xsl:call-template name="tableCell">
                    <xsl:with-param name="cellName">LETRA</xsl:with-param>
                    <xsl:with-param name="cellValue">*<xsl:value-of select="docLetra"/>
                    </xsl:with-param>
                </xsl:call-template>
            </fo:table-cell>
        </fo:table-row>
        <fo:table-row>
            <fo:table-cell border="0.5pt" border-style="solid">
                <xsl:call-template name="tableCell">
                    <xsl:with-param name="cellName">FECHA DE NACIMIENTO</xsl:with-param>
                    <xsl:with-param name="cellValue">*******<xsl:value-of select="nacFecha"/>
                    </xsl:with-param>
                </xsl:call-template>
            </fo:table-cell>
            <fo:table-cell border="0.5pt" border-style="solid">
                <xsl:call-template name="tableCell">
                    <xsl:with-param name="cellName">MUNICIPIO DE NACIMIENTO</xsl:with-param>
                    <xsl:with-param name="cellValue">*******************<xsl:value-of select="nacMunicipio"/>
                    </xsl:with-param>
                </xsl:call-template>
            </fo:table-cell>
            <fo:table-cell border="0.5pt" border-style="solid">
                <xsl:call-template name="tableCell">
                    <xsl:with-param name="cellName">PROVINICIA DE NACIMIENTO</xsl:with-param>
                    <xsl:with-param name="cellValue">*******************<xsl:value-of select="nacProvincia"/>
                    </xsl:with-param>
                </xsl:call-template>
            </fo:table-cell>
            <fo:table-cell number-columns-spanned="2" border="0.5pt" border-style="solid">
                <xsl:call-template name="tableCell">
                    <xsl:with-param name="cellName">PAÍS DE NACIMIENTO</xsl:with-param>
                    <xsl:with-param name="cellValue">*******************<xsl:value-of select="nacPais"/>
                    </xsl:with-param>
                </xsl:call-template>
            </fo:table-cell>
        </fo:table-row>
        <xsl:if test="$counter > 0">
            <xsl:call-template name="inscripcion">
                <xsl:with-param name="counter">
                    <xsl:value-of select="$counter - 1"/>
                </xsl:with-param>
            </xsl:call-template>
        </xsl:if>
    </xsl:template>
    <xsl:template name="tableCell">
        <xsl:param name="cellName"/>
        <xsl:param name="cellValue"/>
        <fo:block margin="0.05cm" text-align="center" font-size="6pt"  font-weight="bold">
            <xsl:value-of select="$cellName"/>
        </fo:block>
        <fo:block margin-top="0.1cm" text-align="center" font-size="12pt" font-family="FreeMono">
            <xsl:value-of select="$cellValue"/>
        </fo:block>
    </xsl:template>
    <xsl:template match="br">
        <fo:block padding="2px"/>
    </xsl:template>
    <xsl:template match="ul">
        <xsl:if test="count(li) > 0">
            <fo:list-block>
                <xsl:apply-templates/>
            </fo:list-block>
        </xsl:if>
    </xsl:template>
    <xsl:template match="li">
        <fo:list-item>
            <fo:list-item-label>
                <fo:block space-before="0.25cm" space-after="0.25cm"> * </fo:block>
            </fo:list-item-label>
            <fo:list-item-body start-indent="0.5cm">
                <fo:block>
                    <xsl:apply-templates/>
                </fo:block>
            </fo:list-item-body>
        </fo:list-item>
    </xsl:template>
</xsl:stylesheet>