fix books dir.
This commit is contained in:
parent
e8ec424710
commit
cc74f7c00e
1
csc.dtd
1
csc.dtd
|
@ -59,6 +59,7 @@
|
|||
|
||||
<!ELEMENT directory (diritem*)>
|
||||
<!ATTLIST directory
|
||||
href CDATA ""
|
||||
title CDATA #REQUIRED>
|
||||
<!ELEMENT diritem EMPTY>
|
||||
<!ATTLIST diritem
|
||||
|
|
|
@ -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 />
|
||||
|
|
Loading…
Reference in New Issue