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 = 9;
- ]]></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) % 9) == 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="#ffffff" leftmargin="0" topmargin="10" marginwidth="0" marginheight="0">
- <table border="0" cellspacing="0" cellpadding="0"><tr><td height="95" background="graphics/redbar.gif"><br kludge=""/></td><td width="740" height="95" background="graphics/redbar.gif"><div align="center">
- <font face="Arial, Helvetica, sans-serif" size="5">
- <xsl:eval>GetAlbumTitle()</xsl:eval>
- </font>
- </div></td><tr><td width="52" background="graphics/lights.jpg"><br kludge=""/></td><td><br kludge=""/>
- <table width="500" border="4" cellspacing="4" cellpadding="4" bgcolor="#ffffff" align="center" bordercolor="#ff0000">
- <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]"/>
-
- </tr>
- <tr><xsl:apply-templates select="../imageinfo[index() $gt$ context()!index()][2]"/>
- <xsl:apply-templates select="../imageinfo[index() $gt$ context()!index()][3]"/>
- <xsl:apply-templates select="../imageinfo[index() $gt$ context()!index()][4]"/>
-
-
- </tr>
- <tr>
- <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]"/>
- </tr>
- </table>
- <br kludge=""/>
- </td></tr></tr><tr><td height="95" background="graphics/redbar.gif"><br kludge=""/></td><td background="graphics/redbar.gif" width="740"><table width="450" border="1" cellspacing="6" cellpadding="6" bgcolor="#006600" align="center" bordercolor="#FFFFFF">
- <tr>
- <div align="center">
- <td bgcolor="#FFFFFF" width="33%" background="">
- <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="#006600" width="33%" border="0" background="">
- <div align="center">
- <img src="graphics/dot.gif" width="1" height="1"/>
- </div>
- </td>
- <td bgcolor="#FFFFFF" width="33%" background="">
- <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></td></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>
-