home *** CD-ROM | disk | FTP | other *** search
/ Chip 2003 May / CHIP_CD_2003-05.iso / software / jpspa / files / ppa400ev.exe / Data1.cab / single.xsl34 < prev    next >
Encoding:
Extensible Markup Language  |  2003-02-17  |  5.1 KB  |  116 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 select="photos"/>
  12.         </HTML>
  13.     </xsl:template>
  14.     <xsl:template match="photos">
  15.         <xsl:apply-templates select="album"/>
  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.         <title>
  28. <xsl:eval>GetAlbumTitle()</xsl:eval>
  29.  
  30. </title>
  31.         <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
  32.         <meta name="copyright" content="Copyright (C) 1995-2003 Jasc Software, Inc. and its licensors. All rights reserved."/>
  33.         
  34.     </head>
  35.             <body bgcolor="#FFFFFF" background="miscellaneous/clogo_bg.jpg">
  36.                 <table align="left" width="100%" border="0" cellspacing="2" cellpadding="2">
  37.                     <tr>
  38.                         <td width="100" height="90"><br kludge=""/></td>
  39.                         <td><br kludge=""/></td>
  40.                     </tr>
  41.                     <tr>
  42.                         <td><br kludge=""/></td>
  43.                         <td><table align="left" width="100%" border="0" cellspacing="2" cellpadding="2">
  44.                                 <tr>
  45.                                     <td colspan="3"><div align="center"><IMG src="logos/logo.gif" /></div></td>
  46.                                 </tr>
  47.                                 <tr>
  48.                                     <td width="200" valign="top" height="300" colspan="2"><div align="left">
  49.                                             <font face="Arial, Helvetica, sans-serif"><b><xsl:value-of select="title"/>:<br kludge=""/><br kludge="" />
  50.                                                     <xsl:apply-templates select="description">
  51.                                                         <!-- recursively apply this template to them -->
  52.                                                         <xsl:template>
  53.                                                             <xsl:copy>
  54.                                                                 <xsl:apply-templates select="@* | * | comment() | pi() | text()"/>
  55.                                                             </xsl:copy>
  56.                                                         </xsl:template>
  57.                                                     </xsl:apply-templates></b></font></div></td>
  58.                                     <td width="100%"  rowspan="2"><div align="center"><IMG border="2" name="photo"><xsl:attribute name="src"><xsl:value-of select="@fname"/></xsl:attribute><xsl:attribute name="width"><xsl:value-of select="imagesize/@width"/></xsl:attribute>
  59.                         <xsl:attribute name="height"><xsl:value-of select="imagesize/@height"/></xsl:attribute>
  60.                         <xsl:attribute name="alt"><xsl:value-of select="title"/></xsl:attribute></IMG></div></td>
  61.                                 </tr>
  62.                                 <tr>
  63.                                     <td width="100" valign="top"><div align="left"><xsl:apply-templates select="previous"/></div></td>
  64.                                     <td  valign="top"><div align="right"><xsl:apply-templates select="next"/></div></td>
  65.                                 </tr>
  66.                                 <tr>
  67.                                     <td valign="top"><xsl:choose>
  68.                                                             <xsl:when test="audio_info/@fname[. != '']">
  69.                                                                 <div align="left"><xsl:apply-templates select="audio_info"/></div>
  70.                                                             </xsl:when>
  71.                                                             <xsl:otherwise>
  72.                                                                 <div align="left"><img border="0" src="graphics/transparenth120.gif" width="1" height="1"/></div>
  73.                                                             </xsl:otherwise>
  74.                                                         </xsl:choose></td>
  75.                                     <td valign="top"><xsl:choose>
  76.                                                     <xsl:when test="movie_info/@fname[. != '']">
  77.                                                         <div align="right"><xsl:apply-templates select="movie_info"/></div>
  78.                                                     </xsl:when>
  79.                                                     <xsl:otherwise>
  80.                                                         <div align="right"><img border="0" src="graphics/transparenth120.gif" width="1" height="1"/></div>
  81.                                                     </xsl:otherwise>
  82.                                                 </xsl:choose></td>
  83.                                 </tr>
  84.  
  85.  
  86.                             </table></td>
  87.                     </tr>
  88.                 </table>
  89.             </body>
  90.         </xsl:element>
  91.     </xsl:template>
  92.     <xsl:template match="previous"><xsl:value-of/><xsl:choose><xsl:when match="previous[@fname != '']"><A><xsl:attribute name="href"><xsl:value-of select="@fname"/></xsl:attribute><img src="buttons/pointerback3.gif" width="60" height="50" border="0"/></A></xsl:when><xsl:otherwise><img src="buttons/pointerback3.gif" width="60" height="50" border="0"/></xsl:otherwise></xsl:choose></xsl:template>
  93.     <xsl:template match="next">
  94.         <xsl:value-of/>
  95.         <xsl:choose>
  96.             <xsl:when match="next[@fname != '']">
  97.                     <A><xsl:attribute name="href"><xsl:value-of select="@fname"/></xsl:attribute>
  98.                     <img src="buttons/pointernext3.gif" width="60" height="50" border="0"/></A>
  99.             </xsl:when>
  100.             <xsl:otherwise>
  101.                 <img src="graphics/transparenth120.gif" width="1" height="1" border="0"/>
  102.             </xsl:otherwise>
  103.         </xsl:choose>
  104.     </xsl:template>
  105.     <xsl:template match="audio_info">
  106.         <xsl:if match="audio_info[@fname != '']">
  107.             <A><xsl:attribute name="href"><xsl:value-of select="@fname"/></xsl:attribute>
  108.                 <img border="0" src="graphics/sound.gif"/></A>
  109.         </xsl:if>
  110.     </xsl:template>
  111.     <xsl:template match="movie_info">
  112.         <A><xsl:attribute name="href"><xsl:value-of select="@fname"/></xsl:attribute>
  113.             <img border="0" src="graphics/movie.gif" width="24" height="28"/></A>
  114.     </xsl:template>
  115. </xsl:stylesheet>
  116.