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

  1. <?xml version="1.0"?>
  2. <!-- Copyright (C) 1995-2003 Jasc Software, Inc. and its licensors. -->
  3. <!-- All rights reserved. -->
  4. <!DOCTYPE xsl:stylesheet [
  5.     <!ENTITY externalScript SYSTEM "../ScriptLib/common.xsl">
  6. ]>
  7. <xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl">
  8. &externalScript;
  9.     <xsl:template match="/">
  10.         <HTML>
  11.             <xsl:apply-templates/>
  12.         </HTML>
  13.     </xsl:template>
  14.     <xsl:template match="photos">
  15.         <xsl:apply-templates/>
  16.     </xsl:template>
  17.     <xsl:template match="album">
  18.         <xsl:apply-templates select="imagelist"/>
  19.     </xsl:template>
  20.     <xsl:template match="imagelist">
  21.         <xsl:apply-templates select="imageinfo"/>
  22.     </xsl:template>
  23.     <xsl:template match="imageinfo">
  24.         <xsl:element name="ixfile">
  25.             <xsl:attribute name="fname"><xsl:value-of select="html_info/@fname"/></xsl:attribute>
  26.             <head>
  27.                 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
  28.             </head>
  29.                     
  30. <body text="#ffffff" link="#ffffff" alink="#ffffff" vlink="#ffffff" bgcolor="#9C9FFF">
  31.  
  32. <table border="2" bordercolor="ffffff" align="center" cellspacing="2" cellpadding="2" ><tr><td><table width="740" border="0" cellspacing="0" cellpadding="0" bgcolor="#9C9FFF" bordercolor="#000000" align="center">
  33.   <tr> 
  34.     <td colspan="2" height="100" background="graphics/fishing.jpg" valign="top"><div align="center"><font face="Arial, Helvetica, sans-serif" size="2" color="#FFFFFF"> 
  35.         <xsl:apply-templates select="previous"/> |  <a href="index.htm">Home</a> | <xsl:apply-templates select="next"/></font></div></td>
  36.          
  37.  
  38.           </tr>
  39.   <tr> 
  40.     <td height="95" valign="top"><font face="Arial" size="3"><b><xsl:value-of select="title"/></b></font><br kludge=""/><font face="Arial" size="2"><xsl:apply-templates select="description">
  41.                                             <!-- recursively apply this template to them -->
  42.                                             <xsl:template>
  43.                                                 <xsl:copy>
  44.                                                     <xsl:apply-templates select="@* | * | comment() | pi() | text()"/>
  45.                                                 </xsl:copy>
  46.                                             </xsl:template>
  47.                                         </xsl:apply-templates></font>
  48. <div align="center"><xsl:choose>
  49.                                                             <xsl:when test="audio_info/@fname[. != '']">
  50.                                                                 <div align="left"><xsl:apply-templates select="audio_info"/></div>
  51.                                                             </xsl:when>
  52.                                                             <xsl:otherwise>
  53.                                                                 <div align="left"><img border="0" src="graphics/transparenth120.gif" width="1" height="1"/></div>
  54.                                                             </xsl:otherwise>
  55.                                                         </xsl:choose></div>
  56.           <div align="center"><xsl:choose>
  57.                                                     <xsl:when test="movie_info/@fname[. != '']">
  58.                                                         <div align="right"><xsl:apply-templates select="movie_info"/></div>
  59.                                                     </xsl:when>
  60.                                                     <xsl:otherwise>
  61.                                                         <div align="right"><img border="0" src="graphics/transparenth120.gif" width="1" height="1"/></div>
  62.                                                     </xsl:otherwise>
  63.                                                 </xsl:choose></div>
  64.     </td>
  65.     <td width="631">
  66.       <div align="right"><IMG border="3"><xsl:attribute name="src"><xsl:value-of select="@fname"/></xsl:attribute><xsl:attribute name="width"><xsl:value-of select="imagesize/@width"/></xsl:attribute>
  67.                         <xsl:attribute name="height"><xsl:value-of select="imagesize/@height"/></xsl:attribute>
  68.                         <xsl:attribute name="alt"><xsl:value-of select="title"/></xsl:attribute></IMG></div>
  69.     </td>
  70.   </tr>
  71.  </table></td></tr></table>
  72.  
  73.                                     </body>
  74.                     
  75.             </xsl:element>
  76. </xsl:template>
  77.  
  78.     <xsl:template match="previous">
  79.         <xsl:value-of/>
  80.         <xsl:choose>
  81.             <xsl:when match="previous[@fname != '']"><A><xsl:attribute name="href"><xsl:value-of select="@fname"/></xsl:attribute>Back</A></xsl:when><xsl:otherwise>Back</xsl:otherwise>
  82.         </xsl:choose>
  83.     </xsl:template>
  84.     <xsl:template match="next">
  85.         <xsl:value-of/>
  86.         <xsl:choose>
  87.             <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></xsl:template>
  88.     <xsl:template match="audio_info">
  89.         <A>
  90.             <xsl:attribute name="href"><xsl:value-of select="@fname"/></xsl:attribute>
  91.             <img border="0" src="graphics/sound.gif" width="24" height="28"/></A></xsl:template>
  92.     <xsl:template match="movie_info">
  93.         <A>
  94.             <xsl:attribute name="href"><xsl:value-of select="@fname"/></xsl:attribute>
  95.             <img border="0" src="graphics/movie.gif" width="25" height="28"/></A></xsl:template>
  96.  
  97. </xsl:stylesheet>
  98.