home *** CD-ROM | disk | FTP | other *** search
/ Chip 2003 May / CHIP_CD_2003-05.iso / software / jpspa / files / ppa400ev.exe / Data1.cab / single.xsl24 < prev    next >
Encoding:
Extensible Markup Language  |  2003-02-17  |  4.5 KB  |  105 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.             <head>
  23.         
  24.         <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
  25.         <meta name="copyright" content="Copyright (C) 1995-2003 Jasc Software, Inc. and its licensors. All rights reserved."/>
  26.         
  27.     </head>
  28.  
  29.             <BODY bgcolor="#CCFFFF" vlink="#0099CC">
  30.                 <br kludge=""/>
  31.                 <br kludge=""/>
  32.                 <table border="2" cellspacing="0" cellpadding="0" align="center" bgcolor="#FFFFFF">
  33.                     <tr>
  34.                         <td width="100" background="borders/tropicalleft.gif" height="400" valign="bottom"><div align="center"><img border="0" src="graphics/transparenth120.gif" width="1" height="1" hspace="50"/></div>
  35. <xsl:choose>
  36.                                                             <xsl:when test="audio_info/@fname[. != '']">
  37.                                                                 <div align="center"><xsl:apply-templates select="audio_info"/></div>
  38.                                                             </xsl:when>
  39.                                                             <xsl:otherwise>
  40.                                                                 <div align="center"><img border="0" src="graphics/transparenth120.gif" width="1" height="1" hspace="50"/></div>
  41.                                                             </xsl:otherwise>
  42.                                                         </xsl:choose></td>
  43.                         <td><div align="center"><font face="Arial, Helvetica, sans-serif"><b><xsl:value-of select="title"/></b></font></div>
  44.                                 <br kludge=""/><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>
  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>
  47.                                 <br kludge=""/></td>
  48.                         <td width="100" background="borders/tropical.gif" height="400" valign="bottom"><div align="center"><img border="0" src="graphics/transparenth120.gif" width="1" height="1" hspace="50"/></div>
  49. <xsl:choose>
  50.                                                     <xsl:when test="movie_info/@fname[. != '']">
  51.                                                         <div align="center"><xsl:apply-templates select="movie_info"/></div>
  52.                                                     </xsl:when>
  53.                                                     <xsl:otherwise>
  54.                                                         <div align="center"><img border="0" src="graphics/transparenth120.gif" width="1" height="1" hspace="50"/></div>
  55.                                                     </xsl:otherwise>
  56.                                                 </xsl:choose></td>
  57.                     </tr>
  58.                 </table>
  59.                 <br kludge=""/>
  60.                 <table border="0" cellspacing="0" cellpadding="0" align="center" width="75%">
  61.                     <tr>
  62.                         <td><div align="center"><font face="Arial, Helvetica, sans-serif"><b><xsl:value-of select="description"/></b></font></div></td>
  63.                     </tr>
  64.                     <tr>
  65.                         <td><br kludge=""/><div align="center">
  66.                                 <xsl:apply-templates select="previous"/>    <xsl:apply-templates select="next"/></div></td>
  67.                     </tr>
  68.                 </table>
  69.             </BODY>
  70.         </xsl:element>
  71.     </xsl:template>
  72.     <xsl:template match="previous">
  73.         <xsl:value-of/>
  74.         <xsl:choose>
  75.             <xsl:when match="previous[@fname != '']">
  76.                 <A><xsl:attribute name="href"><xsl:value-of select="@fname"/></xsl:attribute>
  77.         <<<<<<</A>
  78.             </xsl:when>
  79.             <xsl:otherwise><<<<<<  </xsl:otherwise>
  80.         </xsl:choose>
  81.     </xsl:template>
  82.     <xsl:template match="next">
  83.         <xsl:value-of/>
  84.         <xsl:choose>
  85.             <xsl:when match="next[@fname != '']">
  86.                 <A><xsl:attribute name="href"><xsl:value-of select="@fname"/></xsl:attribute>
  87.                     <b><strong>>>>>>></strong></b></A>
  88.             </xsl:when>
  89.             <xsl:otherwise>
  90.                 <b><strong>>>>>>></strong></b>
  91.             </xsl:otherwise>
  92.         </xsl:choose>
  93.     </xsl:template>
  94.     <xsl:template match="audio_info">
  95.         <xsl:if match="audio_info[@fname != '']">
  96.             <A><xsl:attribute name="href"><xsl:value-of select="@fname"/></xsl:attribute>
  97.                 <img border="0" src="graphics/sound.gif"/></A>
  98.         </xsl:if>
  99.     </xsl:template>
  100.     <xsl:template match="movie_info">
  101.         <A><xsl:attribute name="href"><xsl:value-of select="@fname"/></xsl:attribute>
  102.             <img border="0" src="graphics/movie.gif" width="24" height="28"/></A>
  103.     </xsl:template>
  104. </xsl:stylesheet>
  105.