sw_fac 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/.gitignore +8 -0
- data/.travis.yml +5 -0
- data/Gemfile +6 -0
- data/Gemfile.lock +26 -0
- data/LICENSE.txt +21 -0
- data/README.md +39 -0
- data/Rakefile +10 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/lib/cadena/ComercioExterior11.xslt +181 -0
- data/lib/cadena/Pagos10.xslt +165 -0
- data/lib/cadena/TuristaPasajeroExtranjero.xslt +40 -0
- data/lib/cadena/aerolineas.xslt +50 -0
- data/lib/cadena/cadena33.xslt +349 -0
- data/lib/cadena/certificadodedestruccion.xslt +60 -0
- data/lib/cadena/cfdiregistrofiscal.xslt +19 -0
- data/lib/cadena/cfdv33.xsd +737 -0
- data/lib/cadena/consumodecombustibles.xslt +108 -0
- data/lib/cadena/detallista.xslt +42 -0
- data/lib/cadena/divisas.xslt +13 -0
- data/lib/cadena/donat11.xslt +13 -0
- data/lib/cadena/ecc11.xslt +102 -0
- data/lib/cadena/iedu.xslt +26 -0
- data/lib/cadena/implocal.xslt +39 -0
- data/lib/cadena/ine11.xslt +51 -0
- data/lib/cadena/leyendasFisc.xslt +28 -0
- data/lib/cadena/nomina12.xslt +412 -0
- data/lib/cadena/notariospublicos.xslt +301 -0
- data/lib/cadena/obrasarteantiguedades.xslt +33 -0
- data/lib/cadena/pagoenespecie.xslt +39 -0
- data/lib/cadena/pfic.xslt +13 -0
- data/lib/cadena/renovacionysustitucionvehiculos.xslt +152 -0
- data/lib/cadena/servicioparcialconstruccion.xslt +44 -0
- data/lib/cadena/terceros11.xslt +108 -0
- data/lib/cadena/utilerias.xslt +22 -0
- data/lib/cadena/valesdedespensa.xslt +70 -0
- data/lib/cadena/vehiculousado.xslt +63 -0
- data/lib/cadena/ventavehiculos11.xslt +53 -0
- data/lib/sw_fac/config.rb +69 -0
- data/lib/sw_fac/facturacion.rb +616 -0
- data/lib/sw_fac/tools.rb +105 -0
- data/lib/sw_fac/version.rb +3 -0
- data/lib/sw_fac.rb +18 -0
- data/sw_fac.gemspec +38 -0
- data/test/sw_fac_test.rb +11 -0
- data/test/test_helper.rb +4 -0
- metadata +146 -0
@@ -0,0 +1,108 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:fn="http://www.w3.org/2005/xpath-functions" xmlns:consumodecombustibles="http://www.sat.gob.mx/consumodecombustibles">
|
3
|
+
|
4
|
+
<!-- Manejador de nodos tipo consumodecombustibles:ConsumoDeCombustibles -->
|
5
|
+
<xsl:template match="consumodecombustibles:ConsumoDeCombustibles">
|
6
|
+
|
7
|
+
<!-- Iniciamos el tratamiento de los atributos de consumodecombustibles:ConsumoDeCombustibles -->
|
8
|
+
|
9
|
+
<xsl:call-template name="Requerido">
|
10
|
+
<xsl:with-param name="valor" select="./@version"/>
|
11
|
+
</xsl:call-template>
|
12
|
+
<xsl:call-template name="Requerido">
|
13
|
+
<xsl:with-param name="valor" select="./@tipoOperacion"/>
|
14
|
+
</xsl:call-template>
|
15
|
+
<xsl:call-template name="Requerido">
|
16
|
+
<xsl:with-param name="valor" select="./@numeroDeCuenta"/>
|
17
|
+
</xsl:call-template>
|
18
|
+
<xsl:call-template name="Opcional">
|
19
|
+
<xsl:with-param name="valor" select="./@subTotal"/>
|
20
|
+
</xsl:call-template>
|
21
|
+
<xsl:call-template name="Requerido">
|
22
|
+
<xsl:with-param name="valor" select="./@total"/>
|
23
|
+
</xsl:call-template>
|
24
|
+
|
25
|
+
<!-- Iniciamos el manejo de los nodos dependientes -->
|
26
|
+
<xsl:apply-templates select="./consumodecombustibles:Conceptos"/>
|
27
|
+
|
28
|
+
</xsl:template>
|
29
|
+
|
30
|
+
<!-- Manejador de nodos tipo consumodecombustibles:Conceptos -->
|
31
|
+
<xsl:template match="consumodecombustibles:Conceptos">
|
32
|
+
|
33
|
+
<!-- Iniciamos el manejo de los nodos dependientes -->
|
34
|
+
|
35
|
+
<xsl:for-each select="./consumodecombustibles:ConceptoConsumoDeCombustibles">
|
36
|
+
<xsl:apply-templates select="."/>
|
37
|
+
</xsl:for-each>
|
38
|
+
|
39
|
+
</xsl:template>
|
40
|
+
|
41
|
+
<!-- Manejador de nodos tipo consumodecombustibles:ConceptoConsumoDeCombustibles -->
|
42
|
+
<xsl:template match="consumodecombustibles:ConceptoConsumoDeCombustibles">
|
43
|
+
|
44
|
+
<!-- Iniciamos el tratamiento de los atributos de consumodecombustibles:ConceptoConsumoDeCombustibles -->
|
45
|
+
|
46
|
+
<xsl:call-template name="Requerido">
|
47
|
+
<xsl:with-param name="valor" select="./@identificador"/>
|
48
|
+
</xsl:call-template>
|
49
|
+
<xsl:call-template name="Requerido">
|
50
|
+
<xsl:with-param name="valor" select="./@fecha"/>
|
51
|
+
</xsl:call-template>
|
52
|
+
<xsl:call-template name="Requerido">
|
53
|
+
<xsl:with-param name="valor" select="./@rfc"/>
|
54
|
+
</xsl:call-template>
|
55
|
+
<xsl:call-template name="Requerido">
|
56
|
+
<xsl:with-param name="valor" select="./@claveEstacion"/>
|
57
|
+
</xsl:call-template>
|
58
|
+
<xsl:call-template name="Requerido">
|
59
|
+
<xsl:with-param name="valor" select="./@cantidad"/>
|
60
|
+
</xsl:call-template>
|
61
|
+
<xsl:call-template name="Requerido">
|
62
|
+
<xsl:with-param name="valor" select="./@nombreCombustible"/>
|
63
|
+
</xsl:call-template>
|
64
|
+
<xsl:call-template name="Requerido">
|
65
|
+
<xsl:with-param name="valor" select="./@folioOperacion"/>
|
66
|
+
</xsl:call-template>
|
67
|
+
<xsl:call-template name="Requerido">
|
68
|
+
<xsl:with-param name="valor" select="./@valorUnitario"/>
|
69
|
+
</xsl:call-template>
|
70
|
+
<xsl:call-template name="Requerido">
|
71
|
+
<xsl:with-param name="valor" select="./@importe"/>
|
72
|
+
</xsl:call-template>
|
73
|
+
|
74
|
+
<xsl:for-each select="./consumodecombustibles:Determinados">
|
75
|
+
<xsl:apply-templates select="."/>
|
76
|
+
</xsl:for-each>
|
77
|
+
|
78
|
+
</xsl:template>
|
79
|
+
|
80
|
+
<!-- Manejador de nodos tipo consumodecombustibles:Determinados -->
|
81
|
+
<xsl:template match="consumodecombustibles:Determinados">
|
82
|
+
|
83
|
+
<!-- Iniciamos el manejo de los nodos dependientes -->
|
84
|
+
|
85
|
+
<xsl:for-each select="./consumodecombustibles:Determinado">
|
86
|
+
<xsl:apply-templates select="."/>
|
87
|
+
</xsl:for-each>
|
88
|
+
|
89
|
+
</xsl:template>
|
90
|
+
|
91
|
+
<!-- Manejador de nodos tipo consumodecombustibles:Determinado -->
|
92
|
+
<xsl:template match="consumodecombustibles:Determinado">
|
93
|
+
|
94
|
+
<!-- Iniciamos el tratamiento de los atributos de consumodecombustibles:Determinado -->
|
95
|
+
|
96
|
+
<xsl:call-template name="Requerido">
|
97
|
+
<xsl:with-param name="valor" select="./@impuesto"/>
|
98
|
+
</xsl:call-template>
|
99
|
+
<xsl:call-template name="Requerido">
|
100
|
+
<xsl:with-param name="valor" select="./@tasa"/>
|
101
|
+
</xsl:call-template>
|
102
|
+
<xsl:call-template name="Requerido">
|
103
|
+
<xsl:with-param name="valor" select="./@importe"/>
|
104
|
+
</xsl:call-template>
|
105
|
+
|
106
|
+
</xsl:template>
|
107
|
+
|
108
|
+
</xsl:stylesheet>
|
@@ -0,0 +1,42 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:fn="http://www.w3.org/2005/xpath-functions" xmlns:detallista="http://www.sat.gob.mx/detallista">
|
3
|
+
<!-- <xsl:output method="text" version="1.0" encoding="UTF-8" indent="no"/> -->
|
4
|
+
<xsl:output method="text" version="1.0" encoding="UTF-8" indent="no"/>
|
5
|
+
<!-- Manejador de nodos tipo detallista -->
|
6
|
+
<xsl:template match="detallista:detallista">
|
7
|
+
<!-- Iniciamos el tratamiento de los atributos del sector detallista -->
|
8
|
+
<xsl:call-template name="Requerido">
|
9
|
+
<xsl:with-param name="valor" select="./@documentStructureVersion"/>
|
10
|
+
</xsl:call-template>
|
11
|
+
<xsl:for-each select="detallista:orderIdentification/detallista:referenceIdentification">
|
12
|
+
<xsl:call-template name="Requerido">
|
13
|
+
<xsl:with-param name="valor" select="."/>
|
14
|
+
</xsl:call-template>
|
15
|
+
</xsl:for-each>
|
16
|
+
<xsl:call-template name="Opcional">
|
17
|
+
<xsl:with-param name="valor" select="detallista:orderIdentification/detallista:ReferenceDate"/>
|
18
|
+
</xsl:call-template>
|
19
|
+
<xsl:call-template name="Requerido">
|
20
|
+
<xsl:with-param name="valor" select="detallista:buyer/detallista:gln"/>
|
21
|
+
</xsl:call-template>
|
22
|
+
<xsl:call-template name="Requerido">
|
23
|
+
<xsl:with-param name="valor" select="detallista:seller/detallista:gln"/>
|
24
|
+
</xsl:call-template>
|
25
|
+
<xsl:call-template name="Requerido">
|
26
|
+
<xsl:with-param name="valor" select="detallista:seller/detallista:alternatePartyIdentification"/>
|
27
|
+
</xsl:call-template>
|
28
|
+
<xsl:call-template name="Requerido">
|
29
|
+
<xsl:with-param name="valor" select="detallista:totalAmount/detallista:Amount"/>
|
30
|
+
</xsl:call-template>
|
31
|
+
<xsl:for-each select="detallista:TotalAllowanceCharge/detallista:specialServicesType">
|
32
|
+
<xsl:call-template name="Opcional">
|
33
|
+
<xsl:with-param name="valor" select="."/>
|
34
|
+
</xsl:call-template>
|
35
|
+
</xsl:for-each>
|
36
|
+
<xsl:for-each select="detallista:TotalAllowanceCharge/detallista:Amount">
|
37
|
+
<xsl:call-template name="Opcional">
|
38
|
+
<xsl:with-param name="valor" select="."/>
|
39
|
+
</xsl:call-template>
|
40
|
+
</xsl:for-each>
|
41
|
+
</xsl:template>
|
42
|
+
</xsl:stylesheet>
|
@@ -0,0 +1,13 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:fn="http://www.w3.org/2005/xpath-functions" xmlns:divisas="http://www.sat.gob.mx/divisas">
|
3
|
+
<!-- Manejador de nodos tipo divisas:Divisas -->
|
4
|
+
<xsl:template match="divisas:Divisas">
|
5
|
+
<!-- Iniciamos el tratamiento de los atributos de divisas:Divisas -->
|
6
|
+
<xsl:call-template name="Requerido">
|
7
|
+
<xsl:with-param name="valor" select="./@version"/>
|
8
|
+
</xsl:call-template>
|
9
|
+
<xsl:call-template name="Requerido">
|
10
|
+
<xsl:with-param name="valor" select="./@tipoOperacion"/>
|
11
|
+
</xsl:call-template>
|
12
|
+
</xsl:template>
|
13
|
+
</xsl:stylesheet>
|
@@ -0,0 +1,13 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:fn="http://www.w3.org/2005/xpath-functions" xmlns:donat="http://www.sat.gob.mx/donat">
|
3
|
+
<xsl:output method="text" version="1.0" encoding="UTF-8" indent="no"/>
|
4
|
+
<!-- Manejador de nodos tipo donat:Donatarias -->
|
5
|
+
<xsl:template match="donat:Donatarias">
|
6
|
+
<!-- Iniciamos el tratamiento de los atributos de donat:Donatarias -->
|
7
|
+
<xsl:call-template name="Requerido"><xsl:with-param name="valor" select="./@version"/></xsl:call-template>
|
8
|
+
<xsl:call-template name="Requerido"><xsl:with-param name="valor" select="./@noAutorizacion"/></xsl:call-template>
|
9
|
+
<xsl:call-template name="Requerido"><xsl:with-param name="valor" select="./@fechaAutorizacion"/></xsl:call-template>
|
10
|
+
<xsl:call-template name="Requerido"><xsl:with-param name="valor" select="./@leyenda"/></xsl:call-template>
|
11
|
+
</xsl:template>
|
12
|
+
|
13
|
+
</xsl:stylesheet>
|
@@ -0,0 +1,102 @@
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
2
|
+
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:fn="http://www.w3.org/2005/xpath-functions" xmlns:ecc11="http://www.sat.gob.mx/EstadoDeCuentaCombustible">
|
3
|
+
|
4
|
+
<xsl:template match="ecc11:EstadoDeCuentaCombustible">
|
5
|
+
<!--Manejador de nodos tipo EstadoDeCuentaCombustible-->
|
6
|
+
<xsl:call-template name="Requerido">
|
7
|
+
<xsl:with-param name="valor" select="./@Version" />
|
8
|
+
</xsl:call-template>
|
9
|
+
<xsl:call-template name="Requerido">
|
10
|
+
<xsl:with-param name="valor" select="./@TipoOperacion" />
|
11
|
+
</xsl:call-template>
|
12
|
+
<xsl:call-template name="Requerido">
|
13
|
+
<xsl:with-param name="valor" select="./@NumeroDeCuenta" />
|
14
|
+
</xsl:call-template>
|
15
|
+
<xsl:call-template name="Requerido">
|
16
|
+
<xsl:with-param name="valor" select="./@SubTotal" />
|
17
|
+
</xsl:call-template>
|
18
|
+
<xsl:call-template name="Requerido">
|
19
|
+
<xsl:with-param name="valor" select="./@Total" />
|
20
|
+
</xsl:call-template>
|
21
|
+
|
22
|
+
<!-- Iniciamos el manejo de los elementos hijo en la secuencia -->
|
23
|
+
<xsl:apply-templates select="./ecc11:Conceptos" />
|
24
|
+
</xsl:template>
|
25
|
+
|
26
|
+
|
27
|
+
<xsl:template match="ecc11:Conceptos">
|
28
|
+
<!-- Iniciamos el tratamiento de los atributos de ecc11:ConceptoEstadoDeCuentaCombustible-->
|
29
|
+
<xsl:for-each select="./ecc11:ConceptoEstadoDeCuentaCombustible">
|
30
|
+
<xsl:apply-templates select="."/>
|
31
|
+
</xsl:for-each>
|
32
|
+
|
33
|
+
</xsl:template>
|
34
|
+
|
35
|
+
<xsl:template match="ecc11:Traslados">
|
36
|
+
<!-- Iniciamos el tratamiento de los atributos de ecc11:Traslado-->
|
37
|
+
<xsl:for-each select="./ecc11:Traslado">
|
38
|
+
<xsl:apply-templates select="."/>
|
39
|
+
</xsl:for-each>
|
40
|
+
</xsl:template>
|
41
|
+
|
42
|
+
|
43
|
+
<!-- Iniciamos el manejo de los elementos hijo en la secuencia ConceptoEstadoDeCuentaCombustible-->
|
44
|
+
<xsl:template match="ecc11:ConceptoEstadoDeCuentaCombustible">
|
45
|
+
<!-- Iniciamos el manejo de los nodos dependientes -->
|
46
|
+
<xsl:call-template name="Requerido">
|
47
|
+
<xsl:with-param name="valor" select="./@Identificador" />
|
48
|
+
</xsl:call-template>
|
49
|
+
<xsl:call-template name="Requerido">
|
50
|
+
<xsl:with-param name="valor" select="./@Fecha" />
|
51
|
+
</xsl:call-template>
|
52
|
+
<xsl:call-template name="Requerido">
|
53
|
+
<xsl:with-param name="valor" select="./@Rfc" />
|
54
|
+
</xsl:call-template>
|
55
|
+
<xsl:call-template name="Requerido">
|
56
|
+
<xsl:with-param name="valor" select="./@ClaveEstacion" />
|
57
|
+
</xsl:call-template>
|
58
|
+
<xsl:call-template name="Opcional">
|
59
|
+
<xsl:with-param name="valor" select="./@TAR" />
|
60
|
+
</xsl:call-template>
|
61
|
+
<xsl:call-template name="Requerido">
|
62
|
+
<xsl:with-param name="valor" select="./@Cantidad" />
|
63
|
+
</xsl:call-template>
|
64
|
+
<xsl:call-template name="Requerido">
|
65
|
+
<xsl:with-param name="valor" select="./@NoIdentificacion" />
|
66
|
+
</xsl:call-template>
|
67
|
+
<xsl:call-template name="Opcional">
|
68
|
+
<xsl:with-param name="valor" select="./@Unidad" />
|
69
|
+
</xsl:call-template>
|
70
|
+
<xsl:call-template name="Requerido">
|
71
|
+
<xsl:with-param name="valor" select="./@NombreCombustible" />
|
72
|
+
</xsl:call-template>
|
73
|
+
<xsl:call-template name="Requerido">
|
74
|
+
<xsl:with-param name="valor" select="./@FolioOperacion" />
|
75
|
+
</xsl:call-template>
|
76
|
+
<xsl:call-template name="Requerido">
|
77
|
+
<xsl:with-param name="valor" select="./@ValorUnitario" />
|
78
|
+
</xsl:call-template>
|
79
|
+
<xsl:call-template name="Requerido">
|
80
|
+
<xsl:with-param name="valor" select="./@Importe" />
|
81
|
+
</xsl:call-template>
|
82
|
+
|
83
|
+
<!-- Iniciamos el manejo de los elementos hijo en la secuencia -->
|
84
|
+
<xsl:apply-templates select="./ecc11:Traslados" />
|
85
|
+
|
86
|
+
</xsl:template>
|
87
|
+
|
88
|
+
<!-- Iniciamos el manejo de los elementos hijo en la secuencia Traslado-->
|
89
|
+
<xsl:template match="ecc11:Traslado">
|
90
|
+
<xsl:call-template name="Requerido">
|
91
|
+
<xsl:with-param name="valor" select="./@Impuesto" />
|
92
|
+
</xsl:call-template>
|
93
|
+
<xsl:call-template name="Requerido">
|
94
|
+
<xsl:with-param name="valor" select="./@TasaoCuota" />
|
95
|
+
</xsl:call-template>
|
96
|
+
<xsl:call-template name="Requerido">
|
97
|
+
<xsl:with-param name="valor" select="./@Importe" />
|
98
|
+
</xsl:call-template>
|
99
|
+
</xsl:template>
|
100
|
+
|
101
|
+
|
102
|
+
</xsl:stylesheet>
|
@@ -0,0 +1,26 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:fn="http://www.w3.org/2005/xpath-functions" xmlns:iedu="http://www.sat.gob.mx/iedu">
|
3
|
+
<xsl:output method="text" version="1.0" encoding="UTF-8" indent="no"/>
|
4
|
+
<!-- Manejador de nodos tipo iedu -->
|
5
|
+
<xsl:template match="iedu:instEducativas">
|
6
|
+
<!--Iniciamos el tratamiento de los atributos de instEducativas -->
|
7
|
+
<xsl:call-template name="Requerido">
|
8
|
+
<xsl:with-param name="valor" select="./@version"/>
|
9
|
+
</xsl:call-template>
|
10
|
+
<xsl:call-template name="Requerido">
|
11
|
+
<xsl:with-param name="valor" select="./@nombreAlumno"/>
|
12
|
+
</xsl:call-template>
|
13
|
+
<xsl:call-template name="Requerido">
|
14
|
+
<xsl:with-param name="valor" select="./@CURP"/>
|
15
|
+
</xsl:call-template>
|
16
|
+
<xsl:call-template name="Requerido">
|
17
|
+
<xsl:with-param name="valor" select="./@nivelEducativo"/>
|
18
|
+
</xsl:call-template>
|
19
|
+
<xsl:call-template name="Requerido">
|
20
|
+
<xsl:with-param name="valor" select="./@autRVOE"/>
|
21
|
+
</xsl:call-template>
|
22
|
+
<xsl:call-template name="Opcional">
|
23
|
+
<xsl:with-param name="valor" select="./@rfcPago"/>
|
24
|
+
</xsl:call-template>
|
25
|
+
</xsl:template>
|
26
|
+
</xsl:stylesheet>
|
@@ -0,0 +1,39 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:fn="http://www.w3.org/2005/xpath-functions" xmlns:implocal="http://www.sat.gob.mx/implocal">
|
3
|
+
<xsl:output method="text" version="1.0" encoding="UTF-8" indent="no"/>
|
4
|
+
<!-- Manejador de nodos tipo implocal -->
|
5
|
+
<xsl:template match="implocal:ImpuestosLocales">
|
6
|
+
<!--Iniciamos el tratamiento de los atributos de ImpuestosLocales -->
|
7
|
+
<xsl:call-template name="Requerido">
|
8
|
+
<xsl:with-param name="valor" select="./@version"/>
|
9
|
+
</xsl:call-template>
|
10
|
+
<xsl:call-template name="Requerido">
|
11
|
+
<xsl:with-param name="valor" select="./@TotaldeRetenciones"/>
|
12
|
+
</xsl:call-template>
|
13
|
+
<xsl:call-template name="Requerido">
|
14
|
+
<xsl:with-param name="valor" select="./@TotaldeTraslados"/>
|
15
|
+
</xsl:call-template>
|
16
|
+
<xsl:for-each select="implocal:RetencionesLocales">
|
17
|
+
<xsl:call-template name="Requerido">
|
18
|
+
<xsl:with-param name="valor" select="./@ImpLocRetenido"/>
|
19
|
+
</xsl:call-template>
|
20
|
+
<xsl:call-template name="Requerido">
|
21
|
+
<xsl:with-param name="valor" select="./@TasadeRetencion"/>
|
22
|
+
</xsl:call-template>
|
23
|
+
<xsl:call-template name="Requerido">
|
24
|
+
<xsl:with-param name="valor" select="./@Importe"/>
|
25
|
+
</xsl:call-template>
|
26
|
+
</xsl:for-each>
|
27
|
+
<xsl:for-each select="implocal:TrasladosLocales">
|
28
|
+
<xsl:call-template name="Requerido">
|
29
|
+
<xsl:with-param name="valor" select="./@ImpLocTrasladado"/>
|
30
|
+
</xsl:call-template>
|
31
|
+
<xsl:call-template name="Requerido">
|
32
|
+
<xsl:with-param name="valor" select="./@TasadeTraslado"/>
|
33
|
+
</xsl:call-template>
|
34
|
+
<xsl:call-template name="Requerido">
|
35
|
+
<xsl:with-param name="valor" select="./@Importe"/>
|
36
|
+
</xsl:call-template>
|
37
|
+
</xsl:for-each>
|
38
|
+
</xsl:template>
|
39
|
+
</xsl:stylesheet>
|
@@ -0,0 +1,51 @@
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
2
|
+
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:fn="http://www.w3.org/2005/xpath-functions" xmlns:ine="http://www.sat.gob.mx/ine">
|
3
|
+
|
4
|
+
<xsl:template match="ine:INE">
|
5
|
+
<!--Manejador de nodos tipo INE-->
|
6
|
+
<xsl:call-template name="Requerido">
|
7
|
+
<xsl:with-param name="valor" select="./@Version" />
|
8
|
+
</xsl:call-template>
|
9
|
+
<xsl:call-template name="Requerido">
|
10
|
+
<xsl:with-param name="valor" select="./@TipoProceso" />
|
11
|
+
</xsl:call-template>
|
12
|
+
<xsl:call-template name="Opcional">
|
13
|
+
<xsl:with-param name="valor" select="./@TipoComite" />
|
14
|
+
</xsl:call-template>
|
15
|
+
<xsl:call-template name="Opcional">
|
16
|
+
<xsl:with-param name="valor" select="./@IdContabilidad" />
|
17
|
+
</xsl:call-template>
|
18
|
+
|
19
|
+
<!-- Iniciamos el manejo de los elementos hijo en la secuencia -->
|
20
|
+
<xsl:for-each select="./ine:Entidad">
|
21
|
+
<xsl:apply-templates select="."/>
|
22
|
+
</xsl:for-each>
|
23
|
+
</xsl:template>
|
24
|
+
|
25
|
+
<xsl:template match="ine:Entidad">
|
26
|
+
<!--Manejador de nodos tipo Entidad-->
|
27
|
+
<xsl:call-template name="Requerido">
|
28
|
+
<xsl:with-param name="valor" select="./@ClaveEntidad" />
|
29
|
+
</xsl:call-template>
|
30
|
+
<xsl:call-template name="Opcional">
|
31
|
+
<xsl:with-param name="valor" select="./@Ambito" />
|
32
|
+
</xsl:call-template>
|
33
|
+
|
34
|
+
<!-- Iniciamos el tratamiento de los atributos de ine:Contabilidad-->
|
35
|
+
<xsl:for-each select="./ine:Contabilidad">
|
36
|
+
<xsl:apply-templates select="."/>
|
37
|
+
</xsl:for-each>
|
38
|
+
|
39
|
+
</xsl:template>
|
40
|
+
|
41
|
+
<!-- Iniciamos el manejo de los elementos hijo en la secuencia Contabilidad-->
|
42
|
+
<xsl:template match="ine:Contabilidad">
|
43
|
+
<!-- Iniciamos el manejo de los nodos dependientes -->
|
44
|
+
<xsl:call-template name="Requerido">
|
45
|
+
<xsl:with-param name="valor" select="./@IdContabilidad" />
|
46
|
+
</xsl:call-template>
|
47
|
+
</xsl:template>
|
48
|
+
|
49
|
+
|
50
|
+
|
51
|
+
</xsl:stylesheet>
|
@@ -0,0 +1,28 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:fn="http://www.w3.org/2005/xpath-functions" xmlns:leyendasFisc="http://www.sat.gob.mx/leyendasFiscales">
|
3
|
+
<xsl:output method="text" version="1.0" encoding="UTF-8" indent="no"/>
|
4
|
+
<!-- Manejador de nodos tipo leyendasFiscales -->
|
5
|
+
<xsl:template match="leyendasFisc:LeyendasFiscales">
|
6
|
+
<!--Iniciamos el tratamiento de los atributos del complemento LeyendasFiscales -->
|
7
|
+
<xsl:call-template name="Requerido">
|
8
|
+
<xsl:with-param name="valor" select="./@version"/>
|
9
|
+
</xsl:call-template>
|
10
|
+
<!-- Manejo de los atributos de las leyendas Fiscales-->
|
11
|
+
<xsl:for-each select="./leyendasFisc:Leyenda">
|
12
|
+
<xsl:apply-templates select="."/>
|
13
|
+
</xsl:for-each>
|
14
|
+
</xsl:template>
|
15
|
+
<!-- Manejador de nodos tipo Información de las leyendas -->
|
16
|
+
<xsl:template match="leyendasFisc:Leyenda">
|
17
|
+
<!-- Manejo de los atributos de la leyenda -->
|
18
|
+
<xsl:call-template name="Opcional">
|
19
|
+
<xsl:with-param name="valor" select="./@disposicionFiscal"/>
|
20
|
+
</xsl:call-template>
|
21
|
+
<xsl:call-template name="Opcional">
|
22
|
+
<xsl:with-param name="valor" select="./@norma"/>
|
23
|
+
</xsl:call-template>
|
24
|
+
<xsl:call-template name="Requerido">
|
25
|
+
<xsl:with-param name="valor" select="./@textoLeyenda"/>
|
26
|
+
</xsl:call-template>
|
27
|
+
</xsl:template>
|
28
|
+
</xsl:stylesheet>
|