home *** CD-ROM | disk | FTP | other *** search
/ Chip 2003 May / CHIP_CD_2003-05.iso / software / jpspa / files / ppa400ev.exe / Data1.cab / toc.xsl3 < prev    next >
Encoding:
Extensible Markup Language  |  2003-02-17  |  5.5 KB  |  118 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.         <BODY bgcolor="#000000" link="#ff0000" alink="#ff0000" vlink="#ff0000" text="#000000">
  12.             <xsl:apply-templates select="album"/>
  13.         </BODY>
  14.     </xsl:template>
  15.     <xsl:template match="album">
  16. <head>
  17.         
  18.         <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
  19.         <meta name="copyright" content="Copyright (C) 1995-2003 Jasc Software, Inc. and its licensors. All rights reserved."/>
  20.         
  21.     </head>
  22.  
  23.         <div align="center">    <font face="Arial, Helvetica, sans-serif" size="4" color="#ff0000"><EM>
  24.                 <BIG>
  25.                     <B>
  26.                         <xsl:value-of select="@title"/>
  27.                         
  28.                     </B>
  29.                 </BIG>
  30.             </EM></font></div>
  31.     
  32.  
  33. <table width="640" border="2" cellspacing="0" cellpadding="0" align="center" bordercolor="#ff0000" bgcolor="#ffffff">
  34.             <xsl:apply-templates select="imagelist/imageinfo"/></table>
  35.     </xsl:template>
  36.     <xsl:template match="imageinfo">
  37.         <tr>
  38.             <td><xsl:if expr="(childNumber(this) % 2) == 1"><table width="100%" border="1" bordercolor="000000" cellpadding="5" cellspacing="0">
  39.             <tr><td width="150"><xsl:choose>
  40.                                                             <xsl:when test="audio_info/@fname[. != '']">
  41.                                                                 <div align="center"><xsl:apply-templates select="audio_info"/></div>
  42.                                                             </xsl:when>
  43.                                                             <xsl:otherwise>
  44.                                                                 <div align="center"><img border="0" src="graphics/transparenth120.gif" width="1" height="1"/></div>
  45.                                                             </xsl:otherwise>
  46.                                                         </xsl:choose><xsl:choose>
  47.                                                     <xsl:when test="movie_info/@fname[. != '']">
  48.                                                         <div align="center"><xsl:apply-templates select="movie_info"/></div>
  49.                                                     </xsl:when>
  50.                                                     <xsl:otherwise>
  51.                                                         <div align="center"><img border="0" src="graphics/transparenth120.gif" width="1" height="1"/></div>
  52.                                                     </xsl:otherwise>
  53.                                                 </xsl:choose></td><td bgcolor="#000000" width="330"><div align="center"><font face="Arial, Helvetica, sans-serif" size="2" color="#ffffff">
  54.                                                     <strong>
  55.                                                         <xsl:value-of select="title"/>
  56.                                                     </strong>
  57.                                                 </font></div></td><td width="150"><BR kludge=""/></td></tr>            
  58.             
  59.                         <tr>
  60.                             <td colspan="3" valign="top"><A><xsl:attribute name="href"><xsl:value-of select="html_info/@fname" /></xsl:attribute><IMG border="0" align="right"><xsl:apply-templates select="thumbinfo"/></IMG></A><font face="Arial, Helvetica, sans-serif" size="2" ><xsl:value-of select="description"/></font></td>
  61.                             
  62.                         </tr>
  63.                     </table>
  64.                 </xsl:if>
  65.                 <xsl:if expr="(childNumber(this) % 2) == 0">
  66.                     <table width="100%" border="1" bordercolor="000000" cellpadding="5" cellspacing="0">
  67.             <tr><td width="150"><xsl:choose>
  68.                                                             <xsl:when test="audio_info/@fname[. != '']">
  69.                                                                 <div align="center"><xsl:apply-templates select="audio_info"/></div>
  70.                                                             </xsl:when>
  71.                                                             <xsl:otherwise>
  72.                                                                 <div align="center"><img border="0" src="graphics/transparenth120.gif" width="1" height="1"/></div>
  73.                                                             </xsl:otherwise>
  74.                                                         </xsl:choose><xsl:choose>
  75.                                                     <xsl:when test="movie_info/@fname[. != '']">
  76.                                                         <div align="center"><xsl:apply-templates select="movie_info"/></div>
  77.                                                     </xsl:when>
  78.                                                     <xsl:otherwise>
  79.                                                         <div align="center"><img border="0" src="graphics/transparenth120.gif" width="1" height="1"/></div>
  80.                                                     </xsl:otherwise>
  81.                                                 </xsl:choose></td><td bgcolor="#000000" width="330"><div align="center"><font face="Arial, Helvetica, sans-serif" size="2" color="#ffffff">
  82.                                                     <strong>
  83.                                                         <xsl:value-of select="title"/>
  84.                                                     </strong>
  85.                                                 </font></div></td><td width="150"><BR kludge=""/></td></tr>            
  86.             
  87.                         <tr>
  88.                             <td colspan="3" valign="top"><A><xsl:attribute name="href"><xsl:value-of select="html_info/@fname"/></xsl:attribute> <IMG border="0" align="left"> <xsl:apply-templates select="thumbinfo"/></IMG></A><font face="Arial, Helvetica, sans-serif" size="2" ><xsl:value-of select="description"/></font></td>
  89.                             
  90.                         </tr>
  91.                     </table>
  92.                                 
  93.                 </xsl:if></td></tr>
  94.     </xsl:template><xsl:template match="thumbinfo">
  95.         <xsl:attribute name="src"><xsl:value-of select="@fname" /></xsl:attribute>
  96.         <xsl:attribute name="width"><xsl:value-of select="thumbsize/@width"/></xsl:attribute>
  97.             <xsl:attribute name="height"><xsl:value-of select="thumbsize/@height"/></xsl:attribute>
  98.             <xsl:attribute name="alt"><xsl:value-of select="../title"/></xsl:attribute></xsl:template>
  99.  
  100.     
  101. <xsl:template match="audio_info">
  102.         <xsl:if match="audio_info[@fname != '']">
  103.             <A><xsl:attribute name="href"><xsl:value-of select="@fname"/></xsl:attribute>
  104.                 <img border="0" src="graphics/sound.gif"/></A>
  105.         </xsl:if>
  106.     </xsl:template>
  107.     <xsl:template match="audio_info">
  108.         <xsl:if match="audio_info[@fname != '']">
  109.             <A><xsl:attribute name="href"><xsl:value-of select="@fname"/></xsl:attribute>
  110.                 <img border="0" src="graphics/sound.gif"/></A>
  111.         </xsl:if>
  112.     </xsl:template>
  113.     <xsl:template match="movie_info">
  114.         <A><xsl:attribute name="href"><xsl:value-of select="@fname"/></xsl:attribute>
  115.             <img border="0" src="graphics/movie.gif" width="24" height="28"/></A>
  116.     </xsl:template>
  117. </xsl:stylesheet>
  118.