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">
-
- <!-- WARNING: this template assumes certain sizes for drop-shadows to work -->
-
- <xsl:template match="/">
- <HTML>
- <xsl:apply-templates select="photos" />
- </HTML>
- </xsl:template>
-
- <xsl:template match="photos">
- <xsl:apply-templates select="album" />
- </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>
-
-
- <BODY bgcolor="#FFFFFF">
- <div align="center">
-
-
- <table width="400" border="5" cellspacing="0" cellpadding="0" bordercolor="#000000" align="center">
- <tr bgcolor="#FFFFCE" valign="middle">
- <td>
- <div align="center">
- <h1><img src="graphics/4sale2.gif" width="320" height="69" vspace="5" hspace="5"><br kludge="" /></img>
- <font face="Matura MT Script Capitals" size="5">
- <b><xsl:value-of select="@title" /><br kludge="" />
- <xsl:apply-templates select="description/*">
- <!-- recursively apply this template to them -->
- <xsl:template>
- <xsl:copy>
- <xsl:apply-templates select="@* | * | comment() | pi() | text()"/>
- </xsl:copy>
- </xsl:template>
- </xsl:apply-templates>
- </b></font></h1>
- </div>
- </td>
- </tr>
- </table>
- <br kludge="" />
- <table width="640" border="5" cellspacing="5" cellpadding="5" bordercolor="#000000">
- <xsl:apply-templates select="imagelist/imageinfo"/>
- </table>
- </div>
- </BODY>
- </xsl:template>
-
- <xsl:template match="imageinfo">
- <tr>
- <td><table width="100%" border="1" cellspacing="0" cellpadding="5" bgcolor="#CEFFFF" align="center">
- <tr>
- <td width="450" height="112" valign="top"><table width="100%" border="0" cellspacing="10" cellpadding="5" bgcolor="#CEFFFF">
- <tr bgcolor="#FFFFCE">
- <td width="420"><b><em>Location: </em><xsl:value-of select="title" /></b></td>
- <td bgcolor="#CEFFFF" width="30"><xsl:choose>
- <xsl:when test="audio_info/@fname[. != '']">
- <div align="center"><xsl:apply-templates select="audio_info"/></div>
- </xsl:when>
- <xsl:otherwise>
- <div align="center"><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="center"><xsl:apply-templates select="movie_info"/></div>
- </xsl:when>
- <xsl:otherwise>
- <div align="center"><img border="0" src="graphics/transparenth120.gif" width="1" height="1"/></div>
- </xsl:otherwise>
- </xsl:choose></td>
- </tr>
- <tr bgcolor="#FFFFCE" valign="top">
- <td colspan="2"><b><em>Details: </em>
- <xsl:apply-templates select="description">
- <!-- recursively apply this template to them -->
- <xsl:template>
- <xsl:copy>
- <xsl:apply-templates select="@* | * | comment() | pi() | text()"/>
- </xsl:copy>
- </xsl:template>
- </xsl:apply-templates>
- </b>
- <br kludge="" /></td>
- </tr>
- </table>
- </td>
- <td bgcolor="#FFFFCE" valign="top" width="139"><div align="center"><table border="0" cellspacing="0" cellpadding="0" align="center" bgcolor="#FFFFCE" background="">
- <tr>
- <td height="10" width="10" background="borders/retl.gif"></td>
- <td height="10" background="borders/ret.gif"></td>
- <td height="10" width="10" background="borders/retr.gif"></td>
- </tr>
- <tr>
- <td width="10" background="borders/rel.gif"></td>
- <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 width="10" background="borders/rer.gif"></td>
- </tr>
- <tr>
- <td height="10" width="10" background="borders/rebl.gif"></td>
- <td height="10" background="borders/reb.gif"></td>
- <td height="10" width="10" background="borders/rebr.gif"></td>
- </tr>
- </table></div></td>
- </tr>
- </table></td>
- </tr>
- </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:template match="date_taken">
- <xsl:value-of select="@date" />
- </xsl:template>
-
- <xsl:template match="thumbinfo">
- <div align="center"><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></div>
- </xsl:template>
-
- </xsl:stylesheet>
-
-
-