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/>
- </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"/>
- <meta name="copyright" content="Copyright (C) 1995-2003 Jasc Software, Inc. and its licensors. All rights reserved."/>
-
- </head>
-
- <BODY background="textures/b2_rock.jpg" vlink="0000FF">
- <br kludge=""/>
- <br kludge=""/>
- <table align="center" cellspacing="5" border="0" bordercolor="#000000" bgcolor="#FFFFFF" width="80%">
- <tr bgcolor="#000000" bordercolor="#000000">
- <td align="center"><font color="#FFFFFF"><em><b><xsl:value-of select="title"/></b></em></font></td>
- </tr>
- <tr bgcolor="#000000">
- <td align="center"><div align="center"><IMG><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>
- <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></div>
- <div align="center"><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></div></td>
- </tr>
- <tr bgcolor="#000000">
- <td align="center"><font color="#FFFFFF"><b><xsl:value-of select="description"/></b></font></td>
- </tr>
- </table>
- <br kludge=""/>
- <hr align="center" width="80%" size="2"/>
- <table align="center" cellspacing="10">
- <tr>
- <xsl:apply-templates select="previous"/>
- <xsl:apply-templates select="next"/>
- </tr>
- </table>
- </BODY>
- </xsl:element>
- </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/sound2.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="previous">
- <td width="50%"><b><xsl:value-of/>
- <xsl:choose>
- <xsl:when match="previous[@fname != '']">
- <A><xsl:attribute name="href"><xsl:value-of select="@fname"/></xsl:attribute>Previous</A>
- </xsl:when>
- <xsl:otherwise>Previous</xsl:otherwise>
- </xsl:choose></b></td>
- </xsl:template>
- <xsl:template match="next">
- <td width="50%">
- <b>
- <xsl:value-of/>
- <xsl:choose>
- <xsl:when match="next[@fname != '']">
- <A><xsl:attribute name="href"><xsl:value-of select="@fname"/></xsl:attribute>Next</A>
- </xsl:when>
- <xsl:otherwise>Next</xsl:otherwise>
- </xsl:choose>
- </b>
- </td>
- </xsl:template>
- </xsl:stylesheet>
-