Stirbitch.com
Personal Page
SMML
Here
<xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl">
<xsl:template match="/">
<xsl:apply-templates/>
</xsl:template>
<xsl:template match="smml">
<html>
<style>
h1 {
font-family:arial;
font-size:20pt;
text-align:center;
}
div.type {
font-family:arial;
font-size:14pt;
font-weight:bold;
font-style:italic;
color:red;
margin-bottom=0.2cm;
margin-top=0.4cm;
}
div.name {
font-family:arial;
font-size:8pt;
margin-bottom=0.05cm;
font-weight:bold;
}
div.info {
margin-left:0.5cm;
font-family:arial;
font-size:10pt;
font-weight:normal;
}
</style>
<body bgcolor="white">
<h1>Sample map summary</h1>
<p align="center">
<table cellpadding="10" cellspacing="0">
<tr>
<td valign="top" bgcolor="#dddddd">
<div class="type">Buildings</div>
<xsl:apply-templates select="building"/>
<div class="type">Roundabouts</div>
<xsl:apply-templates select="roundabout"/>
<div class="type">Parks</div>
<xsl:apply-templates select="park"/>
</td>
<td valign="top" bgcolor="#dddddd">
<div class="type">Roads</div>
<xsl:apply-templates select="road"/>
<div class="type">Carparks</div>
<xsl:apply-templates select="carpark"/>
</td>
</tr>
</table>
</p>
</body>
</html>
</xsl:template>
<xsl:template match="road|building|roundabout|park|carpark">
<div class="name">
<xsl:value-of select="@name"/>
<br/>
<xsl:apply-templates select="para"/>
</div>
</xsl:template>
<xsl:template match="para">
<div class="info">
<xsl:apply-templates/>
</div>
</xsl:template>
<xsl:template match="l">
<xsl:value-of select="."/>
<br/>
</xsl:template>
</xsl:stylesheet>
©1998-2002 S Slatcher