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 = 6;
- ]]></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) % 6) == 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="#ccccff" link="#000000" alink="#000000" vlink="#000000">
-
-
- <table width="700" border="2" cellspacing="0" cellpadding="0" align="center" height="440" background="graphics/mdback.jpg">
- <tr>
- <td background="graphics/mdback.jpg">
- <table width="700" border="0" cellspacing="0" cellpadding="0" height="440">
- <tr>
- <td width="100" background=""><img src="graphics/mdshim.gif" width="1" height="50"/></td>
- <td background=""><img src="graphics/mdshim.gif" width="166" height="1"/></td>
- <td width="167" background="graphics/mdshim.gif"><div align="center"><font face="Arial" size="5"><xsl:eval>GetAlbumTitle()</xsl:eval></font></div></td>
- <td background=""><img src="graphics/shmdshimim.gif" width="166" height="1"/></td>
- <td width="100" background=""><img src="graphics/mdshim.gif" width="1" height="1"/></td>
- </tr>
- <tr>
- <td width="100" background=""><img src="graphics/mdshim.gif" width="1" height="130"/></td>
- <td background="">
- <div align="right"><table width="10" border="0" cellpadding="0" cellspacing="0" bgcolor="ffffff">
- <tr><!-- row 1 -->
- <td background=""><img name="tl" src="graphics/tl.gif" width="7" height="7" border="0"/></td>
- <td height="7" background="graphics/tc.gif"><img src="graphics/mdshim.gif" width="1" height="7"/></td>
- <td background=""><img name="tr" src="graphics/tr.gif" width="7" height="7" border="0"/></td>
-
- </tr>
- <tr><!-- row 2 -->
- <td background="graphics/l.gif" width="7"><img src="graphics/mdshim.gif" width="7" height="1"/></td>
- <td background=""><A><xsl:attribute name="href"><xsl:value-of select="html_info/@fname"/></xsl:attribute><xsl:apply-templates select="thumbinfo"/></A></td>
- <td width="7" background="graphics/r.gif"><img src="graphics/mdshim.gif" width="7" height="1"/></td>
-
- </tr>
- <tr><!-- row 3 -->
- <td background=""><img name="bl" src="graphics/bl.gif" width="7" height="7" border="0"/></td>
- <td height="7" background="graphics/bc.gif"><img src="graphics/mdshim.gif" width="1" height="7"/></td>
- <td background=""><img name="br" src="graphics/br.gif" width="7" height="7" border="0"/></td>
-
- </tr>
-
-
- </table></div>
- </td>
- <td background=""><img src="graphics/mdshim.gif" width="1" height="1"/></td>
- <td background="">
- <div align="left"><xsl:apply-templates select="../imageinfo[index() $gt$ context()!index()][0]"/></div>
- </td>
- <td width="100" background=""><img src="graphics/mdshim.gif" width="1" height="1"/></td>
- </tr>
- <tr>
- <td width="100" background=""><img src="graphics/mdshim.gif" width="1" height="105"/></td>
- <td background="">
- <div align="left"><xsl:apply-templates select="../imageinfo[index() $gt$ context()!index()][1]"/></div>
- </td>
- <td background=""><img src="graphics/mdshim.gif" width="1" height="1"/></td>
- <td background="">
- <div align="right"><xsl:apply-templates select="../imageinfo[index() $gt$ context()!index()][2]"/></div>
- </td>
- <td width="100" background=""><img src="graphics/mdshim.gif" width="1" height="1"/></td>
- </tr>
- <tr>
- <td width="100" background=""><img src="graphics/mdshim.gif" width="1" height="130"/></td>
- <td background="">
- <div align="right"><xsl:apply-templates select="../imageinfo[index() $gt$ context()!index()][3]"/></div>
- </td>
- <td background=""><img src="graphics/mdshim.gif" width="1" height="1"/></td>
- <td background="">
- <div align="left"><xsl:apply-templates select="../imageinfo[index() $gt$ context()!index()][4]"/></div>
- </td>
- <td width="100" background=""><img src="graphics/mdshim.gif" width="1" height="1"/></td>
- </tr>
- <tr>
- <td width="100" background=""><img src="graphics/mdshim.gif" width="1" height="25"/></td>
- <td background=""><xsl:choose>
- <xsl:when expr="IsFirstPage(this)">
- <div align="right" style="filter: alpha(opacity=60);width:100%">
- <font face="Arial, Helvetica, sans-serif" size="2">
- <b>Previous Page</b></font></div>
- </xsl:when>
- <xsl:otherwise>
- <div align="right" 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 Page</b></font></a></div>
- </xsl:otherwise>
- </xsl:choose></td>
- <td background=""><img src="graphics/mdshim.gif" width="1" height="1"/></td>
- <td background=""><xsl:choose>
- <xsl:when expr="IsLastPage(this)">
- <div align="left" style="filter: alpha(opacity=60);width:100%">
- <font face="Arial, Helvetica, sans-serif" size="2">
- <b>Next Page</b></font></div>
- </xsl:when>
- <xsl:otherwise>
- <div align="left" 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>Next Page</b></font></a></div>
- </xsl:otherwise>
- </xsl:choose></td>
- <td width="100"><img src="graphics/mdshim.gif" width="1" height="1"/></td>
- </tr>
- </table>
- </td>
- </tr>
- </table>
-
-
- </body>
- </xsl:element>
- </xsl:if>
- </xsl:for-each>
- </xsl:template>
- <xsl:template match="imageinfo"><table width="0" border="0" cellpadding="0" cellspacing="0" bgcolor="ffffff">
- <tr><!-- row 1 -->
- <td background=""><img name="tl" src="graphics/tl.gif" width="7" height="7" border="0"/></td>
- <td height="7" background="graphics/tc.gif"><img src="graphics/mdshim.gif" width="1" height="7"/></td>
- <td background=""><img name="tr" src="graphics/tr.gif" width="7" height="7" border="0"/></td>
- </tr>
- <tr><!-- row 2 -->
- <td background="graphics/l.gif" width="7"><img src="graphics/mdshim.gif" width="7" height="1"/></td>
- <td background=""><A><xsl:attribute name="href"><xsl:value-of select="html_info/@fname"/></xsl:attribute><xsl:apply-templates select="thumbinfo"/></A></td>
- <td width="7" background="graphics/r.gif"><img src="graphics/mdshim.gif" width="7" height="1"/></td>
- </tr>
- <tr><!-- row 3 -->
- <td background=""><img name="bl" src="graphics/bl.gif" width="7" height="7" border="0"/></td>
- <td height="7" background="graphics/bc.gif"><img src="graphics/mdshim.gif" width="1" height="7"/></td>
- <td background=""><img name="br" src="graphics/br.gif" width="7" height="7" border="0"/></td>
- </tr></table></xsl:template>
- <xsl:template match="thumbinfo"><IMG border="0" vspace="0" hspace="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>
-