home *** CD-ROM | disk | FTP | other *** search
/ Chip 2003 May / CHIP_CD_2003-05.iso / software / jpspa / files / ppa400ev.exe / Data1.cab / single.xsl23 < prev    next >
Encoding:
Extensible Markup Language  |  2003-02-17  |  5.4 KB  |  122 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.             
  23.             <head>
  24.         
  25.         <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
  26.         <meta name="copyright" content="Copyright (C) 1995-2003 Jasc Software, Inc. and its licensors. All rights reserved."/>
  27.         
  28.     </head>
  29.  
  30.             <body bgcolor="#FFFFFF" text="#6699CC">
  31. <table border="0" cellspacing="0" cellpadding="0" background="graphics/background.jpg" height="100%"><tr><td valign="top"><table border="0" cellspacing="0" cellpadding="0" background="">
  32.   <tr> 
  33.     <td colspan="2"><br kludge=""/><img src="graphics/transparenth120.gif" width="37" height="55"/><img src="graphics/photo.jpg" width="480" height="60"/></td>
  34.   </tr>
  35.   <tr> 
  36.     <td valign="top" width="199"><br kludge=""/><img src="graphics/transparenth120.gif" align="left" width="48" height="25"/><xsl:apply-templates select="previous"/></td>
  37.     <td valign="top" rowspan="3" width="100%"><img src="graphics/transparenth120.gif" align="left" width="60" height="25"/><table width="100" border="0" cellspacing="0" cellpadding="0" background=""><tr><td><br kludge=""/><div align="center"><IMG border="0"><xsl:attribute name="src"><xsl:value-of select="@fname"/></xsl:attribute><xsl:attribute name="width"><xsl:value-of select="imagesize/@width"/></xsl:attribute>
  38.                         <xsl:attribute name="height"><xsl:value-of select="imagesize/@height"/></xsl:attribute>
  39.                         <xsl:attribute name="alt"><xsl:value-of select="title"/></xsl:attribute></IMG></div></td></tr>
  40. <tr><td><table width="100%" border="0" cellspacing="0" cellpadding="2" background="graphics/gradient3.jpg">
  41.                       <tr bgcolor="#FFFFFF"> 
  42.                         <td height="10"  bgcolor="#FFFFFF"><br kludge=""/></td>
  43.                       </tr>
  44.                       <tr> 
  45.                         <td valign="top" height="75"><blockquote><p><font face="Arial, Helvetica, sans-serif" size="4" ><xsl:value-of select="title"/> 
  46.                               <font size="2"><xsl:apply-templates select="description">
  47.                                             <!-- recursively apply this template to them -->
  48.                                             <xsl:template>
  49.                                                 <xsl:copy>
  50.                                                     <xsl:apply-templates select="@* | * | comment() | pi() | text()"/>
  51.                                                 </xsl:copy>
  52.                                             </xsl:template>
  53.                                         </xsl:apply-templates></font></font></p></blockquote></td>
  54.                       </tr>
  55.                     </table></td></tr></table></td>
  56.   </tr>
  57.   <tr>
  58.     <td valign="top" width="199"><img src="graphics/transparenth120.gif" align="left" width="48" height="55"/><xsl:apply-templates select="next"/></td>
  59.   </tr>
  60.   <tr> 
  61.     <td width="199"><img src="graphics/transparenth120.gif" width="75" height="300" align="left"/><xsl:choose>
  62.                                                     <xsl:when test="audio_info/@fname[. != '']">
  63.                                                         <div align="center">
  64.                                                             <xsl:apply-templates select="audio_info"/>
  65.                                                         </div>
  66.                                                     </xsl:when>
  67.                                                     <xsl:otherwise>
  68.                                                         <img border="0" src="graphics/dot.gif" width="0" height="0"/>
  69.                                                     </xsl:otherwise>
  70.                                                 </xsl:choose><xsl:choose>
  71.                                                     <xsl:when test="movie_info/@fname[. != '']">
  72.                                                         <div align="center"><xsl:apply-templates select="movie_info"/></div>
  73.                                                     </xsl:when>
  74.                                                     <xsl:otherwise>
  75.                                                         <div align="center"><img border="0" src="graphics/transparenth120.gif" width="1" height="1"/></div>
  76.                                                     </xsl:otherwise>
  77.                                                 </xsl:choose></td>
  78.   </tr>
  79. </table></td></tr></table>
  80.  
  81. </body>
  82.  
  83.         </xsl:element>
  84.     </xsl:template>
  85.     <xsl:template match="audio_info">
  86.         <xsl:if match="audio_info[@fname != '']">
  87.             <A><xsl:attribute name="href"><xsl:value-of select="@fname"/></xsl:attribute>
  88.                 <img border="0" src="graphics/sound.gif"/></A>
  89.         </xsl:if>
  90.     </xsl:template>
  91.     <xsl:template match="movie_info">
  92.         <A><xsl:attribute name="href"><xsl:value-of select="@fname"/></xsl:attribute>
  93.             <img border="0" src="graphics/movie.gif" width="24" height="28"/></A>
  94.     </xsl:template>
  95.     <xsl:template match="previous">
  96.         <xsl:value-of/>
  97.         <xsl:choose>
  98.             <xsl:when match="previous[@fname != '']">
  99.                 <A><xsl:attribute name="href"><xsl:value-of select="@fname"/></xsl:attribute>
  100.                     <img src="buttons/back4.jpg" width="145" height="30" border="0"/></A>
  101.             </xsl:when>
  102.             <xsl:otherwise>
  103.                 <img src="buttons/back4.jpg" width="145" height="30" border="0"/>
  104.                 
  105.             </xsl:otherwise>
  106.         </xsl:choose>
  107.     </xsl:template>
  108.     <xsl:template match="next">
  109.         <xsl:value-of/>
  110.         <xsl:choose>
  111.             <xsl:when match="next[@fname != '']">
  112.                 <A><xsl:attribute name="href"><xsl:value-of select="@fname"/></xsl:attribute>
  113.                     <img src="buttons/forward4.jpg" width="145" height="30" border="0"/></A>
  114.             </xsl:when>
  115.             <xsl:otherwise>
  116.                 <img src="buttons/forward4.jpg" width="145" height="30" border="0"/>
  117.             </xsl:otherwise>
  118.         </xsl:choose>
  119.     </xsl:template>
  120. </xsl:stylesheet>
  121.  
  122.