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"
6 <xsl:output method="xml"
8 doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN"
9 doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"/>
11 <xsl:template match="/">
14 <title><xsl:apply-templates select="compatibility/title"/></title>
15 <link rel="stylesheet" type="text/css" href="compatibility.css" />
18 <h1><xsl:apply-templates select="compatibility/title"/></h1>
19 <xsl:apply-templates select="compatibility/program">
20 <xsl:sort select="compatibility/program/location"/>
21 <xsl:sort select="compatibility/program[name]"/>
22 </xsl:apply-templates>
27 <xsl:template name="compat">
28 <xsl:variable name="name" select="name()"/>
29 <xsl:variable name="descr">
31 <xsl:when test="$name = 'clicompat'">
32 <xsl:text>Command line interface compatibility</xsl:text>
34 <xsl:when test="$name = 'funccompat'">
35 <xsl:text>Functional compatibility</xsl:text>
38 <xsl:value-of select="$name"/>
43 <xsl:value-of select="$descr"/>: <xsl:value-of select="@status"/>
46 <xsl:apply-templates select="text"/>
52 <xsl:template match="clicompat|funccompat">
53 <xsl:call-template name="compat" />
56 <xsl:template match="program">
59 <xsl:value-of select="location"/>/<xsl:value-of select="@name"/>
60 <xsl:if test="@status">
61 <xsl:text> (</xsl:text>
62 <xsl:value-of select="@status"/>
63 <xsl:text>)</xsl:text>
66 <xsl:apply-templates select="clicompat|funccompat"/>