home *** CD-ROM | disk | FTP | other *** search
/ Chip 2003 May / CHIP_CD_2003-05.iso / software / jpspa / files / ppa400ev.exe / Data1.cab / single.xsl31 < prev    next >
Encoding:
Extensible Markup Language  |  2003-02-17  |  5.3 KB  |  115 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.  
  8. <xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl">
  9. &externalScript;
  10.     <xsl:template match="/">
  11.         <HTML>
  12.             <xsl:apply-templates/>
  13.         </HTML>
  14.     </xsl:template>
  15.     <xsl:template match="photos">
  16.         <xsl:apply-templates/>
  17.     </xsl:template>
  18.     <xsl:template match="album">
  19.         <xsl:apply-templates select="imagelist"/>
  20.     </xsl:template>
  21.     <xsl:template match="imagelist">
  22.         <xsl:apply-templates select="imageinfo"/>
  23.     </xsl:template>
  24.     <xsl:template match="imageinfo">
  25.         <xsl:element name="ixfile">
  26.             <xsl:attribute name="fname"><xsl:value-of select="html_info/@fname"/></xsl:attribute>
  27.             <head>
  28.         <title>
  29. <xsl:eval>GetAlbumTitle()</xsl:eval>
  30.  
  31. </title>
  32.         <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
  33.         <meta name="copyright" content="Copyright (C) 1995-2003 Jasc Software, Inc. and its licensors. All rights reserved."/>
  34.         
  35.     </head>
  36.  
  37.             <BODY bgcolor="#FFFFFF" background="patterns/bktexture4.gif" text="#639AFF">
  38.                 <div align="center">
  39.                     <table width="400" border="5" cellspacing="6" cellpadding="0" background="miscellaneous/bktexture7.gif" bordercolor="#000000">
  40.                         <tr>
  41.                             <td valign="middle" background="textures/bktexture6.gif"><div align="center"><xsl:apply-templates select="previous"/></div></td>
  42.                             <td valign="middle" background="textures/bktexture6.gif"><br kludge=""/></td>
  43.                             <td background="textures/bktexture6.gif"><div align="center"><xsl:apply-templates select="next"/></div></td>
  44.                         </tr>
  45.                     </table>
  46.                     <br kludge=""/><table width="400" border="5" cellspacing="8" cellpadding="0" bgcolor="#639AFF" bordercolor="#000000" background="miscellaneous/bktexture7.gif">
  47.                         <tr bgcolor="#FFFFFF" background="textures/bktexture6.gif">
  48.                             <td height="39"><table align="center" width="300"><tr><td width="100"><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></td><td width="100"><div align="center"><font face="Arial, Helvetica, sans-serif" size="3"><b><xsl:value-of select="title"/></b></font></div></td><td width="100"><xsl:choose>
  56.                                                     <xsl:when test="movie_info/@fname[. != '']">
  57.                                                         <div align="right"><xsl:apply-templates select="movie_info"/></div>
  58.                                                     </xsl:when>
  59.                                                     <xsl:otherwise>
  60.                                                         <div align="right"><img border="0" src="graphics/transparenth120.gif" width="1" height="1"/></div>
  61.                                                     </xsl:otherwise>
  62.                                                 </xsl:choose></td></tr><tr><td colspan="3"><div align="center"><xsl:value-of select="description"/></div></td></tr></table></td>
  63.                         </tr>
  64.                     </table><br kludge=""/>
  65.                     <table border="9" cellspacing="10" cellpadding="0" bgcolor="#639AFF" bordercolor="#000000" background="miscellaneous/bktexture7.gif">
  66.                         <tr background="textures/bktexture6.gif">
  67.                             <td><div align="center"><IMG><xsl:attribute name="src"><xsl:value-of select="@fname"/></xsl:attribute><xsl:attribute name="width"><xsl:value-of select="imagesize/@width"/></xsl:attribute>
  68.                         <xsl:attribute name="height"><xsl:value-of select="imagesize/@height"/></xsl:attribute>
  69.                         <xsl:attribute name="alt"><xsl:value-of select="title"/></xsl:attribute></IMG></div></td>
  70.                         </tr>
  71.                     </table><br kludge=""/>
  72.                     <table border="3" cellspacing="3" cellpadding="0" bgcolor="#6699FF" width="60" bordercolor="#000000" background="miscellaneous/bktexture7.gif">
  73.                         <tr>
  74.                             <td><img src="animations/animated4sale.gif" width="300" height="100"/></td>
  75.                         </tr>
  76.                     </table></div>
  77.             </BODY>
  78.         </xsl:element>
  79.     </xsl:template>
  80.     <xsl:template match="previous">
  81.         <xsl:value-of/>
  82.         <xsl:choose>
  83.             <xsl:when match="previous[@fname != '']">
  84.                 <A><xsl:attribute name="href"><xsl:value-of select="@fname"/></xsl:attribute>
  85.                     <img src="buttons/back.gif" width="50" height="20" border="0"/></A>
  86.             </xsl:when>
  87.             <xsl:otherwise>
  88.                 <img src="buttons/backgreyback.gif" width="50" height="20"/>
  89.             </xsl:otherwise>
  90.         </xsl:choose>
  91.     </xsl:template>
  92.     <xsl:template match="next">
  93.         <xsl:value-of/>
  94.         <xsl:choose>
  95.             <xsl:when match="next[@fname != '']">
  96.                 <A><xsl:attribute name="href"><xsl:value-of select="@fname"/></xsl:attribute>
  97.                     <img src="buttons/next.gif" width="50" height="20" border="0"/></A>
  98.             </xsl:when>
  99.             <xsl:otherwise>
  100.                 <img src="buttons/nextgreyback.gif" width="50" height="20" border="0"/>
  101.             </xsl:otherwise>
  102.         </xsl:choose>
  103.     </xsl:template>
  104.     <xsl:template match="audio_info">
  105.         <xsl:if match="audio_info[@fname != '']">
  106.             <A><xsl:attribute name="href"><xsl:value-of select="@fname"/></xsl:attribute>
  107.                 <img border="0" src="graphics/sound.gif"/></A>
  108.         </xsl:if>
  109.     </xsl:template>
  110.     <xsl:template match="movie_info">
  111.         <A><xsl:attribute name="href"><xsl:value-of select="@fname"/></xsl:attribute>
  112.             <img border="0" src="graphics/movie.gif" width="24" height="28"/></A>
  113.     </xsl:template>
  114. </xsl:stylesheet>
  115.