fix books dir.

This commit is contained in:
Stefanus Du Toit 2002-04-23 01:28:50 +00:00
parent e8ec424710
commit cc74f7c00e
2 changed files with 5 additions and 1 deletions

View File

@ -59,6 +59,7 @@
<!ELEMENT directory (diritem*)>
<!ATTLIST directory
href CDATA ""
title CDATA #REQUIRED>
<!ELEMENT diritem EMPTY>
<!ATTLIST diritem

View File

@ -88,7 +88,9 @@
</xsl:template>
<xsl:template match="directory">
[<a href="index.html"><xsl:value-of select="@title"/></a>]
[<xsl:if test="@href = ''"><a href="index.html"><xsl:value-of
select="@title"/></a></xsl:if><xsl:if test="@href != ''">
<a href="{@href}"><xsl:value-of select="@title"/></a></xsl:if>]
<xsl:apply-templates match="diritem"/>
</xsl:template>
@ -284,6 +286,7 @@
<body>
<xsl:call-template name="header">
<xsl:with-param name="title" select="@title"/>
<xsl:with-param name="pwd" select="concat($pwd, '/books')"/>
</xsl:call-template>
<p>
<b>Title: </b> <xsl:value-of select="@title"/><br />