home *** CD-ROM | disk | FTP | other *** search
/ Chip 2003 May / CHIP_CD_2003-05.iso / software / jpspa / files / ppa400ev.exe / Data1.cab / single.xsl33 < prev    next >
Encoding:
Extensible Markup Language  |  2003-02-17  |  3.5 KB  |  85 lines

  1. <?xml version="1.0"?>
  2. <!-- Copyright (C) 1995-2003 Jasc Software, Inc. and its licensors. -->
  3. <!-- All rights reserved. -->
  4. <xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl">
  5.     <xsl:template match="/">
  6.         <HTML>
  7.             <xsl:apply-templates/>
  8.         </HTML>
  9.     </xsl:template>
  10.     <xsl:template match="photos">
  11.         <xsl:apply-templates/>
  12.     </xsl:template>
  13.     <xsl:template match="album">
  14.         <xsl:apply-templates select="imagelist"/>
  15.     </xsl:template>
  16.     <xsl:template match="imagelist">
  17.         <xsl:apply-templates select="imageinfo"/>
  18.     </xsl:template>
  19.     <xsl:template match="imageinfo">
  20.         <xsl:element name="ixfile">
  21.             <xsl:attribute name="fname"><xsl:value-of select="html_info/@fname"/></xsl:attribute>
  22.             
  23.             <head>
  24.         
  25.         <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
  26.         <meta name="copyright" content="Copyright (C) 1995-2003 Jasc Software, Inc. and its licensors. All rights reserved."/>
  27.         
  28.     </head>
  29.  
  30.             <BODY bgcolor="#FFFFFF" background="patterns/graypattern.gif" text="#FFFFFF">
  31.                 <div align="center">
  32.                     <table width="200" border="0" cellspacing="0" cellpadding="0" bgcolor="#FFFFFF">
  33.                         <tr>
  34.                             <td>
  35.                                 <div align="center">
  36.                                     <table width="480" border="12" cellspacing="12" cellpadding="12" bgcolor="#000000">
  37.                                         <tr bgcolor="#000000">
  38.                                             <td>
  39.                                                 <div align="center"><xsl:value-of select="title"/></div>
  40.                                             </td>
  41.                                         </tr>
  42.                                         <tr bgcolor="#000000">
  43.                                             <td><div align="center"><IMG><xsl:attribute name="src"><xsl:value-of select="@fname"/></xsl:attribute>
  44. <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.                                         <tr bgcolor="#000000">
  49.                                             <td><div align="center"><xsl:value-of select="description"/></div></td>
  50.                                         </tr>
  51.                                     </table>
  52.                                 </div>
  53.                             </td>
  54.                         </tr>
  55.                     </table>
  56.                     <table width="400" align="center"><tr><td width="100"><xsl:choose>
  57.                                                             <xsl:when test="audio_info/@fname[. != '']">
  58.                                                                 <div align="left"><xsl:apply-templates select="audio_info"/></div>
  59.                                                             </xsl:when>
  60.                                                             <xsl:otherwise>
  61.                                                                 <div align="left"><img border="0" src="graphics/transparenth120.gif" width="1" height="1"/></div>
  62.                                                             </xsl:otherwise>
  63.                                                         </xsl:choose></td><td width="200"><div align="center"><img src="animations/cameraflash.gif" width="100" height="100"/></div></td><td width="100"><xsl:choose>
  64.                                                     <xsl:when test="movie_info/@fname[. != '']">
  65.                                                         <div align="right"><xsl:apply-templates select="movie_info"/></div>
  66.                                                     </xsl:when>
  67.                                                     <xsl:otherwise>
  68.                                                         <div align="right"><img border="0" src="graphics/transparenth120.gif" width="1" height="1"/></div>
  69.                                                     </xsl:otherwise>
  70.                                                 </xsl:choose></td></tr></table></div>
  71.             </BODY>
  72.         </xsl:element>
  73.     </xsl:template>
  74.     <xsl:template match="audio_info">
  75.         <xsl:if match="audio_info[@fname != '']">
  76.             <A><xsl:attribute name="href"><xsl:value-of select="@fname"/></xsl:attribute>
  77.                 <img border="0" src="graphics/sound.gif"/></A>
  78.         </xsl:if>
  79.     </xsl:template>
  80.     <xsl:template match="movie_info">
  81.         <A><xsl:attribute name="href"><xsl:value-of select="@fname"/></xsl:attribute>
  82.             <img border="0" src="graphics/movie.gif" width="24" height="28"/></A>
  83.     </xsl:template>
  84. </xsl:stylesheet>
  85.