applied http://vserver.lauft.net/wegen/util-vserver/patches/merge/util-vserver--merge...
authorEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
Wed, 2 Feb 2005 13:42:52 +0000 (13:42 +0000)
committerEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
Wed, 2 Feb 2005 13:42:52 +0000 (13:42 +0000)
git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@1853 94cd875c-1c1d-0410-91d2-eb244daf1a30

util-vserver/doc/compatibility-xhtml.xsl
util-vserver/doc/compatibility.css [new file with mode: 0644]

index c498687..6578041 100644 (file)
     <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>
 
diff --git a/util-vserver/doc/compatibility.css b/util-vserver/doc/compatibility.css
new file mode 100644 (file)
index 0000000..8e3e443
--- /dev/null
@@ -0,0 +1,28 @@
+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;
+}