| 1 |
<?xml version="1.0" encoding="utf-8"?> |
| 2 |
<xsl:stylesheet |
| 3 |
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" |
| 4 |
xmlns:d="http://docbook.org/ns/docbook" |
| 5 |
xmlns:exsl="http://exslt.org/common" |
| 6 |
xmlns="http://www.w3.org/1999/xhtml" |
| 7 |
exclude-result-prefixes="exsl d" |
| 8 |
version="1.0"> |
| 9 |
|
| 10 |
<!-- call HTML5 header and footer templates for navigation --> |
| 11 |
<xsl:template name="chunk-element-content"> |
| 12 |
<xsl:param name="prev"/> |
| 13 |
<xsl:param name="next"/> |
| 14 |
<xsl:param name="nav.context"/> |
| 15 |
<xsl:param name="content"> |
| 16 |
<xsl:apply-imports/> |
| 17 |
</xsl:param> |
| 18 |
|
| 19 |
<xsl:call-template name="user.preroot"/> |
| 20 |
|
| 21 |
<html> |
| 22 |
<xsl:call-template name="root.attributes"/> |
| 23 |
<xsl:call-template name="html.head"> |
| 24 |
<xsl:with-param name="prev" select="$prev"/> |
| 25 |
<xsl:with-param name="next" select="$next"/> |
| 26 |
</xsl:call-template> |
| 27 |
|
| 28 |
<body> |
| 29 |
<xsl:call-template name="body.attributes"/> |
| 30 |
|
| 31 |
<xsl:call-template name="html5.header.navigation"> |
| 32 |
<xsl:with-param name="prev" select="$prev"/> |
| 33 |
<xsl:with-param name="next" select="$next"/> |
| 34 |
<xsl:with-param name="nav.context" select="$nav.context"/> |
| 35 |
</xsl:call-template> |
| 36 |
|
| 37 |
<xsl:call-template name="user.header.content"/> |
| 38 |
|
| 39 |
<xsl:copy-of select="$content"/> |
| 40 |
|
| 41 |
<xsl:call-template name="user.footer.content"/> |
| 42 |
|
| 43 |
<xsl:call-template name="html5.footer.navigation"> |
| 44 |
<xsl:with-param name="prev" select="$prev"/> |
| 45 |
<xsl:with-param name="next" select="$next"/> |
| 46 |
<xsl:with-param name="nav.context" select="$nav.context"/> |
| 47 |
</xsl:call-template> |
| 48 |
|
| 49 |
</body> |
| 50 |
</html> |
| 51 |
<xsl:value-of select="$chunk.append"/> |
| 52 |
</xsl:template> |
| 53 |
|
| 54 |
<!-- Add HTML5 <header> wrapper, and convert some attributes to styles --> |
| 55 |
<xsl:template name="html5.header.navigation"> |
| 56 |
<xsl:param name="prev" select="/d:foo"/> |
| 57 |
<xsl:param name="next" select="/d:foo"/> |
| 58 |
<xsl:param name="nav.context"/> |
| 59 |
|
| 60 |
<xsl:variable name="content"> |
| 61 |
<header> |
| 62 |
<xsl:call-template name="user.header.navigation"> |
| 63 |
<xsl:with-param name="prev" select="$prev"/> |
| 64 |
<xsl:with-param name="next" select="$next"/> |
| 65 |
<xsl:with-param name="nav.context" select="$nav.context"/> |
| 66 |
</xsl:call-template> |
| 67 |
|
| 68 |
<xsl:call-template name="header.navigation"> |
| 69 |
<xsl:with-param name="prev" select="$prev"/> |
| 70 |
<xsl:with-param name="next" select="$next"/> |
| 71 |
<xsl:with-param name="nav.context" select="$nav.context"/> |
| 72 |
</xsl:call-template> |
| 73 |
</header> |
| 74 |
</xsl:variable> |
| 75 |
|
| 76 |
<!-- And fix up any style atts --> |
| 77 |
<xsl:call-template name="convert.styles"> |
| 78 |
<xsl:with-param name="content" select="$content"/> |
| 79 |
</xsl:call-template> |
| 80 |
</xsl:template> |
| 81 |
|
| 82 |
<!-- Add HTML5 <footer> wrapper, and convert some attributes to styles --> |
| 83 |
<xsl:template name="html5.footer.navigation"> |
| 84 |
<xsl:param name="prev" select="/d:foo"/> |
| 85 |
<xsl:param name="next" select="/d:foo"/> |
| 86 |
<xsl:param name="nav.context"/> |
| 87 |
|
| 88 |
<xsl:variable name="content"> |
| 89 |
<footer> |
| 90 |
<xsl:call-template name="user.footer.navigation"> |
| 91 |
<xsl:with-param name="prev" select="$prev"/> |
| 92 |
<xsl:with-param name="next" select="$next"/> |
| 93 |
<xsl:with-param name="nav.context" select="$nav.context"/> |
| 94 |
</xsl:call-template> |
| 95 |
|
| 96 |
<xsl:call-template name="footer.navigation"> |
| 97 |
<xsl:with-param name="prev" select="$prev"/> |
| 98 |
<xsl:with-param name="next" select="$next"/> |
| 99 |
<xsl:with-param name="nav.context" select="$nav.context"/> |
| 100 |
</xsl:call-template> |
| 101 |
</footer> |
| 102 |
</xsl:variable> |
| 103 |
|
| 104 |
<!-- And fix up any style atts --> |
| 105 |
<xsl:call-template name="convert.styles"> |
| 106 |
<xsl:with-param name="content" select="$content"/> |
| 107 |
</xsl:call-template> |
| 108 |
</xsl:template> |
| 109 |
|
| 110 |
</xsl:stylesheet> |