home *** CD-ROM | disk | FTP | other *** search
/ Chip 2003 May / CHIP_CD_2003-05.iso / software / jpspa / files / ppa400ev.exe / Data1.cab / toc.xsl4 < prev    next >
Encoding:
Extensible Markup Language  |  2003-02-17  |  1.9 KB  |  63 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 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 bgcolor="#C0C0C0">
  15.             <xsl:apply-templates select="album"/>
  16.         </BODY>
  17.     </xsl:template>
  18.     <xsl:template match="album">
  19.         <head>
  20.         
  21.         <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
  22.         <meta name="copyright" content="Copyright (C) 1995-2003 Jasc Software, Inc. and its licensors. All rights reserved."/>
  23.         
  24.     </head>
  25.  
  26.         <CENTER/>
  27.         <EM>
  28.             <BIG>
  29.                 <B>
  30.                     <xsl:value-of select="@title"/>
  31.                 </B>
  32.             </BIG>
  33.         </EM>
  34.         <HR kludge=""/>
  35.         <BR kludge=""/>
  36.         <table border="2" cellpadding="4" cellspacing="10">
  37.             <xsl:apply-templates select="imagelist/imageinfo"/>
  38.         </table>
  39.     </xsl:template>
  40.     <xsl:template match="imageinfo">
  41.         <tr>
  42.             <td align="center"><table>
  43.                     <tr>
  44.                         <td align="center"><xsl:value-of select="title"/></td>
  45.                     </tr>
  46.                     <tr>
  47.                         <td align="center"><A target="rhs"><xsl:attribute name="href"><xsl:value-of select="html_info/@fname"/></xsl:attribute>
  48.                                 <xsl:apply-templates select="thumbinfo"/></A></td>
  49.                     </tr>
  50.                 </table></td>
  51.         </tr>
  52.     </xsl:template>
  53.     <xsl:template match="thumbinfo">
  54.         <IMG><xsl:attribute name="src"><xsl:value-of select="@fname"/></xsl:attribute>
  55.         <xsl:apply-templates select="thumbsize"/>
  56.         </IMG>
  57.     </xsl:template>
  58.     <xsl:template match="thumbsize">
  59.         <xsl:attribute name="width"><xsl:value-of select="@width"/></xsl:attribute>
  60.         <xsl:attribute name="height"><xsl:value-of select="@height"/></xsl:attribute>
  61.     </xsl:template>
  62. </xsl:stylesheet>
  63.