home *** CD-ROM | disk | FTP | other *** search
- <?xml version="1.0"?>
- <!-- Copyright (C) 1995-2003 Jasc Software, Inc. and its licensors. -->
- <!-- All rights reserved. -->
- <!DOCTYPE xsl:stylesheet [
- <!ENTITY externalScript SYSTEM "../ScriptLib/common.xsl">
- ]>
- <xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl">
- <xsl:template match="/">
- <HTML>
- <xsl:apply-templates/>
- </HTML>
- </xsl:template>
- <xsl:template match="photos">
- <xsl:apply-templates/>
- </xsl:template>
- <xsl:template match="album">
- <xsl:apply-templates select="imagelist"/>
- </xsl:template>
- <xsl:template match="imagelist">
- <xsl:apply-templates select="imageinfo"/>
- </xsl:template>
- <xsl:template match="imageinfo">
- <xsl:element name="ixfile">
- <xsl:attribute name="fname"><xsl:value-of select="html_info/@fname"/></xsl:attribute>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
- <meta name="copyright" content="Copyright (C) 1995-2003 Jasc Software, Inc. and its licensors. All rights reserved."/>
-
- <SCRIPT>
- <xsl:comment>
-
-
-
- function MM_swapImgRestore() { //v3.0
- <![CDATA[var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
- }
-
- function MM_preloadImages() { //v3.0
- var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
- var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
- if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
- }
-
- function MM_findObj(n, d) { //v3.0
- var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
- d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
- if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
- for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); return x;
- }
-
- function MM_swapImage() { //v3.0
- var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
- if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
- }
- ]]>//</xsl:comment>
- </SCRIPT>
- </head>
- <body bgcolor="#FFFFFF" text="#990000" onLoad="MM_preloadImages('buttons/role_over1_over.gif','buttons/role_over2_over.gif')">
- <table border="0" cellspacing="5" cellpadding="5" align="center" height="480">
- <tr valign="top">
- <td><table border="0" cellspacing="0" cellpadding="0" height="480">
- <tr>
- <td height="33"><table border="0" cellspacing="0" cellpadding="0" align="center">
- <tr>
- <td><xsl:apply-templates select="previous"/></td>
- <td width="200"><div align="center"><font face="Arial, Helvetica, sans-serif" size="4" ><xsl:value-of select="title"/></font></div></td>
- <td><xsl:apply-templates select="next"/></td>
- </tr>
- </table><br kludge=""/></td>
- </tr>
- <tr valign="top">
- <td height="367"><div align="center"><table border="0" cellspacing="0" cellpadding="0">
- <tr>
- <td height="367" width="80"><img src="graphics/rightgradient.jpg" width="80" height="367"/></td>
- <td height="367"><table border="2" cellspacing="0" cellpadding="0" bordercolor="#990000" bgcolor="#990000">
- <tr>
- <td><IMG border="0"><xsl:attribute name="src"><xsl:value-of select="@fname"/></xsl:attribute><xsl:attribute name="width"><xsl:value-of select="imagesize/@width"/></xsl:attribute>
- <xsl:attribute name="height"><xsl:value-of select="imagesize/@height"/></xsl:attribute>
- <xsl:attribute name="alt"><xsl:value-of select="title"/></xsl:attribute></IMG></td>
- </tr>
- </table></td>
- <td height="367" width="80"><img src="graphics/leftgradient.jpg" width="80" height="367"/></td>
- </tr></table></div></td>
- </tr>
- <tr valign="top">
- <td height="50"><div align="center"><br kludge=""/>
- <xsl:choose>
- <xsl:when test="audio_info/@fname[. != '']">
- <div align="center"><xsl:apply-templates select="audio_info"/></div>
- </xsl:when>
- <xsl:otherwise>
- <div align="center"><img border="0" src="graphics/transparenth120.gif" width="1" height="1"/></div>
- </xsl:otherwise>
- </xsl:choose><xsl:choose>
- <xsl:when test="movie_info/@fname[. != '']">
- <div align="center"><xsl:apply-templates select="movie_info"/></div>
- </xsl:when>
- <xsl:otherwise>
- <div align="center"><img border="0" src="graphics/transparenth120.gif" width="1" height="1"/></div>
- </xsl:otherwise>
- </xsl:choose><font face="Arial, Helvetica, sans-serif" size="2" ><xsl:apply-templates select="description">
- <!-- recursively apply this template to them -->
- <xsl:template>
- <xsl:copy>
- <xsl:apply-templates select="@* | * | comment() | pi() | text()"/>
- </xsl:copy>
- </xsl:template>
- </xsl:apply-templates></font></div></td>
- </tr></table></td>
- </tr></table>
- </body>
- </xsl:element>
- </xsl:template>
- <xsl:template match="audio_info">
- <xsl:if match="audio_info[@fname != '']">
- <A><xsl:attribute name="href"><xsl:value-of select="@fname"/></xsl:attribute>
- <img border="0" src="graphics/sound.gif"/></A>
- </xsl:if>
- </xsl:template>
- <xsl:template match="movie_info">
- <A><xsl:attribute name="href"><xsl:value-of select="@fname"/></xsl:attribute>
- <img border="0" src="graphics/movie.gif" width="24" height="28"/></A>
- </xsl:template> <xsl:template match="previous">
- <xsl:value-of/>
- <xsl:choose>
- <xsl:when match="previous[@fname != '']">
- <A onMouseOver="MM_swapImage('Image1','','buttons/role_over1_over.gif',1)" onMouseOut="MM_swapImgRestore()">
- <xsl:attribute name="href"><xsl:value-of select="@fname"/></xsl:attribute>
- <img src="buttons/role_over1.gif" name="Image1" width="131" height="33" border="0"/></A>
- </xsl:when>
- <xsl:otherwise>
- <img src="buttons/role_over1.gif" width="131" height="33" border="0"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:template>
- <xsl:template match="next">
- <xsl:value-of/>
- <xsl:choose>
- <xsl:when match="next[@fname != '']">
- <A onMouseOver="MM_swapImage('Image2','','buttons/role_over2_over.gif',1)" onMouseOut="MM_swapImgRestore()"> <xsl:attribute name="href"><xsl:value-of select="@fname"/></xsl:attribute>
- <img src="buttons/role_over2.gif" name="Image2" width="131" height="33" border="0"/></A>
- </xsl:when>
- <xsl:otherwise>
- <img src="buttons/role_over2.gif" width="131" height="33" border="0"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:template>
- </xsl:stylesheet>
-