<html>
<head>
<title><xsl:apply-templates select="compatibility/title"/></title>
+ <link rel="stylesheet" type="text/css" href="compatibility.css" />
</head>
<body>
+ <h1><xsl:apply-templates select="compatibility/title"/></h1>
<xsl:apply-templates select="compatibility/program">
<xsl:sort select="compatibility/program/location"/>
<xsl:sort select="compatibility/program[name]"/>
</html>
</xsl:template>
+ <xsl:template name="compat">
+ <xsl:variable name="name" select="name()"/>
+ <xsl:variable name="descr">
+ <xsl:choose>
+ <xsl:when test="$name = 'clicompat'">
+ <xsl:text>Command line interface compatibility</xsl:text>
+ </xsl:when>
+ <xsl:when test="$name = 'funccompat'">
+ <xsl:text>Functional compatibility</xsl:text>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:value-of select="$name"/>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:variable>
+ <div class="{$name}">
+ <xsl:value-of select="$descr"/>: <xsl:value-of select="@status"/>
+ <xsl:if test="text">
+ <div class="text">
+ <xsl:apply-templates select="text"/>
+ </div>
+ </xsl:if>
+ </div>
+ </xsl:template>
+
+ <xsl:template match="clicompat|funccompat">
+ <xsl:call-template name="compat" />
+ </xsl:template>
+
<xsl:template match="program">
<div class="program">
- <h2>
+ <div class="name">
+ <xsl:value-of select="location"/>/<xsl:value-of select="@name"/>
<xsl:if test="@status">
- <xsl:attribute name="class"><xsl:value-of select="@status"/></xsl:attribute>
+ <xsl:text> (</xsl:text>
+ <xsl:value-of select="@status"/>
+ <xsl:text>)</xsl:text>
</xsl:if>
- <xsl:value-of select="location"/>/<xsl:value-of select="@name"/>
- </h2>
+ </div>
+ <xsl:apply-templates select="clicompat|funccompat"/>
</div>
</xsl:template>
--- /dev/null
+div.program
+{
+ margin: 0.5ex;
+ padding: 0.5ex;
+}
+
+div.program div.name
+{
+ font-weight: bold;
+}
+
+div.program div.name,
+div.program div.clicompat,
+div.program div.funccompat
+{
+}
+
+div.program div.clicompat,
+div.program div.funccompat
+{
+ margin-left: 1em;
+}
+
+div.clicompat div.text,
+div.funccompat div.text
+{
+ margin-left: 1em;
+}