-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathITEdix2.xsl
134 lines (120 loc) · 5.64 KB
/
ITEdix2.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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<html>
<head>
<link rel="stylesheet" type="text/css" href="css/style.css"/>
</head>
<body>
<div class="cabecera">
<header class="cont cabecera">
<div><a href="{/ite/@web}" target="_blank"><img class="logo" src="img/edix.png"/></a>
</div>
<nav>
<ul class="navbar">
<li><a href="#profesores">Docentes</a></li>
<li><a href="#ciclos">Ciclos</a></li>
</ul>
</nav>
</header>
</div>
<main class="contenedor">
<h1 class="main_header"><xsl:value-of select="/ite/@nombre"/></h1>
<article class="profes" id="profesores">
<caption>
<h3>Profesores</h3>
</caption>
<table class ="table">
<tablebody>
<tr>
<th>ID</th>
<th>Nombre</th>
</tr>
<xsl:for-each select="/ite/profesores/profesor">
<tr>
<td>
<xsl:value-of select="id"/>
</td>
<td>
<xsl:value-of select="nombre"/>
</td>
</tr>
</xsl:for-each>
</tablebody>
</table>
</article>
<article id="ciclos">
<caption>
<h2>Ciclos formativos</h2>
</caption>
<table>
<tr>
<th>ID</th>
<th>Nombre</th>
<th>Grado</th>
<th>Año</th>
</tr>
<xsl:for-each select="/ite/ciclos/ciclo">
<tr>
<td>
<xsl:value-of select="@id" />
</td>
<td>
<xsl:value-of select="nombre" />
</td>
<td>
<xsl:value-of select="grado" />
</td>
<td>
<xsl:value-of select="decretoTitulo/@año" />
</td>
</tr>
</xsl:for-each>
</table>
</article>
</main>
<div class="footer" id="contacto">
<footer class="container">
<div class="logo-footer"><a href="{/ite/@web}" target="_blank"><img class="logo"
src="https://www.edix.com/es/wp-content/themes/edix/images/modules/edx_logo_edix.svg" /></a>
</div>
<div>
<h3>Contacto</h3>
<p>Grupo: <xsl:value-of select="/ite/empresa" /></p>
<p>Teléfono: <xsl:value-of select="/ite/telefono" /></p>
</div>
<div>
<h3>Direccion</h3>
<p>Directora: <xsl:value-of select="/ite/director/nombre" /></p>
<p>Despacho: <xsl:value-of select="/ite/director/despacho" /></p>
<p>Jefe de estudios: <xsl:value-of select="/ite/jefe_estudios/nombre" /></p>
<p>Despacho: <xsl:value-of select="/ite/jefe_estudios/despacho" /></p>
</div>
<div>
<h3>Formulario:</h3>
<form action="">
<div>
<div class="form-element">
<label for="fname">Nombre</label>
<input type="text" name="fname" id="fname" />
<label for="lname">Apellido</label>
<input type="text" name="lname" id="lname" />
</div>
</div>
<div>
<div class="form-element">
<label for="email">Email</label>
<input type="email" name="email" id="email" />
<label for="tel:744555888">Teléfono</label>
<input type="tel" name="tel" id="tel" />
</div>
</div>
</form>
<button type="button" class="btn">Enviar</button>
</div>
</footer>
</div>
</body>
</html>
</xsl:template>
</xsl:stylesheet>