home *** CD-ROM | disk | FTP | other *** search
/ Chip 2003 May / CHIP_CD_2003-05.iso / software / jpspa / files / ppa400ev.exe / Data1.cab / toc.xsl6 < prev    next >
Encoding:
Extensible Markup Language  |  2003-02-17  |  8.4 KB  |  167 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. <xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl">
  8. <xsl:script><![CDATA[
  9.  var ImagesPerPage = 6;
  10. ]]></xsl:script>
  11. &externalScript;
  12.     <xsl:template match="/">
  13.         <HTML>
  14.             <xsl:apply-templates/>
  15.         </HTML>
  16.     </xsl:template>
  17.     <xsl:template match="photos">
  18.         <xsl:apply-templates select="album"/>
  19.     </xsl:template>
  20.     <xsl:template match="album">
  21.         <xsl:apply-templates select="imagelist"/>
  22.     </xsl:template>
  23.     <xsl:template match="imagelist">
  24.         <xsl:for-each select="imageinfo">
  25.             <xsl:if expr="(childNumber(this) % 6) == 1">
  26.                 <xsl:element name="ixfile">
  27.                     <xsl:attribute name="fname"><xsl:eval>GetTocName(this)</xsl:eval></xsl:attribute>
  28.                     
  29.                     <head>
  30.                     
  31.  
  32.         
  33.         <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
  34.         <meta name="copyright" content="Copyright (C) 1995-2003 Jasc Software, Inc. and its licensors. All rights reserved."/>
  35.         
  36.     </head>
  37.     <body bgcolor="#ccccff" link="#000000" alink="#000000" vlink="#000000">
  38.     
  39.     
  40.     <table width="700" border="2" cellspacing="0" cellpadding="0" align="center" height="440" background="graphics/mdback.jpg">
  41.   <tr>
  42.     <td background="graphics/mdback.jpg">
  43.       <table width="700" border="0" cellspacing="0" cellpadding="0" height="440">
  44.         <tr>
  45.           <td width="100" background=""><img src="graphics/mdshim.gif" width="1" height="50"/></td>
  46.           <td background=""><img src="graphics/mdshim.gif" width="166" height="1"/></td>
  47.           <td width="167" background="graphics/mdshim.gif"><div align="center"><font face="Arial" size="5"><xsl:eval>GetAlbumTitle()</xsl:eval></font></div></td>
  48.           <td background=""><img src="graphics/shmdshimim.gif" width="166" height="1"/></td>
  49.           <td width="100" background=""><img src="graphics/mdshim.gif" width="1" height="1"/></td>
  50.         </tr>
  51.         <tr>
  52.           <td width="100" background=""><img src="graphics/mdshim.gif" width="1" height="130"/></td>
  53.           <td background="">
  54.             <div align="right"><table width="10" border="0" cellpadding="0" cellspacing="0" bgcolor="ffffff">
  55. <tr><!-- row 1 -->
  56.    <td background=""><img name="tl" src="graphics/tl.gif" width="7" height="7" border="0"/></td>
  57.     <td height="7" background="graphics/tc.gif"><img src="graphics/mdshim.gif" width="1" height="7"/></td>
  58.    <td background=""><img name="tr" src="graphics/tr.gif" width="7" height="7" border="0"/></td>
  59.  
  60.   </tr>
  61.   <tr><!-- row 2 -->
  62.     <td background="graphics/l.gif" width="7"><img src="graphics/mdshim.gif" width="7" height="1"/></td>
  63.     <td background=""><A><xsl:attribute name="href"><xsl:value-of select="html_info/@fname"/></xsl:attribute><xsl:apply-templates select="thumbinfo"/></A></td>
  64.     <td width="7" background="graphics/r.gif"><img src="graphics/mdshim.gif" width="7" height="1"/></td>
  65.  
  66.   </tr>
  67.   <tr><!-- row 3 -->
  68.    <td background=""><img name="bl" src="graphics/bl.gif" width="7" height="7" border="0"/></td>
  69.     <td height="7" background="graphics/bc.gif"><img src="graphics/mdshim.gif" width="1" height="7"/></td>
  70.    <td background=""><img name="br" src="graphics/br.gif" width="7" height="7" border="0"/></td>
  71.   
  72.   </tr>
  73.  
  74.  
  75. </table></div>
  76.           </td>
  77.           <td background=""><img src="graphics/mdshim.gif" width="1" height="1"/></td>
  78.           <td background="">
  79.             <div align="left"><xsl:apply-templates select="../imageinfo[index() $gt$ context()!index()][0]"/></div>
  80.           </td>
  81.           <td width="100" background=""><img src="graphics/mdshim.gif" width="1" height="1"/></td>
  82.         </tr>
  83.         <tr>
  84.           <td width="100" background=""><img src="graphics/mdshim.gif" width="1" height="105"/></td>
  85.           <td background="">
  86.             <div align="left"><xsl:apply-templates select="../imageinfo[index() $gt$ context()!index()][1]"/></div>
  87.           </td>
  88.           <td background=""><img src="graphics/mdshim.gif" width="1" height="1"/></td>
  89.           <td background="">
  90.             <div align="right"><xsl:apply-templates select="../imageinfo[index() $gt$ context()!index()][2]"/></div>
  91.           </td>
  92.           <td width="100" background=""><img src="graphics/mdshim.gif" width="1" height="1"/></td>
  93.         </tr>
  94.         <tr>
  95.           <td width="100" background=""><img src="graphics/mdshim.gif" width="1" height="130"/></td>
  96.           <td background="">
  97.             <div align="right"><xsl:apply-templates select="../imageinfo[index() $gt$ context()!index()][3]"/></div>
  98.           </td>
  99.           <td background=""><img src="graphics/mdshim.gif" width="1" height="1"/></td>
  100.           <td background="">
  101.             <div align="left"><xsl:apply-templates select="../imageinfo[index() $gt$ context()!index()][4]"/></div>
  102.           </td>
  103.           <td width="100" background=""><img src="graphics/mdshim.gif" width="1" height="1"/></td>
  104.         </tr>
  105.         <tr>
  106.           <td width="100" background=""><img src="graphics/mdshim.gif" width="1" height="25"/></td>
  107.           <td background=""><xsl:choose>
  108.                                                         <xsl:when expr="IsFirstPage(this)">
  109.                                                             <div align="right" style="filter: alpha(opacity=60);width:100%">
  110.                                                                 <font face="Arial, Helvetica, sans-serif" size="2">
  111.                                                                     <b>Previous Page</b></font></div>
  112.                                                         </xsl:when>
  113.                                                         <xsl:otherwise>
  114.                                                             <div align="right" style="width:100%">
  115.                                                                 <a><xsl:attribute name="href"><xsl:eval>GetPrevPage(this)</xsl:eval></xsl:attribute>
  116.                                                                     <font face="Arial, Helvetica, sans-serif" size="2">
  117.                                                                         <b>Previous Page</b></font></a></div>
  118.                                                         </xsl:otherwise>
  119.                                                     </xsl:choose></td>
  120.           <td background=""><img src="graphics/mdshim.gif" width="1" height="1"/></td>
  121.           <td background=""><xsl:choose>
  122.                                                         <xsl:when expr="IsLastPage(this)">
  123.                                                             <div align="left" style="filter: alpha(opacity=60);width:100%">
  124.                                                                 <font face="Arial, Helvetica, sans-serif" size="2">
  125.                                                                     <b>Next Page</b></font></div>
  126.                                                         </xsl:when>
  127.                                                         <xsl:otherwise>
  128.                                                             <div align="left" style="width:100%">
  129.                                                                 <a><xsl:attribute name="href"><xsl:eval>GetNextPage(this)</xsl:eval></xsl:attribute>
  130.                                                                     <font face="Arial, Helvetica, sans-serif" size="2">
  131.                                                                         <b>Next Page</b></font></a></div>
  132.                                                         </xsl:otherwise>
  133.                                                     </xsl:choose></td>
  134.           <td width="100"><img src="graphics/mdshim.gif" width="1" height="1"/></td>
  135.         </tr>
  136.       </table>
  137.     </td>
  138.   </tr>
  139. </table>
  140.     
  141.     
  142.                         </body>
  143.                 </xsl:element>
  144.             </xsl:if>
  145.         </xsl:for-each>
  146.     </xsl:template>
  147.     <xsl:template match="imageinfo"><table width="0" border="0" cellpadding="0" cellspacing="0" bgcolor="ffffff">
  148. <tr><!-- row 1 -->
  149.    <td background=""><img name="tl" src="graphics/tl.gif" width="7" height="7" border="0"/></td>
  150.     <td height="7" background="graphics/tc.gif"><img src="graphics/mdshim.gif" width="1" height="7"/></td>
  151.    <td background=""><img name="tr" src="graphics/tr.gif" width="7" height="7" border="0"/></td>
  152.   </tr>
  153.   <tr><!-- row 2 -->
  154.     <td background="graphics/l.gif" width="7"><img src="graphics/mdshim.gif" width="7" height="1"/></td>
  155.     <td background=""><A><xsl:attribute name="href"><xsl:value-of select="html_info/@fname"/></xsl:attribute><xsl:apply-templates select="thumbinfo"/></A></td>
  156.     <td width="7" background="graphics/r.gif"><img src="graphics/mdshim.gif" width="7" height="1"/></td>
  157.   </tr>
  158.   <tr><!-- row 3 -->
  159.    <td background=""><img name="bl" src="graphics/bl.gif" width="7" height="7" border="0"/></td>
  160.     <td height="7" background="graphics/bc.gif"><img src="graphics/mdshim.gif" width="1" height="7"/></td>
  161.    <td background=""><img name="br" src="graphics/br.gif" width="7" height="7" border="0"/></td>
  162.    </tr></table></xsl:template>
  163.         <xsl:template match="thumbinfo"><IMG border="0" vspace="0" hspace="0"><xsl:attribute name="src"><xsl:value-of select="@fname"/></xsl:attribute><xsl:attribute name="width"><xsl:value-of select="thumbsize/@width"/></xsl:attribute>
  164.             <xsl:attribute name="height"><xsl:value-of select="thumbsize/@height"/></xsl:attribute>
  165.             <xsl:attribute name="alt"><xsl:value-of select="../title"/></xsl:attribute></IMG></xsl:template>        
  166. </xsl:stylesheet>
  167.