home *** CD-ROM | disk | FTP | other *** search
/ Chip 2003 May / CHIP_CD_2003-05.iso / software / jpspa / files / ppa400ev.exe / Data1.cab / single.xsl27 < prev    next >
Encoding:
Extensible Markup Language  |  2003-02-17  |  5.2 KB  |  123 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">
  36.                 <table align="center" width="800" border="2" cellspacing="5" cellpadding="5" bgcolor="#CCCC99" bordercolor="#FFFF00">
  37.   <tr>
  38.     <td><table width="800" border="0" cellspacing="0" cellpadding="0">
  39.         <tr>
  40.           <td bgcolor="ffffff"><div align="center"><IMG src="graphics/logo2.gif"/></div></td>
  41.         </tr>
  42.         <tr>
  43.           <td><br kludge=""/><div align="center"><table border="2" bgcolor="ffffff"  bordercolor="ffff00"><tr><td><IMG border="12" name="photo" hspace="15" vspace="15">
  44.                                                 <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></td></tr></table></div><br kludge=""/></td>
  47.         </tr>
  48.         <tr>
  49.           <td><div align="center"><table width="800" border="0" cellspacing="0" cellpadding="0" bgcolor="ffffff">
  50.               <tr>
  51.                 <td valign="top" width="100"><div align="center"><xsl:apply-templates select="previous"/></div></td>
  52.                 <td width="600" valign="top"><div align="center"><font face="Arial, Helvetica, sans-serif"><b>  -  <xsl:value-of select="title"/>  -  </b>
  53.                                                         <xsl:choose>
  54.                                                             <xsl:when test="audio_info/@fname[. != '']">
  55.                                                                 <div align="right"><xsl:apply-templates select="audio_info"/></div>
  56.                                                             </xsl:when>
  57.                                                             <xsl:otherwise>
  58.                                                                 <div align="right"><img border="0" src="graphics/transparenth120.gif" width="1" height="1"/></div>
  59.                                                             </xsl:otherwise>
  60.                                                         </xsl:choose><xsl:choose>
  61.                                                     <xsl:when test="movie_info/@fname[. != '']">
  62.                                                         <div align="right"><xsl:apply-templates select="movie_info"/></div>
  63.                                                     </xsl:when>
  64.                                                     <xsl:otherwise>
  65.                                                         <div align="right"><img border="0" src="graphics/transparenth120.gif" width="1" height="1"/></div>
  66.                                                     </xsl:otherwise>
  67.                                                 </xsl:choose>
  68.                                                     <br kludge=""/>
  69.                                                     <xsl:apply-templates select="description">
  70.                                                         <!-- recursively apply this template to them -->
  71.                                                         <xsl:template>
  72.                                                             <xsl:copy>
  73.                                                                 <xsl:apply-templates select="@* | * | comment() | pi() | text()"/>
  74.                                                             </xsl:copy>
  75.                                                         </xsl:template>
  76.                                                     </xsl:apply-templates><br kludge="" /></font></div></td>
  77.                 <td valign="top" width="100"><div align="center"><xsl:apply-templates select="next"/></div></td>
  78.               </tr>
  79.             </table></div></td>
  80.         </tr>
  81.       </table>
  82.     </td>
  83.   </tr>
  84. </table>
  85.                 
  86.             </body>
  87.         </xsl:element>
  88.     </xsl:template>
  89.     <xsl:template match="previous">
  90.         <xsl:value-of/>
  91.         <xsl:choose>
  92.             <xsl:when match="previous[@fname != '']">
  93.                 <A><xsl:attribute name="href"><xsl:value-of select="@fname"/></xsl:attribute>
  94.                     <img src="buttons/pointerback3.gif" width="60" height="50" border="0"/></A>
  95.             </xsl:when>
  96.             <xsl:otherwise>
  97.                 <img src="buttons/pointerback3.gif" width="60" height="50" border="0"/></xsl:otherwise>
  98.         </xsl:choose>
  99.     </xsl:template>
  100.     <xsl:template match="next">
  101.         <xsl:value-of/>
  102.         <xsl:choose>
  103.             <xsl:when match="next[@fname != '']">
  104.                 <A><xsl:attribute name="href"><xsl:value-of select="@fname"/></xsl:attribute>
  105.                     <img src="buttons/pointernext3.gif" width="60" height="50" border="0"/></A>
  106.             </xsl:when>
  107.             <xsl:otherwise>
  108.                 <img src="buttons/pointernext3.gif" width="60" height="50" border="0"/>
  109.             </xsl:otherwise>
  110.         </xsl:choose>
  111.     </xsl:template>
  112.     <xsl:template match="audio_info">
  113.         <xsl:if match="audio_info[@fname != '']">
  114.             <A><xsl:attribute name="href"><xsl:value-of select="@fname"/></xsl:attribute>
  115.                 <img border="0" src="graphics/sound.gif"/></A>
  116.         </xsl:if>
  117.     </xsl:template>
  118.     <xsl:template match="movie_info">
  119.         <A><xsl:attribute name="href"><xsl:value-of select="@fname"/></xsl:attribute>
  120.             <img border="0" src="graphics/movie.gif" width="24" height="28"/></A>
  121.     </xsl:template>
  122. </xsl:stylesheet>
  123.