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="0" marginwidth="0" marginheight="0" background="graphics/wed1.jpg" link="#ECCDCA" vlink="#ECCDCA">
-
-
- <table width="760" height="555"><tr><td width="150" valign="top"><br kludge=""/></td><td valign="top"><font face="Arial" size="5"><div align="center"><xsl:eval>GetAlbumTitle()</xsl:eval>
- </div></font><br kludge=""/><table width="500" border="0" cellspacing="6" cellpadding="6" align="center">
- <tr>
- <td valign="top">
- <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>
- <tr><td colspan="3" background=""><div align="center"><xsl:choose>
- <xsl:when expr="IsFirstPage(this)">
-
- <font face="Arial, Helvetica, sans-serif" size="2" color="white">
-
- </font>
-
- </xsl:when>
- <xsl:otherwise>
-
- <a><xsl:attribute name="href"><xsl:eval>GetPrevPage(this)</xsl:eval></xsl:attribute><font face="Arial, Helvetica, sans-serif" size="2">
- <b>Previous</b></font></a></xsl:otherwise>
- </xsl:choose><font face="Arial, Helvetica, sans-serif" size="2" color="white">
- </font><xsl:choose>
- <xsl:when expr="IsLastPage(this)">
-
- <font face="Arial, Helvetica, sans-serif" size="2" color="white">
-
- </font>
-
- </xsl:when>
- <xsl:otherwise>
-
- <a><xsl:attribute name="href"><xsl:eval>GetNextPage(this)</xsl:eval></xsl:attribute><font face="Arial, Helvetica, sans-serif" size="2">
- <b>More</b>
- </font></a>
-
- </xsl:otherwise>
- </xsl:choose>
- </div>
- </td></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="4" 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>
-