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 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><font face="Arial, Helvetica, sans-serif"><b><img src="graphics/4sale2.gif" width="320" height="69" vspace="5" hspace="5" /><br kludge="" />
- <font face="Matura MT Script Capitals" size="4">
- <xsl:value-of select="title" /><br kludge="" /></font></b></font></h1></div></td>
- </tr>
- </table>
- <br kludge="" />
- <table width="640" border="5" cellspacing="5" cellpadding="5" bordercolor="#000000">
- <tr bgcolor="#FFFFCE">
- <td> <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"><img vspace="0" hspace="0"><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>
- <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>
- <tr valign="top">
- <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="89%"><b><em>Location: </em><xsl:value-of select="title" /></b></td>
- <td bgcolor="#CEFFFF" width="30"><div align="right"><xsl:apply-templates select="audio_info" /></div></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>
- </table>
- <h3><a href="index.htm">Back</a></h3></div>
- </BODY>
- </xsl:element>
- </xsl:template>
-
-
- <xsl:template match="thumbinfo"><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></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" width="24" height="28"/> </A>
- </xsl:if>
- </xsl:template>
-
-
- </xsl:stylesheet>
-