home *** CD-ROM | disk | FTP | other *** search
/ Chip 2003 May / CHIP_CD_2003-05.iso / software / jpspa / files / ppa400ev.exe / Data1.cab / single.xsl13 < prev    next >
Encoding:
Extensible Markup Language  |  2003-02-17  |  2.7 KB  |  66 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.          <head>
  23.         
  24.         <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
  25.         <meta name="copyright" content="Copyright (C) 1995-2003 Jasc Software, Inc. and its licensors. All rights reserved."/>
  26.         
  27.     </head>
  28.  
  29.             <BODY background="textures/graybg.jpg">
  30.                 <div align="center"><H4><xsl:value-of select="title"/></H4>
  31.                     <BR kludge=""/>
  32.                     <IMG><xsl:attribute name="src"><xsl:value-of select="@fname"/></xsl:attribute>
  33.                     <xsl:apply-templates select="imagesize"/></IMG>
  34.                     <P kludge=""/><xsl:choose><xsl:when test="audio_info/@fname[. != '']">
  35.                                                                 <div align="center"><xsl:apply-templates select="audio_info"/></div>
  36.                                                             </xsl:when>
  37.                                                             <xsl:otherwise>
  38.                                                                 <div align="center"><img border="0" src="graphics/transparenth120.gif" width="1" height="1"/></div>
  39.                                                             </xsl:otherwise>
  40.                                                         </xsl:choose><xsl:choose>
  41.                                                     <xsl:when test="movie_info/@fname[. != '']">
  42.                                                         <div align="center"><xsl:apply-templates select="movie_info"/></div>
  43.                                                     </xsl:when>
  44.                                                     <xsl:otherwise>
  45.                                                         <div align="center"><img border="0" src="graphics/transparenth120.gif" width="1" height="1"/></div>
  46.                                                     </xsl:otherwise>
  47.                                                 </xsl:choose><EM><xsl:value-of select="description"/></EM></div>
  48.             </BODY>
  49.         </xsl:element>
  50.     </xsl:template>
  51.     <xsl:template match="imagesize">
  52.         <xsl:attribute name="width"><xsl:value-of select="@width"/></xsl:attribute>
  53.         <xsl:attribute name="height"><xsl:value-of select="@height"/></xsl:attribute>
  54.     </xsl:template>
  55.     <xsl:template match="audio_info">
  56.         <xsl:if match="audio_info[@fname != '']">
  57.             <A><xsl:attribute name="href"><xsl:value-of select="@fname"/></xsl:attribute>
  58.                 <img border="0" src="graphics/sound.gif"/></A>
  59.         </xsl:if>
  60.     </xsl:template>
  61.     <xsl:template match="movie_info">
  62.         <A><xsl:attribute name="href"><xsl:value-of select="@fname"/></xsl:attribute>
  63.             <img border="0" src="graphics/movie.gif" width="24" height="28"/></A>
  64.     </xsl:template>    
  65. </xsl:stylesheet>
  66.