home *** CD-ROM | disk | FTP | other *** search
/ Chip 2003 May / CHIP_CD_2003-05.iso / software / jpspa / files / ppa400ev.exe / Data1.cab / single.xsl19 < prev    next >
Encoding:
Extensible Markup Language  |  2003-02-17  |  5.1 KB  |  114 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:template match="/">
  9.         <HTML>
  10.             <xsl:apply-templates/>
  11.         </HTML>
  12.     </xsl:template>
  13.     <xsl:template match="photos">
  14.         <xsl:apply-templates/>
  15.     </xsl:template>
  16.     <xsl:template match="album">
  17.         <xsl:apply-templates select="imagelist"/>
  18.     </xsl:template>
  19.     <xsl:template match="imagelist">
  20.         <xsl:apply-templates select="imageinfo"/>
  21.     </xsl:template>
  22.     <xsl:template match="imageinfo">
  23.         <xsl:element name="ixfile">
  24.             <xsl:attribute name="fname"><xsl:value-of select="html_info/@fname"/></xsl:attribute>
  25.             <head>
  26.         <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
  27.         <meta name="copyright" content="Copyright (C) 1995-2003 Jasc Software, Inc. and its licensors. All rights reserved."/>
  28.  
  29.  
  30.                 </head>
  31.             
  32. <body  bgcolor="#663399" text="#ffffff">
  33. <div id="Layer1" style="position:absolute; width:740px; height:480; z-index:1; visibility: visible">
  34.   <table width="740" brder="0" cellspacing="0" cellpadding="0" height="480">
  35.     <tr>
  36.       <td><img src="graphics/fireframe.gif" border="4" width="640" height="480"/></td>
  37.       <td valign="top"><img border="0" src="graphics/transparenth120.gif" width="1" height="200"/><xsl:apply-templates select="next"/><xsl:apply-templates select="previous"/><br kludge=""/><br kludge=""/><div align="center"><xsl:choose>
  38.                                                             <xsl:when test="audio_info/@fname[. != '']">
  39.                                                                 <div align="center"><xsl:apply-templates select="audio_info"/></div>
  40.                                                             </xsl:when>
  41.                                                             <xsl:otherwise>
  42.                                                                 <div align="center"><img border="0" src="graphics/transparenth120.gif" width="1" height="1"/></div>
  43.                                                             </xsl:otherwise>
  44.                                                         </xsl:choose></div>
  45.           <div align="center"><xsl:choose>
  46.                                                     <xsl:when test="movie_info/@fname[. != '']">
  47.                                                         <div align="center"><xsl:apply-templates select="movie_info"/></div>
  48.                                                     </xsl:when>
  49.                                                     <xsl:otherwise>
  50.                                                         <div align="center"><img border="0" src="graphics/transparenth120.gif" width="1" height="1"/></div>
  51.                                                     </xsl:otherwise>
  52.                                                 </xsl:choose></div></td>
  53.     </tr>
  54.   </table>
  55. </div>
  56. <table width="640" border="0" cellspacing="0" cellpadding="0" height="480">
  57.   <tr> 
  58.     <td valign="middle"> 
  59.       <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>
  62.     </td>
  63.   </tr>
  64. </table>
  65. <table width="640" height="100"><tr><td width="120"></td><td valign="top" width="400" height="100" background=""><img border="0" src="graphics/transparenth120.gif" width="1" height="10"/><br kludge=""/><div align="center"><font face="Arial" size="3"><b><xsl:value-of select="title"/></b></font><br kludge=""/><font face="Arial, Helvetica, sans-serif" size="2"><xsl:apply-templates select="description">
  66.                                             <!-- recursively apply this template to them -->
  67.                                             <xsl:template>
  68.                                                 <xsl:copy>
  69.                                                     <xsl:apply-templates select="@* | * | comment() | pi() | text()"/>
  70.                                                 </xsl:copy>
  71.                                             </xsl:template>
  72.                                         </xsl:apply-templates></font></div></td><td width="120"></td></tr></table>
  73.  
  74.  
  75.  
  76.  
  77.  
  78.  
  79. </body>
  80.         </xsl:element>
  81.     </xsl:template>
  82.         <xsl:template match="previous">
  83.         <xsl:value-of/>
  84.         <xsl:choose>
  85.             <xsl:when match="previous[@fname != '']">
  86.                 <A><xsl:attribute name="href"><xsl:value-of select="@fname"/></xsl:attribute><img src="graphics/nav4fireflame_r3_c1.gif" name="Image1" vspace="0" hspace="0" width="100" height="30" border="0"/></A>
  87.             </xsl:when>
  88.             <xsl:otherwise><img src="graphics/transparenth120.gif" vspace="0" hspace="0" width="100" height="30" border="0"/>
  89.             </xsl:otherwise>
  90.         </xsl:choose>
  91.     </xsl:template>
  92.     <xsl:template match="next">
  93.         <xsl:value-of/>
  94.         <xsl:choose>
  95.             <xsl:when match="next[@fname != '']">
  96.                 <A><xsl:attribute name="href"><xsl:value-of select="@fname"/></xsl:attribute><img src="graphics/nav4fireflame_r2_c1.gif" name="Image2" vspace="0" hspace="0" width="100" height="29" border="0"/></A>
  97.             </xsl:when>
  98.             <xsl:otherwise>
  99.                 <img src="graphics/transparenth120.gif" vspace="0" hspace="0" width="100" height="29" border="0"/>
  100.             </xsl:otherwise>
  101.         </xsl:choose>
  102.     </xsl:template>
  103.     <xsl:template match="audio_info">
  104.         <xsl:if match="audio_info[@fname != '']">
  105.             <A><xsl:attribute name="href"><xsl:value-of select="@fname"/></xsl:attribute>
  106.                 <img border="0" src="graphics/sound.gif"/></A>
  107.         </xsl:if>
  108.     </xsl:template>
  109.     <xsl:template match="movie_info">
  110.         <A><xsl:attribute name="href"><xsl:value-of select="@fname"/></xsl:attribute><img border="0" src="graphics/movie.gif" width="24" height="28"/></A>
  111.     </xsl:template>
  112.  
  113. </xsl:stylesheet>
  114.