home *** CD-ROM | disk | FTP | other *** search
/ Chip 2003 May / CHIP_CD_2003-05.iso / software / jpspa / files / ppa400ev.exe / Data1.cab / single.xsl11 < prev    next >
Encoding:
Extensible Markup Language  |  2003-02-17  |  4.1 KB  |  105 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.  
  10.     </xsl:template>
  11.     <xsl:template match="photos">
  12.         <xsl:apply-templates/>
  13.     </xsl:template>
  14.     <xsl:template match="album">
  15.         <xsl:apply-templates select="imagelist"/>
  16.     </xsl:template>
  17.     <xsl:template match="imagelist">
  18.         <xsl:apply-templates select="imageinfo"/>
  19.     </xsl:template>
  20.     <xsl:template match="imageinfo">
  21.         <xsl:element name="ixfile">
  22.             <xsl:attribute name="fname"><xsl:value-of select="html_info/@fname"/></xsl:attribute>
  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/b2_rock.jpg" vlink="0000FF">
  31.                 <br kludge=""/>
  32.                 <br kludge=""/>
  33.                 <table align="center" cellspacing="5" border="0" bordercolor="#000000" bgcolor="#FFFFFF" width="80%">
  34.                     <tr bgcolor="#000000" bordercolor="#000000">
  35.                         <td align="center"><font color="#FFFFFF"><em><b><xsl:value-of select="title"/></b></em></font></td>
  36.                     </tr>
  37.                     <tr bgcolor="#000000">
  38.                         <td align="center"><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>
  39.                         <xsl:attribute name="height"><xsl:value-of select="imagesize/@height"/></xsl:attribute>
  40.                         <xsl:attribute name="alt"><xsl:value-of select="title"/></xsl:attribute></IMG>
  41.                                 <xsl:choose>
  42.                                                             <xsl:when test="audio_info/@fname[. != '']">
  43.                                                                 <div align="center"><xsl:apply-templates select="audio_info"/></div>
  44.                                                             </xsl:when>
  45.                                                             <xsl:otherwise>
  46.                                                                 <div align="center"><img border="0" src="graphics/transparenth120.gif" width="1" height="1"/></div>
  47.                                                             </xsl:otherwise>
  48.                                                         </xsl:choose></div>
  49.           <div align="center"><xsl:choose>
  50.                                                     <xsl:when test="movie_info/@fname[. != '']">
  51.                                                         <div align="center"><xsl:apply-templates select="movie_info"/></div>
  52.                                                     </xsl:when>
  53.                                                     <xsl:otherwise>
  54.                                                         <div align="center"><img border="0" src="graphics/transparenth120.gif" width="1" height="1"/></div>
  55.                                                     </xsl:otherwise>
  56.                                                 </xsl:choose></div></td>
  57.                     </tr>
  58.                     <tr bgcolor="#000000">
  59.                         <td align="center"><font color="#FFFFFF"><b><xsl:value-of select="description"/></b></font></td>
  60.                     </tr>
  61.                 </table>
  62.                 <br kludge=""/>
  63.                 <hr align="center" width="80%" size="2"/>
  64.                 <table align="center" cellspacing="10">
  65.                     <tr>
  66.                         <xsl:apply-templates select="previous"/>
  67.                         <xsl:apply-templates select="next"/>
  68.                     </tr>
  69.                 </table>
  70.             </BODY>
  71.         </xsl:element>
  72.     </xsl:template>
  73.     <xsl:template match="audio_info">
  74.         <xsl:if match="audio_info[@fname != '']">
  75.             <A><xsl:attribute name="href"><xsl:value-of select="@fname"/></xsl:attribute>
  76.                 <img border="0" src="graphics/sound2.gif"/></A>
  77.         </xsl:if>
  78.     </xsl:template>
  79.     <xsl:template match="movie_info">
  80.         <A><xsl:attribute name="href"><xsl:value-of select="@fname"/></xsl:attribute>
  81.             <img border="0" src="graphics/movie.gif" width="24" height="28"/></A>
  82.     </xsl:template>    <xsl:template match="previous">
  83.         <td width="50%"><b><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>Previous</A>
  87.                     </xsl:when>
  88.                     <xsl:otherwise>Previous</xsl:otherwise>
  89.                 </xsl:choose></b></td>
  90.     </xsl:template>
  91.     <xsl:template match="next">
  92.         <td width="50%">
  93.             <b>
  94.                 <xsl:value-of/>
  95.                 <xsl:choose>
  96.                     <xsl:when match="next[@fname != '']">
  97.                         <A><xsl:attribute name="href"><xsl:value-of select="@fname"/></xsl:attribute>Next</A>
  98.                     </xsl:when>
  99.                     <xsl:otherwise>Next</xsl:otherwise>
  100.                 </xsl:choose>
  101.             </b>
  102.         </td>
  103.     </xsl:template>
  104. </xsl:stylesheet>
  105.