This is taking foreveeeer!
Iīve tried doing the FOP conversion by hand with this command

"java -cp
build/fop.jar:lib/batik.jar:lib/xalan-2.0.0.jar:lib/xerces-1.2.3.jar:lib/ava
lon-framework-4.0.jar:lib/
logkit-1.0b4.jar:lib/jimi-1.0.jar org.apache.fop.apps.Fop  -xsl
/usr/local/assistcard/com/icard/xml/voucher.xsl
 -xml /usr/local/assistcard/com/icard/xml/voucher.xml -pdf
/usr/local/assistcard/com/icard/xml/voucher.pdf"

With no problems at all... but whenever I embeed everything in a java object
i get the same old error.
"javax.xml.transform.TransformerException: stylesheet requires attribute:
version"

So i decided to do a small test class to see if doing everything from
scratch and with J.Pietschmann help it would work out.

So I created PDFGenerator.java ( just for testing... attached ) and did the
transformation as J.Pietschmann pointed out...

Just in case i dumped both the XML and XSL files to dump.xml and dump.xsl...

Everything seems to be fine, but it still is not working... =(

the classpath is set to
export
CLASSPATH=$HOME/assistcard/assistcard:/opt/fop-0.20.3/build/fop.jar:/opt/fop
-0.20.3/lib/batik.jar:/opt/f
op-0.20.3/lib/xalan-2.0.0.jar:/opt/fop-0.20.3/lib/xerces-1.2.3.jar:/opt/fop-
0.20.3/lib/avalon-framework-4.0.jar
:/opt/fop-0.20.3/lib/logkit-1.0.jar:/opt/fop-0.20.3/lib/jimi-1.0.jar

so it uses the same classes that i used when hand-generating the pdf...

Any ideas of what could be wrong?
Iīve tried everything... iīm really lost...

I know iīm being quite anoying.. but itīs just that thereīs no place where
to find good documentation about this!

Best Regards,
Esteban GonzŠlez

ps.- sorry for the attachments... donīt know if they are allowed in this
list.
<?xml version="1.0" encoding="UTF-8"?>
<vouchers xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
	<voucher area="10" cant_dias="15" cod_tarifa="123" codigo="12312" fec_vig_fin="15/5/2002" fec_vig_inic="1/5/2002" fecha_emision="1/5/2002" pais="540" sufijo_voucher="5" tarifa_impresa="1.65" tax_emitida="1.5" tax_impuesto="1.2" tipo_pax_voucher="02">
		<cliente>
			<pais>540</pais>
			<codigo>1</codigo>
			<apellido>Gonzalez</apellido>
			<nombre>Esteban</nombre>
			<sexo>M</sexo>
			<fec_nacimiento>23/07/1978</fec_nacimiento>
			<edad>24</edad>
			<pasaporte>26786032</pasaporte>
			<tel_particular>48623611</tel_particular>
			<dom_calle>Lavalle</dom_calle>
			<dom_nro>3693</dom_nro>
			<dom_cp>c1190aas</dom_cp>
			<dom_ciudad>capital federal</dom_ciudad>
			<dom_country>argentina</dom_country>
			<emerg_contacto>Roberto Gonzalez</emerg_contacto>
			<emerg_calle>Lavalle</emerg_calle>
			<emerg_nro>3693</emerg_nro>
			<emerg_piso>-</emerg_piso>
			<emerg_puerta>-</emerg_puerta>
			<emerg_cp>c1190aas</emerg_cp>
			<emerg_ciudad>capital federal</emerg_ciudad>
			<emerg_prov>capital federal</emerg_prov>
			<emerg_pais>argentina</emerg_pais>
			<emerg_tel1>48623611</emerg_tel1>
			<emerg_tel2>55552000</emerg_tel2>
			<emerg_email>[EMAIL PROTECTED]</emerg_email>
		</cliente>
		<agencia>
			<pais>540</pais>
			<codigo>6728</codigo>
			<codigoSuc>1</codigoSuc>
			<nombre_comercial>ACE SEGUROS S.A.</nombre_comercial>
			<ciudad>capfed</ciudad>
		</agencia>
		<producto>
			<pais>540</pais>
			<codigo>025</codigo>
			<nombre>MULTITRIP</nombre>
		</producto>
		<seguro>
			<pais>540</pais>
			<codigo>1</codigo>
			<tipoSeguro>1</tipoSeguro>
			<compania>ACE</compania>
			<nombre>nombreeee</nombre>
			<poliza>102154</poliza>
			<tope_aereo>456</tope_aereo>
			<tope_terrestre>4516</tope_terrestre>
			<tope>6456</tope>
			<total>9876</total>
		</seguro>
		<seguroEmitido>
			<pais>1</pais>
			<codigo>aswe44s441</codigo>
			<nroVoucher>456754675676</nroVoucher>
			<nro_certificado>15134513435</nro_certificado>
			<cod_cia_seguros/>
			<nro_recibo>0932987432</nro_recibo>
			<fec_recibo>9874309843</fec_recibo>
		</seguroEmitido>
		<tarifa>
			<pais>1</pais>
			<producto>1</producto>
			<tarifa>1</tarifa>
			<cantDias>1</cantDias>
			<leyenda>dsaf</leyenda>
		</tarifa>
	</voucher>
</vouchers>

Attachment: XMLGenerator.java
Description: Binary data

Attachment: PDFGenerator.java
Description: Binary data

<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:fo="http://www.w3.org/1999/XSL/Format"; xmlns:xsl="http://www.w3.org/1999/XSL/Transform";>
<xsl:template match="vouchers">
		<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format";>
			<xsl:for-each select="voucher">
				<fo:layout-master-set>
					<fo:simple-page-master margin-left="28mm" margin-right="14mm" margin-top="35mm" page-height="14in" page-width="8.5in">
						<fo:region-body/>
						<fo:region-before extent="0mm"/>
					</fo:simple-page-master>
				</fo:layout-master-set>
				<fo:page-sequence master-name="simple">
					<fo:flow flow-name="xsl-region-body">
						<fo:block font-size="10pt">
							<xsl:call-template name="voucher"/>
						</fo:block>
					</fo:flow>
				</fo:page-sequence>
			</xsl:for-each>
		</fo:root>
	</xsl:template>
	<xsl:template match="//vouchers/voucher" name="voucher">
		<xsl:apply-templates select="cliente"/>
		<xsl:apply-templates select="producto"/>
		<xsl:apply-templates select="agencia"/>
		<xsl:apply-templates select="seguroEmitido"/>
		<xsl:apply-templates select="seguro"/>
		<fo:table-cell>
			<fo:block margin-left="0mm" padding-top="16pt">
				<xsl:apply-templates select="@pais"/> <xsl:apply-templates select="@codigo"/> <xsl:apply-templates select="@tipo_pax_voucher"/>
				<xsl:apply-templates select="@sufijo_voucher"/>
			</fo:block>
			<fo:block margin-left="0mm" padding-top="5mm">EXPIRES:<xsl:apply-templates select="@fec_vig_fin"/>
			</fo:block>
			<fo:block margin-left="0mm" padding-top="83mm">
				<xsl:apply-templates select="@fecha_emision"/>
			</fo:block>
			<fo:block font-size="9pt" margin-left="88mm" padding-top="86pt">
				<xsl:apply-templates select="@fec_vig_inic"/>
			</fo:block>
			<fo:block font-size="9pt" margin-left="88mm" padding-top="1mm">------------</fo:block>
			<fo:block font-size="9pt" margin-left="88mm" padding-top="1mm">------------</fo:block>
			<xsl:if test="//seguro/compania != ''">
				<fo:block margin-left="0mm" padding-top="82mm">
					<xsl:apply-templates select="@cant_dias"/>
				</fo:block>
			</xsl:if>
		</fo:table-cell>
		<fo:table-cell>
			<fo:block margin-left="90mm" padding-top="16pt">
				<xsl:apply-templates select="@pais"/> <xsl:apply-templates select="@codigo"/> <xsl:apply-templates select="@tipo_pax_voucher"/>
				<xsl:apply-templates select="@sufijo_voucher"/>
			</fo:block>
			<fo:block margin-left="90mm" padding-top="5mm">EXPIRES:<xsl:apply-templates select="@fec_vig_fin"/>
			</fo:block>
			<fo:block margin-left="90mm" padding-top="117pt">
				<xsl:apply-templates select="@pais"/> <xsl:apply-templates select="@codigo"/> <xsl:apply-templates select="@tipo_pax_voucher"/>
				<xsl:apply-templates select="@sufijo_voucher"/>
			</fo:block>
			<fo:block margin-left="90mm" padding-top="5mm">EXPIRES:<xsl:apply-templates select="@fec_vig_fin"/>
			</fo:block>
			<fo:block font-size="9pt" margin-left="111mm" padding-top="179pt">
				<xsl:apply-templates select="@fec_vig_fin"/>
			</fo:block>
			<fo:block font-size="9pt" margin-left="111mm" padding-top="1mm">-------------</fo:block>
			<fo:block font-size="9pt" margin-left="111mm" padding-top="1mm">-------------</fo:block>
			<xsl:if test="//seguro/compania != ''">
				<fo:block margin-left="45mm" padding-top="82mm">
					<xsl:apply-templates select="@fec_vig_inic"/>
				</fo:block>
			</xsl:if>
		</fo:table-cell>
		<fo:table-cell>
			<fo:block margin-left="110mm" padding-top="93mm">
				<xsl:apply-templates select="@pais"/> <xsl:apply-templates select="@codigo"/> <xsl:apply-templates select="@tipo_pax_voucher"/>
				<xsl:apply-templates select="@sufijo_voucher"/>
			</fo:block>
			<fo:block font-size="9pt" margin-left="133mm" padding-top="39mm">
				<xsl:apply-templates select="@area"/>
			</fo:block>
			<fo:block font-size="9pt" margin-left="133mm" padding-top="1mm">---</fo:block>
			<fo:block font-size="9pt" margin-left="133mm" padding-top="1mm">---</fo:block>
		</fo:table-cell>
		<fo:table-cell>
			<fo:block font-size="9pt" margin-left="165mm" padding-top="136mm">
				<xsl:apply-templates select="@tarifa_impresa"/>
			</fo:block>
			<fo:block font-size="9pt" margin-left="165mm" padding-top="1mm">
				<xsl:apply-templates select="@tax_impuesto"/>
			</fo:block>
			<fo:block font-size="9pt" margin-left="165mm" padding-top="1mm">
				<xsl:apply-templates select="@tax_emitida"/>
			</fo:block>
			<fo:block margin-left="156mm" padding-top="4mm">
				<xsl:apply-templates select="@cant_dias"/>
			</fo:block>
		</fo:table-cell>
	</xsl:template>
	<xsl:template match="//voucher/cliente" name="cliente">
		<fo:table-cell>
			<fo:block margin-left="0mm" padding-top="10mm">
				<xsl:apply-templates select="apellido"/> <xsl:apply-templates select="nombre"/>
			</fo:block>
			<fo:block margin-left="0mm" padding-top="97mm">
				<xsl:apply-templates select="apellido"/> <xsl:apply-templates select="nombre"/>
			</fo:block>
			<fo:block margin-left="0mm" padding-top="4mm">
				<xsl:apply-templates select="dom_calle"/> <xsl:apply-templates select="dom_nro"/>
			</fo:block>
			<fo:block margin-left="0mm" padding-top="5mm">
				<xsl:apply-templates select="emerg_contacto"/>
			</fo:block>
			<fo:block margin-left="0mm" padding-top="12pt">
				<xsl:apply-templates select="emerg_tel1"/>
			</fo:block>
			<fo:block margin-left="0mm" padding-top="13pt">
				<xsl:apply-templates select="emerg_pais"/>
			</fo:block>
			<fo:block margin-left="0mm" padding-top="14pt">
				<xsl:apply-templates select="emerg_calle"/> <xsl:apply-templates select="emerg_nro"/> <xsl:apply-templates select="emerg_piso"/> <xsl:apply-templates select="emerg_puerta"/>
			</fo:block>
			<xsl:if test="//seguro/compania != ''">
				<fo:block margin-left="0mm" padding-top="54mm">
					<xsl:apply-templates select="apellido"/> <xsl:apply-templates select="nombre"/>
				</fo:block>
			</xsl:if>
		</fo:table-cell>
		<fo:table-cell>
			<fo:block margin-left="68mm" padding-top="111mm">
				<xsl:apply-templates select="sexo"/>
			</fo:block>
		</fo:table-cell>
		<fo:table-cell>
			<fo:block margin-left="80mm" padding-top="111mm">
				<xsl:apply-templates select="edad"/>
			</fo:block>
			<fo:block margin-left="78mm" padding-top="4mm">
				<xsl:apply-templates select="dom_cp"/>
			</fo:block>
		</fo:table-cell>
		<fo:table-cell>
			<fo:block margin-left="90mm" padding-top="10mm">
				<xsl:apply-templates select="apellido"/> <xsl:apply-templates select="nombre"/>
			</fo:block>
			<fo:block margin-left="90mm" padding-top="50mm">
				<xsl:apply-templates select="apellido"/> <xsl:apply-templates select="nombre"/>
			</fo:block>
			<fo:block margin-left="101mm" padding-top="122pt">
				<xsl:apply-templates select="pasaporte"/>
			</fo:block>
			<fo:block margin-left="113mm" padding-top="4mm">
				<xsl:apply-templates select="dom_ciudad"/>
			</fo:block>
			<fo:block margin-left="95mm" padding-top="5mm">
				<xsl:apply-templates select="emerg_email"/>
			</fo:block>
		</fo:table-cell>
		<fo:table-cell>
			<fo:block margin-left="140mm" padding-top="111mm">
				<xsl:apply-templates select="tel_particular"/>
			</fo:block>
			<fo:block margin-left="152mm" padding-top="4mm">
				<xsl:apply-templates select="dom_country"/>
			</fo:block>
		</fo:table-cell>
	</xsl:template>
	<xsl:template match="//voucher/producto" name="producto">
		<fo:table-cell>
			<fo:block margin-left="0mm" padding-top="55pt">
				<xsl:apply-templates select="nombre"/>
			</fo:block>
		</fo:table-cell>
		<fo:table-cell>
			<fo:block margin-left="90mm" padding-top="55pt">
				<xsl:apply-templates select="nombre"/>
			</fo:block>
			<fo:block margin-left="90mm" padding-top="50mm">
				<xsl:apply-templates select="nombre"/>
			</fo:block>
			<fo:block margin-left="130mm" padding-top="25mm">
				<xsl:apply-templates select="nombre"/>
			</fo:block>
		</fo:table-cell>
	</xsl:template>
	<xsl:template match="agencia" name="agencia">
		<fo:table-cell>
			<fo:block font-size="9pt" margin-left="60mm" padding-top="102mm">
				<xsl:apply-templates select="codigo"/> - <xsl:apply-templates select="nombre_comercial"/>
			</fo:block>
			<xsl:if test="//seguro/compania != ''">
				<fo:block font-size="9pt" margin-left="93mm" padding-top="135mm">
					<xsl:apply-templates select="codigo"/> - <xsl:apply-templates select="nombre_comercial"/>
				</fo:block>
				<fo:block font-size="9pt" margin-left="93mm" padding-top="2mm">
					<xsl:apply-templates select="ciudad"/>
				</fo:block>
			</xsl:if>
		</fo:table-cell>
	</xsl:template>
	<xsl:template match="seguroEmitido" name="seguroEmitido">
		<fo:table-cell>
			<fo:block margin-left="0mm" padding-top="221mm">
				<xsl:apply-templates select="nroVoucher"/>
			</fo:block>
			<fo:block margin-left="0mm" padding-top="14mm">
				<xsl:apply-templates select="nro_recibo"/>
			</fo:block>
		</fo:table-cell>
		<fo:table-cell>
			<fo:block margin-left="45mm" padding-top="239mm">
				<xsl:apply-templates select="fec_recibo"/>
			</fo:block>
		</fo:table-cell>
		<fo:table-cell>
			<fo:block margin-left="100mm" padding-top="208mm">
				<xsl:apply-templates select="nro_certificado"/>
			</fo:block>
		</fo:table-cell>
	</xsl:template>
	<xsl:template match="seguro" name="seguro">
		<fo:table-cell>
			<fo:block margin-left="0mm" padding-top="203mm">
				<xsl:apply-templates select="compania"/>
			</fo:block>
		</fo:table-cell>
		<fo:table-cell>
			<fo:block margin-left="155mm" padding-top="208mm">
				<xsl:apply-templates select="poliza"/>
			</fo:block>
			<fo:block margin-left="155mm" padding-top="9mm">
				<xsl:apply-templates select="tope"/>
			</fo:block>
			<fo:block margin-left="155mm" padding-top="1pt">
				<xsl:apply-templates select="tope_aereo"/>
			</fo:block>
			<fo:block margin-left="155mm" padding-top="1pt">
				<xsl:apply-templates select="tope_terrestre"/>
			</fo:block>
			<fo:block margin-left="155mm" padding-top="0pt">
				<xsl:apply-templates select="total"/>
			</fo:block>
		</fo:table-cell>
	</xsl:template>
</xsl:stylesheet>
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; xmlns:fo="http://www.w3.org/1999/XSL/Format";>
<xsl:template match="vouchers">
		<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format";>
			<xsl:for-each select="voucher">
				<fo:layout-master-set>
					<fo:simple-page-master page-height="14in" page-width="8.5in" margin-top="35mm" margin-left="28mm" margin-right="14mm">
						<fo:region-body/>
						<fo:region-before extent="0mm"/>
					</fo:simple-page-master>
				</fo:layout-master-set>
				<fo:page-sequence master-name="simple">
					<fo:flow flow-name="xsl-region-body">
						<fo:block font-size="10pt">
							<xsl:call-template name="voucher"/>
						</fo:block>
					</fo:flow>
				</fo:page-sequence>
			</xsl:for-each>
		</fo:root>
	</xsl:template>
	<xsl:template match="//vouchers/voucher" name="voucher">
		<xsl:apply-templates select="cliente"/>
		<xsl:apply-templates select="producto"/>
		<xsl:apply-templates select="agencia"/>
		<xsl:apply-templates select="seguroEmitido"/>
		<xsl:apply-templates select="seguro"/>
		<fo:table-cell>
			<fo:block margin-left="0mm" padding-top="16pt">
				<xsl:apply-templates select="@pais"/>&#160;<xsl:apply-templates select="@codigo"/>&#160;<xsl:apply-templates select="@tipo_pax_voucher"/>
				<xsl:apply-templates select="@sufijo_voucher"/>
			</fo:block>
			<fo:block margin-left="0mm" padding-top="5mm">EXPIRES:<xsl:apply-templates select="@fec_vig_fin"/>
			</fo:block>
			<fo:block margin-left="0mm" padding-top="83mm">
				<xsl:apply-templates select="@fecha_emision"/>
			</fo:block>
			<fo:block margin-left="88mm" padding-top="86pt" font-size="9pt">
				<xsl:apply-templates select="@fec_vig_inic"/>
			</fo:block>
			<fo:block margin-left="88mm" padding-top="1mm" font-size="9pt">------------</fo:block>
			<fo:block margin-left="88mm" padding-top="1mm" font-size="9pt">------------</fo:block>
			<xsl:if test="//seguro/compania != ''">
				<fo:block margin-left="0mm" padding-top="82mm">
					<xsl:apply-templates select="@cant_dias"/>
				</fo:block>
			</xsl:if>
		</fo:table-cell>
		<fo:table-cell>
			<fo:block margin-left="90mm" padding-top="16pt">
				<xsl:apply-templates select="@pais"/>&#160;<xsl:apply-templates select="@codigo"/>&#160;<xsl:apply-templates select="@tipo_pax_voucher"/>
				<xsl:apply-templates select="@sufijo_voucher"/>
			</fo:block>
			<fo:block margin-left="90mm" padding-top="5mm">EXPIRES:<xsl:apply-templates select="@fec_vig_fin"/>
			</fo:block>
			<fo:block margin-left="90mm" padding-top="117pt">
				<xsl:apply-templates select="@pais"/>&#160;<xsl:apply-templates select="@codigo"/>&#160;<xsl:apply-templates select="@tipo_pax_voucher"/>
				<xsl:apply-templates select="@sufijo_voucher"/>
			</fo:block>
			<fo:block margin-left="90mm" padding-top="5mm">EXPIRES:<xsl:apply-templates select="@fec_vig_fin"/>
			</fo:block>
			<fo:block margin-left="111mm" padding-top="179pt" font-size="9pt">
				<xsl:apply-templates select="@fec_vig_fin"/>
			</fo:block>
			<fo:block margin-left="111mm" padding-top="1mm" font-size="9pt">-------------</fo:block>
			<fo:block margin-left="111mm" padding-top="1mm" font-size="9pt">-------------</fo:block>
			<xsl:if test="//seguro/compania != ''">
				<fo:block margin-left="45mm" padding-top="82mm">
					<xsl:apply-templates select="@fec_vig_inic"/>
				</fo:block>
			</xsl:if>
		</fo:table-cell>
		<fo:table-cell>
			<fo:block margin-left="110mm" padding-top="93mm">
				<xsl:apply-templates select="@pais"/>&#160;<xsl:apply-templates select="@codigo"/>&#160;<xsl:apply-templates select="@tipo_pax_voucher"/>
				<xsl:apply-templates select="@sufijo_voucher"/>
			</fo:block>
			<fo:block margin-left="133mm" padding-top="39mm" font-size="9pt">
				<xsl:apply-templates select="@area"/>
			</fo:block>
			<fo:block margin-left="133mm" padding-top="1mm" font-size="9pt">---</fo:block>
			<fo:block margin-left="133mm" padding-top="1mm" font-size="9pt">---</fo:block>
		</fo:table-cell>
		<fo:table-cell>
			<fo:block margin-left="165mm" padding-top="136mm" font-size="9pt">
				<xsl:apply-templates select="@tarifa_impresa"/>
			</fo:block>
			<fo:block margin-left="165mm" padding-top="1mm" font-size="9pt">
				<xsl:apply-templates select="@tax_impuesto"/>
			</fo:block>
			<fo:block margin-left="165mm" padding-top="1mm" font-size="9pt">
				<xsl:apply-templates select="@tax_emitida"/>
			</fo:block>
			<fo:block margin-left="156mm" padding-top="4mm">
				<xsl:apply-templates select="@cant_dias"/>
			</fo:block>
		</fo:table-cell>
	</xsl:template>
	<xsl:template match="//voucher/cliente" name="cliente">
		<fo:table-cell>
			<fo:block margin-left="0mm" padding-top="10mm">
				<xsl:apply-templates select="apellido"/>&#160;<xsl:apply-templates select="nombre"/>
			</fo:block>
			<fo:block margin-left="0mm" padding-top="97mm">
				<xsl:apply-templates select="apellido"/>&#160;<xsl:apply-templates select="nombre"/>
			</fo:block>
			<fo:block margin-left="0mm" padding-top="4mm">
				<xsl:apply-templates select="dom_calle"/>&#160;<xsl:apply-templates select="dom_nro"/>
			</fo:block>
			<fo:block margin-left="0mm" padding-top="5mm">
				<xsl:apply-templates select="emerg_contacto"/>
			</fo:block>
			<fo:block margin-left="0mm" padding-top="12pt">
				<xsl:apply-templates select="emerg_tel1"/>
			</fo:block>
			<fo:block margin-left="0mm" padding-top="13pt">
				<xsl:apply-templates select="emerg_pais"/>
			</fo:block>
			<fo:block margin-left="0mm" padding-top="14pt">
				<xsl:apply-templates select="emerg_calle"/>&#160;<xsl:apply-templates select="emerg_nro"/>&#160;<xsl:apply-templates select="emerg_piso"/>&#160;<xsl:apply-templates select="emerg_puerta"/>
			</fo:block>
			<xsl:if test="//seguro/compania != ''">
				<fo:block margin-left="0mm" padding-top="54mm">
					<xsl:apply-templates select="apellido"/>&#160;<xsl:apply-templates select="nombre"/>
				</fo:block>
			</xsl:if>
		</fo:table-cell>
		<fo:table-cell>
			<fo:block margin-left="68mm" padding-top="111mm">
				<xsl:apply-templates select="sexo"/>
			</fo:block>
		</fo:table-cell>
		<fo:table-cell>
			<fo:block margin-left="80mm" padding-top="111mm">
				<xsl:apply-templates select="edad"/>
			</fo:block>
			<fo:block margin-left="78mm" padding-top="4mm">
				<xsl:apply-templates select="dom_cp"/>
			</fo:block>
		</fo:table-cell>
		<fo:table-cell>
			<fo:block margin-left="90mm" padding-top="10mm">
				<xsl:apply-templates select="apellido"/>&#160;<xsl:apply-templates select="nombre"/>
			</fo:block>
			<fo:block margin-left="90mm" padding-top="50mm">
				<xsl:apply-templates select="apellido"/>&#160;<xsl:apply-templates select="nombre"/>
			</fo:block>
			<fo:block margin-left="101mm" padding-top="122pt">
				<xsl:apply-templates select="pasaporte"/>
			</fo:block>
			<fo:block margin-left="113mm" padding-top="4mm">
				<xsl:apply-templates select="dom_ciudad"/>
			</fo:block>
			<fo:block margin-left="95mm" padding-top="5mm">
				<xsl:apply-templates select="emerg_email"/>
			</fo:block>
		</fo:table-cell>
		<fo:table-cell>
			<fo:block margin-left="140mm" padding-top="111mm">
				<xsl:apply-templates select="tel_particular"/>
			</fo:block>
			<fo:block margin-left="152mm" padding-top="4mm">
				<xsl:apply-templates select="dom_country"/>
			</fo:block>
		</fo:table-cell>
	</xsl:template>
	<xsl:template match="//voucher/producto" name="producto">
		<fo:table-cell>
			<fo:block margin-left="0mm" padding-top="55pt">
				<xsl:apply-templates select="nombre"/>
			</fo:block>
		</fo:table-cell>
		<fo:table-cell>
			<fo:block margin-left="90mm" padding-top="55pt">
				<xsl:apply-templates select="nombre"/>
			</fo:block>
			<fo:block margin-left="90mm" padding-top="50mm">
				<xsl:apply-templates select="nombre"/>
			</fo:block>
			<fo:block margin-left="130mm" padding-top="25mm">
				<xsl:apply-templates select="nombre"/>
			</fo:block>
		</fo:table-cell>
	</xsl:template>
	<xsl:template match="agencia" name="agencia">
		<fo:table-cell>
			<fo:block margin-left="60mm" padding-top="102mm" font-size="9pt">
				<xsl:apply-templates select="codigo"/>&#160;-&#160;<xsl:apply-templates select="nombre_comercial"/>
			</fo:block>
			<xsl:if test="//seguro/compania != ''">
				<fo:block margin-left="93mm" padding-top="135mm" font-size="9pt">
					<xsl:apply-templates select="codigo"/>&#160;-&#160;<xsl:apply-templates select="nombre_comercial"/>
				</fo:block>
				<fo:block margin-left="93mm" padding-top="2mm" font-size="9pt">
					<xsl:apply-templates select="ciudad"/>
				</fo:block>
			</xsl:if>
		</fo:table-cell>
	</xsl:template>
	<xsl:template match="seguroEmitido" name="seguroEmitido">
		<fo:table-cell>
			<fo:block margin-left="0mm" padding-top="221mm">
				<xsl:apply-templates select="nroVoucher"/>
			</fo:block>
			<fo:block margin-left="0mm" padding-top="14mm">
				<xsl:apply-templates select="nro_recibo"/>
			</fo:block>
		</fo:table-cell>
		<fo:table-cell>
			<fo:block margin-left="45mm" padding-top="239mm">
				<xsl:apply-templates select="fec_recibo"/>
			</fo:block>
		</fo:table-cell>
		<fo:table-cell>
			<fo:block margin-left="100mm" padding-top="208mm">
				<xsl:apply-templates select="nro_certificado"/>
			</fo:block>
		</fo:table-cell>
	</xsl:template>
	<xsl:template match="seguro" name="seguro">
		<fo:table-cell>
			<fo:block margin-left="0mm" padding-top="203mm">
				<xsl:apply-templates select="compania"/>
			</fo:block>
		</fo:table-cell>
		<fo:table-cell>
			<fo:block margin-left="155mm" padding-top="208mm">
				<xsl:apply-templates select="poliza"/>
			</fo:block>
			<fo:block margin-left="155mm" padding-top="9mm">
				<xsl:apply-templates select="tope"/>
			</fo:block>
			<fo:block margin-left="155mm" padding-top="1pt">
				<xsl:apply-templates select="tope_aereo"/>
			</fo:block>
			<fo:block margin-left="155mm" padding-top="1pt">
				<xsl:apply-templates select="tope_terrestre"/>
			</fo:block>
			<fo:block margin-left="155mm" padding-top="0pt">
				<xsl:apply-templates select="total"/>
			</fo:block>
		</fo:table-cell>
	</xsl:template>
</xsl:stylesheet>

<?xml version="1.0" encoding="UTF-8"?>
<vouchers xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
	<voucher fec_vig_fin="15/5/2002" tax_impuesto="1.2" cant_dias="15" tax_emitida="1.5" tarifa_impresa="1.65" fecha_emision="1/5/2002" cod_tarifa="123" codigo="12312" fec_vig_inic="1/5/2002" pais="540" area="10" tipo_pax_voucher="02" sufijo_voucher="5">
		<cliente>
			<pais>540</pais>
			<codigo>1</codigo>
			<apellido>Gonzalez</apellido>
			<nombre>Esteban</nombre>
			<sexo>M</sexo>
			<fec_nacimiento>23/07/1978</fec_nacimiento>
			<edad>24</edad>
			<pasaporte>26786032</pasaporte>
			<tel_particular>48623611</tel_particular>
			<dom_calle>Lavalle</dom_calle>
			<dom_nro>3693</dom_nro>
			<dom_cp>c1190aas</dom_cp>
			<dom_ciudad>capital&#160;federal</dom_ciudad>
			<dom_country>argentina</dom_country>
			<emerg_contacto>Roberto&#160;Gonzalez</emerg_contacto>
			<emerg_calle>Lavalle</emerg_calle>
			<emerg_nro>3693</emerg_nro>
			<emerg_piso>-</emerg_piso>
			<emerg_puerta>-</emerg_puerta>
			<emerg_cp>c1190aas</emerg_cp>
			<emerg_ciudad>capital&#160;federal</emerg_ciudad>
			<emerg_prov>capital&#160;federal</emerg_prov>
			<emerg_pais>argentina</emerg_pais>
			<emerg_tel1>48623611</emerg_tel1>
			<emerg_tel2>55552000</emerg_tel2>
			<emerg_email>[EMAIL PROTECTED]</emerg_email>
		</cliente>
		<agencia>
			<pais>540</pais>
			<codigo>6728</codigo>
			<codigoSuc>1</codigoSuc>
			<nombre_comercial>ACE&#160;SEGUROS&#160;S.A.</nombre_comercial>
			<ciudad>capfed</ciudad>
		</agencia>
		<producto>
			<pais>540</pais>
			<codigo>025</codigo>
			<nombre>MULTITRIP</nombre>
		</producto>
		<seguro>
			<pais>540</pais>
			<codigo>1</codigo>
			<tipoSeguro>1</tipoSeguro>
			<compania>ACE</compania>
			<nombre>nombreeee</nombre>
			<poliza>102154</poliza>
			<tope_aereo>456</tope_aereo>
			<tope_terrestre>4516</tope_terrestre>
			<tope>6456</tope>
			<total>9876</total>
		</seguro>
		<seguroEmitido>
			<pais>1</pais>
			<codigo>aswe44s441</codigo>
			<nroVoucher>456754675676</nroVoucher>
			<nro_certificado>15134513435</nro_certificado>
			<cod_cia_seguros/>
			<nro_recibo>0932987432</nro_recibo>
			<fec_recibo>9874309843</fec_recibo>
		</seguroEmitido>
		<tarifa>
			<pais>1</pais>
			<producto>1</producto>
			<tarifa>1</tarifa>
			<cantDias>1</cantDias>
			<leyenda>dsaf</leyenda>
		</tarifa>
	</voucher>
</vouchers>
<?xml version="1.0" encoding="UTF-8"?>
<!-- edited with XML Spy v4.3 U (http://www.xmlspy.com) by Vader (The Empire) -->
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"; elementFormDefault="qualified" attributeFormDefault="unqualified">
	<xs:element name="vouchers">
		<xs:complexType>
			<xs:sequence>
				<xs:element name="voucher" type="voucherType" maxOccurs="unbounded"/>
			</xs:sequence>
		</xs:complexType>
	</xs:element>
	<xs:complexType name="voucherType">

		<xs:sequence>
			<xs:element name="cliente" type="clienteType"/>
			<xs:element name="agencia" type="agenciaType"/>
			<xs:element  name="producto" type="productoType"/>
			<xs:element  name="seguro" type="seguroType"/>
			<xs:element  name="seguroEmitido" type="seguroEmitidoType"/>
			<xs:element  name="tarifa" type="tarifaType"/>
		</xs:sequence>
						<xs:attribute name="fec_vig_fin" type="xs:string"/>
			<xs:attribute name="pais" type="xs:int"/>
			<xs:attribute name="codigo" type="xs:int"/>
			<xs:attribute name="fecha_emision" type="xs:string"/>
			<xs:attribute name="cod_tarifa" type="xs:string"/>
			<xs:attribute name="cant_dias" type="xs:string"/>
			<xs:attribute name="fec_vig_inic" type="xs:string"/>
			<xs:attribute name="tax_emitida" type="xs:float"/>
			<xs:attribute name="tarifa_impresa" type="xs:float"/>
			<xs:attribute name="tax_impuesto" type="xs:float"/>
			<xs:attribute name="area" type="xs:string"/>
			<xs:attribute name="tipo_pax_voucher" type="xs:string"/>
			<xs:attribute name="sufijo_voucher" type="xs:string"/>

	</xs:complexType>
	<xs:complexType name="clienteType">
		<xs:sequence>
			<xs:element name="pais" type="xs:int"/>
			<xs:element name="codigo" type="xs:int"/>
			<xs:element name="apellido" type="xs:string"/>
			<xs:element name="nombre" type="xs:string"/>
			<xs:element name="sexo" type="xs:string"/>
			<xs:element name="fec_nacimiento" type="xs:string"/>
			<xs:element name="edad" type="xs:string"/>
			<xs:element name="pasaporte" type="xs:string"/>
			<xs:element name="tel_particular" type="xs:string"/>
			<xs:element name="dom_calle" type="xs:string"/>
			<xs:element name="dom_nro" type="xs:string"/>
			<xs:element name="dom_cp" type="xs:string"/>
			<xs:element name="dom_ciudad" type="xs:string"/>
			<xs:element name="dom_country" type="xs:string"/>
			<xs:element name="emerg_contacto" type="xs:string"/>
			<xs:element name="emerg_calle" type="xs:string"/>
			<xs:element name="emerg_nro" type="xs:string"/>
			<xs:element name="emerg_piso" type="xs:string"/>
			<xs:element name="emerg_puerta" type="xs:string"/>
			<xs:element name="emerg_cp" type="xs:string"/>
			<xs:element name="emerg_ciudad" type="xs:string"/>
			<xs:element name="emerg_prov" type="xs:string"/>
			<xs:element name="emerg_pais" type="xs:string"/>
			<xs:element name="emerg_tel1" type="xs:string"/>
			<xs:element name="emerg_tel2" type="xs:string"/>
			<xs:element name="emerg_email" type="xs:string"/>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="productoType">
		<xs:sequence>
			<xs:element name="pais" type="xs:int"/>
			<xs:element name="codigo" type="xs:string"/>
			<xs:element name="nombre" type="xs:string"/>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="seguroType">
		<xs:sequence>
			<xs:element name="pais" type="xs:int"/>
			<xs:element name="codigo" type="xs:string"/>
			<xs:element name="tipoSeguro" type="xs:string"/>
			<xs:element name="compania" type="xs:string"/>
			<xs:element name="nombre" type="xs:string"/>
			<xs:element name="poliza" type="xs:string"/>
			<xs:element name="tope_aereo" type="xs:float"/>
			<xs:element name="tope_terrestre" type="xs:float"/>
			<xs:element name="tope" type="xs:float"/>
			<xs:element name="total" type="xs:float"/>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="seguroEmitidoType">
		<xs:sequence>
			<xs:element name="pais" type="xs:int"/>
			<xs:element name="codigo" type="xs:string"/>
			<xs:element name="nroVoucher" type="xs:string"/>
			<xs:element name="nro_certificado" type="xs:string"/>
			<xs:element name="cod_cia_seguros" type="xs:string"/>
			<xs:element name="nro_recibo" type="xs:string"/>
			<xs:element name="fec_recibo" type="xs:string"/>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="agenciaType">
		<xs:sequence>
			<xs:element name="pais" type="xs:int"/>
			<xs:element name="codigo" type="xs:string"/>
			<xs:element name="codigoSuc" type="xs:int"/>
			<xs:element name="nombre_comercial" type="xs:string"/>
			<xs:element name="ciudad" type="xs:string"/>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="tarifaType">
		<xs:sequence>
			<xs:element name="pais" type="xs:int"/>
			<xs:element name="producto" type="xs:string"/>
			<xs:element name="tarifa" type="xs:string"/>
			<xs:element name="cantDias" type="xs:string"/>
			<xs:element name="leyenda" type="xs:string"/>
		</xs:sequence>
	</xs:complexType>
</xs:schema>

Reply via email to