Corta y pega los segmentos de código en el control correspondiente del intérprete XSLT para que entiendas cómo se integran los códigos XML, HTML, XSLT y Javascript en una sola página web.
<?xml version="1.0" encoding="ISO-8859-1"?>
<!-- Edited by XMLSpy® -->
<comunicacion>
<tiempo><mes>10</mes><dia>16</dia><anio>2012</anio>
<hora>12</hora><min>25</min><seg>00</seg></tiempo>
<emisor>yo@aca.com</emisor>
<receptor>tu@aqui.com</receptor>
<mensaje>
<etiqueta>dato</etiqueta>
</mensaje>
</comunicacion>
<?xml version="1.0" encoding="ISO-8859-1"?>
<!-- Edited by XMLSpy® -->
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="comunicacion/tiempo">
<html>
<xsl:variable name="dia">
<xsl:value-of select="dia" />
</xsl:variable>
<xsl:variable name="hora">
<xsl:value-of select="hora" />
</xsl:variable>
<script>
alert(<xsl:value-of select="$dia" />+"+"+<xsl:value-of select="$hora" />+"="+(<xsl:value-of select="$dia" />+<xsl:value-of select="$hora" />));
</script>
<body>
<h2>tiempo</h2>
<table border="1">
<tr bgcolor="#9acd32">
<th>dia</th>
<th>hora</th>
</tr>
<tr><td> <xsl:value-of select="$dia" /></td>
<td> <xsl:value-of select="$hora" /></td></tr>
</table>
</body>
</html>
</xsl:template>
</xsl:stylesheet>