1
<?xml version="1.0" encoding="UTF-8" ?>
2
<!DOCTYPE stylesheet [<!ENTITY raquo "»">]>
4
<xsl:transform version="1.0"
5
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
6
xmlns:exsl="http://exslt.org/common"
7
extension-element-prefixes="exsl">
9
<xsl:template name="imagePage">
12
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
13
<title><xsl:value-of select="title"/></title>
14
<link rel="stylesheet" type="text/css" href="../s0/style.css"/>
20
<xsl:when test="count(/collections/collection) > 1">
21
<a href="../index.html"><xsl:value-of select="$i18nCollectionList"/></a>
23
<a href="../{../fileName}.html"><xsl:value-of select="../name"/></a>
26
<a href="../index.html"><xsl:value-of select="../name"/></a>
30
» <xsl:value-of select="title"/>
31
(<xsl:value-of select="position()"/>/<xsl:value-of select="last()"/>)
36
<xsl:when test="position() > 1">
37
<a href="{preceding-sibling::image[position()=1]/full/@fileName}.html">
38
<img src="../s0/previous.png" alt="{$i18nPrevious}" title="{$i18nPrevious}" />
42
<img src="../s0/previous_disabled.png" alt="{$i18nPrevious}" title="{$i18nPrevious}" />
47
<a href="../index.html">
48
<img src="../s0/up.png" alt="{$i18nUp}" title="{$i18nUp}" />
53
<xsl:when test="position() < last()">
54
<a href="{following-sibling::image[position()=1]/full/@fileName}.html">
55
<img src="../s0/next.png" alt="{$i18nNext}" title="{$i18nNext}" />
59
<img src="../s0/next_disabled.png" alt="{$i18nNext}" title="{$i18nNext}" />
66
<img src="{full/@fileName}" width="{full/@width}" height="{full/@height}" />
68
<xsl:value-of select="description"/>
70
<xsl:if test="original/@fileName != ''">
72
<a href="{original/@fileName}"><xsl:value-of select="$i18nOriginalImage"/></a>
73
(<xsl:value-of select="original/@width"/>x<xsl:value-of select="original/@height"/>)
82
<xsl:template name="collectionPage">
85
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
86
<title><xsl:value-of select="name"/></title>
87
<link rel="stylesheet" type="text/css" href="s0/style.css"/>
89
<body id="collectionPage">
91
<xsl:if test="count(/collections/collection) > 1">
92
<a href="index.html"><xsl:value-of select="$i18nCollectionList"/></a>
95
<xsl:value-of select="name"/>
98
<xsl:variable name="folder" select='fileName'/>
99
<xsl:for-each select="image">
100
<span class="thumbnail">
101
<a href='{$folder}/{full/@fileName}.html'>
102
<img src="{$folder}/{thumbnail/@fileName}" width="{thumbnail/@width}" height="{thumbnail/@height}" />
104
<a href='{$folder}/{full/@fileName}.html'>
105
<xsl:value-of select="title"/>
108
<exsl:document href='{$folder}/{full/@fileName}.html'>
109
<xsl:call-template name="imagePage"/>
112
</div> <!-- /content -->
118
<xsl:template name="collectionListPage">
121
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
122
<title><xsl:value-of select="$i18nCollectionList"/></title>
123
<link rel="stylesheet" type="text/css" href="s0/style.css"/>
126
<h1><xsl:value-of select="$i18nCollectionList"/></h1>
128
<xsl:for-each select="collections/collection">
129
<span class="thumbnail">
130
<a href="{fileName}.html">
131
<!-- Use first image as collection image -->
132
<img src="{fileName}/{image[1]/thumbnail/@fileName}"
133
width="{image[1]/thumbnail/@width}"
134
height="{image[1]/thumbnail/@height}" />
135
<xsl:value-of select="name"/>
138
<exsl:document href="{fileName}.html">
139
<xsl:call-template name="collectionPage"/>
142
</div> <!-- /content -->
148
<xsl:template match="/">
150
<xsl:when test="count(collections/collection) > 1">
151
<xsl:call-template name="collectionListPage"/>
154
<xsl:for-each select="collections/collection">
155
<xsl:call-template name="collectionPage"/>