2 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
3 xmlns:date="http://exslt.org/dates-and-times"
4 xmlns:l="http://docbook.sourceforge.net/xmlns/l10n/1.0"
5 exclude-result-prefixes="date"
8 <!-- If you have /etc/xml/catalog setup properly, this won't fetch .xsl from internet. -->
9 <xsl:import href="http://docbook.sourceforge.net/release/xsl/current/xhtml/docbook.xsl"/>
10 <xsl:param name="www.root" select="."/>
11 <xsl:param name="no.titlepage" select="0"/>
12 <xsl:param name="section.autolabel" select="1"></xsl:param>
13 <!-- <xsl:param name="img.src.path">resources/</xsl:param>-->
15 <xsl:param name="local.l10n.xml" select="document('')"/>
17 <l:l10n xmlns:l="http://docbook.sourceforge.net/xmlns/l10n/1.0" language="cs" english-language-name="Czech">
18 <l:gentext key="LastChanged" text="Poslední změna"/>
19 <l:context name="datetime"><l:template name="format" text="A d. B Y"/></l:context>
21 <l:l10n xmlns:l="http://docbook.sourceforge.net/xmlns/l10n/1.0" language="en" english-language-name="English">
22 <l:gentext key="LastChanged" text="Last changed"/>
23 <l:context name="datetime"><l:template name="format" text="A, B d, Y"/></l:context>
27 <xsl:template name="user.head.content">
29 <xsl:attribute name="content">
30 <xsl:call-template name="datetime.format">
31 <xsl:with-param name="date" select="date:date-time()"/>
32 <xsl:with-param name="format" select="'Y-m-d'"/>
36 <xsl:call-template name="output.html.stylesheets">
37 <xsl:with-param name="stylesheets" select="concat($www.root, '/cv.css')"/>
39 <xsl:call-template name="output.html.stylesheets">
40 <xsl:with-param name="stylesheets" select="concat($www.root, '/styl.css')"/>
44 <xsl:template name="last.change">
45 <p><strong><xsl:call-template name="gentext">
46 <xsl:with-param name="key" select="'LastChanged'"/>
47 </xsl:call-template>: </strong>
48 <xsl:call-template name="datetime.format">
49 <xsl:with-param name="date" select="date:date-time()"/>
50 <xsl:with-param name="format">
51 <xsl:call-template name="gentext.template">
52 <xsl:with-param name="context" select="'datetime'"/>
53 <xsl:with-param name="name" select="'format'"/>
56 <xsl:with-param name="padding" select="0"/>
61 <xsl:template name="article.orig">
62 <div class="{name(.)}">
63 <xsl:call-template name="language.attribute"/>
64 <xsl:if test="$generate.id.attributes != 0">
65 <xsl:attribute name="id">
66 <xsl:call-template name="object.id"/>
70 <!-- We don't want titles etc. in the homepage -->
71 <xsl:if test="not($no.titlepage)">
72 <xsl:call-template name="article.titlepage"/>
74 <xsl:variable name="toc.params">
75 <xsl:call-template name="find.path.params">
76 <xsl:with-param name="table" select="normalize-space($generate.toc)"/>
80 <xsl:call-template name="make.lots">
81 <xsl:with-param name="toc.params" select="$toc.params"/>
82 <xsl:with-param name="toc">
83 <xsl:call-template name="component.toc">
84 <xsl:with-param name="toc.title.p" select="contains($toc.params, 'title')"/>
89 <xsl:call-template name="last.change" />
92 <xsl:apply-templates/>
93 <xsl:call-template name="process.footnotes"/>
97 <!-- Include the template with website design -->
98 <xsl:include href="../design.xsl"/>
100 <xsl:output method="xml" encoding="UTF-8" />