Documentos de Académico
Documentos de Profesional
Documentos de Cultura
Ejercicio Netbeans
Ejercicio Netbeans
>
<xsl:template match="/">
<html>
<head>
<style>
table, th, td {
width:500px;
margin: 0 auto;
text-align: center;
border-collapse: collapse;
th {
color: white;
background-color:grey;
.urgente {
color: red;
background-color:yellow;
.nocturno {
color: white;
background-color:black;
</style>
</head>
<body>
<header>
<h2>Lenguaje de Marcas y Sistemas de Gestión de Información</h2>
<h2>Autor/a: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX</h2>
</header>
<br/><br/>
<xsl:for-each select="//envio[provincia='Sevilla']">
<xsl:value-of select="precio"/>
<xsl:sort select="precio"/>
<xsl:text>euros -</xsl:text>
<xsl:value-of select="apellido"/>
<xsl:sort select="apellido"/>
<xsl:text>,</xsl:text>
<xsl:value-of select="nombre"/>
<xsl:text>.</xsl:text>
<br/>
</xsl:for-each>
<h3>B. Número de envíos urgentes a Cádiz y su porcentaje respecto al
<br/><br/>
<xsl:text>Hay</xsl:text>
<xsl:value-of select="$enviocadiz"/>
<xsl:value-of select='format-number($porcentaje,"0.00%")'/>
<xsl:text>de los</xsl:text>
<xsl:value-of select="nenvio"/>
</h3>
<br/><br/>
<xsl:text>(</xsl:text>
<xsl:value-of select="@codigo"/>
<xsl:text> - </xsl:text>
<xsl:value-of select="prioridad"/>
<xsl:text> - </xsl:text>
<xsl:value-of select="provincia"/>
<xsl:text> ). </xsl:text>
<xsl:value-of select="nombre"/>
<xsl:text> </xsl:text>
<xsl:value-of select="apellido"/>
<xsl:text>. </xsl:text>
</xsl:for-each>
ingreso medio</h3>
<br/><br/>
<xsl:for-each select="//envio[provincia]">
<xsl:sort select="provincia"/>
<h3>E. Crear una tabla, ordenada por fecha de entrega, de los envíos a
<h5>Formato:</h5>
<table>
<tr>
<th>Fecha</th><th>Provincia</th><th>Código de envío</th><th>Prioridad</th>
</tr>
<tr>
<td>2023-02-??</td><td>Almería</td><td>??????</td><td>Normal</td>
</tr>
<tr>
<td>2023-02-??</td><td>Almería</td><td>??????</td><td
class="urgente">Urgente</td>
</tr>
<tr>
<td>2023-02-??</td><td>Almería</td><td>??????</td><td
class="nocturno">Nocturno</td>
</tr>
</table>
<br/><br/>
<table border="0"></table>
<thead style="background-color:black;color:white;font-style:italic">
<th>fecha de entrega</th>
<th>provincia></th>
<th>prioridad</th>
<th>codigo de envio</th>
</thead>
</body>
</html>
</xsl:template>
</xsl:stylesheet>