source: stylesheets/lfs-xsl/xhtml/lfs-legalnotice.xsl@ ccded7e

11.0 11.1 11.2 11.3 12.0 12.1 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since ccded7e was ccded7e, checked in by Xi Ruoyao <xry111@…>, 3 years ago

clean up unused SVN prop entries

  • Property mode set to 100644
File size: 3.1 KB
Line 
1<?xml version='1.0' encoding='ISO-8859-1'?>
2
3<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
4 xmlns="http://www.w3.org/1999/xhtml"
5 version="1.0">
6
7 <!-- This stylesheet controls how legalnotice page is created -->
8
9 <!-- Generating the legalnotice page:
10 We are forcing separate legalnotice page generation.
11 Removed the default link to legalnotice page. We want it in Copyright.
12 Added footer navigational link to Home. -->
13 <!-- The original template is in {docbook-xsl}/xhtml/titlepage.xsl -->
14 <xsl:template match="legalnotice" mode="titlepage.mode">
15 <xsl:variable name="id">
16 <xsl:call-template name="object.id"/>
17 </xsl:variable>
18 <xsl:variable name="filename" select="concat($base.dir, 'legalnotice.html')"/>
19 <xsl:call-template name="write.chunk">
20 <xsl:with-param name="filename" select="$filename"/>
21 <xsl:with-param name="quiet" select="$chunk.quietly"/>
22 <xsl:with-param name="content">
23 <html>
24 <xsl:call-template name="html.head"/>
25 <body>
26 <xsl:call-template name="body.attributes"/>
27 <div class="{local-name(.)}">
28 <xsl:apply-templates mode="titlepage.mode"/>
29 </div>
30 <div class="navfooter">
31 <ul class="footerlinks">
32 <li class="home">
33 <a accesskey="h" href="index.html">
34 <xsl:attribute name="title">
35 <xsl:value-of select="/book/bookinfo/title"/>
36 <xsl:text> - </xsl:text>
37 <xsl:value-of select="/book/bookinfo/subtitle"/>
38 </xsl:attribute>
39 <xsl:call-template name="navig.content">
40 <xsl:with-param name="direction" select="'home'"/>
41 </xsl:call-template>
42 </a>
43 </li>
44 </ul>
45 </div>
46 </body>
47 </html>
48 </xsl:with-param>
49 </xsl:call-template>
50 </xsl:template>
51
52 <!-- Making the legalnotice link:
53 We make the "Copyright" word a link to legalnotice page. -->
54 <!-- The original template is in {docbook-xsl}/xhtml/titlepage.xsl -->
55 <xsl:template match="copyright" mode="titlepage.mode">
56 <p class="{name(.)}">
57 <a href="legalnotice.html">
58 <xsl:call-template name="gentext">
59 <xsl:with-param name="key" select="'Copyright'"/>
60 </xsl:call-template>
61 </a>
62 <xsl:call-template name="gentext.space"/>
63 <xsl:call-template name="dingbat">
64 <xsl:with-param name="dingbat">copyright</xsl:with-param>
65 </xsl:call-template>
66 <xsl:call-template name="gentext.space"/>
67 <xsl:call-template name="copyright.years">
68 <xsl:with-param name="years" select="year"/>
69 <xsl:with-param name="print.ranges" select="$make.year.ranges"/>
70 <xsl:with-param name="single.year.ranges" select="$make.single.year.ranges"/>
71 </xsl:call-template>
72 <xsl:call-template name="gentext.space"/>
73 <xsl:apply-templates select="holder" mode="titlepage.mode"/>
74 </p>
75 </xsl:template>
76
77</xsl:stylesheet>
Note: See TracBrowser for help on using the repository browser.