home *** CD-ROM | disk | FTP | other *** search
/ Chip 2003 May / CHIP_CD_2003-05.iso / software / jpspa / files / ppa400ev.exe / Data1.cab / single.xsl29 < prev    next >
Encoding:
Extensible Markup Language  |  2003-02-17  |  5.1 KB  |  123 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="#FFFFFF" background="miscellaneous/grandtetons.jpg">
  30.                 <div align="center"><h1>
  31.                         <br kludge=""/>
  32.                         <br kludge=""/>
  33.                     </h1>
  34.                     <table align="left" width="80%" border="0" cellspacing="0" cellpadding="0">
  35.                         <tr>
  36.                             <td width="1"><img hspace="70" src="graphics/dot.gif" width="1" height="1" vspace="265"/></td>
  37.                             <td colspan="3" valign="middle"><div align="center"><table width="60%" border="1" cellspacing="0" cellpadding="3" align="center" bordercolor="#2965AD" background="">
  38.                                         <tr>
  39.                                             <td width="100"><xsl:choose>
  40.                                                     <xsl:when test="audio_info/@fname[. != '']"><div align="center">
  41.                                                             <xsl:apply-templates select="audio_info"/></div>
  42.                                                     </xsl:when>
  43.                                                     <xsl:otherwise>
  44.                                                         <img border="0" src="graphics/dot.gif" />
  45.                                                     </xsl:otherwise>
  46.                                                 </xsl:choose></td>
  47.                                             <td><div align="center"><font face="Arial, Helvetica, sans-serif" size="3">
  48.                                                         <xsl:value-of select="title"/></font></div></td>
  49.                                             <td width="100"><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.                                                         <img border="0" src="graphics/dot.gif"/>
  55.                                                     </xsl:otherwise>
  56.                                                 </xsl:choose></td>
  57.                                         </tr>
  58.                                         <tr>
  59.                                             <td valign="top" colspan="3"><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>
  60.                         <xsl:attribute name="height"><xsl:value-of select="imagesize/@height"/></xsl:attribute>
  61.                         <xsl:attribute name="alt"><xsl:value-of select="title"/></xsl:attribute></IMG></div></td>
  62.                                         </tr>
  63.                                         <tr>
  64.                                             <td valign="top" colspan="3"><div align="center">
  65.                                                     <font face="Arial, Helvetica, sans-serif" size="3">
  66.                                                         <xsl:apply-templates select="description">
  67.                                                             <!-- recursively apply this template to them -->
  68.                                                             <xsl:template>
  69.                                                                 <xsl:copy>
  70.                                                                     <xsl:apply-templates select="@* | * | comment() | pi() | text()"/>
  71.                                                                 </xsl:copy>
  72.                                                             </xsl:template>
  73.                                                         </xsl:apply-templates></font></div></td>
  74.                                         </tr><tr>
  75.                             
  76.                             <td width="263"><div align="center"><xsl:apply-templates select="previous"/></div></td>
  77.                             <td width="211"><div align="center"><font face="Arial, Helvetica, sans-serif" size="3">
  78.                                         <a href="index.htm">Home</a>
  79.                                     </font></div></td>
  80.                             <td width="267"><div align="center"><xsl:apply-templates select="next"/></div></td>
  81.                         </tr>
  82.  
  83.                                     </table></div></td>
  84.                         </tr>
  85.                                             </table>
  86.                 </div>
  87.             </body>
  88.         </xsl:element>
  89.     </xsl:template>
  90.     <xsl:template match="previous">
  91.         <xsl:value-of/>
  92.         <xsl:choose>
  93.             <xsl:when match="previous[@fname != '']">
  94.                 <A><xsl:attribute name="href"><xsl:value-of select="@fname"/></xsl:attribute>
  95.                     <img src="buttons/backhand3.gif" width="37" height="34" border="0"/></A>
  96.             </xsl:when>
  97.             <xsl:otherwise>
  98.                 <a href="index.htm"><img src="buttons/backhand3.gif" width="37" height="34" border="0"/></a>
  99.             </xsl:otherwise>
  100.         </xsl:choose>
  101.     </xsl:template>
  102.     <xsl:template match="next">
  103.         <xsl:value-of/>
  104.         <xsl:choose>
  105.             <xsl:when match="next[@fname != '']">
  106.                 <A><xsl:attribute name="href"><xsl:value-of select="@fname"/></xsl:attribute>
  107.                     <img src="buttons/nexthand3.gif" width="37" height="34" border="0"/></A>
  108.             </xsl:when>
  109.             <xsl:otherwise>
  110.                 <img border="0" src="graphics/transparenth120.gif" width="37" height="34"/>
  111.             </xsl:otherwise>
  112.         </xsl:choose>
  113.     </xsl:template>
  114.     <xsl:template match="audio_info">
  115.         <A><xsl:attribute name="href"><xsl:value-of select="@fname"/></xsl:attribute>
  116.             <img border="0" src="graphics/sound.gif" width="24" height="28"/></A>
  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.