source: stylesheets/lfs-xsl/docbook-xsl-1.78.1/xhtml5/html5-chunk-mods.xsl@ f6e9c180

7.6-systemd 7.7-systemd 7.8-systemd 7.9-systemd
Last change on this file since f6e9c180 was b1a51ac1, checked in by Krejzi <krejzi@…>, 11 years ago

Import new branch

git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/systemd/BOOK@10389 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

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