home *** CD-ROM | disk | FTP | other *** search
/ Chip 2003 May / CHIP_CD_2003-05.iso / software / jpspa / files / ppa400ev.exe / Data1.cab / single.xsl28 < prev    next >
Encoding:
Extensible Markup Language  |  2003-02-17  |  4.6 KB  |  100 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 bgcolor="#ffffff" leftmargin="0" topmargin="10" marginwidth="0" marginheight="0" link="white" vlink="white">
  31.                         <table  border="0" cellspacing="0" cellpadding="0"><tr><td height="95" background="graphics/redbar.gif"><br kludge=""/></td><td  height="95" width="740" background="graphics/redbar.gif"><div align="center">
  32.                                                                         <xsl:choose>
  33.                             <xsl:when test="audio_info/@fname[. != '']">
  34.                                 
  35.                                         <xsl:apply-templates select="audio_info"/>
  36.                                 </xsl:when>
  37.                                 <xsl:otherwise>
  38.                                     <img border="0" src="graphics/dot.gif"/>
  39.                                 </xsl:otherwise>
  40.                             </xsl:choose><font face="Arial, Helvetica, sans-serif" size="4" color="white">                                           <b><xsl:value-of select="title"/></b></font>
  41.                                         </div></td></tr><tr><td width="52" background="graphics/lights.jpg"><br kludge=""/></td><td>
  42. <table  border="0" cellspacing="0" cellpadding="0" align="center">
  43.                     <tr>
  44.  <td  width="688"><div align="center"><IMG border="1"><xsl:attribute name="src"><xsl:value-of select="@fname"/></xsl:attribute><xsl:attribute name="width"><xsl:value-of select="imagesize/@width"/></xsl:attribute>
  45.                         <xsl:attribute name="height"><xsl:value-of select="imagesize/@height"/></xsl:attribute>
  46.                         <xsl:attribute name="alt"><xsl:value-of select="title"/></xsl:attribute></IMG></div></td>
  47.                       </tr>
  48.                                </table></td></tr><tr><td height="95" background="graphics/redbar.gif"><br kludge=""/></td><td background="graphics/redbar.gif"> <div align="center"> 
  49.                                     <table border="0" cellpadding="0" cellspacing="0" background="" align="center"><tr><td background="" width="175" valign="top"><div align="center"><font face="Arial, Helvetica, sans-serif" size="2"> <xsl:apply-templates select="previous"/> 
  50.                             </font></div>
  51. </td><td background="" width="340">
  52.  
  53.                                         <div align="center"><font face="Arial, Helvetica, sans-serif" size="2"><a href="index.htm">Home</a></font><br kludge=""/><font face="Arial, Helvetica, sans-serif" size="2" color="white">                                                                                <xsl:apply-templates select="description">
  54.                                             <!-- recursively apply this template to them -->
  55.                                             <xsl:template>
  56.                                                 <xsl:copy>
  57.                                                     <xsl:apply-templates select="@* | * | comment() | pi() | text()"/>
  58.                                                 </xsl:copy>
  59.                                             </xsl:template>
  60.                                         </xsl:apply-templates>
  61.                             </font>
  62. </div></td><td background="" width="175" valign="top"><div align="center"><font face="Arial, Helvetica, sans-serif" size="2"><xsl:apply-templates select="next"/></font></div></td></tr></table></div></td></tr></table>
  63.                     </body>
  64.  
  65.             
  66.             
  67.             
  68.             
  69.             
  70.             
  71.             </xsl:element>
  72. </xsl:template>
  73.  
  74.     <xsl:template match="previous">
  75.         <xsl:value-of/>
  76.         <xsl:choose>
  77.             <xsl:when match="previous[@fname != '']">
  78.                 <br kludge=""/><A><xsl:attribute name="href"><xsl:value-of select="@fname"/></xsl:attribute>View Previous Image</A>
  79.             </xsl:when>
  80.             <xsl:otherwise><br kludge=""/>View Previous Image</xsl:otherwise>
  81.         </xsl:choose>
  82.     </xsl:template>
  83.     <xsl:template match="next">
  84.         <xsl:value-of/>
  85.         <xsl:choose>
  86.             <xsl:when match="next[@fname != '']">
  87.                 <br kludge=""/><A><xsl:attribute name="href"><xsl:value-of select="@fname"/></xsl:attribute>View Next Image</A></xsl:when>
  88.             <xsl:otherwise><br kludge=""/>View Next Image</xsl:otherwise></xsl:choose></xsl:template>
  89.  
  90.     <xsl:template match="audio_info">
  91.         <A>
  92.             <xsl:attribute name="href"><xsl:value-of select="@fname"/></xsl:attribute>
  93.             <img border="0" src="graphics/sound.gif" width="24" height="28"/></A></xsl:template>
  94.     <xsl:template match="movie_info">
  95.         <A>
  96.             <xsl:attribute name="href"><xsl:value-of select="@fname"/></xsl:attribute>
  97.             <img border="0" src="graphics/movie.gif" width="25" height="28"/></A></xsl:template>
  98.  
  99. </xsl:stylesheet>
  100.