home *** CD-ROM | disk | FTP | other *** search
/ Chip 2003 May / CHIP_CD_2003-05.iso / software / jpspa / files / ppa400ev.exe / Data1.cab / single.xsl22 < prev    next >
Encoding:
Extensible Markup Language  |  2003-02-17  |  5.2 KB  |  132 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 background="textures/bg2.gif">
  31.                 <table align="center" width="100%" height="100%" cellspacing="0" cellpadding="0" border="0">
  32.                     <tr>
  33.                         <td rowspan="2" valign="top" background="graphics/leftnavtransparent.gif"><div align="center">
  34.                                 <br kludge=""/>
  35.                                 <br kludge=""/>
  36.                                 <br kludge=""/>
  37.                                 <br kludge=""/>
  38.                                 <br kludge=""/>
  39.                                 <br kludge=""/>
  40.                                 <br kludge=""/>
  41.                                 <br kludge=""/>
  42.                                 <xsl:apply-templates select="previous"/>
  43.                                 <br kludge=""/>
  44.                                 <xsl:apply-templates select="next"/><br kludge=""/><xsl:choose>
  45.                                                             <xsl:when test="audio_info/@fname[. != '']">
  46.                                                                 <div align="center"><xsl:apply-templates select="audio_info"/></div>
  47.                                                             </xsl:when>
  48.                                                             <xsl:otherwise>
  49.                                                                 <div align="center"><img border="0" src="graphics/transparenth120.gif" width="1" height="1"/></div>
  50.                                                             </xsl:otherwise>
  51.                                                         </xsl:choose><xsl:choose>
  52.                                                     <xsl:when test="movie_info/@fname[. != '']">
  53.                                                         <div align="center"><xsl:apply-templates select="movie_info"/></div>
  54.                                                     </xsl:when>
  55.                                                     <xsl:otherwise>
  56.                                                         <div align="center"><img border="0" src="graphics/transparenth120.gif" width="1" height="1"/></div>
  57.                                                     </xsl:otherwise>
  58.                                                 </xsl:choose></div></td>
  59.                         <td bgcolor="#6699ff"><center>
  60.                                 <b>
  61.                                     <xsl:value-of select="title"/>
  62.                                 </b>
  63.                             </center></td>
  64.                     </tr>
  65.                     <tr>
  66.                         <td valign="top" height="90%" width="100%"><table align="center" cellspacing="0" cellpadding="0" border="0">
  67.                                 <tr>
  68.                                     <td valign="top"><table width="100%" align="center" cellspacing="0" cellpadding="0" border="0">
  69.                                             <tr>
  70.                                                 <td><center><img src="graphics/chain.gif" width="5" height="40" border="0" alt="chain"/></center></td>
  71.                                                 <td><center><img src="graphics/chain.gif" width="5" height="40" border="0" alt="chain"/></center></td>
  72.                                             </tr>
  73.                                         </table></td>
  74.                                 </tr>
  75.                                 <tr>
  76.                                     <td><table align="center" cellspacing="2" cellpadding="2" border="7" bordercolor="#6699ff">
  77.                                             <tr>
  78.                                                 <td><IMG><xsl:attribute name="src"><xsl:value-of select="@fname"/></xsl:attribute><xsl:attribute name="width"><xsl:value-of select="imagesize/@width"/></xsl:attribute>
  79.                         <xsl:attribute name="height"><xsl:value-of select="imagesize/@height"/></xsl:attribute>
  80.                         <xsl:attribute name="alt"><xsl:value-of select="title"/></xsl:attribute></IMG></td>
  81.                                             </tr>
  82.                                         </table></td>
  83.                                 </tr>
  84.                             </table>
  85.                             <div align="center">
  86.                                 <br kludge=""/>
  87.                                 <table width="500" border="0" cellspacing="1" cellpadding="1">
  88.                                     <tr>
  89.                                         <td><div align="center"><strong><xsl:value-of select="description"/></strong></div></td>
  90.                                     </tr>
  91.                                 </table></div></td>
  92.                     </tr>
  93.                 </table>
  94.             </BODY>
  95.         </xsl:element>
  96.     </xsl:template>
  97.     <xsl:template match="audio_info">
  98.         <xsl:if match="audio_info[@fname != '']">
  99.             <A><xsl:attribute name="href"><xsl:value-of select="@fname"/></xsl:attribute>
  100.                 <img border="0" src="graphics/sound.gif"/></A>
  101.         </xsl:if>
  102.     </xsl:template>
  103.     <xsl:template match="movie_info">
  104.         <A><xsl:attribute name="href"><xsl:value-of select="@fname"/></xsl:attribute>
  105.             <img border="0" src="graphics/movie.gif" width="24" height="28"/></A>
  106.     </xsl:template>>
  107.     <xsl:template match="previous">
  108.         <xsl:value-of/>
  109.         <xsl:choose>
  110.             <xsl:when match="previous[@fname != '']">
  111.                 <A><xsl:attribute name="href"><xsl:value-of select="@fname"/></xsl:attribute>
  112.                     <img src="graphics/back1.gif" width="90" height="32" border="0" hspace="5"/></A>
  113.             </xsl:when>
  114.             <xsl:otherwise>
  115.                 <img src="graphics/placeholder.gif" width="90" height="32" hspace="5"/>
  116.             </xsl:otherwise>
  117.         </xsl:choose>
  118.     </xsl:template>
  119.     <xsl:template match="next">
  120.         <xsl:value-of/>
  121.         <xsl:choose>
  122.             <xsl:when match="next[@fname != '']">
  123.                 <A><xsl:attribute name="href"><xsl:value-of select="@fname"/></xsl:attribute>
  124.                     <img src="graphics/next1.gif" width="90" height="32" border="0" hspace="5"/></A>
  125.             </xsl:when>
  126.             <xsl:otherwise>
  127.                 <img src="graphics/placeholder.gif" width="90" height="32" hspace="5"/>
  128.             </xsl:otherwise>
  129.         </xsl:choose>
  130.     </xsl:template>
  131. </xsl:stylesheet>
  132.