<xsl:call-template name='glue-preceding-span' />
<xsl:copy>
<xsl:apply-templates select='node()|@*' />
- <xsl:text>⁠</xsl:text> <!-- avoid breaking within a span element -->
+ <xsl:if test='*'>
+ <!-- avoid breaking within a span element -->
+ <xsl:text>⁠</xsl:text>
+ </xsl:if>
</xsl:copy>
</xsl:template>
</xsl:when>
<!-- preserve anything under <pre> -->
<xsl:when test='ancestor::xhtml:pre'><xsl:copy /></xsl:when>
+ <!-- preserve whitespace which is the only child node of an element -->
+ <xsl:when test='count(../node()) = 1'><xsl:copy /></xsl:when>
</xsl:choose>
</xsl:template>
<head>
<meta name='viewport' content='width=device-width, initial-scale=1' />
<link rel='stylesheet' type='text/css' href='/style.css' />
+ <link rel="icon" href="data:," />
<title>
<xsl:variable name='page-title' select='string(/document/title)' />
<xsl:if test='$page-title and $site-title != $page-title'>
</head>
<body>
<xsl:apply-templates select='/document/xhtml:html/@*' />
+
+ <xsl:if test='/document/hierarchy/parent'>
+ <p id='sitetitle'>
+ <small><xsl:value-of select='$site-title' /></small>
+ </p>
+ <div id='breadcrumbs'>
+ <strong>Return to: </strong>
+ <ul>
+ <xsl:for-each select='/document/hierarchy/parent'>
+ <li><a href='{uri}'><xsl:value-of select='name'/></a></li>
+ </xsl:for-each>
+ </ul>
+ </div>
+ <hr />
+ </xsl:if>
+
<xsl:apply-templates select='/document/xhtml:html/node()' />
<hr />