home *** CD-ROM | disk | FTP | other *** search
- <?xml version="1.0"?>
- <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xlink="http://www.w3.org/1999/xlink">
-
- <!-- Edugen XSL Stylesheets V1.0 =======================================
-
- File xmlbody.xsl for Kieso
-
- This file is part of the Edugen XSL Stylesheets.
- Copyright (c) 2002 WWL Corp. - A Subsidiary of John Wiley & Sons, Inc.
- ========================================================================= -->
-
- <xsl:output method="html" indent="no"/>
-
- <!-- version -->
- <xsl:param name="version">1.0</xsl:param>
- <!-- dynamic param -->
- <xsl:param name="selector" select="/*"/>
- <!-- component -->
- <xsl:param name="component">content</xsl:param>
-
- <xsl:variable name="edugenGlobalPath"><?11?>?sid=global&msg=300&file=</xsl:variable>
- <xsl:variable name="edugenHttpPath"><?11?>?sid=<?1003?>&msg=300&file=</xsl:variable>
- <xsl:variable name="edugenFilePath"><?301?></xsl:variable>
- <xsl:variable name="courseHttpPath"><?11?>?sid=<?1003?>&msg=3&course=<?1008?>&file=</xsl:variable>
- <xsl:variable name="courseFilePath"><?303?></xsl:variable>
- <xsl:variable name="courseStyle"><?1007?></xsl:variable>
- <xsl:variable name="courseFont"><?1006?></xsl:variable>
-
- <xsl:variable name="file"><xsl:value-of select="/*/@id"/>.xml</xsl:variable>
- <xsl:variable name="filebase"><xsl:value-of select="/*/@xml:base"/></xsl:variable>
- <xsl:variable name="type"><xsl:value-of select="/page/@type"/></xsl:variable>
-
-
- <xsl:attribute-set name="body_attributes">
- <xsl:attribute name="bgcolor">#ffffff</xsl:attribute>
- <xsl:attribute name="text">#000000</xsl:attribute>
- <xsl:attribute name="leftmargin">1</xsl:attribute>
- <xsl:attribute name="topmargin">4</xsl:attribute>
- <xsl:attribute name="marginwidth">1</xsl:attribute>
- <xsl:attribute name="marginheight">4</xsl:attribute>
- <xsl:attribute name="class">text</xsl:attribute>
- <xsl:attribute name="onresize">javascript:if(navigator.appName.indexOf('Netscape')!=-1)self.location.reload();</xsl:attribute>
- <xsl:attribute name="onload">javascript:doOnload();</xsl:attribute>
- <xsl:attribute name="onunload">javascript:doOnunload();</xsl:attribute>
-
-
- </xsl:attribute-set>
-
-
- <!-- ============= root =============================== -->
- <xsl:template match="/">
- <html>
- <xsl:comment>
- Copyright (c) 2002 WWL Corp. - A Subsidiary of John Wiley & Sons, Inc.
- Thank you for examining our code
- </xsl:comment>
- <head>
-
- <title>
- <xsl:choose>
- <xsl:when test="$selector/title"><xsl:value-of select="$selector/title"/></xsl:when>
- <xsl:otherwise>
- <xsl:choose>
- <xsl:when test="name($selector)='overlay'">
- <xsl:variable name="overlay_id">#<xsl:value-of select="$selector/@id"/></xsl:variable>
- <xsl:value-of select="//a[@xlink:href=$overlay_id]"/>
- </xsl:when>
- <xsl:otherwise>Page</xsl:otherwise>
- </xsl:choose>
- </xsl:otherwise>
- </xsl:choose>
- </title>
-
- <meta name="generator" content="Edugen XSL Stylesheets V{$version}"/>
- <link rel="STYLESHEET" type="text/css" href="{$courseHttpPath}media/{$component}/css/style{$courseStyle}.css"/>
- <link rel="STYLESHEET" type="text/css" href="{$courseHttpPath}media/{$component}/css/font{$courseFont}.css"/>
-
- <script type="text/javascript" language="JavaScript" src="{$edugenHttpPath}media/js/button.js"></script>
- <script type="text/javascript" language="JavaScript" src="{$edugenHttpPath}media/js/misc.js"></script>
- <script type="text/javascript" language="JavaScript" src="{$edugenHttpPath}media/js/windows.js"></script>
- <script type="text/javascript" language="JavaScript" src="{$edugenHttpPath}media/js/overlay.js"></script>
-
- <script type="text/javascript" language="JavaScript"><![CDATA[
-
- function window_close()
- {
- top.bridge.location.replace(getPrefix() + "<?11?>?sid=<?1003?>&msg=4&course=<?1008?>" +
- "&xml=/cmd/command.xml&xsl=/cmd/command.xsl" +
- "&name=selector&select=commands/command[@id%3D'manager']");
- }
-
- function openRasmolFiles(in_file)
- {
- //alert('top.frames.bridge.location.replace("<?11?>?sid=<?1003?>&msg=9610&file=media/content/"' + in_file);
- top.frames.bridge.location.replace("<?11?>?sid=<?1003?>&msg=9610&file=media/content/" + in_file);
- }
-
- function openIrTutorFiles()
- {
-
- top.frames.bridge.location.replace("<?11?>?sid=<?1003?>&msg=9611");
- }
-
- function doOnload()
- {
- if (top.frames.bridge)
- {
- top.bridge.location.replace(getPrefix() + "<?11?>?sid=<?1003?>&msg=4&course=<?1008?>" +
- "&xml=/cmd/command.xml&xsl=/cmd/command.xsl" +
- "&name=selector&select=commands/command[@id%3D'update']");
- }
- else if (top.frames.loading)
- {
-
- top.frames.loading.location.replace(getPrefix() + "<?11?>?sid=<?1003?>&msg=4&course=<?1008?>" +
- "&xml=/cmd/command.xml&xsl=/cmd/command.xsl" +
- "&name=selector&select=commands/command[@id%3D'shows_update']");
- }
- self.focus();
- }
-
- function doOnunload()
- {
- closeWindows();
- }
-
- function getParamsString(in_width, in_height, in_xOffset, in_yOffset)
- {
- return "width=" + in_width + ",height=" + in_height + ",left=" + ((screen.width-16-in_width)/2 + in_xOffset) + ",top=" + ((screen.height-60-in_height)/2 + in_yOffset);
- }
- function getPrefix()
- {
- var str = self.location.href;
- return str.substring(0,str.lastIndexOf("<?11?>"));
- }
- function getTargetFrame()
- {
- if (top.frames.frameset1)
- {
- return top.frames.frameset1;
- }
- else if (top.frames.frameset)
- {
- if (top.frames.frameset.frames.xmlarea)
- {
- return top.frames.frameset.frames.xmlarea;
- }
- else
- {
- return top.frames.frameset;
- }
- }
- else
- {
- return self;
- }
- }
- function locationReplace(in_url)
- {
- getTargetFrame().location.replace(in_url);
- }
-
- function gotoPage(in_base,in_file,in_href,in_role)
- {
- ]]><xsl:choose>
- <xsl:when test="contains(name($selector),'overlay')"><![CDATA[
-
- opener.gotoPage(in_base,in_file,in_href,in_role);
-
- ]]></xsl:when>
- <xsl:otherwise><![CDATA[
-
- if (in_href.charAt(0)=="#")
- {
- document.location.replace(in_href);
- }
- else
- {
- var cur_href = in_href.replace(/ /,"%20");
-
- if (in_href.indexOf("#")!=-1)
- {
- cur_href = cur_href.substring(0,cur_href.indexOf("#"));
- }
-
- locationReplace(getPrefix() +
- "<?11?>?sid=<?1003?>&msg=4" +
- "&xml=/media/content/book.xml" +
- "&xsl=/media/content/links.xsl" +
- "&name=selector" +
- "&select=//*[Q%3D'" + cur_href + "']");
- }
-
- ]]></xsl:otherwise>
- </xsl:choose><![CDATA[
- }
-
- function gotoPath(in_path)
- {
- ]]><xsl:choose>
- <xsl:when test="contains(name($selector),'overlay')"><![CDATA[
-
- opener.gotoPath(in_path);
-
- ]]></xsl:when>
- <xsl:otherwise><![CDATA[
-
- locationReplace(getPrefix() + "<?11?>?sid=<?1003?>&msg=7009&sync=1&path=" + in_path);
-
- ]]></xsl:otherwise>
- </xsl:choose><![CDATA[
- }
-
- function goBack()
- {
- locationReplace(getPrefix() + "<?11?>?sid=<?1003?>&msg=13003");
- }
-
- function winOpen(in_base,in_file,in_href,in_role)
- {
- var cur_href,cur_id,cur_xsl,cur_url;
-
- var win_param = getParamsString(((arguments[4])?arguments[4]:650), ((arguments[5])?arguments[5]:450), 0, 0) +
- ",resizable=yes,copyhistory=no,directories=no,location=no,menubar=no,scrollbars=yes,status=no,toolbar=no";
-
- if (in_href.charAt(0)=="#")
- {
- cur_href = in_base + in_file;
- cur_id = in_href.substring(in_href.lastIndexOf("#")+1,in_href.length);
- cur_url = "<?11?>?sid=<?1003?>&msg=4" +
- "&xml=/" + cur_href +
- "&xsl=/media/content/xmlbody.xsl" +
- "&name=selector" +
- "&select=//*[@id%3D'" + cur_id + "']";
- }
- else
- {
- if (in_href.indexOf(".xml")!=-1)
- {
- cur_href = in_base + in_href.substring ( in_href.lastIndexOf("/") + 1, in_href.indexOf(".xml") + 4 );
- cur_url = "<?11?>?sid=<?1003?>&msg=4" +
- "&xml=/" + cur_href +
- "&xsl=/media/content/xmlbody.xsl";
- if (in_href.indexOf("#")!=-1)
- {
- cur_id = in_href.substring ( in_href.indexOf("#") + 1, in_href.length );
- cur_url = cur_url + "&name=selector" +
- "&select=//*[@id%3D'" + cur_id + "']";
- }
- }
- else if (in_href.indexOf(".htm")!=-1)
- {
- if (in_href.indexOf(".html")!=-1)
- {
- //cur_href = in_base + in_href.substring ( in_href.lastIndexOf("/") + 1, in_href.indexOf(".html") + 5 );
-
- cur_href = in_base + in_href;
- }
- else
- {
- cur_href = in_base + in_href.substring ( in_href.lastIndexOf("/") + 1, in_href.indexOf(".htm") + 4 );
- }
-
- cur_url = "<?11?>?sid=<?1003?>&msg=3" +
- "&file=/" + cur_href;
- if (in_href.indexOf("#")!=-1)
- {
- cur_id = in_href.substring ( in_href.indexOf("#") + 1, in_href.length );
- cur_url = cur_url + "#" + cur_id;
- }
- }
- else
- {
- cur_url = "<?11?>?sid=<?1003?>&msg=3" + "&file=/" + in_base + in_href;
- }
- }
-
- createWindow(getPrefix()+cur_url,in_role,win_param);
- }
-
- function glossaryWinOpen(in_base,in_file,in_href,in_role)
- {
- ]]><xsl:choose>
- <xsl:when test="contains(name($selector),'overlay')"><![CDATA[
-
- opener.glossaryWinOpen(in_base,in_file,in_href,in_role);
-
- ]]></xsl:when>
- <xsl:otherwise><![CDATA[
-
- var cur_id = in_href.substring(in_href.lastIndexOf("#")+1,in_href.length);
- if (top.frames.bridge)
- {
- top.frames.bridge.location.replace(getPrefix() + "<?11?>?sid=<?1003?>&msg=8015&id=" + cur_id +
- "&xml=/cmd/command.xml&xsl=/cmd/command.xsl" +
- "&name=selector&select=commands/command[@id%3D'glossary']");
- }
- else
- {
- alert("Glossary links do not work in Show mode. Please use the main mode of the program to access links to the Glossary.");
- }
-
- ]]></xsl:otherwise>
- </xsl:choose><![CDATA[
- }
-
- ]]><xsl:if test="contains(name($selector),'overlay')"><![CDATA[
- var closebutImage = new imageObject("closebut","<?11?>?sid=<?1003?>&msg=300&file=media/graphics/buttons/close/");
- function closebutPress()
- {
- window.close();
- }
- ]]></xsl:if><![CDATA[
-
-
- function gotoDrcPage(in_string)
- {
- //alert(in_string);
- //alert("<?11?>?sid=<?1003?>&msg=7000&pageid=" + in_string);
- //parent.location.replace("edugen?sid=demo&msg=7000&pageid=" + in_string);
- locationReplace(getPrefix() + "edugen?sid=demo&msg=7000&pageid=" + in_string);
-
- }
-
- </script>
-
-
- ]]>
- <xsl:apply-templates select="$selector/javascript" mode="javascript"/>
- </script>
-
-
-
- </head>
-
- <body xsl:use-attribute-sets="body_attributes">
-
- <xsl:apply-templates select="$selector"/>
-
- </body>
- </html>
- </xsl:template>
- <!-- ====== end of root =============================== -->
-
-
-
- <!-- ============= page =============================== -->
-
- <!-- START page -->
- <xsl:template match="page">
- <table border="0" cellpadding="0" cellspacing="0" width="100%">
- <tr>
- <td width="18"><img src="{$courseFilePath}media/content/graphics/pixel.gif" width="18" height="1" border="0"/></td>
- <td>
-
- <!-- -->
-
- <table border="0" cellpadding="0" cellspacing="0">
- <tr>
- <td align="left"><xsl:apply-templates select="content"/></td>
- </tr>
- </table>
-
- <!-- -->
-
- </td>
- <td width="12"><img src="{$courseFilePath}media/content/graphics/pixel.gif" width="12" height="1" border="0"/></td>
- </tr>
- </table>
- </xsl:template>
- <!-- END page -->
-
-
- <xsl:template match="content">
- <xsl:apply-templates />
- </xsl:template>
-
-
- <!-- START head-->
- <xsl:template match="page/head">
- <xsl:choose>
- <xsl:when test="$type='folder'">
- <xsl:apply-templates/>
- </xsl:when>
- <xsl:otherwise>
-
- </xsl:otherwise>
- </xsl:choose>
- </xsl:template>
- <!-- END head-->
- <!-- Look at xmlhead.xsl -->
-
-
- <!-- START page/title -->
- <xsl:template match="page/title">
- <table border="0" cellpadding="4" cellspacing="0" width="100%" bgcolor="#CEDEEF">
- <tr>
- <td align="left"><span class="pageTitle"><xsl:apply-templates/></span></td>
- </tr>
- </table>
- </xsl:template>
- <!-- END page/title -->
-
- <!-- ====== end of page =============================== -->
-
-
- <!-- ============= section =============================== -->
-
- <!-- START section -->
- <xsl:template match="section">
- <xsl:call-template name="anchorname"/>
- <xsl:apply-templates/>
- </xsl:template>
- <!-- END section -->
-
- <!-- START section/title -->
- <xsl:template match="section/title">
- <p class="sectionTitle"><xsl:apply-templates/></p>
- </xsl:template>
- <!-- END page/section/title -->
-
- <!-- ====== end of section =============================== -->
-
-
- <!-- ============= block formatting =============================== -->
- <xsl:template match="para">
- <p>
- <xsl:if test="@align"><xsl:copy-of select="@align"/></xsl:if>
- <xsl:attribute name="class">
- <xsl:choose>
- <xsl:when test="@class"><xsl:value-of select="@class"/></xsl:when>
- <xsl:otherwise>text</xsl:otherwise>
- </xsl:choose>
- </xsl:attribute>
- <xsl:if test="@indent"><img src="{$courseFilePath}media/content/graphics/pixel.gif" width="32" height="1" border="0" align="absmiddle"/></xsl:if>
- <xsl:call-template name="anchorname"/>
- <xsl:choose>
- <xsl:when test="@style"><span style="{@style}"><xsl:apply-templates/></span></xsl:when>
- <xsl:otherwise><xsl:apply-templates/></xsl:otherwise>
- </xsl:choose>
- </p>
- </xsl:template>
-
-
- <xsl:template match="olist">
- <xsl:choose>
- <xsl:when test="@list-style-type">
- <ol class="{@list-style-type}">
- <xsl:for-each select="listitem">
- <li><xsl:apply-templates/></li>
- </xsl:for-each>
- </ol>
- </xsl:when>
- <xsl:otherwise>
- <ol class="text">
- <xsl:for-each select="listitem">
- <li><xsl:apply-templates/></li>
- </xsl:for-each>
- </ol>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:template>
-
-
- <xsl:template match="ulist">
- <xsl:choose>
- <xsl:when test="@role='browse'">
- <table border="0" cellpadding="0" cellspacing="0" bgcolor="#E9E7DA" width="95%" align="center">
- <tr>
- <td>
- <table border="0" cellpadding="4" cellspacing="0" align="center">
- <xsl:for-each select="listitem">
- <tr>
- <td valign="middle"><img src="{$courseFilePath}media/content/graphics/common/bullet.gif" border="0"/></td>
- <td valign="top"><xsl:apply-templates/></td>
- </tr>
- </xsl:for-each>
- </table>
- </td>
- </tr>
- </table>
- </xsl:when>
- <xsl:otherwise>
- <table border="0" cellpadding="2" cellspacing="0">
- <xsl:for-each select="listitem">
- <tr>
- <td valign="top"><img src="{$courseFilePath}media/content/graphics/common/listitem.gif" border="0"/></td>
- <td valign="top"><span class="text"><xsl:apply-templates/></span></td>
- </tr>
- </xsl:for-each>
- </table>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:template>
-
-
-
- <xsl:template match="illustration">
- <table border="0" cellpadding="0" cellspacing="0">
- <tr>
- <td>
- <table border="0" cellpadding="2" cellspacing="0">
- <tr valign="top">
- <td bgcolor="#FFDEBD"><span class="illustrationTitle">Illustration <xsl:value-of select="@num"/>:</span></td>
- <td><xsl:apply-templates select="title"/></td>
- </tr>
- </table>
- </td>
- </tr>
- <tr>
- <td><img src="{$edugenFilePath}media/graphics/pixel.gif" width="1" height="4" border="0"/></td>
- </tr>
- <tr>
- <td><xsl:apply-templates select="graphic|block|block2"/></td>
- </tr>
- </table>
- </xsl:template>
-
- <xsl:template match="illustration/title">
- <p class="illustrationTitle2"><xsl:apply-templates/></p>
- </xsl:template>
-
- <xsl:template match="picture">
- <table border="0" cellpadding="2" cellspacing="0">
- <tr>
- <td><xsl:apply-templates select="graphic"/></td>
- </tr>
- </table>
- </xsl:template>
-
- <xsl:template match="graphic">
- <xsl:variable name="base">media/content/</xsl:variable>
- <img src="{$courseFilePath}{$base}{@src}">
- <xsl:if test="@width"><xsl:copy-of select="@width"/></xsl:if>
- <xsl:if test="@height"><xsl:copy-of select="@height"/></xsl:if>
- <xsl:if test="@border"><xsl:copy-of select="@border"/></xsl:if>
- <xsl:if test="@align"><xsl:copy-of select="@align"/></xsl:if>
- <xsl:if test="@vspace"><xsl:copy-of select="@vspace"/></xsl:if>
- <xsl:if test="@hspace"><xsl:copy-of select="@hspace"/></xsl:if>
- <xsl:if test="@usemap"><xsl:copy-of select="@usemap"/></xsl:if>
- <xsl:if test="@alt"><xsl:copy-of select="@alt"/></xsl:if>
- </img>
- </xsl:template>
-
-
- <xsl:template match="notes">
- <xsl:apply-templates/>
- </xsl:template>
-
- <xsl:template match="note">
- <div id="{@id}" style="position:absolute; top:0; left:0; visibility:hidden;">
- <table cellpadding="4" cellspacing="1" border="0" bgcolor="#CE2131" width="400">
- <tr>
- <td bgcolor="#CE2131" align="right" valign="top"><a href="javascript:changeState('{@id}', in_x, in_y);"><img src="{$courseFilePath}media/content/graphics/common/fnt_close.gif" border="0" width="21" height="24" alt="Close"/></a></td>
- </tr>
- <tr><!-- content of overlay box -->
- <td bgcolor="#FFEBD7" align="left" valign="top"><xsl:apply-templates/></td>
- </tr>
- </table>
- </div>
- </xsl:template>
-
- <xsl:template match="noteref">
- <a href="javascript:void();" onclick="javascript:changeState('{@idref}', in_x, in_y); return false;"><img src="{$courseFilePath}media/content/graphics/common/fnt.gif" border="0" align="top" alt="Read this text"/></a>
- </xsl:template>
-
-
- <xsl:template match="keyterms">
- <table border="0" cellpadding="2" cellspacing="0" width="100%" bgcolor="#CEDEEF">
- <tr>
- <td valign="top"><span class="keytermsTitle"><xsl:value-of select="title"/></span></td>
- </tr>
- <tr>
- <td height="1" bgcolor="#FFDEBD"><img src="{$courseFilePath}media/content/graphics/pixel.gif" border="0" width="1" height="1"/></td>
- </tr>
- <tr>
- <td valign="top"><xsl:apply-templates/></td>
- </tr>
- </table>
- <br/>
- </xsl:template>
-
-
- <xsl:template match="exercises">
- <xsl:apply-templates/>
- </xsl:template>
-
- <xsl:template match="exercises/title">
- <span class="exercisesTitle"><xsl:apply-templates/></span>
- </xsl:template>
- <!-- ====== end of block formatting =============================== -->
-
-
- <!-- ============= inline formatting =============================== -->
- <xsl:template match="span">
- <xsl:call-template name="anchorname"/>
- <span>
- <xsl:attribute name="class">
- <xsl:choose>
- <xsl:when test="@class"><xsl:value-of select="@class"/></xsl:when>
- <xsl:when test="../../../@role = 'browse'">link</xsl:when>
- <xsl:otherwise>span</xsl:otherwise>
- </xsl:choose>
- </xsl:attribute>
- <xsl:choose>
- <xsl:when test="@style"><span style="{@style}"><xsl:apply-templates/></span></xsl:when>
- <xsl:otherwise><xsl:apply-templates/></xsl:otherwise>
- </xsl:choose>
- </span>
- </xsl:template>
-
- <!-- START keyword -->
- <xsl:template match="keyword">
- <span class="keyword"><xsl:apply-templates/></span>
- </xsl:template>
- <!-- END keyword -->
-
- <!-- START italic, bold, underline -->
- <xsl:template match="emphasis">
- <xsl:choose>
- <xsl:when test="@role='bold'">
- <span style="font-weight:bold;"><xsl:apply-templates/></span>
- </xsl:when>
- <xsl:when test="@role='underline'">
- <span style="text-decoration:underline;"><xsl:apply-templates/></span>
- </xsl:when>
- <xsl:otherwise>
- <span style="font-style:italic;"><xsl:apply-templates/></span>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:template>
- <!-- END italic, bold, underline -->
-
- <!-- START superscript -->
- <xsl:template match="superscript">
- <span style="font-size:80%;"><sup><xsl:apply-templates/></sup></span>
- </xsl:template>
- <!-- END superscript -->
-
-
- <!-- START subscript -->
- <xsl:template match="subscript">
- <span style="font-size:80%;"><sub><xsl:apply-templates/></sub></span>
- </xsl:template>
- <!-- END subscript -->
-
-
- <xsl:template match="inlineimage">
- <xsl:variable name="base">media/content/</xsl:variable>
- <img src="{$courseFilePath}{$base}{@src}">
- <xsl:if test="@width"><xsl:copy-of select="@width"/></xsl:if>
- <xsl:if test="@height"><xsl:copy-of select="@height"/></xsl:if>
- <xsl:if test="@border"><xsl:copy-of select="@border"/></xsl:if>
- <xsl:if test="@align"><xsl:copy-of select="@align"/></xsl:if>
- <xsl:if test="@vspace"><xsl:copy-of select="@vspace"/></xsl:if>
- <xsl:if test="@hspace"><xsl:copy-of select="@hspace"/></xsl:if>
- <xsl:if test="@usemap"><xsl:copy-of select="@usemap"/></xsl:if>
- <xsl:if test="@alt"><xsl:copy-of select="@alt"/></xsl:if>
- </img>
- </xsl:template>
-
- <xsl:template match="c">
- <span style="color:{@color}"><xsl:apply-templates/></span>
- </xsl:template>
-
- <!-- ====== end of inline formatting =============================== -->
-
-
- <!-- ============= block =============================== -->
-
- <xsl:template match="block">
- <table border="0" cellpadding="0" cellspacing="0">
- <xsl:choose>
- <xsl:when test="@width"><xsl:attribute name="width"><xsl:value-of select="@width"/></xsl:attribute></xsl:when>
- <xsl:otherwise>
- <xsl:attribute name="width">80%</xsl:attribute>
- </xsl:otherwise>
- </xsl:choose>
- <xsl:if test="@height"><xsl:copy-of select="@height"/></xsl:if>
- <tr><td>
- <xsl:choose>
- <xsl:when test="@id">
- <xsl:attribute name="class"><xsl:value-of select="@id"/></xsl:attribute>
- </xsl:when>
- <xsl:otherwise>
- <xsl:attribute name="bgcolor">
- <xsl:choose>
- <xsl:when test="@bordercolor"><xsl:value-of select="@bordercolor"/></xsl:when>
- <xsl:otherwise>#CE2131</xsl:otherwise>
- </xsl:choose>
- </xsl:attribute>
- </xsl:otherwise>
- </xsl:choose>
- <table border="0" cellpadding="4" cellspacing="1">
- <xsl:choose>
- <xsl:when test="@width"><xsl:attribute name="width"><xsl:value-of select="@width"/></xsl:attribute></xsl:when>
- <xsl:otherwise>
- <xsl:attribute name="width">100%</xsl:attribute>
- </xsl:otherwise>
- </xsl:choose>
- <xsl:if test="@height"><xsl:copy-of select="@height"/></xsl:if>
- <xsl:choose>
- <xsl:when test="@border">
- <xsl:attribute name="cellspacing"><xsl:value-of select="@border"/></xsl:attribute>
- </xsl:when>
- <xsl:otherwise></xsl:otherwise>
- </xsl:choose>
- <tr><td>
- <xsl:choose>
- <xsl:when test="@id">
- <xsl:attribute name="class"><xsl:value-of select="@id"/></xsl:attribute>
- </xsl:when>
- <xsl:otherwise>
- <xsl:attribute name="bgcolor">
- <xsl:choose>
- <xsl:when test="@fillcolor"><xsl:value-of select="@fillcolor"/></xsl:when>
- <xsl:otherwise>#FFDEBD</xsl:otherwise>
- </xsl:choose>
- </xsl:attribute>
- </xsl:otherwise>
- </xsl:choose>
- <xsl:apply-templates/>
- </td></tr></table>
- </td></tr></table>
- </xsl:template>
-
- <xsl:template match="block/title">
-
- <p class="blocktitle" align="center">
- <xsl:call-template name="anchorname"/>
- <xsl:apply-templates/>
- </p>
-
- </xsl:template>
-
-
- <xsl:template match="block2">
- <table border="0" cellpadding="0" cellspacing="0">
- <xsl:choose>
- <xsl:when test="@width"><xsl:attribute name="width"><xsl:value-of select="@width"/></xsl:attribute></xsl:when>
- <xsl:otherwise>
- <xsl:attribute name="width"></xsl:attribute>
- </xsl:otherwise>
- </xsl:choose>
- <xsl:if test="@height"><xsl:copy-of select="@height"/></xsl:if>
- <tr><td>
- <xsl:choose>
- <xsl:when test="@id">
- <xsl:attribute name="class"><xsl:value-of select="@id"/></xsl:attribute>
- </xsl:when>
- <xsl:otherwise>
- <xsl:attribute name="bgcolor">
- <xsl:choose>
- <xsl:when test="@bordercolor"><xsl:value-of select="@bordercolor"/></xsl:when>
- <xsl:otherwise>#CE2131</xsl:otherwise>
- </xsl:choose>
- </xsl:attribute>
- </xsl:otherwise>
- </xsl:choose>
- <table border="0" cellpadding="0" cellspacing="1">
- <xsl:choose>
- <xsl:when test="@width"><xsl:attribute name="width"><xsl:value-of select="@width"/></xsl:attribute></xsl:when>
- <xsl:otherwise>
- <xsl:attribute name="width">100%</xsl:attribute>
- </xsl:otherwise>
- </xsl:choose>
- <xsl:if test="@height"><xsl:copy-of select="@height"/></xsl:if>
- <xsl:choose>
- <xsl:when test="@border">
- <xsl:attribute name="cellspacing"><xsl:value-of select="@border"/></xsl:attribute>
- </xsl:when>
- <xsl:otherwise></xsl:otherwise>
- </xsl:choose>
- <tr><td>
- <xsl:choose>
- <xsl:when test="@id">
- <xsl:attribute name="class"><xsl:value-of select="@id"/></xsl:attribute>
- </xsl:when>
- <xsl:otherwise>
- <xsl:attribute name="bgcolor">
- <xsl:choose>
- <xsl:when test="@fillcolor"><xsl:value-of select="@fillcolor"/></xsl:when>
- <xsl:otherwise>#FFDEBD</xsl:otherwise>
- </xsl:choose>
- </xsl:attribute>
- </xsl:otherwise>
- </xsl:choose>
- <table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFDEBD">
- <tr>
- <td><img src="{$courseFilePath}media/content/graphics/common/blocktitle.gif" border="0"/></td>
- <td align="center" width="100%"><xsl:apply-templates select="title"/></td>
- </tr>
- </table>
-
- <table border="0" cellpadding="4" cellspacing="0" bgcolor="#ffffff" width="100%">
- <tr>
- <td>
- <xsl:apply-templates select="blockbody"/>
- </td>
- </tr>
- </table>
-
- </td></tr></table>
- </td></tr></table>
- </xsl:template>
-
-
- <xsl:template match="block2/title">
-
- <p class="blocktitle">
- <xsl:call-template name="anchorname"/>
- <xsl:apply-templates/>
- </p>
-
- </xsl:template>
-
-
- <xsl:template match="line">
- <table border="0" cellpadding="0" cellspacing="0" width="98%">
- <xsl:attribute name="bgcolor">
- <xsl:choose>
- <xsl:when test="@color"><xsl:value-of select="@color"/></xsl:when>
- <xsl:otherwise>#CE2131</xsl:otherwise>
- </xsl:choose>
- </xsl:attribute>
- <tr>
- <td width="100%"><img src="{$edugenFilePath}media/graphics/pixel.gif" width="{@width}" height="{@height}" border="0"/></td>
- </tr></table>
- </xsl:template>
-
- <xsl:template match="blockbody">
- <xsl:call-template name="anchorname"/>
- <xsl:apply-templates/>
- </xsl:template>
-
- <!-- ====== block =============================== -->
-
-
- <!-- ============= instruction =============================== -->
- <xsl:template match="instruction">
- <xsl:apply-templates/>
- </xsl:template>
-
- <xsl:template match="instruction/title">
- <p class="instructiontitle">
- <xsl:call-template name="anchorname"/>
- <xsl:apply-templates/>
- </p>
- </xsl:template>
- <!-- ====== instruction =============================== -->
-
-
- <!-- ============= javascript =============================== -->
- <xsl:template match="javascript">
- </xsl:template>
-
- <xsl:template match="javascript" mode="javascript">
- <xsl:apply-templates/>
- </xsl:template>
- <!-- ====== end of javascript =============================== -->
-
-
- <!-- ============= buttons =============================== -->
- <xsl:template match="button">
- <xsl:call-template name="anchorname"/>
- <xsl:call-template name="button">
- <xsl:with-param name="button_id"><xsl:value-of select="@id"/></xsl:with-param>
- <xsl:with-param name="alt"><xsl:value-of select="@alt"/></xsl:with-param>
- </xsl:call-template>
- </xsl:template>
-
- <xsl:template name="button">
- <xsl:param name="button_id"></xsl:param>
- <xsl:param name="alt"></xsl:param>
- <a onmouseover="javascript:{$button_id}butImage.mOver();" onmouseout="javascript:{$button_id}butImage.mOut();" onmousedown="javascript:{$button_id}butImage.mDown();" onmouseup="javascript:{$button_id}butImage.mOver();">
- <xsl:call-template name="xlink_attribures"/>
- <img name="{$button_id}but" src="{$courseFilePath}media/{$component}/graphics/buttons/{$button_id}/out.gif" border="0" alt="{$alt}"/></a>
- </xsl:template>
-
- <xsl:template match="button_js">
- <xsl:call-template name="button_js">
- <xsl:with-param name="button_id"><xsl:value-of select="@idref"/></xsl:with-param>
- </xsl:call-template>
- </xsl:template>
-
- <xsl:template name="button_js">
- <xsl:param name="button_id"></xsl:param>
- var <xsl:value-of select="$button_id"/>butImage = new imageObject("<xsl:value-of select="$button_id"/>but", "<xsl:value-of select="$courseHttpPath"/>media/<xsl:value-of select="$component"/>/graphics/buttons/<xsl:value-of select="$button_id"/>/");
- </xsl:template>
- <!-- ====== end of buttons =============================== -->
-
-
- <!-- ============= anchor =============================== -->
- <xsl:template match="a">
- <xsl:call-template name="anchor"/>
- </xsl:template>
-
- <xsl:template match="area">
- <area>
- <xsl:if test="@alt"><xsl:copy-of select="@alt"/></xsl:if>
- <xsl:if test="@shape"><xsl:copy-of select="@shape"/></xsl:if>
- <xsl:if test="@coords"><xsl:copy-of select="@coords"/></xsl:if>
- <xsl:call-template name="xlink_attribures"/>
- </area>
- </xsl:template>
-
- <xsl:template name="anchor">
- <a>
- <xsl:if test="@onclick"><xsl:copy-of select="@onclick"/></xsl:if>
- <xsl:if test="@onmouseout"><xsl:copy-of select="@onmouseout"/></xsl:if>
- <xsl:if test="@onmouseover"><xsl:copy-of select="@onmouseover"/></xsl:if>
- <xsl:if test="@onmousedown"><xsl:copy-of select="@onmousedown"/></xsl:if>
- <xsl:if test="@onmouseup"><xsl:copy-of select="@onmouseup"/></xsl:if>
- <xsl:attribute name="class">
- <xsl:choose>
- <xsl:when test="@class"><xsl:value-of select="@class"/></xsl:when>
- <xsl:otherwise>link</xsl:otherwise>
- </xsl:choose>
- </xsl:attribute>
- <xsl:call-template name="xlink_attribures"/>
- <xsl:apply-templates/>
- </a>
- </xsl:template>
-
-
- <xsl:template match="a[@onclick]">
- <a href="{@xlink:href}" class="link">
- <xsl:apply-templates/>
- </a>
- </xsl:template>
-
- <!-- xlink_attribures -->
- <xsl:template name="xlink_attribures">
- <xsl:variable name="base">
- <xsl:choose>
- <xsl:when test="@xml:base"><xsl:value-of select="@xml:base"/></xsl:when>
- <xsl:otherwise><xsl:value-of select="$filebase"/></xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <xsl:choose>
- <xsl:when test="@xlink:show='new'">
- <xsl:choose>
- <xsl:when test="@role">
- <xsl:choose>
- <xsl:when test="@role='overlay'">
- <xsl:variable name="cur_id"><xsl:value-of select="substring-after(@xlink:href,'#')"/></xsl:variable>
- <xsl:variable name="width"><xsl:value-of select="//overlay[@id=$cur_id]/@width"/></xsl:variable>
- <xsl:variable name="height"><xsl:value-of select="//overlay[@id=$cur_id]/@height"/></xsl:variable>
- <xsl:attribute name="href">javascript:winOpen('<xsl:value-of select="$base"/>','<xsl:value-of select="$file"/>','<xsl:value-of select="@xlink:href"/>','<xsl:value-of select="@role"/>','<xsl:value-of select="$width"/>','<xsl:value-of select="$height"/>');</xsl:attribute>
- </xsl:when>
- <xsl:when test="@role='gtext'">
- <xsl:attribute name="href">javascript:winOpen('<xsl:value-of select="$base"/>','<xsl:value-of select="$file"/>','<xsl:value-of select="@xlink:href"/>','<xsl:value-of select="@role"/>');</xsl:attribute>
- </xsl:when>
- <xsl:when test="@role='glossary' or @role='index' or @role='timescale'">
- <xsl:attribute name="href">javascript:glossaryWinOpen('<xsl:value-of select="$base"/>','<xsl:value-of select="$file"/>','<xsl:value-of select="@xlink:href"/>','<xsl:value-of select="@role"/>');</xsl:attribute>
- </xsl:when>
- <xsl:otherwise>
- <xsl:attribute name="href">javascript:winOpen('<xsl:value-of select="$base"/>','<xsl:value-of select="$file"/>','<xsl:value-of select="@xlink:href"/>','<xsl:value-of select="@role"/>');</xsl:attribute>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:when>
- <xsl:otherwise>
- <xsl:attribute name="href"><xsl:value-of select="@xlink:href"/></xsl:attribute>
- <xsl:attribute name="target">_blank</xsl:attribute>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:when>
- <xsl:when test="@xlink:show='replace'">
- <xsl:choose>
- <xsl:when test="@role">
- <xsl:choose>
- <xsl:when test="@role='back'">
- <xsl:attribute name="href">javascript:goBack();</xsl:attribute>
- </xsl:when>
- <xsl:when test="@role='alert'">
- <xsl:attribute name="href">javascript:alert('Not available in demo version.');</xsl:attribute>
- </xsl:when>
- <xsl:when test="@role='path'">
- <xsl:attribute name="href">javascript:gotoPath('<xsl:value-of select="@path"/>');</xsl:attribute>
- </xsl:when>
- <xsl:when test="@role='taketest'">
- <xsl:attribute name="href"><xsl:value-of select="@xlink:href"/></xsl:attribute>
- </xsl:when>
- <xsl:otherwise>
- <xsl:attribute name="href">javascript:gotoPage('<xsl:value-of select="$base"/>','<xsl:value-of select="$file"/>','<xsl:value-of select="@xlink:href"/>');</xsl:attribute>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:when>
- <xsl:otherwise>
- <xsl:attribute name="href">javascript:gotoPage('<xsl:value-of select="$base"/>','<xsl:value-of select="$file"/>','<xsl:value-of select="@xlink:href"/>');</xsl:attribute>
- <!-- <xsl:attribute name="href"><xsl:value-of select="@xlink:href"/></xsl:attribute>
- <xsl:attribute name="target">_self</xsl:attribute> -->
- </xsl:otherwise>
- </xsl:choose>
- </xsl:when>
- <xsl:otherwise></xsl:otherwise>
- </xsl:choose>
- </xsl:template>
-
- <xsl:template name="anchorname">
- <xsl:param name="process_node" select="."/>
- <xsl:if test="$process_node/@id"><a name="{@id}"></a></xsl:if>
- </xsl:template>
-
- <xsl:template name="parent_anchorname">
- <xsl:if test="../@id"><a name="{../@id}"/></xsl:if>
- </xsl:template>
- <!-- ====== end of anchor =============================== -->
-
-
- <!-- ============= html tags =============================== -->
- <xsl:template match="table|thead|tbody|tfoot|tr|th|td">
- <xsl:call-template name="htmltags"/>
- </xsl:template>
-
- <xsl:template match="map|br|applet|param|div|center">
- <xsl:call-template name="htmltags"/>
- </xsl:template>
-
- <xsl:template name="htmltags">
- <xsl:copy>
- <xsl:copy-of select="@*"/>
- <xsl:if test="@background">
- <xsl:attribute name="background"><xsl:value-of select="$courseFilePath"/>media/content/<xsl:value-of select="@background"/></xsl:attribute>
- </xsl:if>
- <xsl:apply-templates/>
- </xsl:copy>
- </xsl:template>
-
- <!-- ====== end of html tags =============================== -->
-
-
- <!-- ============= wrappers for blob =============================== -->
-
- <!-- audio -->
- <xsl:template match="audio">
- <xsl:apply-templates/>
- </xsl:template>
-
- <xsl:template match="audio/alternative">
- </xsl:template>
-
- <!-- movie -->
- <xsl:template match="movie">
- <xsl:apply-templates/>
- </xsl:template>
-
- <xsl:template match="movie/alternative">
- </xsl:template>
-
- <!-- interactive -->
- <xsl:template match="interactive">
- <xsl:apply-templates select="flash"/>
- </xsl:template>
-
- <xsl:template match="interactive/alternative">
- </xsl:template>
- <!-- ============= end of wrapper for blob =============================== -->
-
-
- <!-- ============= blob =============================== -->
- <xsl:template match="image">
- <xsl:variable name="base">media/content/</xsl:variable>
- <img src="{$courseFilePath}{$base}{@src}">
- <xsl:if test="@width"><xsl:copy-of select="@width"/></xsl:if>
- <xsl:if test="@height"><xsl:copy-of select="@height"/></xsl:if>
- <xsl:if test="@border"><xsl:copy-of select="@border"/></xsl:if>
- <xsl:if test="@align"><xsl:copy-of select="@align"/></xsl:if>
- <xsl:if test="@vspace"><xsl:copy-of select="@vspace"/></xsl:if>
- <xsl:if test="@hspace"><xsl:copy-of select="@hspace"/></xsl:if>
- <xsl:if test="@usemap"><xsl:copy-of select="@usemap"/></xsl:if>
- <xsl:if test="@alt"><xsl:copy-of select="@alt"/></xsl:if>
- </img>
- </xsl:template>
-
- <!-- macromedia flash -->
- <xsl:template match="flash">
- <xsl:variable name="base">media/content/</xsl:variable>
-
- <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0">
- <xsl:if test="@id"><xsl:copy-of select="@id"/></xsl:if>
- <xsl:if test="@width"><xsl:copy-of select="@width"/></xsl:if>
- <xsl:if test="@height"><xsl:copy-of select="@height"/></xsl:if>
- <xsl:if test="@border"><xsl:copy-of select="@border"/></xsl:if>
- <param name="movie" value="{$courseHttpPath}{$base}{@src}"/>
- <!-- <param name="movie" value="{$courseFilePath}{$base}{@src}"/>-->
- <xsl:if test="@loop"><param name="loop" value="{@loop}"/></xsl:if>
- <xsl:if test="@menu"><param name="menu" value="{@menu}"/></xsl:if>
- <xsl:if test="@quality"><param name="quality" value="{@quality}"/></xsl:if>
- <xsl:if test="@bgcolor"><param name="bgcolor" value="{@bgcolor}"/></xsl:if>
- <xsl:if test="@play"><param name="play" value="{@play}"/></xsl:if>
- <xsl:if test="@scale"><param name="scale" value="{@scale}"/></xsl:if>
-
- <embed type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" swliveconnect="true" src="{$courseFilePath}{$base}{@src}">
- <xsl:if test="@id"><xsl:attribute name="name"><xsl:value-of select="@id"/></xsl:attribute></xsl:if>
- <xsl:if test="@width">
- <xsl:choose>
- <xsl:when test="@width='100%'"><xsl:attribute name="width">99%</xsl:attribute></xsl:when>
- <xsl:otherwise><xsl:copy-of select="@width"/></xsl:otherwise>
- </xsl:choose>
- </xsl:if>
- <xsl:if test="@height">
- <xsl:choose>
- <xsl:when test="@height='100%'"><xsl:attribute name="height">99%</xsl:attribute></xsl:when>
- <xsl:otherwise><xsl:copy-of select="@height"/></xsl:otherwise>
- </xsl:choose>
- </xsl:if>
- <xsl:if test="@border"><xsl:copy-of select="@border"/></xsl:if>
- <xsl:if test="@loop"><xsl:copy-of select="@loop"/></xsl:if>
- <xsl:if test="@menu"><xsl:copy-of select="@menu"/></xsl:if>
- <xsl:if test="@quality"><xsl:copy-of select="@quality"/></xsl:if>
- <xsl:if test="@bgcolor"><xsl:copy-of select="@bgcolor"/></xsl:if>
- <xsl:if test="@play"><xsl:copy-of select="@play"/></xsl:if>
- <xsl:if test="@scale"><xsl:copy-of select="@scale"/></xsl:if>
- </embed>
-
- </object>
-
- </xsl:template>
-
- <!-- macromedia director -->
- <xsl:template match="director">
- <xsl:variable name="base">media/content/</xsl:variable>
-
- <object classid="clsid:166B1BCA-3F9C-11CF-8075-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/director/sw.cab#version=8,5,1,0">
- <xsl:if test="@id"><xsl:copy-of select="@id"/></xsl:if>
- <xsl:if test="@width"><xsl:copy-of select="@width"/></xsl:if>
- <xsl:if test="@height"><xsl:copy-of select="@height"/></xsl:if>
- <xsl:if test="@border"><xsl:copy-of select="@border"/></xsl:if>
- <!-- <param name="src" value="{$courseHttpPath}{$base}{@src}"/> -->
- <param name="src" value="{$courseFilePath}{$base}{@src}"/>
-
- <xsl:if test="@loop"><param name="loop" value="{@loop}"/></xsl:if>
- <xsl:if test="@menu"><param name="menu" value="{@menu}"/></xsl:if>
- <xsl:if test="@quality"><param name="quality" value="{@quality}"/></xsl:if>
- <xsl:if test="@bgcolor"><param name="bgcolor" value="{@bgcolor}"/></xsl:if>
- <xsl:if test="@play"><param name="play" value="{@play}"/></xsl:if>
- <xsl:if test="@scale"><param name="scale" value="{@scale}"/></xsl:if>
-
- <xsl:if test="param">
- <xsl:for-each select="param">
- <param value="{@value}" name="{@name}" />
- </xsl:for-each>
- </xsl:if>
-
-
- <embed type="application/x-director" pluginspage="http://www.macromedia.com/shockwave/download/" swliveconnect="true" src="{$courseFilePath}{$base}{@src}">
- <xsl:if test="@id"><xsl:attribute name="name"><xsl:value-of select="@id"/></xsl:attribute></xsl:if>
- <xsl:if test="@width">
- <xsl:choose>
- <xsl:when test="@width='100%'"><xsl:attribute name="width">99%</xsl:attribute></xsl:when>
- <xsl:otherwise><xsl:copy-of select="@width"/></xsl:otherwise>
- </xsl:choose>
- </xsl:if>
- <xsl:if test="@height">
- <xsl:choose>
- <xsl:when test="@height='100%'"><xsl:attribute name="height">99%</xsl:attribute></xsl:when>
- <xsl:otherwise><xsl:copy-of select="@height"/></xsl:otherwise>
- </xsl:choose>
- </xsl:if>
- <xsl:if test="@border"><xsl:copy-of select="@border"/></xsl:if>
- <xsl:if test="@loop"><xsl:copy-of select="@loop"/></xsl:if>
- <xsl:if test="@menu"><xsl:copy-of select="@menu"/></xsl:if>
- <xsl:if test="@quality"><xsl:copy-of select="@quality"/></xsl:if>
- <xsl:if test="@bgcolor"><xsl:copy-of select="@bgcolor"/></xsl:if>
- <xsl:if test="@play"><xsl:copy-of select="@play"/></xsl:if>
- <xsl:if test="@scale"><xsl:copy-of select="@scale"/></xsl:if>
-
- <xsl:if test="param">
- <xsl:for-each select="param">
- <xsl:attribute name="{@name}"><xsl:value-of select="@value"/></xsl:attribute>
- </xsl:for-each>
- </xsl:if>
-
- </embed>
-
- </object>
-
- <xsl:if test="@id">
- <script for="{@id}" event="externalEvent(aParam)" language="javascript">
- eval(aParam);
- </script>
- </xsl:if>
-
-
- </xsl:template>
-
-
- <!-- PDB files -->
- <!-- <xsl:template match="pdb">
- <xsl:variable name="path"><?303?></xsl:variable>
- <xsl:variable name="base">media/content/</xsl:variable>
- <table border="0" cellpadding="0" cellspacing="0" align="center">
- <tr>
- <td><br/><embed type="chemical/x-pdb" src="{$path}{$base}{@src}" width="600" height="400"/></td>
- </tr>
- </table>
- </xsl:template> -->
-
- <xsl:template match="pdb">
-
- <table border="0" cellpadding="0" cellspacing="0" align="center">
- <tr>
- <td><br/><a href="javascript:openRasmolFiles('{@src}');" class="link">Click here to view 3D model.</a></td>
- </tr>
- </table>
- </xsl:template>
-
-
- <!-- c3d files -->
- <xsl:template match="c3d">
- <xsl:variable name="path"><?303?></xsl:variable>
- <xsl:variable name="base">media/content/</xsl:variable>
- <table border="0" cellpadding="0" cellspacing="0" align="center">
- <tr>
- <td><br/><embed type="chemical/x-chem3d" src="{$path}{$base}{@src}" width="400" height="300"/></td>
- </tr>
- </table>
- </xsl:template>
-
-
- <!-- real audio -->
- <xsl:template match="real">
- <xsl:variable name="base">media/content/</xsl:variable>
- <object id="{@name}" classid="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA" width="0" height="0">
- <param name="src" value="{$courseFilePath}{$base}{@src}"/>
- <param name="autostart" value="{@autostart}"/>
- <embed type="audio/x-pn-realaudio-plugin" src="{$courseFilePath}{$base}{@src}" width="0" height="0" name="{@name}" autostart="{@autostart}" swliveconnect="true"/>
- </object>
- </xsl:template>
-
- <!-- quicktime movie -->
- <xsl:template match="qtmovie">
- <xsl:variable name="base">media/content/</xsl:variable>
- <embed type="video/quicktime" pluginspage="http://www.apple.com/quicktime/download/" swliveconnect="true" src="{$courseFilePath}{$base}{@src}">
- <xsl:if test="@width"><xsl:copy-of select="@width"/></xsl:if>
- <xsl:if test="@height"><xsl:copy-of select="@height"/></xsl:if>
- <xsl:if test="@border"><xsl:copy-of select="@border"/></xsl:if>
- <xsl:if test="@bgcolor"><xsl:copy-of select="@bgcolor"/></xsl:if>
- <xsl:if test="@controller"><xsl:copy-of select="@controller"/></xsl:if>
- <xsl:if test="@autoplay"><xsl:copy-of select="@autoplay"/></xsl:if>
- <xsl:if test="qtnext1">
- <xsl:attribute name="qtnext1"><xsl:value-of select="qtnext1/@next"/><xsl:text> </xsl:text><xsl:value-of select="qtnext1/@target"/><xsl:text> </xsl:text><xsl:value-of select="$courseFilePath"/><xsl:value-of select="$base"/><xsl:value-of select="qtnext1/@qtsrc"/></xsl:attribute>
- </xsl:if>
- </embed>
- </xsl:template>
- <!-- ====== end of blob =============================== -->
-
-
-
- <!-- =========================================================================
- Thank you for examining our code.
- Please direct all questions, bug reports, or suggestions for changes
- to the info@maris.com
- ========================================================================== -->
-
-
- <xsl:template match="*">
- <font color="red">
- <xsl:text><</xsl:text><xsl:value-of select="name(.)"/><xsl:text>></xsl:text>
- <xsl:apply-templates/>
- <xsl:text></</xsl:text><xsl:value-of select="name(.)"/><xsl:text>></xsl:text>
- </font>
- </xsl:template>
-
- <xsl:template match="text()">
- <xsl:value-of select="."/>
- </xsl:template>
-
-
- </xsl:stylesheet>