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
|
<?xml version="1.0" ?>
<!--Author: T. V. Raman <raman@cs.cornell.edu>
Description: Show jabber messages.
-->
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html" indent="yes" encoding="iso8859-15"/>
<xsl:param name="session"/>
<xsl:template match="jabber">
<html>
<head>
<style type="text/css">
@media speech {
span.<xsl:value-of
select="substring(message[1]/@from, 1, 3)"/> {
font-style: italic}
span.<xsl:value-of
select="substring(message[1]/@from, 1, 3)"/> {
voice-family: paul;
stress: 2; richness: 9;
pitch: 1; pitch-range: 9; }
}
</style>
<title>Messages From <xsl:value-of select="$session"/></title>
</head>
<body>
<h1>Messages From <xsl:value-of select="$session"/></h1>
<table>
<tr>
<td>From</td>
<td>Date</td>
<td>Time</td>
<td>Message</td>
</tr>
<xsl:apply-templates/>
</table>
</body>
</html>
</xsl:template>
<xsl:template match="message">
<tr>
<td><xsl:value-of select="substring(@from, 1, 3)"/></td>
<td><xsl:value-of select="@date"/></td>
<td><xsl:value-of select="@time"/></td>
<td>
<xsl:element name="span">
<xsl:attribute name="class">
<xsl:value-of select="substring(@from, 1, 3)"/>
</xsl:attribute>
<xsl:apply-templates/>
</xsl:element>
</td>
</tr>
</xsl:template>
</xsl:stylesheet>
<!--
Local Variables:
mode: xae
sgml-indent-step: 2
sgml-indent-data: t
sgml-set-face: nil
sgml-insert-missing-element-comment: nil
folded-file: t
End:
-->
|