source: stylesheets/lfs-xsl/docbook-xsl-1.78.1/slides/xhtml/slidy.xsl@ b1a51ac1

7.5-systemd 7.6-systemd 7.7-systemd 7.8-systemd 7.9-systemd
Last change on this file since b1a51ac1 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: 2.8 KB
Line 
1<?xml version="1.0" encoding="ASCII"?>
2<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
3 xmlns="http://www.w3.org/1999/xhtml"
4 xmlns:db="http://docbook.org/ns/docbook"
5 xmlns:dbs="http://docbook.org/ns/docbook-slides"
6 exclude-result-prefixes="dbs db"
7 version="1.0">
8
9<xsl:import href="plain.xsl"/>
10
11<xsl:param name="wrap.slidecontent">0</xsl:param>
12
13<xsl:template name="xhtml.head">
14 <meta name="copyright">
15 <xsl:attribute name="content">
16 <xsl:if test="/dbs:slides/db:info/db:copyright">
17 <xsl:call-template name="slide.copyright"/>
18 </xsl:if>
19 </xsl:attribute>
20 </meta>
21
22 <xsl:if test="$slidy.duration != 0">
23 <meta name="duration" content="{$slidy.duration}"/>
24 </xsl:if>
25
26 <link rel="stylesheet" href="{concat($slidy.path.prefix, $slidy.slidy.css)}" type="text/css"/>
27 <xsl:if test="$slidy.user.css">
28 <link rel="stylesheet" href="{concat($slidy.path.prefix, $slidy.user.css)}" type="text/css"/>
29 </xsl:if>
30 <link rel="stylesheet" href="{$user.css}" type="text/css"/>
31 <script src="{concat($slidy.path.prefix, $slidy.slidy.js)}" charset="utf-8" type="text/javascript"/>
32</xsl:template>
33
34<xsl:template name="slideshow.head">
35 <div class="background"/>
36</xsl:template>
37
38<xsl:template name="slideshow.content">
39 <xsl:if test="$generate.titlepage != 0">
40 <xsl:apply-templates select="/dbs:slides" mode="titlepage"/>
41 </xsl:if>
42
43 <xsl:apply-templates select="/dbs:slides/dbs:foil|dbs:slides/dbs:foilgroup"/>
44</xsl:template>
45
46<xsl:template match="db:xref">
47 <xsl:variable name="target" select="id(./@linkend)"/>
48
49 <xsl:choose>
50 <xsl:when test="($target[self::dbs:foil] or $target[self::dbs:foilgroup])">
51 <!-- foil no: preceding foil(group)s + titlepage + 1 -->
52 <xsl:variable name="target.no" select="count($target/preceding::dbs:foil|$target/preceding::dbs:foilgroup) + 1 + $generate.titlepage"/>
53
54 <a href="{concat('#(', $target.no, ')')}">
55 <xsl:apply-templates select="$target" mode="xref-to"/>
56 </a>
57 </xsl:when>
58
59 <xsl:otherwise>
60 <xsl:call-template name="xref"/>
61 </xsl:otherwise>
62 </xsl:choose>
63</xsl:template>
64
65<xsl:template match="db:biblioentry" mode="xref-to">
66 <xsl:variable name="id" select="@xml:id"/>
67 <xsl:variable name="entry" select="//db:bibliography/*[@xml:id=$id][1]"/>
68
69 <a>
70 <xsl:attribute name="href">
71 <xsl:value-of select="concat('#(', count($entry/preceding::dbs:foil|$entry/preceding::dbs:foilgroup) + 1 + $generate.titlepage, ')')"/>
72 </xsl:attribute>
73 <xsl:choose>
74 <xsl:when test="$bibliography.numbered != 0">
75 <xsl:number from="db:bibliography" count="db:biblioentry|db:bibliomixed" level="any" format="1"/>
76 </xsl:when>
77
78 <xsl:otherwise>
79 <xsl:value-of select="$id"/>
80 </xsl:otherwise>
81 </xsl:choose>
82 </a>
83</xsl:template>
84
85</xsl:stylesheet>
Note: See TracBrowser for help on using the repository browser.