Warning, /graphics/digikam/core/dplugins/generic/tools/htmlgallery/themes/details/template.xsl is written in an unsupported language. File is not indexed.

0001 <?xml version="1.0" encoding="UTF-8" ?>
0002 
0003 <!--
0004  * ============================================================
0005  *
0006  * This file is a part of digiKam project
0007  * https://www.digikam.org
0008  *
0009  * Date        : 2008-06-22
0010  * Description : A clean look theme for the digiKam html gallery tool.
0011  *
0012  * SPDX-FileCopyrightText: 2008 by Gianluca Urgese <g dot urgese at jaone dot it>
0013  *
0014  * SPDX-License-Identifier: GPL-2.0-or-later
0015  *
0016  * ============================================================
0017  -->
0018 
0019 <!DOCTYPE stylesheet [<!ENTITY raquo "&#187;">]>
0020 
0021 <xsl:transform version="1.0"
0022     xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
0023     xmlns:exsl="http://exslt.org/common"
0024     extension-element-prefixes="exsl">
0025 
0026 <xsl:template name="linkTagsImagePage">
0027         <link rel="first" href="{../image[position()=1]/full/@fileName}.html"></link>
0028         <link rel="last" href="{../image[position()=last()]/full/@fileName}.html"></link>
0029         <xsl:if test="position() &gt; 1">
0030                 <link rel="prev" href="{preceding-sibling::image[position()=1]/full/@fileName}.html"></link>
0031         </xsl:if>
0032         <xsl:if test="position() &lt; last()">
0033                 <link rel="next" href="{following-sibling::image[position()=1]/full/@fileName}.html"></link>
0034         </xsl:if>
0035         <xsl:choose>
0036                 <xsl:when test="count(/collections/collection) &gt; 1">
0037                         <link rel="up" href="../{../fileName}.html"></link>
0038                         <link rel="top" href="../index.html"></link>
0039                 </xsl:when>
0040                 <xsl:otherwise>
0041                         <link rel="up" href="../index.html"></link>
0042                 </xsl:otherwise>
0043         </xsl:choose>
0044 </xsl:template>
0045 
0046 <xsl:template name="linkTagsCollectionPage">
0047         <xsl:if test="count(/collections/collection) &gt; 1">
0048                 <link rel="up" href="index.html"></link>
0049         </xsl:if>
0050 </xsl:template>
0051 
0052 <xsl:template name="imagePage">
0053     <html>
0054     <head>
0055         <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
0056         <title><xsl:value-of select="title"/></title>
0057         <link rel="stylesheet" type="text/css" href="../details/style.css"/>
0058         <xsl:call-template name="linkTagsImagePage"/>
0059     </head>
0060     <body id="imagePage">
0061 
0062         <h1>
0063             <xsl:choose>
0064                 <xsl:when test="count(/collections/collection) &gt; 1">
0065                     <a href="../index.html"><xsl:value-of select="$i18nCollectionList"/></a>
0066                     &raquo;
0067                     <a href="../{../fileName}.html"><xsl:value-of select="../name"/></a>
0068                 </xsl:when>
0069                 <xsl:otherwise>
0070                     <a href="../index.html"><xsl:value-of select="../name"/></a>
0071                 </xsl:otherwise>
0072             </xsl:choose>
0073 
0074             &raquo; <xsl:value-of select="title"/>
0075             (<xsl:value-of select="position()"/>/<xsl:value-of select="last()"/>)
0076         </h1>
0077 
0078 
0079     <div id="content">
0080         <div class="colsx">
0081         <img src="{full/@fileName}" width="{full/@width}" height="{full/@height}" />
0082         <p>
0083         <xsl:value-of select="description"/>
0084         </p>
0085         <xsl:if test="original/@fileName != ''">
0086             <p>
0087             <a href="{original/@fileName}"><xsl:value-of select="$i18nOriginalImage"/></a>
0088             (<xsl:value-of select="original/@width"/>x<xsl:value-of select="original/@height"/>)
0089             </p>
0090         </xsl:if>
0091         </div>
0092         <div class="coldx">
0093             <br /><b><xsl:value-of select="$i18nexifimagemake"/>:</b> <xsl:value-of select="exif/exifimagemake"/>
0094             <br /><b><xsl:value-of select="$i18nexifimagemodel"/>:</b> <xsl:value-of select="exif/exifimagemodel"/>
0095             <br /><b><xsl:value-of select="$i18nexifimageorientation"/>:</b> <xsl:value-of select="exif/exifimageorientation"/>
0096             <br /><b><xsl:value-of select="$i18nexifimagexresolution"/>:</b> <xsl:value-of select="exif/exifimagexresolution"/>
0097             <br /><b><xsl:value-of select="$i18nexifimageyresolution"/>:</b> <xsl:value-of select="exif/exifimageyresolution"/>
0098             <br /><b><xsl:value-of select="$i18nexifimageresolutionunit"/>:</b> <xsl:value-of select="exif/exifimageresolutionunit"/>
0099             <br /><b><xsl:value-of select="$i18nexifimagedatetime"/>:</b> <xsl:value-of select="exif/exifimagedatetime"/>
0100             <br /><b><xsl:value-of select="$i18nexifimageycbcrpositioning"/>:</b> <xsl:value-of select="exif/exifimageycbcrpositioning"/>
0101             <br /><b><xsl:value-of select="$i18nexifphotoexposuretime"/>:</b> <xsl:value-of select="exif/exifphotoexposuretime"/>
0102             <br /><b><xsl:value-of select="$i18nexifphotofnumber"/>:</b> <xsl:value-of select="exif/exifphotofnumber"/>
0103             <br /><b><xsl:value-of select="$i18nexifphotoexposureprogram"/>:</b> <xsl:value-of select="exif/exifphotoexposureprogram"/>
0104             <br /><b><xsl:value-of select="$i18nexifphotoisospeedratings"/>:</b> <xsl:value-of select="exif/exifphotoisospeedratings"/>
0105             <br /><b><xsl:value-of select="$i18nexifphotoshutterspeedvalue"/>:</b> <xsl:value-of select="exif/exifphotoshutterspeedvalue"/>
0106             <br /><b><xsl:value-of select="$i18nexifphotoaperturevalue"/>:</b> <xsl:value-of select="exif/exifphotoaperturevalue"/>
0107             <br /><b><xsl:value-of select="$i18nexifphotofocallength"/>:</b> <xsl:value-of select="exif/exifphotofocallength"/>
0108             <br /><b><xsl:value-of select="$i18nexifgpsaltitude"/>:</b> <xsl:value-of select="exif/exifgpsaltitude"/>
0109             <br /><b><xsl:value-of select="$i18nexifgpslatitude"/>:</b> <xsl:value-of select="exif/exifgpslatitude"/>
0110             <br /><b><xsl:value-of select="$i18nexifgpslongitude"/>:</b> <xsl:value-of select="exif/exifgpslongitude"/>
0111         </div>
0112     </div>
0113     <div id="navigation">
0114         <div id="previous">
0115             <xsl:choose>
0116                 <xsl:when test="position() &gt; 1">
0117                     <a href="{preceding-sibling::image[position()=1]/full/@fileName}.html">
0118                         <img src="../details/previous.png" alt="{$i18nPrevious}" title="{$i18nPrevious}" />
0119                     </a>
0120                 </xsl:when>
0121                 <xsl:otherwise>
0122                     <img src="../details/previous_disabled.png" alt="{$i18nPrevious}" title="{$i18nPrevious}" />
0123                 </xsl:otherwise>
0124             </xsl:choose>
0125         </div>
0126         <div id="up">
0127                 <a href="../index.html">
0128                         <img src="../details/up.png" alt="{$i18nUp}" title="{$i18nUp}" />
0129                 </a>
0130         </div>
0131         <div id="next">
0132             <xsl:choose>
0133                 <xsl:when test="position() &lt; last()">
0134                     <a href="{following-sibling::image[position()=1]/full/@fileName}.html">
0135                         <img src="../details/next.png" alt="{$i18nNext}" title="{$i18nNext}" />
0136                     </a>
0137                 </xsl:when>
0138                 <xsl:otherwise>
0139                     <img src="../details/next_disabled.png" alt="{$i18nNext}" title="{$i18nNext}" />
0140                 </xsl:otherwise>
0141             </xsl:choose>
0142         </div>
0143     </div>
0144     <br /><br />
0145     <div id="footer">
0146           <xsl:value-of select="$footer"/>
0147     </div>
0148     </body>
0149     </html>
0150 </xsl:template>
0151 
0152 
0153 <xsl:template name="collectionPage">
0154     <html>
0155     <head>
0156         <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
0157         <title><xsl:value-of select="name"/></title>
0158         <link rel="stylesheet" type="text/css" href="details/style.css"/>
0159         <xsl:call-template name="linkTagsCollectionPage"/>
0160     </head>
0161     <body id="collectionPage">
0162     <h1>
0163         <xsl:if test="count(/collections/collection) &gt; 1">
0164             <a href="index.html"><xsl:value-of select="$i18nCollectionList"/></a>
0165             &raquo;
0166         </xsl:if>
0167         <xsl:value-of select="name"/>
0168     </h1>
0169     <div id="content">
0170             <xsl:variable name="folder" select='fileName'/>
0171             <xsl:for-each select="image">
0172                 <span class="thumbnail">
0173                     <a href='{$folder}/{full/@fileName}.html'>
0174                         <img src="{$folder}/{thumbnail/@fileName}" width="{thumbnail/@width}" height="{thumbnail/@height}" />
0175                     </a>
0176                     <a href='{$folder}/{full/@fileName}.html'>
0177                         <xsl:value-of select="title"/>
0178                     </a>
0179                 </span>
0180                 <exsl:document href='{$folder}/{full/@fileName}.html'>
0181                     <xsl:call-template name="imagePage"/>
0182                 </exsl:document>
0183             </xsl:for-each>
0184     </div> <!-- /content -->
0185     </body>
0186     </html>
0187 </xsl:template>
0188 
0189 
0190 <xsl:template name="collectionListPage">
0191     <html>
0192     <head>
0193         <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
0194         <title><xsl:value-of select="$i18nCollectionList"/></title>
0195         <link rel="stylesheet" type="text/css" href="details/style.css"/>
0196     </head>
0197     <body>
0198     <h1><xsl:value-of select="$i18nCollectionList"/></h1>
0199     <div id="content">
0200             <xsl:for-each select="collections/collection">
0201                 <xsl:sort select="name" order="ascending" data-type="text" />
0202                 <span class="thumbnail">
0203                     <a href="{fileName}.html">
0204                         <!-- Use first image as collection image -->
0205                         <img src="{fileName}/{image[1]/thumbnail/@fileName}"
0206                                 width="{image[1]/thumbnail/@width}"
0207                                 height="{image[1]/thumbnail/@height}" />
0208                         <xsl:value-of select="name"/>
0209                     </a>
0210                 </span>
0211                 <exsl:document href="{fileName}.html">
0212                     <xsl:call-template name="collectionPage"/>
0213                 </exsl:document>
0214             </xsl:for-each>
0215     </div> <!-- /content -->
0216     </body>
0217     </html>
0218 </xsl:template>
0219 
0220 
0221 <xsl:template match="/">
0222     <xsl:choose>
0223         <xsl:when test="count(collections/collection) &gt; 1">
0224             <xsl:call-template name="collectionListPage"/>
0225         </xsl:when>
0226         <xsl:otherwise>
0227             <xsl:for-each select="collections/collection">
0228                 <xsl:call-template name="collectionPage"/>
0229             </xsl:for-each>
0230         </xsl:otherwise>
0231     </xsl:choose>
0232 </xsl:template>
0233 
0234 </xsl:transform>