<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>
<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">
<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: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"/>
<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>
</xsl:stylesheet>