home *** CD-ROM | disk | FTP | other *** search
- <?xml version="1.0"?>
- <!-- Copyright (C) 1995-2003 Jasc Software, Inc. and its licensors. -->
- <!-- All rights reserved. -->
- <!DOCTYPE xsl:stylesheet [
- <!ENTITY externalScript SYSTEM "../ScriptLib/common.xsl">
- ]>
- <xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl">
- <xsl:script><![CDATA[
- var ImagesPerPage = 15;
- ]]></xsl:script>
- &externalScript;
- <xsl:template match="/">
- <HTML>
- <xsl:apply-templates/>
- </HTML>
- </xsl:template>
- <xsl:template match="photos">
- <xsl:apply-templates select="album"/>
- </xsl:template>
- <xsl:template match="album">
- <xsl:apply-templates select="imagelist"/>
- </xsl:template>
- <xsl:template match="imagelist">
- <xsl:for-each select="imageinfo">
- <xsl:if expr="(childNumber(this) % 15) == 1">
- <xsl:element name="ixfile">
- <xsl:attribute name="fname"><xsl:eval>GetTocName(this)</xsl:eval></xsl:attribute>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
- </head>
- <body bgcolor="#000000">
- <div align="center">
- <table width="140" border="0" cellspacing="0" cellpadding="0" bgcolor="#FFFFFF">
- <tr>
- <td>
- <div align="center">
- <font face="Arial, Helvetica, sans-serif" size="2">
- <xsl:eval>GetAlbumTitle()</xsl:eval>
- </font>
- </div>
- </td>
- </tr>
- </table>
- <br kludge=""/>
- </div>
- <table width="750" border="6" cellspacing="6" cellpadding="6" bgcolor="#000000" align="center" bordercolor="#FFFFFF">
- <tr>
- <td>
- <div align="center">
- <A>
- <xsl:attribute name="href"><xsl:value-of select="html_info/@fname"/></xsl:attribute>
- <xsl:apply-templates select="thumbinfo"/></A>
- </div>
- </td>
- <xsl:apply-templates select="../imageinfo[index() $gt$ context()!index()][0]"/>
- <xsl:apply-templates select="../imageinfo[index() $gt$ context()!index()][1]"/>
- <xsl:apply-templates select="../imageinfo[index() $gt$ context()!index()][2]"/>
- <xsl:apply-templates select="../imageinfo[index() $gt$ context()!index()][3]"/>
- </tr>
- <tr>
- <xsl:apply-templates select="../imageinfo[index() $gt$ context()!index()][4]"/>
- <xsl:apply-templates select="../imageinfo[index() $gt$ context()!index()][5]"/>
- <xsl:apply-templates select="../imageinfo[index() $gt$ context()!index()][6]"/>
- <xsl:apply-templates select="../imageinfo[index() $gt$ context()!index()][7]"/>
- <xsl:apply-templates select="../imageinfo[index() $gt$ context()!index()][8]"/>
- </tr>
- <tr>
- <xsl:apply-templates select="../imageinfo[index() $gt$ context()!index()][9]"/>
- <xsl:apply-templates select="../imageinfo[index() $gt$ context()!index()][10]"/>
- <xsl:apply-templates select="../imageinfo[index() $gt$ context()!index()][11]"/>
- <xsl:apply-templates select="../imageinfo[index() $gt$ context()!index()][12]"/>
- <xsl:apply-templates select="../imageinfo[index() $gt$ context()!index()][13]"/>
- </tr>
- </table>
- <br kludge=""/>
- <table width="450" border="1" cellspacing="6" cellpadding="6" bgcolor="#000000" align="center" bordercolor="#FFFFFF">
- <tr>
- <div align="center">
- <td bgcolor="#FFFFFF" width="33%">
- <xsl:choose>
- <xsl:when expr="IsFirstPage(this)">
- <div align="center">
- <font face="Arial, Helvetica, sans-serif" size="2">
- Previous
- </font>
- </div>
- </xsl:when>
- <xsl:otherwise>
- <div align="center">
- <a><xsl:attribute name="href"><xsl:eval>GetPrevPage(this)</xsl:eval></xsl:attribute><font face="Arial, Helvetica, sans-serif" size="2">
- Previous
- </font></a>
- </div>
- </xsl:otherwise>
- </xsl:choose>
- </td>
- <td bgcolor="#000000" width="33%" border="0">
- <div align="center">
- <img src="graphics/dot.gif" width="1" height="1"/>
- </div>
- </td>
- <td bgcolor="#FFFFFF" width="33%">
- <xsl:choose>
- <xsl:when expr="IsLastPage(this)">
- <div align="center">
- <font face="Arial, Helvetica, sans-serif" size="2">
- More
- </font>
- </div>
- </xsl:when>
- <xsl:otherwise>
- <div align="center">
- <a><xsl:attribute name="href"><xsl:eval>GetNextPage(this)</xsl:eval></xsl:attribute><font face="Arial, Helvetica, sans-serif" size="2">
- More
- </font></a>
- </div>
- </xsl:otherwise>
- </xsl:choose>
- </td>
- </div>
- </tr>
- </table>
- </body>
- </xsl:element>
- </xsl:if>
- </xsl:for-each>
- </xsl:template>
- <xsl:template match="imageinfo">
- <td>
- <div align="center">
- <A>
- <xsl:attribute name="href"><xsl:value-of select="html_info/@fname"/></xsl:attribute>
- <xsl:apply-templates select="thumbinfo"/></A>
- </div>
- </td>
- </xsl:template>
- <xsl:template match="title">
- <xsl:value-of/>
- </xsl:template>
- <xsl:template match="thumbinfo">
- <IMG border="0" vspace="2" hspace="2">
- <xsl:attribute name="src"><xsl:value-of select="@fname"/></xsl:attribute>
- <xsl:attribute name="width"><xsl:value-of select="thumbsize/@width"/></xsl:attribute>
- <xsl:attribute name="height"><xsl:value-of select="thumbsize/@height"/></xsl:attribute>
- <xsl:attribute name="alt"><xsl:value-of select="../title"/></xsl:attribute>
- </IMG></xsl:template>
- </xsl:stylesheet>
-