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>
- <body bgcolor="#FFFFFF" background="miscellaneous/grandtetons.jpg">
- <div align="center"><h1>
- <br kludge=""/>
- <br kludge=""/>
- <br kludge=""/>
- </h1>
- <table align="left" width="80%" border="0" cellspacing="0" cellpadding="0">
- <tr>
- <td width="1"><img hspace="70" src="graphics/dot.gif" width="1" height="1" vspace="265"/></td>
- <td colspan="3" valign="top"><table width="100%" border="1" cellspacing="0" cellpadding="3" align="center" bordercolor="#2965AD">
- <xsl:if test="@fname[. != '']">
- <tr>
- <td><br kludge=""/></td>
- <td><div align="center"><font face="Arial, Helvetica, sans-serif" size="3">
- <b><xsl:eval>GetAlbumTitle()</xsl:eval></b></font></div></td>
- <td><br kludge=""/></td>
- </tr>
- <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 valign="top"><div align="center"><font face="Arial, Helvetica, sans-serif" size="2"><b> <xsl:value-of select="title"/></b>
- <br kludge=""/>
- <xsl:value-of select="description"/></font></div></td>
- <td><br kludge=""/></td>
- </tr>
- </xsl:if>
- <xsl:if test="../imageinfo[index() $gt$ context()!index()][0]/@fname[. != '']">
- <tr>
- <td><br kludge=""/></td>
- <td valign="top"><div align="center">
- <font face="Arial, Helvetica, sans-serif" size="2"> <b><xsl:apply-templates select="../imageinfo[index() $gt$ context()!index()][0]/title"/></b>
- <br kludge=""/>
- <xsl:apply-templates select="../imageinfo[index() $gt$ context()!index()][0]/description"/></font></div></td>
- <td><div align="center">
- <xsl:apply-templates select="../imageinfo[index() $gt$ context()!index()][0]"/></div></td>
- </tr>
- </xsl:if>
- <xsl:if test="../imageinfo[index() $gt$ context()!index()][1]/@fname[. != '']">
- <tr>
- <td><div align="center"><xsl:apply-templates select="../imageinfo[index() $gt$ context()!index()][1]"/></div></td>
- <td valign="top"><div align="center"><font face="Arial, Helvetica, sans-serif" size="2">
- <b><xsl:apply-templates select="../imageinfo[index() $gt$ context()!index()][1]/title"/></b>
- <br kludge=""/>
- <xsl:apply-templates select="../imageinfo[index() $gt$ context()!index()][1]/description"/></font></div></td>
- <td><br kludge=""/></td>
- </tr>
- </xsl:if>
- <xsl:if test="../imageinfo[index() $gt$ context()!index()][2]/@fname[. != '']">
- <tr>
- <td><br kludge=""/></td>
- <td valign="top"><div align="center"><font face="Arial, Helvetica, sans-serif" size="2">
- <b><xsl:apply-templates select="../imageinfo[index() $gt$ context()!index()][2]/title"/></b><br kludge=""/>
- <xsl:apply-templates select="../imageinfo[index() $gt$ context()!index()][2]/description"/></font></div></td>
- <td><div align="center"><xsl:apply-templates select="../imageinfo[index() $gt$ context()!index()][2]"/></div></td>
- </tr>
- </xsl:if>
- <xsl:if test="../imageinfo[index() $gt$ context()!index()][3]/@fname[. != '']">
- <tr>
- <td><div align="center"><xsl:apply-templates select="../imageinfo[index() $gt$ context()!index()][3]"/></div></td>
- <td valign="top"><div align="center"><font face="Arial, Helvetica, sans-serif" size="2">
- <b><xsl:apply-templates select="../imageinfo[index() $gt$ context()!index()][3]/title"/></b><br kludge=""/>
- <xsl:apply-templates select="../imageinfo[index() $gt$ context()!index()][3]/description"/></font></div></td>
- <td><br kludge=""/></td>
- </tr>
- </xsl:if>
- </table></td>
- </tr>
- <tr>
- <td width="5"><br kludge=""/></td>
- <td width="263">
- <div align="center">
- <xsl:choose>
- <xsl:when expr="IsFirstPage(this)"><div align="center"><br kludge=""/></div>
- </xsl:when>
- <xsl:otherwise><div align="center" style="width:100%"><a><xsl:attribute name="href"><xsl:eval>GetPrevPage(this)</xsl:eval></xsl:attribute>
- <img src="buttons/backhand3.gif" border="0" width="37" height="34"/></a></div>
- </xsl:otherwise>
- </xsl:choose></div></td>
- <td width="211"><div align="center"><br kludge=""/></div></td>
- <td width="267"><div align="center"><xsl:choose>
- <xsl:when expr="IsLastPage(this)">
- <div align="center"><br kludge=""/></div>
- </xsl:when>
- <xsl:otherwise>
- <div align="center" style="width:100%"><a><xsl:attribute name="href"><xsl:eval>GetNextPage(this)</xsl:eval></xsl:attribute>
- <img src="buttons/nexthand3.gif" width="37" height="34" border="0"/></a></div></xsl:otherwise></xsl:choose></div></td>
- </tr>
- </table></div>
- </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="description">
- <xsl:value-of/>
- </xsl:template>
- <xsl:template match="thumbinfo">
- <IMG border="0"><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>
-