home *** CD-ROM | disk | FTP | other *** search
- <?xml version="1.0"?>
- <!-- Copyright (C) 1995-2003 Jasc Software, Inc. and its licensors. -->
- <!-- All rights reserved. -->
- <xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl" xmlns="http://www.w3.org/TR/REC-html40" result-ns="">
- <xsl:template match="/">
- <HTML>
- <xsl:apply-templates select="photos"/>
- </HTML>
- </xsl:template>
- <xsl:template match="photos">
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
- </head>
- <BODY background="textures/b2_rock.jpg" text="black">
- <xsl:apply-templates select="album"/>
- </BODY>
- </xsl:template>
- <xsl:template match="album">
- <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>
- <div align="center">
- <BIG>
- <B>
- <xsl:value-of select="@title"/>
- </B>
- </BIG>
- </div>
- <BR kludge=""/>
- <HR kludge=""/>
- <BR kludge=""/>
- <BR kludge=""/>
- <table border="2" cellpadding="4" cellspacing="10">
- <xsl:apply-templates select="imagelist"/>
- </table>
- </xsl:template>
- <xsl:template match="imagelist">
- <table align="center" bordercolor="#000000" border="2" cellspacing="5" cellpadding="5" width="90%">
- <xsl:for-each select="imageinfo">
- <xsl:if expr="(childNumber(this) % 3) == 1">
- <TR>
- <TD align="center" width="30%">
- <table border="0">
- <tr align="center" valign="top">
- <td>
- <A><xsl:attribute name="href"><xsl:value-of select="html_info/@fname"/></xsl:attribute>
- <xsl:apply-templates select="thumbinfo"/></A>
- </td>
- </tr>
- <tr align="center" valign="top">
- <td>
- <b>
- <em>
- <xsl:value-of select="title"/>
- </em>
- </b>
- </td>
- </tr>
- <tr align="center" valign="top">
- <td>
- <xsl:apply-templates select="camera_info/date_taken"/>
- </td>
- </tr>
- </table>
- </TD>
- <TD align="center" width="30%">
- <xsl:apply-templates select="../imageinfo[index() $gt$ context()!index()][0]"/>
- </TD>
- <TD align="center" width="30%">
- <xsl:apply-templates select="../imageinfo[index() $gt$ context()!index()][1]"/>
- </TD>
- </TR>
- </xsl:if>
- </xsl:for-each>
- </table>
- </xsl:template>
- <xsl:template match="imageinfo">
- <table border="0">
- <tr align="center" valign="top">
- <td>
- <A><xsl:attribute name="href"><xsl:value-of select="html_info/@fname"/></xsl:attribute>
- <xsl:apply-templates select="thumbinfo"/></A>
- </td>
- </tr>
- <tr align="center" valign="top">
- <td>
- <b>
- <em>
- <xsl:value-of select="title"/>
- </em>
- </b>
- </td>
- </tr>
- <tr align="center" valign="top">
- <td>
- <xsl:apply-templates select="camera_info/date_taken"/>
- </td>
- </tr>
- </table>
- </xsl:template>
- <xsl:template match="date_taken">
- <b>
- <em>
- <xsl:value-of select="@date"/>
- </em>
- </b>
- </xsl:template>
- <xsl:template match="thumbinfo">
- <IMG>
- <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>
-