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">
- &externalScript;
- <xsl:template match="/">
- <HTML>
- <xsl:apply-templates/>
- </HTML>
- </xsl:template>
- <xsl:template match="photos">
- <xsl:apply-templates/>
- </xsl:template>
- <xsl:template match="album">
- <xsl:apply-templates select="imagelist"/>
- </xsl:template>
- <xsl:template match="imagelist">
- <xsl:apply-templates select="imageinfo"/>
- </xsl:template>
- <xsl:template match="imageinfo">
- <xsl:element name="ixfile">
- <xsl:attribute name="fname"><xsl:value-of select="html_info/@fname"/></xsl:attribute>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
- </head>
-
- <body bgcolor="#ffffff" leftmargin="0" topmargin="10" marginwidth="0" marginheight="0" link="white" vlink="white">
- <table border="0" cellspacing="0" cellpadding="0"><tr><td height="95" background="graphics/redbar.gif"><br kludge=""/></td><td height="95" width="740" background="graphics/redbar.gif"><div align="center">
- <xsl:choose>
- <xsl:when test="audio_info/@fname[. != '']">
-
- <xsl:apply-templates select="audio_info"/>
- </xsl:when>
- <xsl:otherwise>
- <img border="0" src="graphics/dot.gif"/>
- </xsl:otherwise>
- </xsl:choose><font face="Arial, Helvetica, sans-serif" size="4" color="white"> <b><xsl:value-of select="title"/></b></font>
- </div></td></tr><tr><td width="52" background="graphics/lights.jpg"><br kludge=""/></td><td>
- <table border="0" cellspacing="0" cellpadding="0" align="center">
- <tr>
- <td width="688"><div align="center"><IMG border="1"><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></div></td>
- </tr>
- </table></td></tr><tr><td height="95" background="graphics/redbar.gif"><br kludge=""/></td><td background="graphics/redbar.gif"> <div align="center">
- <table border="0" cellpadding="0" cellspacing="0" background="" align="center"><tr><td background="" width="175" valign="top"><div align="center"><font face="Arial, Helvetica, sans-serif" size="2"> <xsl:apply-templates select="previous"/>
- </font></div>
- </td><td background="" width="340">
-
- <div align="center"><font face="Arial, Helvetica, sans-serif" size="2"><a href="index.htm">Home</a></font><br kludge=""/><font face="Arial, Helvetica, sans-serif" size="2" color="white"> <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>
- </font>
- </div></td><td background="" width="175" valign="top"><div align="center"><font face="Arial, Helvetica, sans-serif" size="2"><xsl:apply-templates select="next"/></font></div></td></tr></table></div></td></tr></table>
- </body>
-
-
-
-
-
-
-
- </xsl:element>
- </xsl:template>
-
- <xsl:template match="previous">
- <xsl:value-of/>
- <xsl:choose>
- <xsl:when match="previous[@fname != '']">
- <br kludge=""/><A><xsl:attribute name="href"><xsl:value-of select="@fname"/></xsl:attribute>View Previous Image</A>
- </xsl:when>
- <xsl:otherwise><br kludge=""/>View Previous Image</xsl:otherwise>
- </xsl:choose>
- </xsl:template>
- <xsl:template match="next">
- <xsl:value-of/>
- <xsl:choose>
- <xsl:when match="next[@fname != '']">
- <br kludge=""/><A><xsl:attribute name="href"><xsl:value-of select="@fname"/></xsl:attribute>View Next Image</A></xsl:when>
- <xsl:otherwise><br kludge=""/>View Next Image</xsl:otherwise></xsl:choose></xsl:template>
-
- <xsl:template match="audio_info">
- <A>
- <xsl:attribute name="href"><xsl:value-of select="@fname"/></xsl:attribute>
- <img border="0" src="graphics/sound.gif" width="24" height="28"/></A></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="25" height="28"/></A></xsl:template>
-
- </xsl:stylesheet>
-