<!-- Only bother to do this if there's at least one non-table footnote -->
<xsl:if test="$fcount > 0">
<div class="footnotes">
+ <xsl:call-template name="footnotes.attributes"/>
<br/>
- <hr width="100" align="{$direction.align.start}"/>
+ <hr>
+ <xsl:choose>
+ <xsl:when test="$make.clean.html != 0">
+ <xsl:attribute name="class">footnote-hr</xsl:attribute>
+ </xsl:when>
+ <xsl:when test="$css.decoration != 0">
+ <xsl:attribute name="style">
+ <xsl:value-of select="concat('width:100; align:',
+ $direction.align.start,
+ ';')"/>
+ </xsl:attribute>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:attribute name="width">100</xsl:attribute>
+ <xsl:attribute name="align"><xsl:value-of
+ select="$direction.align.start"/></xsl:attribute>
+ </xsl:otherwise>
+ </xsl:choose>
+ </hr>
<xsl:call-template name="process.footnotes.in.this.chunk">
<xsl:with-param name="node" select="."/>
<xsl:with-param name="footnotes" select="$footnotes"/>
<xsl:call-template name="system.head.content"/>
<xsl:call-template name="head.content"/>
- <xsl:if test="$home">
+ <!-- home link not valid in HTML5 -->
+ <xsl:if test="$home and $div.element != 'section'">
<link rel="home">
<xsl:attribute name="href">
<xsl:call-template name="href.target">
</link>
</xsl:if>
- <xsl:if test="$up">
+ <!-- up link not valid in HTML5 -->
+ <xsl:if test="$up and $div.element != 'section'">
<link rel="up">
<xsl:attribute name="href">
<xsl:call-template name="href.target">
<xsl:call-template name="user.preroot"/>
<html>
+ <xsl:call-template name="root.attributes"/>
<xsl:call-template name="html.head">
<xsl:with-param name="prev" select="$prev"/>
<xsl:with-param name="next" select="$next"/>
<body>
<xsl:call-template name="body.attributes"/>
- <xsl:call-template name="user.header.navigation"/>
+
+ <xsl:call-template name="user.header.navigation">
+ <xsl:with-param name="prev" select="$prev"/>
+ <xsl:with-param name="next" select="$next"/>
+ <xsl:with-param name="nav.context" select="$nav.context"/>
+ </xsl:call-template>
<xsl:call-template name="header.navigation">
<xsl:with-param name="prev" select="$prev"/>
<xsl:with-param name="nav.context" select="$nav.context"/>
</xsl:call-template>
- <xsl:call-template name="user.footer.navigation"/>
+ <xsl:call-template name="user.footer.navigation">
+ <xsl:with-param name="prev" select="$prev"/>
+ <xsl:with-param name="next" select="$next"/>
+ <xsl:with-param name="nav.context" select="$nav.context"/>
+ </xsl:call-template>
</body>
</html>
<xsl:value-of select="$chunk.append"/>