made it validate as xhtml
authorEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
Thu, 23 Sep 2004 23:12:29 +0000 (23:12 +0000)
committerEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
Thu, 23 Sep 2004 23:12:29 +0000 (23:12 +0000)
git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@1710 94cd875c-1c1d-0410-91d2-eb244daf1a30

util-vserver/doc/configuration-flower.css
util-vserver/doc/configuration-lsd.css
util-vserver/doc/configuration-lsd1.css
util-vserver/doc/configuration-xhtml.xsl
util-vserver/doc/configuration.css

index 91a9e92..a285878 100644 (file)
@@ -35,7 +35,7 @@ span.symbolic {
   font-style: italic;
 }
 
-span.description {
+div.description {
   background-color: yellow;
   color: red;
 }
index 54e9d87..ee58e29 100644 (file)
@@ -35,7 +35,7 @@ span.symbolic {
   font-style: italic;
 }
 
-span.description {
+div.description {
   background-color: yellow;
   color: red;
 }
index 6619b85..e43cce4 100644 (file)
@@ -52,7 +52,7 @@ span.symbolic {
   color: #bf8047;
 }
 
-span.description {
+div.description {
   color: #69576c;
 }
 
index bf3dba6..7af6dba 100644 (file)
     <body>
       <h1>The content of the <xsl:value-of select="$confdir"/> directory</h1>
 
-      <ul>
-        <xsl:call-template name="collection">
-          <xsl:with-param name="thisdir"><xsl:value-of select="$confdir"/></xsl:with-param>
-        </xsl:call-template>
-      </ul>
+      <xsl:call-template name="collection">
+        <xsl:with-param name="thisdir"><xsl:value-of select="$confdir"/></xsl:with-param>
+      </xsl:call-template>
     </body>
   </xsl:template>
 
   <xsl:template name="collection">
     <xsl:param name="thisdir"/>
-    <xsl:choose>
-      <xsl:when test="count(scalar) + count(link) + count(program) + count(data) + count(hash) + count(list) + count(boolean) > 0">
-        <ul>
-          <xsl:call-template name="dir-iterate">
-            <xsl:with-param name="thisdir"><xsl:value-of select="$thisdir"/></xsl:with-param>
-          </xsl:call-template>
-        </ul>
-      </xsl:when>
-      <xsl:otherwise>
+    <xsl:if test="count(scalar) + count(link) + count(program) + count(data) + count(hash) + count(list) + count(boolean) + count(collection)>0">
+      <ul>
         <xsl:call-template name="dir-iterate">
           <xsl:with-param name="thisdir"><xsl:value-of select="$thisdir"/></xsl:with-param>
         </xsl:call-template>
-      </xsl:otherwise>
-    </xsl:choose>
+      </ul>
+    </xsl:if>
   </xsl:template>
 
   <xsl:template name="dir-iterate">
@@ -59,7 +50,7 @@
       <xsl:with-param name="thisdir"><xsl:value-of select="$thisdir"/></xsl:with-param>
       <xsl:sort select="@name"/>
     </xsl:apply-templates>
-    
+
     <xsl:apply-templates select="collection">
       <xsl:with-param name="thisdir"><xsl:value-of select="$thisdir"/></xsl:with-param>
       <xsl:sort select="@name"/>
 
   <xsl:template name="printcontent">
     <br/>
-    <span class="description">
-      <xsl:apply-templates select="description"/>
-    </span>
+    <xsl:apply-templates select="description"/>
     <xsl:apply-templates select="elements"/>
   </xsl:template>
 
+  <xsl:template match="description">
+    <div class="description">
+      <xsl:apply-templates/>
+    </div>
+  </xsl:template>
+
   <xsl:template match="ulink">
     <a href="{@url}"><xsl:apply-templates/></a>
   </xsl:template>
index b5182e4..5881cee 100644 (file)
@@ -1,7 +1,7 @@
 body {
   font-size: 12pt;
   background-color: white;
-  margin: 0px;
+  margin: 10px;
 }
 
 span.directory {
@@ -38,7 +38,7 @@ span.symbolic {
   text-decoration: none;
 }
 
-span.description {
+div.description {
   background-color: #ffffdd;
 }