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">
- <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 bgcolor="#FFFFFF" background="textures/bktexture9.gif">
- <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">
- <EM>
- <BIG>
- <B>
- <xsl:value-of select="@title"/>
- <BR kludge=""/>
- </B>
- </BIG>
- </EM>
- </div>
- <table width="100%" border="5" cellspacing="0" cellpadding="5" align="center" bordercolor="#000000">
- <xsl:apply-templates select="imagelist/imageinfo"/>
- </table>
- </xsl:template>
- <xsl:template match="imageinfo">
- <tr>
- <td>
- <xsl:if expr="(childNumber(this) % 2) == 1">
- <table width="100%" border="0">
- <tr>
- <td>
- <IMG border="5">
- <xsl:attribute name="src"><xsl:value-of select="@fname"/></xsl:attribute><xsl:attribute name="width"><xsl:value-of select="imagesize/@width"/></xsl:attribute>
- <xsl:attribute name="height"><xsl:value-of select="imagesize/@height"/></xsl:attribute>
- <xsl:attribute name="alt"><xsl:value-of select="title"/></xsl:attribute>
- </IMG>
- </td>
- <td width="100%" valign="top">
- <div align="center">
- <table width="100%" border="0" cellspacing="5" cellpadding="5">
- <tr>
- <td><strong><xsl:value-of select="title"/></strong></td>
- </tr>
- <tr><td><xsl:choose>
- <xsl:when test="audio_info/@fname[. != '']">
- <div align="left"><xsl:apply-templates select="audio_info"/></div>
- </xsl:when>
- <xsl:otherwise>
- <div align="left"><img border="0" src="graphics/transparenth120.gif" width="1" height="1"/></div>
- </xsl:otherwise>
- </xsl:choose><xsl:choose>
- <xsl:when test="movie_info/@fname[. != '']">
- <div align="left"><xsl:apply-templates select="movie_info"/></div>
- </xsl:when>
- <xsl:otherwise>
- <div align="left"><img border="0" src="graphics/transparenth120.gif" width="1" height="1"/></div>
- </xsl:otherwise></xsl:choose></td></tr>
- <tr>
- <td><xsl:apply-templates select="camera_info"/></td>
- </tr>
- <tr>
- <td><div align="center"><p><xsl:value-of select="description"/><br kludge=""/></p></div></td>
- </tr></table></div></td>
- </tr>
- </table>
- </xsl:if>
- <xsl:if expr="(childNumber(this) % 2) == 0">
- <table width="100%" border="0" cellspacing="0" cellpadding="5">
- <tr>
- <td width="100%" valign="top">
- <div align="center">
- <table width="100%" border="0" cellspacing="5" cellpadding="5">
- <tr>
- <td><div align="right"><strong><xsl:value-of select="title"/></strong></div></td>
- </tr>
- <tr><td><xsl:choose>
- <xsl:when test="audio_info/@fname[. != '']">
- <div align="right"><xsl:apply-templates select="audio_info"/></div>
- </xsl:when>
- <xsl:otherwise>
- <div align="right"><img border="0" src="graphics/transparenth120.gif" width="1" height="1"/></div>
- </xsl:otherwise>
- </xsl:choose><xsl:choose>
- <xsl:when test="movie_info/@fname[. != '']">
- <div align="right"><xsl:apply-templates select="movie_info"/></div>
- </xsl:when>
- <xsl:otherwise>
- <div align="right"><img border="0" src="graphics/transparenth120.gif" width="1" height="1"/></div>
- </xsl:otherwise></xsl:choose></td></tr>
- <tr>
-
- <tr>
- <td><div align="right"><xsl:apply-templates select="camera_info"/></div></td>
- </tr>
- <tr>
- <td><div align="center"><p><xsl:value-of select="description"/><br kludge=""/></p></div></td>
- </tr></tr></table></div></td>
- <td><IMG border="5"><xsl:attribute name="src"><xsl:value-of select="@fname"/></xsl:attribute><xsl:attribute name="width"><xsl:value-of select="imagesize/@width"/></xsl:attribute>
- <xsl:attribute name="height"><xsl:value-of select="imagesize/@height"/></xsl:attribute>
- <xsl:attribute name="alt"><xsl:value-of select="title"/></xsl:attribute></IMG></td>
- </tr></table>
- </xsl:if></td>
- </tr>
- </xsl:template>
- <xsl:template match="camera_info">
- <em>
- <xsl:value-of select="cam_descr"/>
- </em>
- <BR kludge=""/>
- <xsl:value-of select="date_taken/@date"/>
- <xsl:value-of select="date_taken/@time"/>
- </xsl:template>
- <xsl:template match="audio_info">
- <xsl:if match="audio_info[@fname != '']">
- <A><xsl:attribute name="href"><xsl:value-of select="@fname"/></xsl:attribute>
- <img border="0" src="graphics/sound.gif"/></A>
- </xsl:if>
- </xsl:template>
- <xsl:template match="movie_info">
- <A><xsl:attribute name="href"><xsl:value-of select="@fname"/></xsl:attribute>
- <img border="0" src="graphics/movie.gif" width="24" height="28"/></A>
- </xsl:template>
- </xsl:stylesheet>
-