home *** CD-ROM | disk | FTP | other *** search
/ Chip 2003 May / CHIP_CD_2003-05.iso / software / jpspa / files / ppa400ev.exe / Data1.cab / single.xsl25 < prev    next >
Encoding:
Extensible Markup Language  |  2003-02-17  |  5.4 KB  |  129 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.         <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" text="#FFFFFF">
  36.                 <div align="center"><br kludge=""/></div>
  37.                 <table width="640" border="7" cellspacing="7" cellpadding="7" align="center" bordercolor="#000000">
  38.                     <tr>
  39.                         <td><div align="center"><table width="640" border="0" cellspacing="0" cellpadding="0" align="center">
  40.                                     <tr valign="top">
  41.                                         <td><table width="100%" border="0" cellspacing="0" cellpadding="0" background="logos/mountains.jpg">
  42.                                                 <tr valign="bottom">
  43.                                                     <td height="100"><div align="center"><font face="Arial, Helvetica, sans-serif" size="4"><xsl:value-of select="title"/></font></div></td>
  44.                                                 </tr>
  45.                                             </table></td>
  46.                                     </tr>
  47.                                     <tr valign="top">
  48.                                         <td><div align="center">
  49.                                                 <table width="100%" border="0" cellspacing="0" cellpadding="0" background="miscellaneous/leaves.jpg">
  50.                                                     <tr>
  51.                                                         <td height="480">
  52.                                                             <div align="center">
  53.                                                                 <br kludge=""/>
  54.                                                                 <table width="75%" border="0" cellspacing="0" cellpadding="0" align="center" background="">
  55.                                                                     <tr>
  56.                                                                         <td><div align="center"><IMG border="2"><xsl:attribute name="src"><xsl:value-of select="@fname"/></xsl:attribute><xsl:attribute name="width"><xsl:value-of select="imagesize/@width"/></xsl:attribute>
  57.                         <xsl:attribute name="height"><xsl:value-of select="imagesize/@height"/></xsl:attribute>
  58.                         <xsl:attribute name="alt"><xsl:value-of select="title"/></xsl:attribute></IMG></div></td>
  59.                                                                     </tr>
  60.                                                                 </table>
  61.                                                                 <div align="center"><br kludge=""/>
  62.                                                                     <table width="400" border="0" cellspacing="6" cellpadding="0" bordercolor="#000000" background="">
  63.                                                                         <tr>
  64.                                                                             <td width="100"><div align="center"><xsl:choose>
  65.                                                             <xsl:when test="audio_info/@fname[. != '']">
  66.                                                                 <div align="left"><xsl:apply-templates select="audio_info"/></div>
  67.                                                             </xsl:when>
  68.                                                             <xsl:otherwise>
  69.                                                                 <div align="left"><img border="0" src="graphics/transparenth120.gif" width="1" height="1"/></div>
  70.                                                             </xsl:otherwise>
  71.                                                         </xsl:choose></div></td>
  72.                                                                             <td width="200"><div align="center"><xsl:apply-templates select="previous"/>
  73.                                                                                     <xsl:apply-templates select="next"/></div></td>
  74.                                                                             <td width="100"><div align="center"><xsl:choose>
  75.                                                     <xsl:when test="movie_info/@fname[. != '']">
  76.                                                         <div align="right"><xsl:apply-templates select="movie_info"/></div>
  77.                                                     </xsl:when>
  78.                                                     <xsl:otherwise>
  79.                                                         <div align="right"><img border="0" src="graphics/transparenth120.gif" width="1" height="1"/></div>
  80.                                                     </xsl:otherwise>
  81.                                                 </xsl:choose></div></td>
  82.                                                                         </tr>
  83.                                                                     </table></div></div></td>
  84.                                                     </tr>
  85.                                                 </table></div></td>
  86.                                     </tr>
  87.                                 </table></div></td>
  88.                     </tr>
  89.                 </table>
  90.             </body>
  91.         </xsl:element>
  92.     </xsl:template>
  93.     <xsl:template match="previous">
  94.         <xsl:value-of/>
  95.         <xsl:choose>
  96.             <xsl:when match="previous[@fname != '']">
  97.                 <A>
  98.                     <xsl:attribute name="href"><xsl:value-of select="@fname"/></xsl:attribute>
  99.                     <img src="buttons/backhand3.gif" width="37" height="34" border="0"/></A>
  100.             </xsl:when>
  101.             <xsl:otherwise>
  102.                 <img src="buttons/backhand3.gif" width="37" height="34" border="0"/>
  103.             </xsl:otherwise>
  104.         </xsl:choose>
  105.     </xsl:template>
  106.     <xsl:template match="next">
  107.         <xsl:value-of/>
  108.         <xsl:choose>
  109.             <xsl:when match="next[@fname != '']">
  110.                 <A>
  111.                     <xsl:attribute name="href"><xsl:value-of select="@fname"/></xsl:attribute>
  112.                     <img src="buttons/nexthand3.gif" width="37" height="34" border="0"/></A>
  113.             </xsl:when>
  114.             <xsl:otherwise>
  115.                 <img src="buttons/nexthand3.gif" width="37" height="34" border="0"/>
  116.             </xsl:otherwise>
  117.         </xsl:choose>
  118.     </xsl:template>
  119.     <xsl:template match="audio_info">
  120.         <xsl:if match="audio_info[@fname != '']">
  121.             <A><xsl:attribute name="href"><xsl:value-of select="@fname"/></xsl:attribute>
  122.                 <img border="0" src="graphics/sound.gif"/></A>
  123.         </xsl:if>
  124.     </xsl:template>
  125.     <xsl:template match="movie_info">
  126.         <A><xsl:attribute name="href"><xsl:value-of select="@fname"/></xsl:attribute>
  127.             <img border="0" src="graphics/movie.gif" width="24" height="28"/></A>
  128.     </xsl:template></xsl:stylesheet>
  129.