-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathITEdix.xsl
102 lines (87 loc) · 3.62 KB
/
ITEdix.xsl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
<xsl:stylesheet version="1.0">
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<ite>
<infoPrincipal>
<xsl:attribute name="empresa">
<xsl:value-of select="ite/empresa"/>
</xsl:attribute>
<xsl:attribute name="telefono">
<xsl:value-of select="ite/telefono"/>
</xsl:attribute>
<nombre>
<xsl:value-of select="ite/@nombre"/>
</nombre>
<web>
<xsl:value-of select="ite/@web"/>
</web>
</infoPrincipal>
<empleados>
<direccion>
<dire>
<nombre>
<xsl:value-of select="ite/director/nombre"/>
</nombre>
<despacho>
<xsl:value-of select="ite/director/despacho"/>
</despacho>
</dire>
<jefe_estudios>
<nombre>
<xsl:value-of sedirectoralect="ite/jefe_estudios/nombre"/>
</nombre>
<despacho>
<xsl:value-of select="ite/jefe_estudios/despacho"/>
</despacho>
</jefe_estudios>
</direccion>
<claustro>
<xsl:for-each select="ite/profesores/profesor">
<profesor>
<xsl:attribute name="id">
<xsl:value-of select="id"/>
</xsl:attribute>
<nombre>
<xsl:value-of select="nombre"/>
</nombre>
</profesor>
</xsl:for-each>
</claustro>
</empleados>
<ciclos>
<xsl:for-each select="ite/ciclos/ciclo">
<ciclo>
<xsl:attribute name="id">
<xsl:value-of select="@id"/>
</xsl:attribute>
<xsl:attribute name="año">
<xsl:value-of select="ite/decretoTitulo/@año"/>
</xsl:attribute>
<xsl:attribute name="grado">
<xsl:value-of select="grado"/>
</xsl:attribute>
<nombre>
<xsl:value-of select="nombre"/>
</nombre>
</ciclo>
</xsl:for-each>
</ciclos>
<form action="procesarPeticion.jsp" method="post">
<h3>Contacto:</h3>
<div id="nombre">
<label for="nombre">Nombre:</label>
<input type="text" id="nombre" name="nombre" placeholder="Nombre:"/>
</div>
<div id="apellidos">
<label for="apellido">Apellido:</label>
<input type="text" id="apellido" name="apellido" placeholder="Squarepants"/>
</div>
<div id="mail">
<label for="mail" id="mail" name="mail" placeholder="Mail:"/>
<input type="text" id="mail" name="mail" placeholder="[email protected]" />
</div>
<textarea id="about" name="about" rows="4" cols="50"> </textarea>
</form>
</ite>
</xsl:template>
</xsl:stylesheet>