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