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 xmlhead.xsl for Geo Discovery
-
- 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:attribute-set name="body_attributes">
- <xsl:attribute name="bgcolor">#ffffff</xsl:attribute>
- <xsl:attribute name="text">#00406B</xsl:attribute>
- <xsl:attribute name="leftmargin">20</xsl:attribute>
- <xsl:attribute name="topmargin">0</xsl:attribute>
- <xsl:attribute name="marginwidth">20</xsl:attribute>
- <xsl:attribute name="marginheight">0</xsl:attribute>
- <xsl:attribute name="class">text</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/{$component}/css/style{$courseStyle}.css"/>
- <link rel="STYLESHEET" type="text/css" href="{$courseHttpPath}media/{$component}/css/font{$courseFont}.css"/>
-
- <script language="JavaScript" type="text/javascript"><![CDATA[
- function getPrefix()
- {
- var str = self.location.href;
- return str.substring(0,str.lastIndexOf("<?11?>"));
- }
- var bookmark = <?10000?>;
- function writeBookmark()
- {
- if (top.frames.frameset)
- {
- document.write('<a href="javascript:callBmkList();"><img src="<?11?>?sid=<?1003?>&msg=3&file=media/bookmarks/bmk.gif" border="0"></a>');
- }
- else
- {
- document.write(' ');
- }
- }
- var note = <?11008?>;
- function writeNote()
- {
- if (top.frames.frameset)
- {
- document.write('<a href="javascript:callNoteEditor();"><img src="<?11?>?sid=<?1003?>&msg=3&file=media/notes/note.gif" border="0"></a>');
- }
- else
- {
- document.write(' ');
- }
- }
- function callBmkList()
- {
- top.frames["bridge"].location.replace(getPrefix() + "<?11?>?sid=<?1003?>&msg=4&xml=/cmd/command.xml&xsl=/cmd/command.xsl&name=selector&select=commands/command[@id='bookmarks']");
- }
- function callNoteEditor(in_param)
- {
- top.frames["bridge"].location.replace(getPrefix() + "<?11?>?sid=<?1003?>&msg=4&xml=/cmd/command.xml&xsl=/cmd/command.xsl&name=selector&select=commands/command[@id='noteeditor']");
- }
- ]]></script>
- </head>
-
- <body xsl:use-attribute-sets="body_attributes">
-
- <xsl:apply-templates select="$selector"/>
-
- </body>
- </html>
- </xsl:template>
- <!-- ====== end of root =============================== -->
-
-
- <!-- ============= page =============================== -->
- <xsl:template match="page">
- <xsl:apply-templates select="head"/>
- </xsl:template>
-
- <xsl:template match="head">
-
-
- <table cellspacing="0" cellpadding="0" width="100%" height="1" border="0">
- <tr valign="middle">
- <td nowrap="nowrap"><span class="headtitle"> <script language="JavaScript" type="text/javascript"><![CDATA[if(bookmark){writeBookmark();}if(note){writeNote()};]]></script> </span></td>
- </tr>
- <tr valign="top">
- <td bgcolor="#F15644"><img border="0" alt="" width="1" height="2" src="<?301?>media/graphics/pixel.gif"/></td>
- </tr>
- </table>
-
- </xsl:template>
- <!-- ====== end of page =============================== -->
-
-
- <!-- ============= inline formatting =============================== -->
-
- <!-- 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 -->
-
- <!-- ====== end of inline formatting =============================== -->
-
- <xsl:template match="br">
- <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>
-
-
- <!-- =========================================================================
- Thank you for examining our code.
- Please direct all questions, bug reports, or suggestions for changes
- to the info@maris.com
- ========================================================================== -->
-
- </xsl:stylesheet>