home *** CD-ROM | disk | FTP | other *** search
/ Chip 2003 May / CHIP_CD_2003-05.iso / software / jpspa / files / ppa400ev.exe / Data1.cab / single.xsl18 < prev    next >
Encoding:
Extensible Markup Language  |  2003-02-17  |  5.6 KB  |  126 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.  
  11. <xsl:template match="photos">       
  12.       <xsl:apply-templates />    
  13. </xsl:template>
  14.  
  15. <xsl:template match="album"> 
  16.     <xsl:apply-templates select="imagelist" />    
  17. </xsl:template>
  18.  
  19. <xsl:template match="imagelist">
  20.    <xsl:apply-templates select="imageinfo" />             
  21.  </xsl:template>
  22.  
  23. <xsl:template match="imageinfo">
  24. <xsl:element name="ixfile"><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. <BODY bgcolor="#FFFFFF">
  32. <div align="center"><table width="400" border="5" cellspacing="0" cellpadding="0" bordercolor="#000000" align="center">
  33.     <tr bgcolor="#FFFFCE" valign="middle"> 
  34.       <td><div align="center"><h1><font face="Arial, Helvetica, sans-serif"><b><img src="graphics/4sale2.gif" width="320" height="69" vspace="5" hspace="5" /><br kludge="" />
  35.             <font face="Matura MT Script Capitals" size="4">
  36.             <xsl:value-of select="title" /><br kludge="" /></font></b></font></h1></div></td>
  37.     </tr>
  38.   </table>
  39.   <br kludge="" />
  40.   <table width="640" border="5" cellspacing="5" cellpadding="5" bordercolor="#000000">
  41.     <tr bgcolor="#FFFFCE"> 
  42.       <td> <div align="center"><table border="0" cellspacing="0" cellpadding="0" align="center" bgcolor="#FFFFCE" background="">
  43.                         <tr>
  44.                             <td height="10" width="10" background="borders/retl.gif"></td>
  45.                             <td height="10" background="borders/ret.gif"></td>
  46.                             <td height="10" width="10" background="borders/retr.gif"></td>
  47.                         </tr>
  48.                         <tr>
  49.                             <td width="10" background="borders/rel.gif"></td>
  50.                             <td><div align="center"><img vspace="0" hspace="0"><xsl:attribute name="src">
  51.                     <xsl:value-of select="@fname" />
  52.                      </xsl:attribute><xsl:attribute name="width"><xsl:value-of select="imagesize/@width"/></xsl:attribute>
  53.                         <xsl:attribute name="height"><xsl:value-of select="imagesize/@height"/></xsl:attribute>
  54.                         <xsl:attribute name="alt"><xsl:value-of select="title"/></xsl:attribute></img></div></td>
  55.                             <td width="10" background="borders/rer.gif"></td>
  56.                         </tr>
  57.                         <tr>
  58.                             <td height="10" width="10" background="borders/rebl.gif"></td>
  59.                             <td height="10" background="borders/reb.gif"></td>
  60.                             <td height="10" width="10" background="borders/rebr.gif"></td>
  61.                         </tr>
  62.                     </table></div></td></tr>
  63.     <tr valign="top"> 
  64.       <td><table width="100%" border="1" cellspacing="0" cellpadding="5" bgcolor="#CEFFFF" align="center">
  65.           <tr> 
  66.             <td width="450" height="112" valign="top"><table width="100%" border="0" cellspacing="10" cellpadding="5" bgcolor="#CEFFFF">
  67.                 <tr bgcolor="#FFFFCE"> 
  68.                   <td width="89%"><b><em>Location: </em><xsl:value-of select="title" /></b></td>
  69.                   <td bgcolor="#CEFFFF" width="30"><div align="right"><xsl:apply-templates select="audio_info" /></div></td>
  70.                 </tr>
  71.                 <tr bgcolor="#FFFFCE" valign="top"> 
  72.                   <td colspan="2"><b><em>Details:  </em>
  73.                             <xsl:apply-templates select="description">
  74.                             <!-- recursively apply this template to them -->
  75.                                 <xsl:template>
  76.                                 <xsl:copy>
  77.                                     <xsl:apply-templates select="@* | * | comment() | pi() | text()"/>
  78.                                 </xsl:copy>
  79.                                 </xsl:template>
  80.                          </xsl:apply-templates></b>    
  81.                          <br kludge="" /></td>
  82.                 </tr>
  83.               </table></td>
  84.             <td bgcolor="#FFFFCE" valign="top" width="139"><div align="center"><table border="0" cellspacing="0" cellpadding="0" align="center" bgcolor="#FFFFCE" background="">
  85.                         <tr>
  86.                             <td height="10" width="10" background="borders/retl.gif"></td>
  87.                             <td height="10" background="borders/ret.gif"></td>
  88.                             <td height="10" width="10" background="borders/retr.gif"></td>
  89.                         </tr>
  90.                         <tr>
  91.                             <td width="10" background="borders/rel.gif"></td>
  92.                             <td><div align="center"><A><xsl:attribute name="href">
  93.                                 <xsl:value-of select="html_info/@fname" />
  94.                         </xsl:attribute> 
  95.                           <xsl:apply-templates select="thumbinfo" /></A></div></td>
  96.                             <td width="10" background="borders/rer.gif"></td>
  97.                         </tr>
  98.                         <tr>
  99.                             <td height="10" width="10" background="borders/rebl.gif"></td>
  100.                             <td height="10" background="borders/reb.gif"></td>
  101.                             <td height="10" width="10" background="borders/rebr.gif"></td></tr></table></div></td></tr></table></td>
  102.     </tr>
  103.   </table>
  104.   <h3><a href="index.htm">Back</a></h3></div>
  105. </BODY>
  106. </xsl:element>
  107. </xsl:template>
  108.  
  109.  
  110. <xsl:template match="thumbinfo"><IMG border="0"><xsl:attribute name="src"><xsl:value-of select="@fname" /></xsl:attribute><xsl:attribute name="width"><xsl:value-of select="thumbsize/@width"/></xsl:attribute>
  111.             <xsl:attribute name="height"><xsl:value-of select="thumbsize/@height"/></xsl:attribute>
  112.             <xsl:attribute name="alt"><xsl:value-of select="../title"/></xsl:attribute></IMG></xsl:template>
  113.  
  114.  
  115. <xsl:template match="audio_info">
  116. <xsl:if match = "audio_info[@fname != '']">
  117.  <A><xsl:attribute name="href">
  118.        <xsl:value-of select="@fname" />
  119.   </xsl:attribute> 
  120.   <img border="0" src="graphics/sound.gif" width="24" height="28"/> </A>
  121. </xsl:if>
  122. </xsl:template>
  123.  
  124.  
  125. </xsl:stylesheet>
  126.