home *** CD-ROM | disk | FTP | other *** search
/ Chip 2003 May / CHIP_CD_2003-05.iso / software / jpspa / files / ppa400ev.exe / Data1.cab / toc.xsl12 < prev    next >
Encoding:
Extensible Markup Language  |  2003-02-17  |  3.5 KB  |  115 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" xmlns="http://www.w3.org/TR/REC-html40" result-ns="">
  5.     <xsl:template match="/">
  6.         <HTML>
  7.             <xsl:apply-templates select="photos"/>
  8.         </HTML>
  9.     </xsl:template>
  10.     <xsl:template match="photos">
  11.         <head>
  12.             <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
  13.         </head>
  14.         <BODY background="textures/b2_rock.jpg" text="black">
  15.             <xsl:apply-templates select="album"/>
  16.         </BODY>
  17.     </xsl:template>
  18.     <xsl:template match="album">
  19.         <head>
  20.             <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
  21.             <meta name="copyright" content="Copyright (C) 1995-2003 Jasc Software, Inc. and its licensors. All rights reserved."/>
  22.         </head>
  23.         <div align="center">
  24.             <BIG>
  25.                 <B>
  26.                     <xsl:value-of select="@title"/>
  27.                 </B>
  28.             </BIG>
  29.         </div>
  30.         <BR kludge=""/>
  31.         <HR kludge=""/>
  32.         <BR kludge=""/>
  33.         <BR kludge=""/>
  34.         <table border="2" cellpadding="4" cellspacing="10">
  35.             <xsl:apply-templates select="imagelist"/>
  36.         </table>
  37.     </xsl:template>
  38.     <xsl:template match="imagelist">
  39.         <table align="center" bordercolor="#000000" border="2" cellspacing="5" cellpadding="5" width="90%">
  40.             <xsl:for-each select="imageinfo">
  41.                 <xsl:if expr="(childNumber(this) % 3) == 1">
  42.                     <TR>
  43.                         <TD align="center" width="30%">
  44.                             <table border="0">
  45.                                 <tr align="center" valign="top">
  46.                                     <td>
  47.                                         <A><xsl:attribute name="href"><xsl:value-of select="html_info/@fname"/></xsl:attribute>
  48.                                             <xsl:apply-templates select="thumbinfo"/></A>
  49.                                     </td>
  50.                                 </tr>
  51.                                 <tr align="center" valign="top">
  52.                                     <td>
  53.                                         <b>
  54.                                             <em>
  55.                                                 <xsl:value-of select="title"/>
  56.                                             </em>
  57.                                         </b>
  58.                                     </td>
  59.                                 </tr>
  60.                                 <tr align="center" valign="top">
  61.                                     <td>
  62.                                         <xsl:apply-templates select="camera_info/date_taken"/>
  63.                                     </td>
  64.                                 </tr>
  65.                             </table>
  66.                         </TD>
  67.                         <TD align="center" width="30%">
  68.                             <xsl:apply-templates select="../imageinfo[index() $gt$ context()!index()][0]"/>
  69.                         </TD>
  70.                         <TD align="center" width="30%">
  71.                             <xsl:apply-templates select="../imageinfo[index() $gt$ context()!index()][1]"/>
  72.                         </TD>
  73.                     </TR>
  74.                 </xsl:if>
  75.             </xsl:for-each>
  76.         </table>
  77.     </xsl:template>
  78.     <xsl:template match="imageinfo">
  79.         <table border="0">
  80.             <tr align="center" valign="top">
  81.                 <td>
  82.                     <A><xsl:attribute name="href"><xsl:value-of select="html_info/@fname"/></xsl:attribute>
  83.                         <xsl:apply-templates select="thumbinfo"/></A>
  84.                 </td>
  85.             </tr>
  86.             <tr align="center" valign="top">
  87.                 <td>
  88.                     <b>
  89.                         <em>
  90.                             <xsl:value-of select="title"/>
  91.                         </em>
  92.                     </b>
  93.                 </td>
  94.             </tr>
  95.             <tr align="center" valign="top">
  96.                 <td>
  97.                     <xsl:apply-templates select="camera_info/date_taken"/>
  98.                 </td>
  99.             </tr>
  100.         </table>
  101.     </xsl:template>
  102.     <xsl:template match="date_taken">
  103.         <b>
  104.             <em>
  105.                 <xsl:value-of select="@date"/>
  106.             </em>
  107.         </b>
  108.     </xsl:template>
  109.     <xsl:template match="thumbinfo">
  110.         <IMG>
  111.             <xsl:attribute name="src"><xsl:value-of select="@fname"/></xsl:attribute><xsl:attribute name="width"><xsl:value-of select="thumbsize/@width"/></xsl:attribute>
  112.             <xsl:attribute name="height"><xsl:value-of select="thumbsize/@height"/></xsl:attribute>
  113.             <xsl:attribute name="alt"><xsl:value-of select="../title"/></xsl:attribute></IMG></xsl:template>
  114. </xsl:stylesheet>
  115.