minor optimizations
[util-vserver.git] / util-vserver / doc / compatibility-xhtml.xsl
1 <?xml version="1.0" encoding="utf-8"?>
2 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
3                 xmlns="http://www.w3.org/1999/xhtml"
4                 version="1.0">
5
6   <xsl:output method="xml"
7               indent="yes"
8               doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN"
9               doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"/>
10
11   <xsl:template match="/">
12     <html>
13       <head>
14         <title><xsl:apply-templates select="compatibility/title"/></title>
15       </head>
16       <body>
17         <xsl:apply-templates select="compatibility/program">
18           <xsl:sort select="compatibility/program/location"/>
19           <xsl:sort select="compatibility/program[name]"/>
20         </xsl:apply-templates>
21       </body>
22     </html>
23   </xsl:template>
24
25   <xsl:template match="program">
26     <div class="program">
27       <h2>
28         <xsl:if test="@status">
29           <xsl:attribute name="class"><xsl:value-of select="@status"/></xsl:attribute>
30         </xsl:if>
31         <xsl:value-of select="location"/>/<xsl:value-of select="@name"/>
32       </h2>
33     </div>
34   </xsl:template>
35
36 </xsl:stylesheet>