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 help.xsl for Organic View
-
- 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="/*"/>
-
- <xsl:variable name="edugenGlobalPath"></xsl:variable>
- <xsl:variable name="courseHttpPath"></xsl:variable>
- <xsl:variable name="edugenHttpPath"></xsl:variable>
- <xsl:variable name="courseFilePath"></xsl:variable>
- <xsl:variable name="edugenFilePath"></xsl:variable>
-
- <xsl:variable name="edugenGlobalPath"><?11?>?sid=global&msg=300&file=</xsl:variable>
- <xsl:variable name="courseHttpPath"><?11?>?sid=<?1003?>&msg=3&course=<?1008?>&file=</xsl:variable>
- <xsl:variable name="edugenHttpPath"><?11?>?sid=<?1003?>&msg=300&file=</xsl:variable>
- <xsl:variable name="courseFilePath"><?303?></xsl:variable>
- <xsl:variable name="edugenFilePath"><?301?></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:attribute-set name="body_attributes">
- <!-- <xsl:attribute name="background"><xsl:value-of select="$courseFilePath"/>media/content/graphics/styles/bgr2.gif</xsl:attribute> -->
- <xsl:attribute name="bgcolor">#ffffff</xsl:attribute>
- <xsl:attribute name="text">#000000</xsl:attribute>
- <xsl:attribute name="leftmargin">0</xsl:attribute>
- <xsl:attribute name="topmargin">0</xsl:attribute>
- <xsl:attribute name="marginwidth">0</xsl:attribute>
- <xsl:attribute name="marginheight">0</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>Page</xsl:otherwise>
- </xsl:choose>
- </title>
- <meta name="generator" content="Edugen XSL Stylesheets V{$version}"/>
- <link rel="STYLESHEET" type="text/css" href="{$courseHttpPath}media/help/css/style1.css"/>
- <link rel="STYLESHEET" type="text/css" href="{$courseHttpPath}media/help/css/font2.css"/>
-
- <script type="text/javascript" language="JavaScript" src="{$edugenHttpPath}media/js/button.js"></script>
- <!-- <script type="text/javascript" language="JavaScript" src="{$edugenHttpPath}media/js/overlay.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"><![CDATA[
- function doOnload()
- {
-
- }
- function doOnunload()
- {
-
- }
-
- ]]><xsl:choose>
- <xsl:when test="name($selector)='organizations'"><![CDATA[
-
- var bulletbutImage = new imageObject("bulletbut","<?11?>?sid=<?1003?>&msg=3&file=media/help/graphics/bullet/");
-
- function bulletbutPress(in_name)
- {
- //alert("<?11?>?sid=<?1003?>&msg=4&xml=/media/help/" + in_name + ".xml&xsl=/media/help/help.xsl");
- top.show.location.replace("<?11?>?sid=<?1003?>&msg=4&xml=/media/help/" + in_name + ".xml&xsl=/media/help/help.xsl");
- }
-
- ]]></xsl:when>
- <xsl:otherwise></xsl:otherwise>
- </xsl:choose><![CDATA[
-
- ]]></script>
-
- </head>
-
- <body xsl:use-attribute-sets="body_attributes">
- <xsl:choose>
- <xsl:when test="name($selector)='organizations'">
- <xsl:attribute name="bgcolor">#F2EBCF</xsl:attribute>
- <xsl:attribute name="background"><xsl:value-of select="$courseFilePath"/>media/help/graphics/help_bgr.jpg</xsl:attribute>
- </xsl:when>
- <xsl:otherwise></xsl:otherwise>
- </xsl:choose>
-
- <xsl:apply-templates select="$selector"/>
-
- </body>
- </html>
- </xsl:template>
- <!-- ====== end of root =============================== -->
-
-
- <!-- ============= page =============================== -->
- <xsl:template match="page">
- <table cellspacing="0" cellpadding="2" border="0" width="100%" bgcolor="#F2EBCF" height="36">
- <tr>
- <td><img border="0" alt="" width="24" height="1" src="{$courseFilePath}media/content/graphics/pixel.gif"/></td>
- <td align="left" valign="bottom"><p class="pageTitle"><xsl:value-of select="title"/></p></td>
- <td><img border="0" alt="" width="20" height="1" src="{$courseFilePath}media/content/graphics/pixel.gif"/></td>
- </tr>
- <tr>
- <td><img border="0" alt="" width="24" height="1" src="{$courseFilePath}media/content/graphics/pixel.gif"/></td>
- <td width="100%">
- <table cellspacing="0" cellpadding="0" border="0" width="100%" bgcolor="##840004">
- <tr>
- <td background="{$courseFilePath}media/content/graphics/pixel.gif"><img border="0" alt="" width="1" height="1" src="{$courseFilePath}media/content/graphics/pixel.gif"/></td>
- </tr>
- </table>
-
- </td>
- <td><img border="0" alt="" width="20" height="1" src="{$courseFilePath}media/content/graphics/pixel.gif"/></td>
- </tr>
- </table>
-
- <table cellspacing="0" cellpadding="0" border="0" width="100%">
- <tr>
- <td colspan="3"><img border="0" alt="" width="1" height="12" src="{$courseFilePath}media/content/graphics/pixel.gif"/></td>
- </tr>
- <tr>
- <td><img border="0" alt="" width="32" height="1" src="{$courseFilePath}media/content/graphics/pixel.gif"/></td>
- <td width="100%"><xsl:apply-templates/></td>
- <td><img border="0" alt="" width="28" height="1" src="{$courseFilePath}media/content/graphics/pixel.gif"/></td>
- </tr>
- </table>
- </xsl:template>
-
- <xsl:template match="page/head">
- </xsl:template>
-
- <xsl:template match="page/title">
- </xsl:template>
- <!-- ====== end of page =============================== -->
-
-
- <!-- ============= section =============================== -->
- <xsl:template match="section">
- <xsl:apply-templates/>
- </xsl:template>
-
- <xsl:template match="section/title">
- <p class="sec1_title">
- <xsl:call-template name="parent_anchorname"/>
- <xsl:apply-templates/>
- </p>
- </xsl:template>
-
- <xsl:template match="section/subtitle">
- <p class="sec1_subtitle">
- <xsl:call-template name="parent_anchorname"/>
- <xsl:apply-templates/>
- </p>
- </xsl:template>
-
- <xsl:template match="section/section/title">
- <p class="sec2_title">
- <xsl:call-template name="parent_anchorname"/>
- <xsl:apply-templates/>
- </p>
- </xsl:template>
-
- <xsl:template match="section/section/subtitle">
- <p class="sec2_subtitle">
- <xsl:call-template name="parent_anchorname"/>
- <xsl:apply-templates/>
- </p>
- </xsl:template>
- <!-- ====== end of section =============================== -->
-
-
- <!-- ============= organizations =============================== -->
- <xsl:template match="organizations">
- <xsl:apply-templates/>
- </xsl:template>
-
- <xsl:template match="organization">
- <table border="0" cellspacing="0" cellpadding="0">
- <tr>
- <td><img border="0" alt="" width="152" height="36" src="{$courseFilePath}media/help/graphics/help.jpg"/></td>
- </tr>
- </table>
-
- <table border="0" cellspacing="2" cellpadding="2">
- <xsl:for-each select="item">
- <xsl:choose>
- <xsl:when test="@isvisible='0'"></xsl:when>
- <xsl:otherwise>
-
- <tr>
- <td align="left" valign="top"><img width="6" height="1" border="0" src="{$courseFilePath}media/help/graphics/pixel.gif"/></td>
- <td align="left" valign="top"><img name="bulletbut{@idref}" width="8" height="16" border="0" src="<?303?>media/help/graphics/bullet/out.gif"/></td>
- <td align="left" valign="top"><a href="javascript:bulletbutPress('{@idref}');" onmouseout="javascript:bulletbutImage.mOut('bulletbut{@idref}'); top.status='{title}'; return true;" onmouseover="javascript:bulletbutImage.mOver('bulletbut{@idref}'); top.status=''; return true;"><xsl:apply-templates/></a></td>
- </tr>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:for-each>
- </table>
- </xsl:template>
- <!-- ====== end of organizations =============================== -->
-
-
- <!-- ============= figure =============================== -->
- <xsl:template match="figure">
- <table border="0" cellpadding="6" cellspacing="0">
- <xsl:if test="@align"><xsl:copy-of select="@align"/></xsl:if>
- <tr><td>
- <table border="0" cellpadding="0" cellspacing="4">
-
- <xsl:choose>
- <xsl:when test="@layout='gt'">
- <tr>
- <td valign="top"><xsl:apply-templates select="image | flash"/></td>
- <td valign="top"><xsl:apply-templates select="description"/></td>
- </tr>
- </xsl:when>
- <xsl:when test="@layout='tg'">
- <tr>
- <td valign="top"><xsl:apply-templates select="description"/></td>
- <td valign="top"><xsl:apply-templates select="image | flash"/></td>
- </tr>
- </xsl:when>
- <xsl:when test="@layout='gtv'">
- <tr>
- <td align="center"><xsl:apply-templates select="image | flash"/></td>
- </tr>
- <tr>
- <td><xsl:apply-templates select="description"/></td>
- </tr>
- </xsl:when>
- <xsl:when test="@layout='tgv'">
- <tr>
- <td><xsl:apply-templates select="description"/></td>
- </tr>
- <tr>
- <td align="center"><xsl:apply-templates select="image | flash"/></td>
- </tr>
- </xsl:when>
- <xsl:otherwise>
- <tr>
- <td align="center"><xsl:apply-templates select="image | flash"/></td>
- </tr>
- </xsl:otherwise>
- </xsl:choose>
-
- </table>
- </td></tr>
- </table>
- </xsl:template>
-
- <xsl:template match="figure/description">
- <xsl:apply-templates/>
- </xsl:template>
-
- <xsl:template match="figure/description/title">
- <p class="text"><span class="figtitle"><xsl:apply-templates/></span></p>
- </xsl:template>
- <!-- ====== end of figure =============================== -->
-
-
- <!-- ============= example =============================== -->
- <xsl:template match="example">
- <table border="1" cellpadding="4" cellspacing="0" bordercolor="#000000">
- <tr bgcolor="#ffffff">
- <td><xsl:apply-templates/></td>
- </tr></table>
-
- <!-- <table border="0" cellpadding="0" cellspacing="0"><tr><td bgcolor="#000000">
- <table border="0" cellpadding="4" cellspacing="1">
- <tr bgcolor="#ffffff">
- <td><xsl:apply-templates/></td>
- </tr></table>
- </td></tr></table> -->
- </xsl:template>
-
- <xsl:template match="example/sentence">
- <p class="sec3Title"><xsl:apply-templates/></p>
- </xsl:template>
- <!-- ====== end of example =============================== -->
-
-
-
- <!-- ============= quicktasks =============================== -->
- <xsl:template match="quicktasks">
- </xsl:template>
-
- <xsl:template match="quicktask">
- <xsl:apply-templates/>
- </xsl:template>
-
- <xsl:template match="quicktasks/title">
- <h3><xsl:apply-templates/></h3>
- </xsl:template>
- <!-- ====== end of quicktasks =============================== -->
-
-
- <!-- ============= illustration =============================== -->
- <xsl:template match="illustration">
- <xsl:apply-templates/>
- </xsl:template>
-
- <xsl:template match="illustration/alternative">
- </xsl:template>
-
- <xsl:template match="alternative/sentence">
- <blockquote><p class="text" style="font-style:italic;"><xsl:apply-templates/></p></blockquote>
- </xsl:template>
-
- <xsl:template match="sentences">
- <blockquote class="text"><xsl:apply-templates/></blockquote>
- </xsl:template>
-
- <xsl:template match="sentence">
- <p class="text" style="font-style:italic;"><xsl:apply-templates/></p>
- </xsl:template>
- <!-- ====== end of illustration =============================== -->
-
-
- <!-- ============= instruction =============================== -->
- <xsl:template match="instruction/para">
- <p class="instruction">
- <img name="arrow" src="{$courseFilePath}media/content/graphics/prefer/arrow.gif" border="0"/>
- <xsl:call-template name="anchorname"/>
- <xsl:apply-templates/>
- </p>
- </xsl:template>
- <!-- ====== end of instruction =============================== -->
-
-
-
-
-
-
-
- <!-- ============= sensible block =============================== -->
- <!-- ============================================================ -->
-
- <!-- ============= parablock =============================== -->
- <xsl:template match="parablock">
- <p class="text">
- <xsl:call-template name="anchorname"/>
- <xsl:apply-templates/>
- </p>
- </xsl:template>
-
- <xsl:template match="parablock/title">
- <span style="font-weight:bold;"><xsl:apply-templates/></span><br/>
- </xsl:template>
-
- <xsl:template match="parablock/para">
- <xsl:apply-templates/>
- </xsl:template>
- <!-- ====== end of parablock =============================== -->
-
-
- <!-- ============= listblock =============================== -->
- <xsl:template match="listblock">
- <table border="0" cellpadding="0" cellspacing="0" width="100%"><tr><td bgcolor="#000000">
- <table border="0" cellpadding="4" cellspacing="1" width="100%">
- <tr bgcolor="#ffffff">
- <td><span class="listblock"><xsl:apply-templates/></span></td>
- </tr>
- </table>
- </td></tr></table><br clear="all"/>
- </xsl:template>
-
- <xsl:template match="listblock/title">
- <p class="listblock_title">
- <xsl:call-template name="anchorname"/>
- <xsl:apply-templates/>
- </p>
- </xsl:template>
- <!-- ====== end of listblock =============================== -->
-
-
- <!-- ============= tableblock =============================== -->
- <xsl:template match="tableblock">
- <p class="text" align="right">
- <span class="table_title">Table <xsl:value-of select="@number"/> <br/>
- <xsl:apply-templates select="title"/> <br/></span>
- <xsl:apply-templates select="table"/>
- </p>
- </xsl:template>
- <!-- ====== end of tableblock =============================== -->
-
-
- <!-- ============= overlay =============================== -->
- <xsl:template match="overlay">
- </xsl:template>
-
- <xsl:template match="overlay" mode="overlay">
- <div id="{@id}" style="position:absolute; top:0; left:0; visibility:hidden;">
- <table cellpadding="4" bgcolor="#ffffff" border="1">
- <tr><td><xsl:apply-templates/></td></tr>
- </table>
- </div>
- </xsl:template>
-
- <xsl:template match="overlay/title">
- <p class="overlay_title"><xsl:apply-templates/></p>
- </xsl:template>
- <!-- ====== end of overlay =============================== -->
-
-
- <!-- ============= exercise =============================== -->
- <xsl:template match="exercise">
- <hr/><xsl:apply-templates/><hr/>
- </xsl:template>
- <!-- ====== end of exercise =============================== -->
-
- <!-- ============================================================ -->
- <!-- ====== end of sensible block =============================== -->
-
-
-
-
- <!-- ============= block formatting =============================== -->
- <xsl:template match="para">
- <p class="text">
- <xsl:if test="@align"><xsl:copy-of select="@align"/></xsl:if>
- <xsl:call-template name="anchorname"/>
- <xsl:apply-templates/>
- </p>
- </xsl:template>
-
-
- <xsl:template match="list">
- <ul>
- <xsl:if test="@type"><xsl:copy-of select="@type"/></xsl:if>
- <xsl:for-each select="listitem">
- <li><xsl:apply-templates/></li>
- </xsl:for-each>
- </ul>
- </xsl:template>
-
-
- <xsl:template match="list[@mark='number']">
- <ol type="1">
- <xsl:if test="@start"><xsl:copy-of select="@start"/></xsl:if>
- <xsl:for-each select="listitem">
- <li><xsl:apply-templates /></li>
- </xsl:for-each>
- </ol>
- </xsl:template>
-
-
- <xsl:template match="list[@mark='letter']">
- <ol type="a">
- <xsl:if test="@start"><xsl:copy-of select="@start"/></xsl:if>
- <xsl:for-each select="listitem">
- <li><xsl:apply-templates /></li>
- </xsl:for-each>
- </ol>
- </xsl:template>
-
-
- <xsl:template match="list[@mark='simple']">
- <p class="text">
- <xsl:for-each select="listitem">
- <xsl:apply-templates/>
- <xsl:choose>
- <xsl:when test="position()=last()"></xsl:when>
- <xsl:otherwise><br/></xsl:otherwise>
- </xsl:choose>
- </xsl:for-each>
- </p>
- </xsl:template>
- <!-- ====== end of block formatting =============================== -->
-
-
-
- <!-- ============= sensible formatting =============================== -->
- <xsl:template match="keyword">
- <span class="keyword"><xsl:apply-templates/></span>
- <!-- <span style="font-weight:bold; color:#000000;"><xsl:apply-templates/></span> -->
- </xsl:template>
-
- <xsl:template match="url">
- <xsl:apply-templates/>
- </xsl:template>
- <!-- ====== end of sensible formatting =============================== -->
-
-
-
- <!-- ============= inline formatting =============================== -->
- <xsl:template match="span">
- <span class="text">
- <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>
-
-
- <xsl:template match="subscript">
- <sub><span style="font-size:66%;"><xsl:apply-templates/></span></sub>
- </xsl:template>
-
-
- <xsl:template match="superscript">
- <sup><span style="font-size:66%;"><xsl:apply-templates/></span></sup>
- </xsl:template>
-
-
- <!-- italic, bold, underline, monospace -->
- <xsl:template match="emphasis">
- <xsl:choose>
- <xsl:when test="@role='b'">
- <span style="font-weight:bold;"><xsl:apply-templates/></span>
- </xsl:when>
- <xsl:when test="@role='ib'">
- <span style="font-style:italic;font-weight:bold;"><xsl:apply-templates/></span>
- </xsl:when>
- <xsl:when test="@role='bu'">
- <span style="font-weight:bold;text-decoration:underline;"><xsl:apply-templates/></span>
- </xsl:when>
- <xsl:when test="@role='bm'">
- <span style="font-weight:bold;font-family:monospace;"><xsl:apply-templates/></span>
- </xsl:when>
- <xsl:when test="@role='u'">
- <span style="text-decoration:underline;"><xsl:apply-templates/></span>
- </xsl:when>
- <xsl:when test="@role='iu'">
- <span style="font-style:italic;text-decoration:underline;"><xsl:apply-templates/></span>
- </xsl:when>
- <xsl:when test="@role='m'">
- <span style="font-family:monospace;"><xsl:apply-templates/></span>
- </xsl:when>
- <xsl:when test="@role='im'">
- <span style="font-style:italic;font-family:monospace;"><xsl:apply-templates/></span>
- </xsl:when>
- <xsl:otherwise>
- <span style="font-style:italic;"><xsl:apply-templates/></span>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:template>
- <!-- ====== end of inline formatting =============================== -->
-
-
-
- <!-- ============= anchor =============================== -->
- <xsl:template match="a">
- <xsl:call-template name="anchor"/>
- </xsl:template>
-
-
- <xsl:template name="anchor">
- <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="@role">
- <xsl:choose>
- <xsl:when test="@role='quicktasks'">
- <a href="javascript:winOpen('{$base}','{$file}','{@xlink:href}','{@role}','section[1]');">
- <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:apply-templates/>
- </a>
- </xsl:when>
- <xsl:otherwise>
- <a href="javascript:winOpen('{$base}','{$file}','{@xlink:href}','{@role}');">
- <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:apply-templates/>
- </a>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:when>
- <xsl:otherwise>
- <xsl:choose>
- <xsl:when test="@xlink:actuate='new'">
- <a href="{@xlink:href}" target="_blank" class="link"><xsl:apply-templates/></a>
- </xsl:when>
- <xsl:when test="@xlink:actuate='replace'">
- <a href="javascript:gotoPage('{$base}','{$file}','{@xlink:href}');" class="link"><xsl:apply-templates/></a>
- </xsl:when>
- <xsl:otherwise><xsl:apply-templates/></xsl:otherwise>
- </xsl:choose>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:template>
-
-
- <xsl:template name="anchor_attrib">
- <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="@role">
- <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:otherwise>
- <xsl:choose>
- <xsl:when test="@xlink:actuate='new'">
- <xsl:attribute name="href"><xsl:value-of select="@xlink:href"/></xsl:attribute>
- <xsl:attribute name="target">_blank</xsl:attribute>
- </xsl:when>
- <xsl:when test="@xlink:actuate='replace'">
- <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:when>
- <xsl:otherwise></xsl:otherwise>
- </xsl:choose>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:template>
-
-
- <xsl:template name="anchorname">
- <xsl:param name="process_node" select="."/>
- <xsl:choose>
- <xsl:when test="$process_node/@id"><a name="{@id}"></a></xsl:when>
- <xsl:otherwise></xsl:otherwise>
- </xsl:choose>
- </xsl:template>
-
-
- <xsl:template name="parent_anchorname">
- <xsl:choose>
- <xsl:when test="../@id"><a name="{../@id}"></a></xsl:when>
- <xsl:otherwise></xsl:otherwise>
- </xsl:choose>
- </xsl:template>
- <!-- ====== end of anchor =============================== -->
-
-
-
- <!-- ============= html tags =============================== -->
- <xsl:template match="table|thead|tbody|tfoot|tr|th|td|map|br">
- <xsl:call-template name="htmltags"/>
- </xsl:template>
-
- <xsl:template name="htmltags">
- <xsl:copy>
- <xsl:copy-of select="@*"/>
- <xsl:apply-templates/>
- </xsl:copy>
- </xsl:template>
- <!-- ====== end of html tags =============================== -->
-
-
-
- <!-- ============= blob =============================== -->
- <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="anchor_attrib"/>
- </area>
- </xsl:template>
-
-
- <xsl:template match="image">
- <img src="{$courseFilePath}{$filebase}{@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="flash">
- <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://active.macromedia.com/flash2/cabs/swflash.cab#version=4,0,0,0">
- <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="{$courseFilePath}media/content/{@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>
- <embed type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" swliveconnect="true" src="{$courseFilePath}media/content/{@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="@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>
- </embed>
- </object>
- </xsl:template>
-
-
- <xsl:template match="qtmovie">
- <embed type="video/quicktime" pluginspage="http://www.apple.com/quicktime/download/" swliveconnect="true" src="{$courseFilePath}media/content/{@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:copy-of select="@qtnext1"/></xsl:if>
- <xsl:if test="@qtsrc"><xsl:copy-of select="@qtsrc"/></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:stylesheet>