home *** CD-ROM | disk | FTP | other *** search
/ Chip 2003 May / CHIP_CD_2003-05.iso / software / jpspa / files / ppa400ev.exe / Data1.cab / toc.xsl < prev    next >
Encoding:
Extensible Markup Language  |  2003-02-17  |  5.6 KB  |  139 lines

  1. <?xml version="1.0"?>
  2. <!-- Copyright (C) 1995-2003 Jasc Software, Inc. and its licensors. -->
  3. <!-- All rights reserved. -->
  4. <xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl">
  5.     <xsl:template match="/">
  6.         <HTML>
  7.             <xsl:apply-templates select="photos"/>
  8.         </HTML>
  9.     </xsl:template>
  10.     <xsl:template match="photos">
  11.              <head>
  12.             <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
  13.             </head>
  14.         <BODY bgcolor="#FFFFFF" background="textures/bktexture9.gif">
  15.             <xsl:apply-templates select="album"/>
  16.         </BODY>
  17.     </xsl:template>
  18.     <xsl:template match="album">
  19.         <head>
  20.         
  21.         <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
  22.         <meta name="copyright" content="Copyright (C) 1995-2003 Jasc Software, Inc. and its licensors. All rights reserved."/>
  23.         
  24.     </head>
  25.  
  26.         <div align="center">
  27.             <EM>
  28.                 <BIG>
  29.                     <B>
  30.                         <xsl:value-of select="@title"/>
  31.                         <BR kludge=""/>
  32.                     </B>
  33.                 </BIG>
  34.             </EM>
  35.         </div>
  36.         <table width="100%" border="5" cellspacing="0" cellpadding="5" align="center" bordercolor="#000000">
  37.             <xsl:apply-templates select="imagelist/imageinfo"/>
  38.         </table>
  39.     </xsl:template>
  40.     <xsl:template match="imageinfo">
  41.         <tr>
  42.             <td>
  43.                 <xsl:if expr="(childNumber(this) % 2) == 1">
  44.                     <table width="100%" border="0">
  45.                         <tr>
  46.                             <td>
  47.                                 <IMG border="5">
  48.                                     <xsl:attribute name="src"><xsl:value-of select="@fname"/></xsl:attribute><xsl:attribute name="width"><xsl:value-of select="imagesize/@width"/></xsl:attribute>
  49.                         <xsl:attribute name="height"><xsl:value-of select="imagesize/@height"/></xsl:attribute>
  50.                         <xsl:attribute name="alt"><xsl:value-of select="title"/></xsl:attribute>
  51.                                 </IMG>
  52.                             </td>
  53.                             <td width="100%" valign="top">
  54.                                 <div align="center">
  55.                                     <table width="100%" border="0" cellspacing="5" cellpadding="5">
  56.                                         <tr>
  57.                                             <td><strong><xsl:value-of select="title"/></strong></td>
  58.                                         </tr>
  59.                                         <tr><td><xsl:choose>
  60.                                                             <xsl:when test="audio_info/@fname[. != '']">
  61.                                                                 <div align="left"><xsl:apply-templates select="audio_info"/></div>
  62.                                                             </xsl:when>
  63.                                                             <xsl:otherwise>
  64.                                                                 <div align="left"><img border="0" src="graphics/transparenth120.gif" width="1" height="1"/></div>
  65.                                                             </xsl:otherwise>
  66.                                                         </xsl:choose><xsl:choose>
  67.                                                     <xsl:when test="movie_info/@fname[. != '']">
  68.                                                         <div align="left"><xsl:apply-templates select="movie_info"/></div>
  69.                                                     </xsl:when>
  70.                                                     <xsl:otherwise>
  71.                                                         <div align="left"><img border="0" src="graphics/transparenth120.gif" width="1" height="1"/></div>
  72.                                                     </xsl:otherwise></xsl:choose></td></tr>
  73.                                         <tr>
  74.                                             <td><xsl:apply-templates select="camera_info"/></td>
  75.                                         </tr>
  76.                                         <tr>
  77.                                             <td><div align="center"><p><xsl:value-of select="description"/><br kludge=""/></p></div></td>
  78.                                         </tr></table></div></td>
  79.                         </tr>
  80.                     </table>
  81.                 </xsl:if>
  82.                 <xsl:if expr="(childNumber(this) % 2) == 0">
  83.                     <table width="100%" border="0" cellspacing="0" cellpadding="5">
  84.                         <tr>
  85.                             <td width="100%" valign="top">
  86.                                 <div align="center">
  87.                                     <table width="100%" border="0" cellspacing="5" cellpadding="5">
  88.                                         <tr>
  89.                                             <td><div align="right"><strong><xsl:value-of select="title"/></strong></div></td>
  90.                                         </tr>
  91.                                         <tr><td><xsl:choose>
  92.                                                             <xsl:when test="audio_info/@fname[. != '']">
  93.                                                                 <div align="right"><xsl:apply-templates select="audio_info"/></div>
  94.                                                             </xsl:when>
  95.                                                             <xsl:otherwise>
  96.                                                                 <div align="right"><img border="0" src="graphics/transparenth120.gif" width="1" height="1"/></div>
  97.                                                             </xsl:otherwise>
  98.                                                         </xsl:choose><xsl:choose>
  99.                                                     <xsl:when test="movie_info/@fname[. != '']">
  100.                                                         <div align="right"><xsl:apply-templates select="movie_info"/></div>
  101.                                                     </xsl:when>
  102.                                                     <xsl:otherwise>
  103.                                                         <div align="right"><img border="0" src="graphics/transparenth120.gif" width="1" height="1"/></div>
  104.                                                     </xsl:otherwise></xsl:choose></td></tr>
  105.                                         <tr>
  106.  
  107.                                         <tr>
  108.                                             <td><div align="right"><xsl:apply-templates select="camera_info"/></div></td>
  109.                                         </tr>
  110.                                         <tr>
  111.                                             <td><div align="center"><p><xsl:value-of select="description"/><br kludge=""/></p></div></td>
  112.                                         </tr></tr></table></div></td>
  113.                             <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>
  114.                         <xsl:attribute name="height"><xsl:value-of select="imagesize/@height"/></xsl:attribute>
  115.                         <xsl:attribute name="alt"><xsl:value-of select="title"/></xsl:attribute></IMG></td>
  116.                         </tr></table>
  117.                 </xsl:if></td>
  118.         </tr>
  119.     </xsl:template>
  120.     <xsl:template match="camera_info">
  121.         <em>
  122.             <xsl:value-of select="cam_descr"/>
  123.         </em>
  124.         <BR kludge=""/>
  125.         <xsl:value-of select="date_taken/@date"/>
  126.         <xsl:value-of select="date_taken/@time"/>
  127.     </xsl:template>
  128.     <xsl:template match="audio_info">
  129.         <xsl:if match="audio_info[@fname != '']">
  130.             <A><xsl:attribute name="href"><xsl:value-of select="@fname"/></xsl:attribute>
  131.                 <img border="0" src="graphics/sound.gif"/></A>
  132.         </xsl:if>
  133.     </xsl:template>
  134.     <xsl:template match="movie_info">
  135.         <A><xsl:attribute name="href"><xsl:value-of select="@fname"/></xsl:attribute>
  136.             <img border="0" src="graphics/movie.gif" width="24" height="28"/></A>
  137.     </xsl:template>
  138. </xsl:stylesheet>
  139.