fdis 0.1.0 → 0.1.2
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 +4 -4
- data/lib/cadena/CartaPorte20.xslt +615 -0
- data/lib/cadena/ComercioExterior11.xslt +44 -44
- data/lib/cadena/GastosHidrocarburos10.xslt +171 -0
- data/lib/cadena/IngresosHidrocarburos.xslt +39 -0
- data/lib/cadena/Pagos20.xslt +232 -232
- data/lib/cadena/TuristaPasajeroExtranjero.xslt +40 -40
- data/lib/cadena/aerolineas.xslt +1 -1
- data/lib/cadena/cadenaoriginal_4_0.xslt +30 -30
- data/lib/cadena/certificadodedestruccion.xslt +19 -19
- data/lib/cadena/cfdiregistrofiscal.xslt +1 -1
- data/lib/cadena/consumodeCombustibles11.xslt +94 -0
- data/lib/cadena/detallista.xslt +1 -1
- data/lib/cadena/divisas.xslt +13 -13
- data/lib/cadena/donat11.xslt +13 -13
- data/lib/cadena/ecc12.xslt +99 -0
- data/lib/cadena/iedu.xslt +1 -1
- data/lib/cadena/implocal.xslt +39 -39
- data/lib/cadena/ine11.xslt +8 -8
- data/lib/cadena/leyendasFisc.xslt +28 -28
- data/lib/cadena/nomina12.xslt +411 -411
- data/lib/cadena/notariospublicos.xslt +1 -1
- data/lib/cadena/obrasarteantiguedades.xslt +11 -11
- data/lib/cadena/pagoenespecie.xslt +39 -39
- data/lib/cadena/pfic.xslt +13 -13
- data/lib/cadena/renovacionysustitucionvehiculos.xslt +45 -45
- data/lib/cadena/servicioparcialconstruccion.xslt +14 -14
- data/lib/cadena/utilerias.xslt +22 -22
- data/lib/cadena/valesdedespensa.xslt +1 -1
- data/lib/cadena/vehiculousado.xslt +1 -1
- data/lib/cadena/ventavehiculos11.xslt +1 -1
- data/lib/fdis/facturacion.rb +7 -0
- data/lib/fdis/version.rb +1 -1
- metadata +6 -1
@@ -1,33 +1,33 @@
|
|
1
|
-
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
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:obrasarte="http://www.sat.gob.mx/arteantiguedades">
|
3
3
|
<xsl:template match="obrasarte:obrasarteantiguedades">
|
4
4
|
<!--Manejador de nodos tipo obrasarteantiguedades-->
|
5
5
|
<xsl:call-template name="Requerido">
|
6
|
-
<xsl:with-param name="valor" select="./@Version"
|
6
|
+
<xsl:with-param name="valor" select="./@Version"/>
|
7
7
|
</xsl:call-template>
|
8
8
|
<xsl:call-template name="Requerido">
|
9
|
-
<xsl:with-param name="valor" select="./@TipoBien"
|
9
|
+
<xsl:with-param name="valor" select="./@TipoBien"/>
|
10
10
|
</xsl:call-template>
|
11
11
|
<xsl:call-template name="Opcional">
|
12
|
-
<xsl:with-param name="valor" select="./@OtrosTipoBien"
|
12
|
+
<xsl:with-param name="valor" select="./@OtrosTipoBien"/>
|
13
13
|
</xsl:call-template>
|
14
14
|
<xsl:call-template name="Requerido">
|
15
|
-
<xsl:with-param name="valor" select="./@TituloAdquirido"
|
15
|
+
<xsl:with-param name="valor" select="./@TituloAdquirido"/>
|
16
16
|
</xsl:call-template>
|
17
17
|
<xsl:call-template name="Opcional">
|
18
|
-
<xsl:with-param name="valor" select="./@OtrosTituloAdquirido"
|
18
|
+
<xsl:with-param name="valor" select="./@OtrosTituloAdquirido"/>
|
19
19
|
</xsl:call-template>
|
20
20
|
<xsl:call-template name="Opcional">
|
21
|
-
<xsl:with-param name="valor" select="./@Subtotal"
|
21
|
+
<xsl:with-param name="valor" select="./@Subtotal"/>
|
22
22
|
</xsl:call-template>
|
23
23
|
<xsl:call-template name="Opcional">
|
24
|
-
<xsl:with-param name="valor" select="./@IVA"
|
24
|
+
<xsl:with-param name="valor" select="./@IVA"/>
|
25
25
|
</xsl:call-template>
|
26
26
|
<xsl:call-template name="Requerido">
|
27
|
-
<xsl:with-param name="valor" select="./@FechaAdquisicion"
|
27
|
+
<xsl:with-param name="valor" select="./@FechaAdquisicion"/>
|
28
28
|
</xsl:call-template>
|
29
29
|
<xsl:call-template name="Requerido">
|
30
|
-
<xsl:with-param name="valor" select="./@CaracterísticasDeObraoPieza"
|
30
|
+
<xsl:with-param name="valor" select="./@CaracterísticasDeObraoPieza"/>
|
31
31
|
</xsl:call-template>
|
32
32
|
</xsl:template>
|
33
|
-
</xsl:stylesheet>
|
33
|
+
</xsl:stylesheet>
|
@@ -1,39 +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:pagoenespecie="http://www.sat.gob.mx/pagoenespecie">
|
3
|
-
<xsl:output method="text" version="1.0" encoding="UTF-8" indent="no"/>
|
4
|
-
|
5
|
-
<!-- Manejador de nodos tipo pago en especie-->
|
6
|
-
<xsl:template match="pagoenespecie:PagoEnEspecie">
|
7
|
-
|
8
|
-
<!--Iniciamos el tratamiento de los atributos de PagoEnEspecie -->
|
9
|
-
<xsl:call-template name="Requerido">
|
10
|
-
<xsl:with-param name="valor" select="./@Version"/>
|
11
|
-
</xsl:call-template>
|
12
|
-
|
13
|
-
<xsl:call-template name="Requerido">
|
14
|
-
<xsl:with-param name="valor" select="./@CvePIC"/>
|
15
|
-
</xsl:call-template>
|
16
|
-
|
17
|
-
<xsl:call-template name="Requerido">
|
18
|
-
<xsl:with-param name="valor" select="./@FolioSolDon"/>
|
19
|
-
</xsl:call-template>
|
20
|
-
|
21
|
-
<xsl:call-template name="Requerido">
|
22
|
-
<xsl:with-param name="valor" select="./@PzaArtNombre"/>
|
23
|
-
</xsl:call-template>
|
24
|
-
|
25
|
-
<xsl:call-template name="Requerido">
|
26
|
-
<xsl:with-param name="valor" select="./@PzaArtTecn"/>
|
27
|
-
</xsl:call-template>
|
28
|
-
|
29
|
-
<xsl:call-template name="Requerido">
|
30
|
-
<xsl:with-param name="valor" select="./@PzaArtAProd"/>
|
31
|
-
</xsl:call-template>
|
32
|
-
|
33
|
-
<xsl:call-template name="Requerido">
|
34
|
-
<xsl:with-param name="valor" select="./@PzaArtDim"/>
|
35
|
-
</xsl:call-template>
|
36
|
-
|
37
|
-
</xsl:template>
|
38
|
-
|
39
|
-
</xsl:stylesheet>
|
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:pagoenespecie="http://www.sat.gob.mx/pagoenespecie">
|
3
|
+
<xsl:output method="text" version="1.0" encoding="UTF-8" indent="no"/>
|
4
|
+
|
5
|
+
<!-- Manejador de nodos tipo pago en especie-->
|
6
|
+
<xsl:template match="pagoenespecie:PagoEnEspecie">
|
7
|
+
|
8
|
+
<!--Iniciamos el tratamiento de los atributos de PagoEnEspecie -->
|
9
|
+
<xsl:call-template name="Requerido">
|
10
|
+
<xsl:with-param name="valor" select="./@Version"/>
|
11
|
+
</xsl:call-template>
|
12
|
+
|
13
|
+
<xsl:call-template name="Requerido">
|
14
|
+
<xsl:with-param name="valor" select="./@CvePIC"/>
|
15
|
+
</xsl:call-template>
|
16
|
+
|
17
|
+
<xsl:call-template name="Requerido">
|
18
|
+
<xsl:with-param name="valor" select="./@FolioSolDon"/>
|
19
|
+
</xsl:call-template>
|
20
|
+
|
21
|
+
<xsl:call-template name="Requerido">
|
22
|
+
<xsl:with-param name="valor" select="./@PzaArtNombre"/>
|
23
|
+
</xsl:call-template>
|
24
|
+
|
25
|
+
<xsl:call-template name="Requerido">
|
26
|
+
<xsl:with-param name="valor" select="./@PzaArtTecn"/>
|
27
|
+
</xsl:call-template>
|
28
|
+
|
29
|
+
<xsl:call-template name="Requerido">
|
30
|
+
<xsl:with-param name="valor" select="./@PzaArtAProd"/>
|
31
|
+
</xsl:call-template>
|
32
|
+
|
33
|
+
<xsl:call-template name="Requerido">
|
34
|
+
<xsl:with-param name="valor" select="./@PzaArtDim"/>
|
35
|
+
</xsl:call-template>
|
36
|
+
|
37
|
+
</xsl:template>
|
38
|
+
|
39
|
+
</xsl:stylesheet>
|
data/lib/cadena/pfic.xslt
CHANGED
@@ -1,13 +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:pfic="http://www.sat.gob.mx/pfic">
|
3
|
-
<xsl:output method="text" version="1.0" encoding="UTF-8" indent="no"/>
|
4
|
-
<!-- Manejador de nodos tipo pfic:PFintegranteCoordinado -->
|
5
|
-
<xsl:template match="pfic:PFintegranteCoordinado">
|
6
|
-
<!-- Iniciamos el tratamiento de los atributos de pfic:PFintegranteCoordinado -->
|
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="./@ClaveVehicular"/></xsl:call-template>
|
9
|
-
<xsl:call-template name="Requerido"><xsl:with-param name="valor" select="./@Placa"/></xsl:call-template>
|
10
|
-
<xsl:call-template name="Opcional"><xsl:with-param name="valor" select="./@RFCPF"/></xsl:call-template>
|
11
|
-
</xsl:template>
|
12
|
-
|
13
|
-
</xsl:stylesheet>
|
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:pfic="http://www.sat.gob.mx/pfic">
|
3
|
+
<xsl:output method="text" version="1.0" encoding="UTF-8" indent="no"/>
|
4
|
+
<!-- Manejador de nodos tipo pfic:PFintegranteCoordinado -->
|
5
|
+
<xsl:template match="pfic:PFintegranteCoordinado">
|
6
|
+
<!-- Iniciamos el tratamiento de los atributos de pfic:PFintegranteCoordinado -->
|
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="./@ClaveVehicular"/></xsl:call-template>
|
9
|
+
<xsl:call-template name="Requerido"><xsl:with-param name="valor" select="./@Placa"/></xsl:call-template>
|
10
|
+
<xsl:call-template name="Opcional"><xsl:with-param name="valor" select="./@RFCPF"/></xsl:call-template>
|
11
|
+
</xsl:template>
|
12
|
+
|
13
|
+
</xsl:stylesheet>
|
@@ -1,152 +1,152 @@
|
|
1
|
-
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
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:decreto="http://www.sat.gob.mx/renovacionysustitucionvehiculos">
|
3
3
|
|
4
4
|
<xsl:template match="decreto:renovacionysustitucionvehiculos">
|
5
5
|
<!--Manejador de nodos tipo renovacionysustitucionvehiculos-->
|
6
6
|
<xsl:call-template name="Requerido">
|
7
|
-
<xsl:with-param name="valor" select="./@Version"
|
7
|
+
<xsl:with-param name="valor" select="./@Version"/>
|
8
8
|
</xsl:call-template>
|
9
9
|
<xsl:call-template name="Requerido">
|
10
|
-
<xsl:with-param name="valor" select="./@TipoDeDecreto"
|
10
|
+
<xsl:with-param name="valor" select="./@TipoDeDecreto"/>
|
11
11
|
</xsl:call-template>
|
12
12
|
<!-- Iniciamos el manejo de los nodos dependientes -->
|
13
|
-
<xsl:apply-templates select="./decreto:DecretoRenovVehicular"
|
14
|
-
<xsl:apply-templates select="./decreto:DecretoSustitVehicular"
|
13
|
+
<xsl:apply-templates select="./decreto:DecretoRenovVehicular"/>
|
14
|
+
<xsl:apply-templates select="./decreto:DecretoSustitVehicular"/>
|
15
15
|
</xsl:template>
|
16
16
|
|
17
17
|
<xsl:template match="decreto:DecretoRenovVehicular">
|
18
18
|
<!-- Iniciamos el tratamiento de los atributos de sustitucionvehiculos:DecretoRenovVehicular-->
|
19
19
|
<xsl:call-template name="Requerido">
|
20
|
-
<xsl:with-param name="valor" select="./@VehEnaj"
|
20
|
+
<xsl:with-param name="valor" select="./@VehEnaj"/>
|
21
21
|
</xsl:call-template>
|
22
22
|
<!-- Iniciamos el manejo de los nodos dependientes -->
|
23
23
|
<xsl:for-each select="./decreto:VehiculosUsadosEnajenadoPermAlFab">
|
24
24
|
<xsl:apply-templates select="."/>
|
25
25
|
</xsl:for-each>
|
26
|
-
<xsl:apply-templates select="./decreto:VehiculoNuvoSemEnajenadoFabAlPerm"
|
26
|
+
<xsl:apply-templates select="./decreto:VehiculoNuvoSemEnajenadoFabAlPerm"/>
|
27
27
|
</xsl:template>
|
28
28
|
|
29
29
|
<xsl:template match="decreto:DecretoSustitVehicular">
|
30
30
|
<!-- Iniciamos el tratamiento de los atributos de sustitucionvehiculos:DecretoSustitVehicular-->
|
31
31
|
<xsl:call-template name="Requerido">
|
32
|
-
<xsl:with-param name="valor" select="./@VehEnaj"
|
32
|
+
<xsl:with-param name="valor" select="./@VehEnaj"/>
|
33
33
|
</xsl:call-template>
|
34
34
|
<!-- Iniciamos el manejo de los nodos dependientes -->
|
35
|
-
<xsl:apply-templates select="./decreto:VehiculoUsadoEnajenadoPermAlFab"
|
36
|
-
<xsl:apply-templates select="./decreto:VehiculoNuvoSemEnajenadoFabAlPerm"
|
35
|
+
<xsl:apply-templates select="./decreto:VehiculoUsadoEnajenadoPermAlFab"/>
|
36
|
+
<xsl:apply-templates select="./decreto:VehiculoNuvoSemEnajenadoFabAlPerm"/>
|
37
37
|
</xsl:template>
|
38
38
|
|
39
39
|
<xsl:template match="decreto:VehiculosUsadosEnajenadoPermAlFab">
|
40
40
|
<xsl:call-template name="Requerido">
|
41
|
-
<xsl:with-param name="valor" select="./@PrecioVehUsado"
|
41
|
+
<xsl:with-param name="valor" select="./@PrecioVehUsado"/>
|
42
42
|
</xsl:call-template>
|
43
43
|
<xsl:call-template name="Requerido">
|
44
|
-
<xsl:with-param name="valor" select="./@TipoVeh"
|
44
|
+
<xsl:with-param name="valor" select="./@TipoVeh"/>
|
45
45
|
</xsl:call-template>
|
46
46
|
<xsl:call-template name="Requerido">
|
47
|
-
<xsl:with-param name="valor" select="./@Marca"
|
47
|
+
<xsl:with-param name="valor" select="./@Marca"/>
|
48
48
|
</xsl:call-template>
|
49
49
|
<xsl:call-template name="Requerido">
|
50
|
-
<xsl:with-param name="valor" select="./@TipooClase"
|
50
|
+
<xsl:with-param name="valor" select="./@TipooClase"/>
|
51
51
|
</xsl:call-template>
|
52
52
|
<xsl:call-template name="Requerido">
|
53
|
-
<xsl:with-param name="valor" select="./@Año"
|
53
|
+
<xsl:with-param name="valor" select="./@Año"/>
|
54
54
|
</xsl:call-template>
|
55
55
|
<xsl:call-template name="Opcional">
|
56
|
-
<xsl:with-param name="valor" select="./@Modelo"
|
56
|
+
<xsl:with-param name="valor" select="./@Modelo"/>
|
57
57
|
</xsl:call-template>
|
58
58
|
<xsl:call-template name="Opcional">
|
59
|
-
<xsl:with-param name="valor" select="./@NIV"
|
59
|
+
<xsl:with-param name="valor" select="./@NIV"/>
|
60
60
|
</xsl:call-template>
|
61
61
|
<xsl:call-template name="Opcional">
|
62
|
-
<xsl:with-param name="valor" select="./@NumSerie"
|
62
|
+
<xsl:with-param name="valor" select="./@NumSerie"/>
|
63
63
|
</xsl:call-template>
|
64
64
|
<xsl:call-template name="Requerido">
|
65
|
-
<xsl:with-param name="valor" select="./@NumPlacas"
|
65
|
+
<xsl:with-param name="valor" select="./@NumPlacas"/>
|
66
66
|
</xsl:call-template>
|
67
67
|
<xsl:call-template name="Opcional">
|
68
|
-
<xsl:with-param name="valor" select="./@NumMotor"
|
68
|
+
<xsl:with-param name="valor" select="./@NumMotor"/>
|
69
69
|
</xsl:call-template>
|
70
70
|
<xsl:call-template name="Requerido">
|
71
|
-
<xsl:with-param name="valor" select="./@NumFolTarjCir"
|
71
|
+
<xsl:with-param name="valor" select="./@NumFolTarjCir"/>
|
72
72
|
</xsl:call-template>
|
73
73
|
<xsl:call-template name="Opcional">
|
74
|
-
<xsl:with-param name="valor" select="./@NumPedIm"
|
74
|
+
<xsl:with-param name="valor" select="./@NumPedIm"/>
|
75
75
|
</xsl:call-template>
|
76
76
|
<xsl:call-template name="Opcional">
|
77
|
-
<xsl:with-param name="valor" select="./@Aduana"
|
77
|
+
<xsl:with-param name="valor" select="./@Aduana"/>
|
78
78
|
</xsl:call-template>
|
79
79
|
<xsl:call-template name="Opcional">
|
80
|
-
<xsl:with-param name="valor" select="./@FechaRegulVeh"
|
80
|
+
<xsl:with-param name="valor" select="./@FechaRegulVeh"/>
|
81
81
|
</xsl:call-template>
|
82
82
|
<xsl:call-template name="Requerido">
|
83
|
-
<xsl:with-param name="valor" select="./@Foliofiscal"
|
83
|
+
<xsl:with-param name="valor" select="./@Foliofiscal"/>
|
84
84
|
</xsl:call-template>
|
85
85
|
</xsl:template>
|
86
86
|
|
87
87
|
<xsl:template match="decreto:VehiculoNuvoSemEnajenadoFabAlPerm">
|
88
88
|
<xsl:call-template name="Requerido">
|
89
|
-
<xsl:with-param name="valor" select="./@Año"
|
89
|
+
<xsl:with-param name="valor" select="./@Año"/>
|
90
90
|
</xsl:call-template>
|
91
91
|
<xsl:call-template name="Opcional">
|
92
|
-
<xsl:with-param name="valor" select="./@Modelo"
|
92
|
+
<xsl:with-param name="valor" select="./@Modelo"/>
|
93
93
|
</xsl:call-template>
|
94
94
|
<xsl:call-template name="Requerido">
|
95
|
-
<xsl:with-param name="valor" select="./@NumPlacas"
|
95
|
+
<xsl:with-param name="valor" select="./@NumPlacas"/>
|
96
96
|
</xsl:call-template>
|
97
97
|
<xsl:call-template name="Opcional">
|
98
|
-
<xsl:with-param name="valor" select="./@RFC"
|
98
|
+
<xsl:with-param name="valor" select="./@RFC"/>
|
99
99
|
</xsl:call-template>
|
100
100
|
</xsl:template>
|
101
101
|
|
102
102
|
<xsl:template match="decreto:VehiculoUsadoEnajenadoPermAlFab">
|
103
103
|
<xsl:call-template name="Requerido">
|
104
|
-
<xsl:with-param name="valor" select="./@PrecioVehUsado"
|
104
|
+
<xsl:with-param name="valor" select="./@PrecioVehUsado"/>
|
105
105
|
</xsl:call-template>
|
106
106
|
<xsl:call-template name="Requerido">
|
107
|
-
<xsl:with-param name="valor" select="./@TipoVeh"
|
107
|
+
<xsl:with-param name="valor" select="./@TipoVeh"/>
|
108
108
|
</xsl:call-template>
|
109
109
|
<xsl:call-template name="Requerido">
|
110
|
-
<xsl:with-param name="valor" select="./@Marca"
|
110
|
+
<xsl:with-param name="valor" select="./@Marca"/>
|
111
111
|
</xsl:call-template>
|
112
112
|
<xsl:call-template name="Requerido">
|
113
|
-
<xsl:with-param name="valor" select="./@TipooClase"
|
113
|
+
<xsl:with-param name="valor" select="./@TipooClase"/>
|
114
114
|
</xsl:call-template>
|
115
115
|
<xsl:call-template name="Requerido">
|
116
|
-
<xsl:with-param name="valor" select="./@Año"
|
116
|
+
<xsl:with-param name="valor" select="./@Año"/>
|
117
117
|
</xsl:call-template>
|
118
118
|
<xsl:call-template name="Opcional">
|
119
|
-
<xsl:with-param name="valor" select="./@Modelo"
|
119
|
+
<xsl:with-param name="valor" select="./@Modelo"/>
|
120
120
|
</xsl:call-template>
|
121
121
|
<xsl:call-template name="Opcional">
|
122
|
-
<xsl:with-param name="valor" select="./@NIV"
|
122
|
+
<xsl:with-param name="valor" select="./@NIV"/>
|
123
123
|
</xsl:call-template>
|
124
124
|
<xsl:call-template name="Opcional">
|
125
|
-
<xsl:with-param name="valor" select="./@NumSerie"
|
125
|
+
<xsl:with-param name="valor" select="./@NumSerie"/>
|
126
126
|
</xsl:call-template>
|
127
127
|
<xsl:call-template name="Requerido">
|
128
|
-
<xsl:with-param name="valor" select="./@NumPlacas"
|
128
|
+
<xsl:with-param name="valor" select="./@NumPlacas"/>
|
129
129
|
</xsl:call-template>
|
130
130
|
<xsl:call-template name="Opcional">
|
131
|
-
<xsl:with-param name="valor" select="./@NumMotor"
|
131
|
+
<xsl:with-param name="valor" select="./@NumMotor"/>
|
132
132
|
</xsl:call-template>
|
133
133
|
<xsl:call-template name="Requerido">
|
134
|
-
<xsl:with-param name="valor" select="./@NumFolTarjCir"
|
134
|
+
<xsl:with-param name="valor" select="./@NumFolTarjCir"/>
|
135
135
|
</xsl:call-template>
|
136
136
|
<xsl:call-template name="Requerido">
|
137
|
-
<xsl:with-param name="valor" select="./@NumFolAvisoint"
|
137
|
+
<xsl:with-param name="valor" select="./@NumFolAvisoint"/>
|
138
138
|
</xsl:call-template>
|
139
139
|
<xsl:call-template name="Requerido">
|
140
|
-
<xsl:with-param name="valor" select="./@NumPedIm"
|
140
|
+
<xsl:with-param name="valor" select="./@NumPedIm"/>
|
141
141
|
</xsl:call-template>
|
142
142
|
<xsl:call-template name="Requerido">
|
143
|
-
<xsl:with-param name="valor" select="./@Aduana"
|
143
|
+
<xsl:with-param name="valor" select="./@Aduana"/>
|
144
144
|
</xsl:call-template>
|
145
145
|
<xsl:call-template name="Requerido">
|
146
|
-
<xsl:with-param name="valor" select="./@FechaRegulVeh"
|
146
|
+
<xsl:with-param name="valor" select="./@FechaRegulVeh"/>
|
147
147
|
</xsl:call-template>
|
148
148
|
<xsl:call-template name="Requerido">
|
149
|
-
<xsl:with-param name="valor" select="./@Foliofiscal"
|
149
|
+
<xsl:with-param name="valor" select="./@Foliofiscal"/>
|
150
150
|
</xsl:call-template>
|
151
151
|
</xsl:template>
|
152
152
|
</xsl:stylesheet>
|
@@ -1,44 +1,44 @@
|
|
1
|
-
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
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:servicioparcial="http://www.sat.gob.mx/servicioparcialconstruccion">
|
3
3
|
<xsl:template match="servicioparcial:parcialesconstruccion">
|
4
4
|
<!--Manejador de nodos tipo parcialesconstruccion-->
|
5
5
|
<xsl:call-template name="Requerido">
|
6
|
-
<xsl:with-param name="valor" select="./@Version"
|
6
|
+
<xsl:with-param name="valor" select="./@Version"/>
|
7
7
|
</xsl:call-template>
|
8
8
|
<xsl:call-template name="Requerido">
|
9
|
-
<xsl:with-param name="valor" select="./@NumPerLicoAut"
|
9
|
+
<xsl:with-param name="valor" select="./@NumPerLicoAut"/>
|
10
10
|
</xsl:call-template>
|
11
11
|
<!-- Iniciamos el manejo de los nodos dependientes -->
|
12
|
-
<xsl:apply-templates select="./servicioparcial:Inmueble"
|
12
|
+
<xsl:apply-templates select="./servicioparcial:Inmueble"/>
|
13
13
|
</xsl:template>
|
14
14
|
<xsl:template match="servicioparcial:Inmueble">
|
15
15
|
<!-- Iniciamos el tratamiento de los atributos de servicioparcial:Inmueble-->
|
16
16
|
<xsl:call-template name="Requerido">
|
17
|
-
<xsl:with-param name="valor" select="./@Calle"
|
17
|
+
<xsl:with-param name="valor" select="./@Calle"/>
|
18
18
|
</xsl:call-template>
|
19
19
|
<xsl:call-template name="Opcional">
|
20
|
-
<xsl:with-param name="valor" select="./@NoExterior"
|
20
|
+
<xsl:with-param name="valor" select="./@NoExterior"/>
|
21
21
|
</xsl:call-template>
|
22
22
|
<xsl:call-template name="Opcional">
|
23
|
-
<xsl:with-param name="valor" select="./@NoInterior"
|
23
|
+
<xsl:with-param name="valor" select="./@NoInterior"/>
|
24
24
|
</xsl:call-template>
|
25
25
|
<xsl:call-template name="Opcional">
|
26
|
-
<xsl:with-param name="valor" select="./@Colonia"
|
26
|
+
<xsl:with-param name="valor" select="./@Colonia"/>
|
27
27
|
</xsl:call-template>
|
28
28
|
<xsl:call-template name="Opcional">
|
29
|
-
<xsl:with-param name="valor" select="./@Localidad"
|
29
|
+
<xsl:with-param name="valor" select="./@Localidad"/>
|
30
30
|
</xsl:call-template>
|
31
31
|
<xsl:call-template name="Opcional">
|
32
|
-
<xsl:with-param name="valor" select="./@Referencia"
|
32
|
+
<xsl:with-param name="valor" select="./@Referencia"/>
|
33
33
|
</xsl:call-template>
|
34
34
|
<xsl:call-template name="Requerido">
|
35
|
-
<xsl:with-param name="valor" select="./@Municipio"
|
35
|
+
<xsl:with-param name="valor" select="./@Municipio"/>
|
36
36
|
</xsl:call-template>
|
37
37
|
<xsl:call-template name="Requerido">
|
38
|
-
<xsl:with-param name="valor" select="./@Estado"
|
38
|
+
<xsl:with-param name="valor" select="./@Estado"/>
|
39
39
|
</xsl:call-template>
|
40
40
|
<xsl:call-template name="Requerido">
|
41
|
-
<xsl:with-param name="valor" select="./@CodigoPostal"
|
41
|
+
<xsl:with-param name="valor" select="./@CodigoPostal"/>
|
42
42
|
</xsl:call-template>
|
43
43
|
</xsl:template>
|
44
|
-
</xsl:stylesheet>
|
44
|
+
</xsl:stylesheet>
|
data/lib/cadena/utilerias.xslt
CHANGED
@@ -1,22 +1,22 @@
|
|
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">
|
3
|
-
|
4
|
-
<!-- Manejador de datos requeridos -->
|
5
|
-
<xsl:template name="Requerido">
|
6
|
-
<xsl:param name="valor"/>|<xsl:call-template name="ManejaEspacios">
|
7
|
-
<xsl:with-param name="s" select="$valor"/>
|
8
|
-
</xsl:call-template>
|
9
|
-
</xsl:template>
|
10
|
-
|
11
|
-
<!-- Manejador de datos opcionales -->
|
12
|
-
<xsl:template name="Opcional">
|
13
|
-
<xsl:param name="valor"/>
|
14
|
-
<xsl:if test="$valor">|<xsl:call-template name="ManejaEspacios"><xsl:with-param name="s" select="$valor"/></xsl:call-template></xsl:if>
|
15
|
-
</xsl:template>
|
16
|
-
|
17
|
-
<!-- Normalizador de espacios en blanco -->
|
18
|
-
<xsl:template name="ManejaEspacios">
|
19
|
-
<xsl:param name="s"/>
|
20
|
-
<xsl:value-of select="normalize-space(string($s))"/>
|
21
|
-
</xsl:template>
|
22
|
-
</xsl:stylesheet>
|
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">
|
3
|
+
|
4
|
+
<!-- Manejador de datos requeridos -->
|
5
|
+
<xsl:template name="Requerido">
|
6
|
+
<xsl:param name="valor"/>|<xsl:call-template name="ManejaEspacios">
|
7
|
+
<xsl:with-param name="s" select="$valor"/>
|
8
|
+
</xsl:call-template>
|
9
|
+
</xsl:template>
|
10
|
+
|
11
|
+
<!-- Manejador de datos opcionales -->
|
12
|
+
<xsl:template name="Opcional">
|
13
|
+
<xsl:param name="valor"/>
|
14
|
+
<xsl:if test="$valor">|<xsl:call-template name="ManejaEspacios"><xsl:with-param name="s" select="$valor"/></xsl:call-template></xsl:if>
|
15
|
+
</xsl:template>
|
16
|
+
|
17
|
+
<!-- Normalizador de espacios en blanco -->
|
18
|
+
<xsl:template name="ManejaEspacios">
|
19
|
+
<xsl:param name="s"/>
|
20
|
+
<xsl:value-of select="normalize-space(string($s))"/>
|
21
|
+
</xsl:template>
|
22
|
+
</xsl:stylesheet>
|
data/lib/fdis/facturacion.rb
CHANGED
@@ -507,6 +507,12 @@ module Fdis
|
|
507
507
|
|
508
508
|
puts "---- Fdis:facturacion:timbra_doc"
|
509
509
|
|
510
|
+
puts "--- Fdis: Datos --------"
|
511
|
+
puts "--- Fdis: Line items: "
|
512
|
+
params[:line_items].each do |line|
|
513
|
+
puts "----- valor unitario: #{line[:valor_unitario]}"
|
514
|
+
puts "----- cantidad: #{line[:cantidad]}"
|
515
|
+
end
|
510
516
|
|
511
517
|
time = params.fetch(:time, (Time.now).strftime("%Y-%m-%dT%H:%M:%S"))
|
512
518
|
|
@@ -769,6 +775,7 @@ module Fdis
|
|
769
775
|
end
|
770
776
|
puts "-- #{json_response.code} --"
|
771
777
|
puts "-- #{json_response.message} --"
|
778
|
+
puts "-- #{json_response} --"
|
772
779
|
|
773
780
|
response = JSON.parse(json_response.body)
|
774
781
|
|
data/lib/fdis/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fdis
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Angel Padilla
|
@@ -74,7 +74,10 @@ extensions: []
|
|
74
74
|
extra_rdoc_files: []
|
75
75
|
files:
|
76
76
|
- README.md
|
77
|
+
- lib/cadena/CartaPorte20.xslt
|
77
78
|
- lib/cadena/ComercioExterior11.xslt
|
79
|
+
- lib/cadena/GastosHidrocarburos10.xslt
|
80
|
+
- lib/cadena/IngresosHidrocarburos.xslt
|
78
81
|
- lib/cadena/Pagos10.xslt
|
79
82
|
- lib/cadena/Pagos20.xsd
|
80
83
|
- lib/cadena/Pagos20.xslt
|
@@ -87,11 +90,13 @@ files:
|
|
87
90
|
- lib/cadena/cfdiregistrofiscal.xslt
|
88
91
|
- lib/cadena/cfdv33.xsd
|
89
92
|
- lib/cadena/cfdv40.xsd
|
93
|
+
- lib/cadena/consumodeCombustibles11.xslt
|
90
94
|
- lib/cadena/consumodecombustibles.xslt
|
91
95
|
- lib/cadena/detallista.xslt
|
92
96
|
- lib/cadena/divisas.xslt
|
93
97
|
- lib/cadena/donat11.xslt
|
94
98
|
- lib/cadena/ecc11.xslt
|
99
|
+
- lib/cadena/ecc12.xslt
|
95
100
|
- lib/cadena/iedu.xslt
|
96
101
|
- lib/cadena/implocal.xslt
|
97
102
|
- lib/cadena/ine11.xslt
|