home *** CD-ROM | disk | FTP | other *** search
/ Chip 2003 May / CHIP_CD_2003-05.iso / software / jpspa / files / ppa400ev.exe / Data1.cab / toc.xsl5 < prev    next >
Encoding:
Extensible Markup Language  |  2003-02-17  |  5.6 KB  |  153 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.  
  6. <!-- WARNING:  this template assumes certain sizes for drop-shadows to work -->
  7.  
  8. <xsl:template match="/">
  9. <HTML>
  10.   <xsl:apply-templates select="photos" />
  11. </HTML>
  12. </xsl:template>
  13.  
  14. <xsl:template match="photos">
  15.     <xsl:apply-templates select="album" />
  16. </xsl:template>
  17.  
  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.  
  27.   <BODY bgcolor="#FFFFFF">
  28.   <div align="center"> 
  29.  
  30.  
  31.  <table width="400" border="5" cellspacing="0" cellpadding="0" bordercolor="#000000" align="center">
  32.     <tr bgcolor="#FFFFCE" valign="middle"> 
  33.       <td> 
  34.         <div align="center"> 
  35.           <h1><img src="graphics/4sale2.gif" width="320" height="69" vspace="5" hspace="5"><br kludge="" /></img>
  36.             <font face="Matura MT Script Capitals" size="5">
  37.              <b><xsl:value-of select="@title" /><br kludge="" />
  38.                  <xsl:apply-templates select="description/*">
  39.                 <!-- recursively apply this template to them -->
  40.                     <xsl:template>
  41.                     <xsl:copy>
  42.                             <xsl:apply-templates select="@* | * | comment() | pi() | text()"/>
  43.                     </xsl:copy>
  44.                     </xsl:template>
  45.                 </xsl:apply-templates>
  46.                 </b></font></h1>
  47.         </div>
  48.       </td>
  49.     </tr>
  50.   </table>
  51.   <br kludge="" />
  52.   <table width="640" border="5" cellspacing="5" cellpadding="5" bordercolor="#000000">
  53.         <xsl:apply-templates select="imagelist/imageinfo"/>
  54.   </table>
  55.   </div>
  56.   </BODY>
  57. </xsl:template>
  58.  
  59. <xsl:template match="imageinfo">
  60.    <tr>
  61.       <td><table width="100%" border="1" cellspacing="0" cellpadding="5" bgcolor="#CEFFFF" align="center">
  62.           <tr> 
  63.             <td width="450" height="112" valign="top"><table width="100%" border="0" cellspacing="10" cellpadding="5" bgcolor="#CEFFFF">
  64.                 <tr bgcolor="#FFFFCE"> 
  65.                   <td width="420"><b><em>Location:  </em><xsl:value-of select="title" /></b></td>
  66.                   <td bgcolor="#CEFFFF" width="30"><xsl:choose>
  67.                                                             <xsl:when test="audio_info/@fname[. != '']">
  68.                                                                 <div align="center"><xsl:apply-templates select="audio_info"/></div>
  69.                                                             </xsl:when>
  70.                                                             <xsl:otherwise>
  71.                                                                 <div align="center"><img border="0" src="graphics/transparenth120.gif" width="1" height="1"/></div>
  72.                                                             </xsl:otherwise>
  73.                                                         </xsl:choose><xsl:choose>
  74.                                                     <xsl:when test="movie_info/@fname[. != '']">
  75.                                                         <div align="center"><xsl:apply-templates select="movie_info"/></div>
  76.                                                     </xsl:when>
  77.                                                     <xsl:otherwise>
  78.                                                         <div align="center"><img border="0" src="graphics/transparenth120.gif" width="1" height="1"/></div>
  79.                                                     </xsl:otherwise>
  80.                                                 </xsl:choose></td>
  81.                 </tr>
  82.                 <tr bgcolor="#FFFFCE" valign="top"> 
  83.                   <td colspan="2"><b><em>Details:  </em>
  84.                             <xsl:apply-templates select="description">
  85.                             <!-- recursively apply this template to them -->
  86.                                 <xsl:template>
  87.                                 <xsl:copy>
  88.                                     <xsl:apply-templates select="@* | * | comment() | pi() | text()"/>
  89.                                 </xsl:copy>
  90.                                 </xsl:template>
  91.                          </xsl:apply-templates>
  92.                         </b>
  93.                         <br kludge="" /></td>
  94.                 </tr>
  95.               </table>
  96.             </td>
  97.             <td bgcolor="#FFFFCE" valign="top" width="139"><div align="center"><table border="0" cellspacing="0" cellpadding="0" align="center" bgcolor="#FFFFCE" background="">
  98.                         <tr>
  99.                             <td height="10" width="10" background="borders/retl.gif"></td>
  100.                             <td height="10" background="borders/ret.gif"></td>
  101.                             <td height="10" width="10" background="borders/retr.gif"></td>
  102.                         </tr>
  103.                         <tr>
  104.                             <td width="10" background="borders/rel.gif"></td>
  105.                             <td><div align="center"><A><xsl:attribute name="href">
  106.                                 <xsl:value-of select="html_info/@fname" />
  107.                         </xsl:attribute> 
  108.                           <xsl:apply-templates select="thumbinfo" /></A></div></td>
  109.                             <td width="10" background="borders/rer.gif"></td>
  110.                         </tr>
  111.                         <tr>
  112.                             <td height="10" width="10" background="borders/rebl.gif"></td>
  113.                             <td height="10" background="borders/reb.gif"></td>
  114.                             <td height="10" width="10" background="borders/rebr.gif"></td>
  115.                         </tr>
  116.                     </table></div></td>
  117.           </tr>
  118.         </table></td>
  119.     </tr>
  120. </xsl:template >
  121.  
  122.  
  123.  
  124.  
  125. <xsl:template match="audio_info">
  126.         <xsl:if match="audio_info[@fname != '']">
  127.             <A><xsl:attribute name="href"><xsl:value-of select="@fname"/></xsl:attribute>
  128.                 <img border="0" src="graphics/sound.gif"/></A>
  129.         </xsl:if>
  130.     </xsl:template>
  131.     <xsl:template match="movie_info">
  132.         <A><xsl:attribute name="href"><xsl:value-of select="@fname"/></xsl:attribute>
  133.             <img border="0" src="graphics/movie.gif" width="24" height="28"/></A>
  134.     </xsl:template>
  135.  
  136.  
  137. <xsl:template match="date_taken">
  138.     <xsl:value-of select="@date" />
  139. </xsl:template>
  140.  
  141. <xsl:template match="thumbinfo">
  142.   <div align="center"><IMG  border="0">
  143.   <xsl:attribute name="src">
  144.         <xsl:value-of select="@fname" />
  145.    </xsl:attribute><xsl:attribute name="width"><xsl:value-of select="thumbsize/@width"/></xsl:attribute>
  146.             <xsl:attribute name="height"><xsl:value-of select="thumbsize/@height"/></xsl:attribute>
  147.             <xsl:attribute name="alt"><xsl:value-of select="../title"/></xsl:attribute></IMG></div>
  148. </xsl:template>
  149.  
  150. </xsl:stylesheet>
  151.   
  152.   
  153.