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 = 5;
- ]]></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) % 5) == 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"/>
- <meta name="copyright" content="Copyright (C) 1995-2003 Jasc Software, Inc. and its licensors. All rights reserved."/>
-
- </head>
-
- <BODY bgcolor="#FFFFFF" text="#000099" link="0000ff" vlink="0000ff" alink="0000ff">
- <br kludge=""/>
- <br kludge=""/>
- <table width="800" border="1" cellspacing="0" cellpadding="0" align="center" background="graphics/vacation.jpg" height="500">
- <tr valign="bottom">
- <td><div align="center"><font face="Arial, Helvetica, sans-serif" size="3"><b><xsl:eval>GetAlbumTitle()</xsl:eval><br kludge=""/></b></font>
- <font face="Arial, Helvetica, sans-serif" size="1" >(Select Image to Enlarge)</font></div>
- <table border="1" cellspacing="0" cellpadding="00" align="center" background="textures/bktexture2.gif">
- <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>
- <td><div align="center"><xsl:apply-templates select="../imageinfo[index() $gt$ context()!index()][0]"/></div></td>
- <td><div align="center"><xsl:apply-templates select="../imageinfo[index() $gt$ context()!index()][1]"/></div></td>
- <td><div align="center"><xsl:apply-templates select="../imageinfo[index() $gt$ context()!index()][2]"/></div></td>
- <td><div align="center"><xsl:apply-templates select="../imageinfo[index() $gt$ context()!index()][3]"/></div></td>
- </tr>
- <tr>
- <td><div align="center"><font face="Arial, Helvetica, sans-serif" size="2"><b><xsl:value-of select="title"/></b></font></div></td>
- <td><div align="center"><font face="Arial, Helvetica, sans-serif" size="2"><b><xsl:apply-templates select="../imageinfo[index() $gt$ context()!index()][0]/title"/></b></font></div></td>
- <td><div align="center"><font face="Arial, Helvetica, sans-serif" size="2"><b><xsl:apply-templates select="../imageinfo[index() $gt$ context()!index()][1]/title"/></b></font></div></td>
- <td><div align="center"><font face="Arial, Helvetica, sans-serif" size="2"><b><xsl:apply-templates select="../imageinfo[index() $gt$ context()!index()][2]/title"/></b></font></div></td>
- <td><div align="center"><font face="Arial, Helvetica, sans-serif" size="2"><b><xsl:apply-templates select="../imageinfo[index() $gt$ context()!index()][3]/title"/></b></font></div></td>
- </tr></table>
- <div align="center"><br kludge=""/><table background="" width="200" border="0" cellspacing="2" cellpadding="2">
- <tr>
- <td width="100"><xsl:choose>
- <xsl:when expr="IsFirstPage(this)">
- <div align="center" style="filter: alpha(opacity=60);width:100%">
- <font face="Arial, Helvetica, sans-serif" size="2" >
- <b>Previous</b></font></div>
- </xsl:when>
- <xsl:otherwise>
- <div align="center" style="width:100%">
- <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></div>
- </xsl:otherwise>
- </xsl:choose></td>
- <td width="100"><xsl:choose>
- <xsl:when expr="IsLastPage(this)">
- <div align="center" style="filter: alpha(opacity=60);width:100%">
- <font face="Arial, Helvetica, sans-serif" size="2" >
- <b>More</b></font></div>
- </xsl:when>
- <xsl:otherwise>
- <div align="center" style="width:100%">
- <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></div>
- </xsl:otherwise>
- </xsl:choose></td>
- </tr>
- </table></div></td>
- </tr>
- </table>
- </BODY>
- </xsl:element>
- </xsl:if>
- </xsl:for-each>
- </xsl:template>
- <xsl:template match="imageinfo">
- <A>
- <xsl:attribute name="href"><xsl:value-of select="html_info/@fname"/></xsl:attribute>
- <xsl:apply-templates select="thumbinfo"/></A>
- </xsl:template>
- <xsl:template match="title">
- <xsl:value-of/>
- </xsl:template>
- <xsl:template match="thumbinfo">
- <IMG border="2" 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>
-