home *** CD-ROM | disk | FTP | other *** search
- <?xml version="1.0" encoding="UTF-8"?>
-
- <xsl:stylesheet
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:html="http://www.w3.org/TR/html4/loose.dtd"
- xmlns:xhtml="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"
- exclude-result-prefixes="html xhtml"
- version="1.0">
-
- <xsl:import href="shared/basePage.xsl"/>
- <xsl:import href="/xsl/shared/ArtAssembly.xsl"/>
- <xsl:import href="shared/Variables.xsl"/>
-
- <xsl:output method="html" omit-xml-declaration="yes" indent="yes" encoding="UTF-8"/>
-
- <xsl:template match="/">
- <xsl:call-template name="pageTemplate">
- <xsl:with-param name="pageTitle"><xsl:value-of select="assemblyXml/assemblyTitle"/></xsl:with-param>
- <xsl:with-param name="pageHeading"><xsl:value-of select="assemblyXml/assemblyTitle"/></xsl:with-param>
- <xsl:with-param name="pageSubheading"/>
- <xsl:with-param name="pageBody"><xsl:apply-templates select="assemblyXml/asmbly"/></xsl:with-param>
- <xsl:with-param name="relatedContentMenu"/>
- </xsl:call-template>
- </xsl:template>
-
- <xsl:template name="new_multimedia">
- <xsl:variable name="stripped_filename">
- <xsl:call-template name="strip_filename">
- <xsl:with-param name="original" select="@filename"/>
- </xsl:call-template>
- </xsl:variable>
- <xsl:choose>
- <xsl:when test="@bintype='8'">
- <xsl:if test="not(preceding-sibling::*/@bintype='9') and not(following-sibling::*/@bintype='9')">
- <embed src="file://MEDIA/{$stripped_filename}" AutoStart="0" width="{@wdth}" height="{@hgt+10}"/>
- </xsl:if>
- </xsl:when>
- <xsl:when test="@bintype='5'">
- <xsl:if test="not(preceding-sibling::*/@bintype='4') and not(following-sibling::*/@bintype='4')">
- <embed src="file://MEDIA/{$stripped_filename}" width="{@wdth}" height="{@hgt}"/>
- </xsl:if>
- </xsl:when>
- <xsl:when test="@bintype='25'">
- <xsl:if test="not(preceding-sibling::*/@bintype='4') and not(following-sibling::*/@bintype='4')">
- <embed src="file://MEDIA/{$stripped_filename}" AutoStart="0" width="{@wdth}" height="{@hgt+20}"/>
- </xsl:if>
- </xsl:when>
- <xsl:when test="@bintype='20'">
- <xsl:if test="not(preceding-sibling::*/@bintype='4') and not(following-sibling::*/@bintype='4')">
- <embed src="file://MEDIA/{$stripped_filename}" AutoStart="0" width="{@wdth+300}" height="{@hgt+20}" type="audio/x-mpeg"/>
- </xsl:if>
- </xsl:when>
- <xsl:otherwise><embed src="file://MEDIA/{$stripped_filename}" width="{@wdth}" height="{@hgt}"/></xsl:otherwise>
- </xsl:choose>
- </xsl:template>
-
- <xsl:template name="strip_filename">
- <xsl:param name="original"/>
- <xsl:choose>
- <xsl:when test="contains($original,'/')">
- <xsl:call-template name="strip_filename">
- <xsl:with-param name="original" select="substring-after($original, '/')"/>
- </xsl:call-template>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="$original"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:template>
-
- <xsl:template name="img">
- <img vspace="6">
- <xsl:attribute name="arthref"><xsl:value-of select="$imageURL"/>?binaryId=<xsl:value-of select="@id"/></xsl:attribute>
- <xsl:attribute name="height"><xsl:value-of select="@hgt"/></xsl:attribute>
- <xsl:attribute name="width"><xsl:value-of select="@wdth"/></xsl:attribute>
-
- <!-- temporary hack until "name" attribute of the map element is fixed -->
- <xsl:if test="@imgmap = 'y'">
- <xsl:attribute name="usemap">#<xsl:value-of select="following-sibling::imgmap/map/@name"/></xsl:attribute>
- </xsl:if>
-
- <xsl:attribute name="src"><xsl:value-of select="$imageURL"/>?binaryId=<xsl:value-of select="@id"/></xsl:attribute>
- </img>
- </xsl:template>
-
- <xsl:template match="mapcap">
- </xsl:template>
-
- <xsl:template name="relatedContentButton">
- <!-- no related content button -->
- </xsl:template>
-
- <xsl:template name="relatedContentMenu">
- <!-- no related content menu -->
- </xsl:template>
-
- </xsl:stylesheet>
-