added new stylesheets
authorEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
Thu, 23 Sep 2004 22:02:12 +0000 (22:02 +0000)
committerEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
Thu, 23 Sep 2004 22:02:12 +0000 (22:02 +0000)
implemented <elements>...</elements> support

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@1705 94cd875c-1c1d-0410-91d2-eb244daf1a30

util-vserver/doc/configuration-xhtml.xsl

index e56cf87..bf3dba6 100644 (file)
@@ -19,7 +19,9 @@
   <xsl:template match="database">
     <head>
       <title>The <xsl:value-of select="$confdir"/> directory</title>
-      <link rel="stylesheet" title="LSD"    type="text/css" href="configuration-lsd.css"></link>
+      <link rel="stylesheet" title="gras"   type="text/css" href="configuration-lsd.css"></link>
+      <link rel="stylesheet" title="gras1"  type="text/css" href="configuration-lsd1.css"></link>
+      <link rel="stylesheet" title="flower" type="text/css" href="configuration-flower.css"></link>
       <link rel="stylesheet" title="boring" type="text/css" href="configuration.css"></link>
     </head>
     <body>
       <xsl:value-of select="@name"/>
     </span>
   </xsl:template>
+
+  <xsl:template match="elements">
+    <div class="elements">
+      <dl>
+        <xsl:apply-templates select="element">
+          <xsl:sort select="@name"/>
+        </xsl:apply-templates>
+      </dl>
+    </div>
+  </xsl:template>
+
+  <xsl:template match="elements/element">
+    <dt class="elements"><xsl:value-of select="@name"/></dt>
+    <dd class="elements"><xsl:apply-templates select="description"/></dd>
+  </xsl:template>
   
   <xsl:template name="printfullname">
     <xsl:param name="thisdir"/>
     <span class="description">
       <xsl:apply-templates select="description"/>
     </span>
+    <xsl:apply-templates select="elements"/>
   </xsl:template>
 
   <xsl:template match="ulink">