home *** CD-ROM | disk | FTP | other *** search
/ Sybex Virtual Trainer CCNP Switching / Sybex_Virtual_Trainer_CCNP_Switching.iso / ccnp2711 / media / content / xmlbody_in.xsl < prev    next >
Encoding:
Extensible Markup Language  |  2001-03-12  |  50.6 KB  |  1,312 lines

  1. <?xml version="1.0"?>
  2. <!-- Sybex body stylesheet
  3.      Copyright (c) 2000  Maris Multimedia Ltd.  http://www.maris.com/
  4.      Thank you for examining our code. -->
  5.      
  6. <xsl:stylesheet xmlns:xsl="http://www.w3.org/XSL/Transform/1.0" xmlns="http://www.w3.org/TR/REC-html40" result-ns="" indent-result="yes">
  7.  
  8. <!-- main template: begin -->
  9. <xsl:template match="/">
  10. <HTML>
  11. <![CDATA[<!-- Copyright (c) 2000  Maris Multimedia Ltd.  http://www.maris.com/
  12.      Thank you for examining our code. -->]]>
  13. <HEAD>
  14. <TITLE><xsl:value-of select="/CHAPTER/TITLE" /><xsl:value-of select="/APPENDIX/TITLE" /><xsl:value-of select="/EXPLORATIONS/TITLE" /></TITLE>
  15. <LINK HREF="<?103?>&course=<?1008?>&file=media/content/css/style1.css" REL="STYLESHEET" TYPE="text/css" />
  16. <LINK HREF="<?103?>&course=<?1008?>&file=media/content/css/font<?1006?>.css" REL="STYLESHEET" TYPE="text/css" />
  17. <SCRIPT TYPE="text/javascript" LANGUAGE="JavaScript"><![CDATA[
  18. //top.frames["iconbar"].document.applets["IconBar"].enableBackForward();
  19.  
  20. var ns = false;
  21. var ie = false;
  22. var layerRef,embedRef;
  23. if (document.layers)
  24. {
  25.     ns = true;
  26.     layerRef = "document.layers.";
  27.     embedRef = "document.embeds.";
  28. }
  29. if (document.all)
  30. {
  31.      ie = true;
  32.     layerRef = "document.all.";
  33.     styleRef = ".style";
  34. }       
  35.  
  36. function imageObject(imageSrc)
  37. {
  38.     this.imageObjectOut  = new Image();
  39.     this.imageObjectOver = new Image();
  40.     this.imageObjectDown = new Image();
  41.     
  42.     this.imageObjectOut.src  = imageSrc + "out.gif";
  43.     this.imageObjectOver.src = imageSrc + "over.gif";
  44.     this.imageObjectDown.src = imageSrc + "down.gif";
  45. }
  46.  
  47. function imageObjectChange(imageName,imageObj,imageState)
  48. {
  49.     eval("document."+imageName+".src="+imageObj+".imageObject"+imageState+".src;")
  50. }
  51.  
  52. function getBrowser()
  53. {
  54.     with (navigator)
  55.     {
  56.         if(parseInt(appVersion.substring(0, 2))>=4)
  57.         {
  58.             if (appName.indexOf('Microsoft')!=-1 && appVersion.indexOf('Win')!=-1) { return 0; }
  59.             if (appName.indexOf('Netscape')!=-1 && appVersion.indexOf('Win')!=-1) { return 1; }
  60.             if (appName.indexOf('Netscape')!=-1 && appVersion.indexOf('Mac')!=-1) { return 2; }
  61.         }
  62.         else { return 0; }
  63.     }
  64. }
  65. var browser=getBrowser();
  66.  
  67. var times = new Array("×", "×", "<font face='symbol'>¥</font>");
  68. var infin = new Array("<span class='symbol'>¥</span>", "<font face='symbol'>¥</font>", "<IMG SRC='<?103?>&file=media/content/graphics/0/infin<?1006?>.gif' BORDER='0'>");
  69. var ge = new Array("<span class='symbol'>³</span>", "<font face='symbol'>³</font>", "<IMG SRC='<?103?>&file=media/content/graphics/0/ge<?1006?>.gif' BORDER='0'>");
  70. var ap = new Array("<span class='symbol'>»</span>", "<font face='symbol'>»</font>", "<font face='symbol'>ª</font>");
  71. var ne = new Array("<span class='symbol'>¹</span>", "<font face='symbol'>¹</font>", "<IMG SRC='<?103?>&file=media/content/graphics/0/noteq<?1006?>.gif' BORDER='0'>");
  72. var cup  = new Array("<span class='symbol'>È</span>", "<font face='symbol'>È</font>", "<font face='symbol'>»</font>");
  73. var larr  = new Array("<span class='symbol'>¬</span>", "<font face='symbol'>¬</font>", "<font face='symbol'>¨</font>");
  74. var rarr  = new Array("<span class='symbol'>®</span>", "<font face='symbol'>®</font>", "<font face='symbol'>Æ</font>");
  75. var ang  = new Array("<span class='symbol'>Ð</span>", "<font face='symbol'>Ð</font>", "<font face='symbol'>–</font>");
  76.  
  77. function playSound(in_Name)
  78. {
  79.     if (ie)
  80.     {
  81.         if(eval(layerRef + in_Name))
  82.         {
  83.             eval(layerRef + in_Name + ".DoPlayPause();");
  84.         }
  85.     }
  86.     else
  87.     {
  88.         eval(embedRef + in_Name + ".DoPlayPause();");
  89.     }
  90. }
  91.  
  92. function gotoPage(in_Ref)
  93. {
  94.     top.pageid=in_Ref;
  95.     parent.location="<?11?>?sid=<?1003?>&msg=4&xml=/media/content/links.xml&xsl=/media/content/links.xsl&name=selector&select=LS/L[@Q='"+in_Ref+"']";
  96. }
  97.  
  98.  
  99. var soundImage = new imageObject("<?11?>?sid=<?1003?>&msg=3&file=media/content/graphics/styles/sound");
  100. var zoomImage = new imageObject("<?11?>?sid=<?1003?>&msg=3&file=media/content/graphics/styles/zoom");
  101.  
  102. var aNewWindow=null; // variable for new separate window in wich will be loading Flas
  103. var flash_Source,flash_Width,flash_Height;
  104. // load Flash in new separate window
  105. function loadMovie(movieFile,in_Width,in_Height)
  106. {
  107.     var curLoc="<?103?>&file=media/content/zoom.htm";
  108.     var frameHeight=30;
  109.     var movieWidth=screen.width-16;
  110.     var movieHeight=screen.height-60-frameHeight;
  111.     
  112.     if((movieWidth/movieHeight)>(in_Width/in_Height))
  113.     {
  114.         movieWidth=Math.floor((movieHeight/in_Height)*in_Width);
  115.     }
  116.     else
  117.     {
  118.         movieHeight=Math.floor((movieWidth/in_Width)*in_Height);
  119.     }
  120.     
  121.     var movieLeft=(screen.width-16-movieWidth)/2;
  122.     var movieTop=(screen.height-60-frameHeight-movieHeight)/2;
  123.  
  124.     flash_Source=movieFile;
  125.     flash_Width=movieWidth;
  126.     flash_Height=movieHeight;
  127.     
  128.     movieHeight+=frameHeight;
  129.     
  130.     var paramWin="width="+movieWidth+",height="+movieHeight+",left="+movieLeft+",top="+movieTop+",resizable=no,copyhistory=no,directories=no,location=no,menubar=no,scrollbars=no,status=no,toolbar=no";
  131.     // if aNewWindow has already some Flash in itself - close aNewWindow
  132.     if (aNewWindow!=null)
  133.     {
  134.         if (ns)
  135.         {
  136.             if (!aNewWindow.closed)
  137.             {
  138.                 aNewWindow.close();
  139.             }
  140.         }
  141.         else
  142.         {
  143.             aNewWindow.close();
  144.         }
  145.     }
  146.     aNewWindow=null;
  147.     // open aNewWindow and load Flash in it
  148.     aNewWindow=window.open(curLoc,"MovieWindow",paramWin); // load Flash
  149.     
  150.     stopSelfSound("FLASH");
  151. }
  152. function unloadMovie() // when Html is leaving - close aNewWindow if it is not closed
  153. {
  154.     if (aNewWindow!=null)
  155.     {
  156.         if (ns)
  157.         {
  158.             if (!aNewWindow.closed)
  159.             {
  160.                 aNewWindow.close();
  161.             }
  162.         }
  163.         else
  164.         {
  165.             aNewWindow.close();
  166.         }
  167.     }
  168.     aNewWindow=null;
  169. }
  170.  
  171. function stopSelfSound(in_Name)
  172. {
  173.     if (ie)
  174.     {
  175.         if(eval(layerRef + in_Name))
  176.         {
  177.             eval(layerRef + in_Name + '.TCallLabel("/drag","stop");');
  178.         }
  179.     }
  180.     else
  181.     {
  182.         eval(embedRef + in_Name + '.TCallLabel("/drag","stop");');
  183.     }
  184. }
  185.  
  186. function stopSound()
  187. {
  188.     if (aNewWindow!=null)
  189.     {
  190.         if (!aNewWindow.closed)
  191.         {
  192.             if (ie)
  193.             {
  194.                 aNewWindow.frames['zoomf'].window.document.all.FLASH.TCallLabel("/drag","stop");
  195.             }
  196.             else
  197.             {
  198.                 aNewWindow.frames['zoomf'].window.document.embeds.FLASH.TCallLabel("/drag","stop");
  199.             }
  200.         }
  201.     }
  202. }
  203. ]]></SCRIPT>
  204. </HEAD>
  205. <BODY LEFTMARGIN="7" TOPMARGIN="7" MARGINWIDTH="7" MARGINHEIGHT="7" BGCOLOR="#FFFFFF" onUnload="javascript:unloadMovie();" onresize="javascript:if(navigator.appName.indexOf('Netscape')!=-1)self.location.reload();">
  206. <xsl:apply-templates select="CHAPTER" name="selector" />
  207. </BODY>
  208. </HTML>
  209. </xsl:template>
  210. <!-- main template: end -->
  211.  
  212.  
  213. <!-- chapter intro: begin -->
  214. <xsl:template match="CHAPTER | APPENDIX">
  215.     <xsl:apply-templates select="TITLE" />
  216.     <xsl:apply-templates select="CHAPTEROBJECTIVEBLOCK" />
  217.     <xsl:apply-templates select="PARA | LIST | RUNINBLOCK | PARACONTINUED | SLUG | NOTE | CODESNIPPET | TABULARDATA | TESTDATA | TABLE | TABLEB | WARNING | TIP | SIDEBARBLOCK | MSEXAMOBJECTIVE | QUOTE | COMMENT" />
  218. </xsl:template>
  219.  
  220. <xsl:template match="CHAPTER/TITLE | APPENDIX/TITLE">
  221. <P><TABLE CELLPADDING="0" CELLSPACING="0" BORDER="0">
  222. <TR>
  223. <xsl:apply-templates select="../AUDIO" />
  224.     <TD VALIGN="top"> </TD>
  225.     <TD VALIGN="top"><H1 CLASS="chapterTitle"><A NAME="{../@ID}"></A><xsl:apply-templates /></H1></TD>
  226. </TR>
  227. </TABLE>
  228. <TABLE CELLPADDING="0" CELLSPACING="0" WIDTH="96%" HEIGHT="2" BORDER="0" BGCOLOR="#000000">
  229. <TR WIDTH="100%" HEIGHT="1" BGCOLOR="#000000">
  230.     <TD WIDTH="100%" HEIGHT="1" BGCOLOR="#000000"><IMG SRC="<?303 media/content/graphics/styles/pixel.gif?>" WIDTH="1" HEIGHT="2" BORDER="0" /></TD>
  231. </TR></TABLE></P>
  232. </xsl:template>
  233.  
  234. <xsl:template match="CHAPTER/CHAPTEROBJECTIVEBLOCK | APPENDIX/CHAPTEROBJECTIVEBLOCK">
  235. <xsl:apply-templates select="CHAPTEROBJECTIVETITLE" />
  236. <TABLE CELLPADDING="0" CELLSPACING="0" BORDER="0">
  237. <xsl:apply-templates select="CHAPTEROBJECTIVE | CHAPTEROBJECTIVEBOLD | CHAPTERSUBOBJECTIVE" />
  238. </TABLE>
  239. </xsl:template>
  240.  
  241. <xsl:template match="CHAPTEROBJECTIVETITLE">
  242. <H2 CLASS="chapterOBTitle"><xsl:apply-templates /></H2>
  243. </xsl:template>
  244.  
  245. <xsl:template match="CHAPTEROBJECTIVE">
  246. <TR>
  247.     <TD CLASS="text" VALIGN="top"><IMG SRC="<?303 media/content/graphics/styles/check.gif?>" WIDTH="13" HEIGHT="17" BORDER="0" /></TD>
  248.     <TD CLASS="text" VALIGN="top"><B><xsl:apply-templates /></B></TD>
  249. </TR>
  250. </xsl:template>
  251.  
  252. <xsl:template match="CHAPTEROBJECTIVEBOLD">
  253. <TR>
  254.     <TD CLASS="text" VALIGN="top"><IMG SRC="<?303 media/content/graphics/styles/pixel.gif?>" WIDTH="13" HEIGHT="17" BORDER="0" /></TD>
  255.     <TD CLASS="text" VALIGN="top"><IMG SRC="<?303 media/content/graphics/styles/pixel.gif?>" WIDTH="26" HEIGHT="17" BORDER="0" /><B><xsl:apply-templates /></B></TD>
  256. </TR>
  257. </xsl:template>
  258.  
  259. <xsl:template match="CHAPTERSUBOBJECTIVE">
  260. <TR>
  261.     <TD CLASS="text" VALIGN="top"><IMG SRC="<?303 media/content/graphics/styles/pixel.gif?>" WIDTH="13" HEIGHT="17" BORDER="0" /></TD>
  262.     <TD CLASS="text" VALIGN="top">
  263.         <UL CLASS="text" TYPE="square">
  264.             <LI CLASS="text"><xsl:apply-templates /></LI>
  265.         </UL>
  266.     </TD>
  267. </TR>
  268. </xsl:template>
  269.  
  270. <xsl:template match="CHAPTERSUBSUBOBJECTIVE">
  271.     <UL CLASS="text" TYPE="square"><BR/>
  272.         <LI CLASS="text"><xsl:apply-templates /></LI>
  273.     </UL>
  274. </xsl:template>
  275.  
  276. <xsl:template match="CHAPTERSUBOBJECTIVE/CHAPTEROBJECTIVEBOLD">
  277.     <BR/><NBSP/><NBSP/><NBSP/><NBSP/><B CLASS="text"><xsl:apply-templates /></B>
  278. </xsl:template>
  279. <!-- chapter intro: end -->
  280.  
  281.  
  282. <!-- section: begin -->
  283. <xsl:template match="CHAPTER/SECTION | CHAPTER/TESTSECTION | APPENDIX/SECTION | APPENDIX/TESTSECTION | CHAPTER/SECTION[@CASESTUDY]">
  284.     <xsl:apply-templates select="TITLE" />
  285.     <xsl:apply-templates select="PARA | LIST | RUNINBLOCK | PARACONTINUED | SLUG | NOTE | CODESNIPPET | TABULARDATA | TESTDATA | TABLE | TABLEB | WARNING | TIP | SIDEBARBLOCK | MSEXAMOBJECTIVE | QUOTE | COMMENT | EXERCISEBLOCK" />
  286. </xsl:template>
  287.  
  288.  
  289. <xsl:template match="CHAPTER/SECTION/SECTION | CHAPTER/TESTSECTION/TESTSECTION | APPENDIX/SECTION/SECTION | INTRODUCTION/SECTION | INTRODUCTION/ACKNOWLEDGMENTS | CHAPTER/SECTION/TESTSECTION | CHAPTER/SECTION[@CASESTUDY]/SECTION">
  290. <xsl:if test="@POS != null">
  291.     <xsl:apply-templates select="../TITLE" />
  292.     <xsl:apply-templates select="../PARA | ../LIST | ../RUNINBLOCK | ../PARACONTINUED | ../SLUG | ../NOTE | ../CODESNIPPET | ../TABULARDATA | ../TESTDATA | ../TABLE | ../TABLEB | ../WARNING | ../TIP | ../SIDEBARBLOCK | ../MSEXAMOBJECTIVE | ../QUOTE | ../COMMENT" />
  293. </xsl:if>
  294.     <xsl:apply-templates select="TITLE" />
  295.     <xsl:apply-templates select="SECTION | PARA | LIST | RUNINBLOCK | PARACONTINUED | SLUG | NOTE | CODESNIPPET | TABULARDATA | TESTDATA | TABLE | TABLEB | WARNING | TIP | SIDEBARBLOCK | MSEXAMOBJECTIVE | QUOTE | COMMENT | EXERCISEBLOCK" />
  296. </xsl:template>
  297.  
  298.  
  299. <xsl:template match="SECTION | TESTSECTION">
  300.     <xsl:apply-templates select="TITLE" />
  301.     <xsl:apply-templates select="SECTION | PARA | LIST | RUNINBLOCK | PARACONTINUED | SLUG | NOTE | CODESNIPPET | TABULARDATA | TESTDATA | TABLE | TABLEB | WARNING | TIP | SIDEBARBLOCK | MSEXAMOBJECTIVE | QUOTE | COMMENT | EXERCISEBLOCK" />
  302. </xsl:template>
  303.  
  304.  
  305. <!-- exception -->
  306. <xsl:template match="CHAPTER/SECTION/SECTION[@EXCEPTION='1']">
  307. <xsl:if test="@POS != null">
  308.     <xsl:apply-templates select="../TITLE" />
  309.     <xsl:apply-templates select="../PARA | ../LIST | ../RUNINBLOCK | ../PARACONTINUED | ../SLUG | ../NOTE | ../CODESNIPPET | ../TABULARDATA | ../TESTDATA | ../TABLE | ../TABLE | ../WARNING | ../TIP  | ../SIDEBARBLOCK | ../MSEXAMOBJECTIVE | ../QUOTE | ../COMMENT" />
  310. </xsl:if>
  311.     <xsl:apply-templates select="TITLE" />
  312.     <xsl:apply-templates select="PARA | LIST | RUNINBLOCK | PARACONTINUED | SLUG | NOTE | CODESNIPPET | TABULARDATA | TESTDATA | TABLE | TABLEB | WARNING | TIP | SIDEBARBLOCK | MSEXAMOBJECTIVE | QUOTE | COMMENT" />
  313. </xsl:template>
  314. <!-- section: end -->
  315.  
  316.  
  317. <!-- section title: begin -->
  318. <xsl:template match="CHAPTER/SECTION/TITLE | CHAPTER/TESTSECTION/TITLE | APPENDIX/SECTION/TITLE | APPENDIX/TESTSECTION/TITLE | INTRODUCTION/SECTION/TITLE | INTRODUCTION/ACKNOWLEDGMENTS/TITLE">
  319. <H3 CLASS="sec1Title"><A NAME="{../@ID}"></A><xsl:apply-templates /></H3>
  320. </xsl:template>
  321.  
  322. <xsl:template match="CHAPTER/SECTION/SECTION/TITLE | CHAPTER/TESTSECTION/TESTSECTION/TITLE | APPENDIX/SECTION/SECTION/TITLE | APPENDIX/TESTSECTION/TESTSECTION/TITLE | INTRODUCTION/SECTION/SECTION/TITLE | CHAPTER/SECTION/TESTSECTION/TITLE">
  323. <H3 CLASS="sec2Title"><A NAME="{../@ID}"></A><xsl:apply-templates /></H3>
  324. </xsl:template>
  325.  
  326. <xsl:template match="CHAPTER/SECTION/SECTION/SECTION/TITLE | APPENDIX/SECTION/SECTION/SECTION/TITLE | INTRODUCTION/SECTION/SECTION/SECTION/TITLE">
  327. <H3 CLASS="sec3Title"><A NAME="{../@ID}"></A><xsl:apply-templates /></H3>
  328. </xsl:template>
  329.  
  330. <xsl:template match="CHAPTER/SECTION/SECTION/SECTION/SECTION/TITLE | APPENDIX/SECTION/SECTION/SECTION/SECTION/TITLE | CHAPTER/SECTION/SECTION/SECTION/SECTION/SECTION/TITLE | CHAPTER/SECTION/SECTION/SECTION/SECTION/SECTION/SECTION/TITLE | INTRODUCTION/SECTION/SECTION/SECTION/SECTION/TITLE">
  331. <H3 CLASS="sec4Title"><A NAME="{../@ID}"></A><xsl:apply-templates /></H3>
  332. </xsl:template>
  333. <!-- section title: end -->
  334.  
  335.  
  336. <!-- EXPLORATIONS and EXPLORATION: begin -->
  337. <xsl:template match="EXPLORATIONS">
  338.     <xsl:apply-templates select="EXPLORATION" />
  339. </xsl:template>
  340.  
  341. <xsl:template match="EXPLORATION">
  342.     <xsl:apply-templates select="TITLE" />
  343.     <xsl:apply-templates select="PARA | LIST | APPLET" />
  344. </xsl:template>
  345.  
  346. <xsl:template match="EXPLORATIONS/EXPLORATION/TITLE">
  347. <H3 CLASS="sec1Title"><xsl:apply-templates /></H3>
  348. </xsl:template>
  349. <!-- EXPLORATIONS and EXPLORATION: end -->
  350.  
  351.  
  352. <!-- Applet: begin -->
  353. <xsl:template match="APPLET">
  354. <APPLET NAME="{@CODE}" CODE="{@CODE}.class" ARCHIVE="<?11?>?sid=<?1003?>&msg=3&file=applets/{@ARCHIVE}" WIDTH="{@WIDTH}" HEIGHT="{@HEIGHT}">
  355. <xsl:if test="@BORDER != null"><xsl:attribute name="BORDER"><xsl:value-of select="@BORDER" /></xsl:attribute></xsl:if>
  356. <xsl:for-each select="PARAM">
  357.     <PARAM NAME="{@NAME}" VALUE="{@VALUE}" />
  358. </xsl:for-each>
  359.     <PARAM NAME="mediabase" VALUE="<?11?>?sid=<?1003?>&msg=3&file=applets/" />
  360. </APPLET>
  361. </xsl:template>
  362. <!-- Applet: end -->
  363.  
  364.  
  365. <!-- msexamobjective: begin -->
  366. <xsl:template match="MSEXAMOBJECTIVE">
  367. <P><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" WIDTH="100%"><TR><TD BGCOLOR="#000000"><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="1">
  368.  
  369. <TR BGCOLOR="#FFFFFF">
  370.     <TD VALIGN="top" WIDTH="91"><IMG SRC="<?303 media/content/graphics/styles/meo.gif?>" WIDTH="91" HEIGHT="51" BORDER="0" /></TD>
  371.     <TD CLASS="text" VALIGN="top" WIDTH="100%"><xsl:apply-templates select="OBJECTIVEROW" /></TD>
  372. </TR>
  373.  
  374. </TABLE></TD></TR></TABLE></P>
  375. </xsl:template>
  376.  
  377. <xsl:template match="OBJECTIVEROW">
  378. <TABLE CELLPADDING="7" CELLSPACING="0" BORDER="0">
  379.     <xsl:apply-templates select="OBJECTIVE" />
  380. </TABLE>
  381. </xsl:template>
  382.  
  383. <xsl:template match="OBJECTIVEROW/OBJECTIVE">
  384. <TR>
  385.     <TD CLASS="text" VALIGN="top"><B><xsl:apply-templates /></B></TD>
  386. </TR>
  387. </xsl:template>
  388.  
  389. <xsl:template match="OBJECTIVEROW/OBJECTIVE[@HIERARCHY='subordinate']">
  390. <TR>
  391.     <TD CLASS="text" VALIGN="top">
  392.         <UL CLASS="text" TYPE="square">
  393.             <LI CLASS="text"><xsl:apply-templates /></LI>
  394.         </UL>
  395.     </TD>
  396. </TR>
  397. </xsl:template>
  398. <!-- msexamobjective: end -->
  399.  
  400. <!-- runinblock: begin -->
  401. <xsl:template match="RUNINBLOCK | SIDEBARRUNINBLOCK">
  402. <BLOCKQUOTE CLASS="text"><xsl:apply-templates select="RUNINHEAD | SIDEBARRUNINHEAD | RUNINPARA | SIDEBARRUNINPARA | NOTE | LIST | RUNINBLOCK | TABULARDATA | PARA" /></BLOCKQUOTE>
  403. </xsl:template>
  404.  
  405. <xsl:template match="RUNINHEAD | SIDEBARRUNINHEAD">
  406. <B><xsl:apply-templates />     </B>
  407. </xsl:template>
  408.  
  409. <xsl:template match="RUNINPARA | SIDEBARRUNINPARA">
  410. <xsl:apply-templates /><BR/><BR/>
  411. </xsl:template>
  412.  
  413. <!-- <xsl:template match="RUNINBLOCK">
  414. <xsl:for-each select="RUNINPARA">
  415.     <xsl:if test="position()=1"><BLOCKQUOTE CLASS="text"><B><xsl:apply-templates select="../RUNINHEAD" /></B>      <xsl:apply-templates /></BLOCKQUOTE></xsl:if>
  416.     <xsl:if test="position()=2"><BLOCKQUOTE CLASS="text"><xsl:apply-templates /></BLOCKQUOTE></xsl:if>
  417.     <xsl:if test="position()=3"><BLOCKQUOTE CLASS="text"><xsl:apply-templates /></BLOCKQUOTE></xsl:if>
  418. </xsl:for-each>
  419. <xsl:apply-templates select="NOTE | LIST | RUNINBLOCK | TABULARDATA | PARA" />
  420. </xsl:template>
  421.  
  422. <xsl:template match="RUNINBLOCK/LIST | RUNINBLOCK/RUNINBLOCK | RUNINBLOCK/PARA | RUNINBLOCK/TABULARDATA">
  423. <BLOCKQUOTE CLASS="text"><xsl:apply-templates /></BLOCKQUOTE>
  424. </xsl:template> -->
  425. <!-- runinblock: end -->
  426.  
  427.  
  428. <!-- list: begin -->
  429. <xsl:template match="LIST | LIST[@MARK='bullet']">
  430. <UL CLASS="text" TYPE="square">
  431. <xsl:for-each select="LISTITEM | QUESTION | SIDEBARLISTBULLETED">
  432.     <LI CLASS="text"><xsl:apply-templates /></LI>
  433. </xsl:for-each>
  434. </UL>
  435. </xsl:template>
  436.  
  437. <xsl:template match="LIST[@MARK='none']">
  438. <UL CLASS="none">
  439. <xsl:for-each select="LISTITEM">
  440.     <LI CLASS="text"><xsl:apply-templates /></LI>
  441. </xsl:for-each>
  442. </UL>
  443. </xsl:template>
  444.  
  445. <xsl:template match="LIST[@MARK='number']">
  446. <OL CLASS="text" TYPE="1">
  447. <xsl:if test="@START != null"><xsl:attribute name="START"><xsl:value-of select="@START" /></xsl:attribute></xsl:if>
  448. <xsl:for-each select="LISTITEM | SIDEBARLISTNUMBERED">
  449.     <LI CLASS="text"><xsl:apply-templates /></LI>
  450. </xsl:for-each>
  451. </OL>
  452. </xsl:template>
  453.  
  454. <xsl:template match="LIST[@MARK='alpha']">
  455. <OL CLASS="text" TYPE="A">
  456. <xsl:if test="@START != null"><xsl:attribute name="START"><xsl:value-of select="@START" /></xsl:attribute></xsl:if>
  457. <xsl:for-each select="LISTITEM | OPTION">
  458.     <LI CLASS="text"><xsl:apply-templates /></LI>
  459. </xsl:for-each>
  460. </OL>
  461. </xsl:template>
  462. <!-- list: end -->
  463.  
  464.  
  465. <!-- testdata: begin -->
  466. <xsl:template match="TESTDATA">
  467. <OL CLASS="text" TYPE="1">
  468. <xsl:for-each select="TESTBLOCK">
  469.     <LI CLASS="text"><xsl:apply-templates select="QUESTIONBLOCK/QUESTION | QUESTIONBLOCK/LIST | ANSWERBLOCK/ANSWER" /></LI>
  470. </xsl:for-each>
  471. </OL>
  472. <xsl:apply-templates select="TESTDATA/TESTBLOCK/QUESTIONBLOCK/LIST[@MARK='alpha']" />
  473. </xsl:template>
  474. <!-- testdata: end -->
  475.  
  476.  
  477. <!-- image (Jpeg and Gif): begin -->
  478. <xsl:template match="IMAGE | image">
  479. <IMG SRC="<?303 media?>/content/{@SRC}">
  480.  
  481. <xsl:if test="@BORDER != null"><xsl:attribute name="BORDER"><xsl:value-of select="@BORDER" /></xsl:attribute></xsl:if>
  482. <xsl:if test="@WIDTH != null"><xsl:attribute name="WIDTH"><xsl:value-of select="@WIDTH" /></xsl:attribute></xsl:if>
  483. <xsl:if test="@HEIGHT != null"><xsl:attribute name="HEIGHT"><xsl:value-of select="@HEIGHT" /></xsl:attribute></xsl:if>
  484. <xsl:if test="@ALIGN != null"><xsl:attribute name="ALIGN"><xsl:value-of select="@ALIGN" /></xsl:attribute></xsl:if>
  485. <xsl:if test="@VSPACE != null"><xsl:attribute name="VSPACE"><xsl:value-of select="@VSPACE" /></xsl:attribute></xsl:if>
  486. <xsl:if test="@HSPACE != null"><xsl:attribute name="HSPACE"><xsl:value-of select="@HSPACE" /></xsl:attribute></xsl:if>
  487.  
  488. </IMG>
  489. </xsl:template>
  490. <!-- image (Jpeg and Gif): end -->
  491.  
  492.  
  493. <!-- math (Gif only): begin -->
  494. <xsl:template match="MATH | math">
  495. <!-- <IMG SRC="<?303 media/content/?>{@SRC}.gif" BORDER="0"> -->
  496. <IMG SRC="<?103?>&course=<?1008?>&file=media/content/{@SRC}.gif">
  497.  
  498. <xsl:if test="@WIDTH != null"><xsl:attribute name="WIDTH"><xsl:value-of select="@WIDTH" /></xsl:attribute></xsl:if>
  499. <xsl:if test="@HEIGHT != null"><xsl:attribute name="HEIGHT"><xsl:value-of select="@HEIGHT" /></xsl:attribute></xsl:if>
  500. <xsl:if test="@ALIGN != null"><xsl:attribute name="ALIGN"><xsl:value-of select="@ALIGN" /></xsl:attribute></xsl:if>
  501.  
  502. </IMG>
  503. </xsl:template>
  504. <!-- math (Gif only): end -->
  505.  
  506. <!-- sybexsymbol: begin -->
  507. <xsl:template match="SYBEXSYMBOL">
  508. <span class="symbol"><xsl:apply-templates /></span>
  509. </xsl:template>
  510. <!-- sybexsymbol: end -->
  511.  
  512. <!-- ******     SPECIAL SYMBOLS     ***** -->
  513.  
  514. <!-- times sign -->
  515. <xsl:template match="TIMES">
  516. <script type="text/javascript" language="JavaScript"><![CDATA[document.write(times[browser]);]]></script>
  517. </xsl:template>
  518.  
  519. <!-- divide sign -->
  520. <xsl:template match="DIVIDE">
  521. <xsl:text>÷</xsl:text>
  522. </xsl:template>
  523.  
  524. <!-- difference sign -->
  525. <xsl:template match="MINUS">
  526. <xsl:text>–</xsl:text>
  527. </xsl:template>
  528.  
  529. <!-- non-break space sign -->
  530. <xsl:template match="NBSP">
  531. <xsl:text> </xsl:text>
  532. </xsl:template>
  533.  
  534. <!-- infinity sign -->
  535. <xsl:template match="INFIN">
  536. <script type="text/javascript" language="JavaScript"><![CDATA[document.write(infin[browser]);]]></script>
  537. </xsl:template>
  538.  
  539. <!-- union sign -->
  540. <xsl:template match="CUP">
  541. <script type="text/javascript" language="JavaScript"><![CDATA[document.write(cup[browser]);]]></script>
  542. </xsl:template>
  543.  
  544. <!-- infinity sign -->
  545. <xsl:template match="ANG">
  546. <script type="text/javascript" language="JavaScript"><![CDATA[document.write(ang[browser]);]]></script>
  547. </xsl:template>
  548.  
  549. <!-- plus-minus sign -->
  550. <xsl:template match="PLUSMN">
  551. <span class="symbol">±</span>
  552. </xsl:template>
  553.  
  554. <!-- less-than or equal sign -->
  555. <xsl:template match="LE">
  556. <span class="symbol">£</span>
  557. </xsl:template>
  558.  
  559. <!-- greater-than or equal sign -->
  560. <xsl:template match="GE">
  561. <script type="text/javascript" language="JavaScript"><![CDATA[document.write(ge[browser]);]]></script>
  562. </xsl:template>
  563.  
  564. <!-- less sign -->
  565. <xsl:template match="LT">
  566. <span class="symbol"><</span>
  567. </xsl:template>
  568.  
  569. <!-- more sign -->
  570. <xsl:template match="GT">
  571. <span class="symbol">></span>
  572. </xsl:template>
  573.  
  574. <!-- left arrow sign -->
  575. <xsl:template match="LARR">
  576. <script type="text/javascript" language="JavaScript"><![CDATA[document.write(larr[browser]);]]></script>
  577. </xsl:template>
  578.  
  579. <!-- right arrow sign -->
  580. <xsl:template match="RARR">
  581. <script type="text/javascript" language="JavaScript"><![CDATA[document.write(rarr[browser]);]]></script>
  582. </xsl:template>
  583.  
  584. <!-- tab sign -->
  585. <xsl:template match="TAB">
  586. <xsl:text>    </xsl:text>
  587. </xsl:template>
  588.  
  589. <!-- nearly equal sign -->
  590. <xsl:template match="AP">
  591. <script type="text/javascript" language="JavaScript"><![CDATA[document.write(ap[browser]);]]></script>
  592. </xsl:template>
  593.  
  594. <!-- degree sign -->
  595. <xsl:template match="DGR">
  596. <xsl:text>°</xsl:text>
  597. </xsl:template>
  598.  
  599. <!-- check mark sign -->
  600. <xsl:template match="CHECK">
  601. <IMG SRC="<?303 media/content/?>graphics/0/check<?1006?>.gif" BORDER="0" ALIGN="ABSMIDDLE" />
  602. </xsl:template>
  603.  
  604. <!-- right-pointing angle arrow sign -->
  605. <xsl:template match="ARR">
  606. <IMG SRC="<?303 media/content/?>graphics/0/arr<?1006?>.gif" BORDER="0" ALIGN="ABSMIDDLE" />
  607. </xsl:template>
  608.  
  609. <!-- ************************************************* -->
  610.  
  611.  
  612. <!-- link to xml: begin -->
  613. <xsl:template match="L">
  614. <A HREF="javascript:gotoPage('{@REF}');"><xsl:apply-templates /></A>
  615. </xsl:template>
  616. <!-- link to xml: end -->
  617.  
  618.  
  619. <!-- tabulardata: begin -->
  620. <xsl:template match="TABULARDATA | QUOTE">
  621. <BLOCKQUOTE CLASS="text">
  622.     <xsl:apply-templates />
  623. </BLOCKQUOTE>
  624. </xsl:template>
  625. <!-- tabulardata: end -->
  626.  
  627.  
  628. <!-- tabularbody: begin -->
  629. <xsl:template match="TABULARBODY">
  630. <TABLE BORDER="0" CELLPADDING="6" CELLSPACING="0">
  631.  
  632. <xsl:if test="@WIDTH != null"><xsl:attribute name="WIDTH"><xsl:value-of select="@WIDTH" /></xsl:attribute></xsl:if>
  633. <xsl:if test="@HEIGHT != null"><xsl:attribute name="HEIGHT"><xsl:value-of select="@HEIGHT" /></xsl:attribute></xsl:if>
  634. <xsl:if test="@ALIGN != null"><xsl:attribute name="ALIGN"><xsl:value-of select="@ALIGN" /></xsl:attribute></xsl:if>
  635.  
  636. <xsl:for-each select="TABULARROW">
  637. <TR>
  638.     <xsl:if test="@BGCOLOR != null"><xsl:attribute name="BGCOLOR"><xsl:value-of select="@BGCOLOR" /></xsl:attribute></xsl:if>
  639.     <xsl:for-each select="TABULARENTRY">
  640.     <TD CLASS="text" VALIGN="top">
  641.  
  642. <xsl:if test="@WIDTH != null"><xsl:attribute name="WIDTH"><xsl:value-of select="@WIDTH" /></xsl:attribute></xsl:if>
  643. <xsl:if test="@HEIGHT != null"><xsl:attribute name="HEIGHT"><xsl:value-of select="@HEIGHT" /></xsl:attribute></xsl:if>
  644. <xsl:if test="@ALIGN != null"><xsl:attribute name="ALIGN"><xsl:value-of select="@ALIGN" /></xsl:attribute></xsl:if>
  645. <!-- <xsl:if test="@VALIGN != null"><xsl:attribute name="VALIGN"><xsl:value-of select="@VALIGN" /></xsl:attribute></xsl:if> -->
  646. <xsl:if test="@COLSPAN != null"><xsl:attribute name="COLSPAN"><xsl:value-of select="@COLSPAN" /></xsl:attribute></xsl:if>
  647. <xsl:if test="@ROWSPAN != null"><xsl:attribute name="ROWSPAN"><xsl:value-of select="@ROWSPAN" /></xsl:attribute></xsl:if>
  648.  
  649. <xsl:if test="@REF != null"><A HREF="javascript:gotoPage('{@REF}');"><xsl:apply-templates /></A></xsl:if>
  650. <xsl:if test="@REF = null"><xsl:apply-templates /></xsl:if>
  651.     
  652.     </TD>
  653.  
  654.     </xsl:for-each>
  655. </TR>
  656. </xsl:for-each>
  657.  
  658. </TABLE>
  659. </xsl:template>
  660. <!-- tabularbody: begin -->
  661.  
  662.  
  663. <!-- table: begin -->
  664. <xsl:template match="TABLE">
  665. <P CLASS="text"><B>TABLE <xsl:value-of select="@NUM" /></B>    <xsl:apply-templates select="TABLETITLE" /></P>
  666. <BLOCKQUOTE CLASS="text">
  667. <TABLE BORDER="0" CELLPADDING="4" CELLSPACING="0" WIDTH="90%">
  668.  
  669. <TR><TD COLSPAN="{@TABLEENTRYNUM}" WIDTH="100%">
  670. <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" WIDTH="100%"><TR><TD WIDTH="100%" HEIGHT="2" BGCOLOR="#000000"><IMG SRC="<?303 media/content/graphics/styles/pixel.gif?>" WIDTH="1" HEIGHT="2" BORDER="0" /></TD></TR></TABLE>
  671. </TD></TR>
  672.  
  673. <xsl:apply-templates select="TABLEHEAD" />
  674.  
  675. <TR><TD COLSPAN="{@TABLEENTRYNUM}" WIDTH="100%">
  676. <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" WIDTH="100%"><TR><TD WIDTH="100%" HEIGHT="1" BGCOLOR="#000000"><IMG SRC="<?303 media/content/graphics/styles/pixel.gif?>" WIDTH="1" HEIGHT="1" BORDER="0" /></TD></TR></TABLE>
  677. </TD></TR>
  678.  
  679. <xsl:apply-templates select="TABLEBODY" />
  680.  
  681. <TR><TD COLSPAN="{@TABLEENTRYNUM}" WIDTH="100%">
  682. <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" WIDTH="100%"><TR><TD WIDTH="100%" HEIGHT="2" BGCOLOR="#000000"><IMG SRC="<?303 media/content/graphics/styles/pixel.gif?>" WIDTH="1" HEIGHT="2" BORDER="0" /></TD></TR></TABLE>
  683. </TD></TR>
  684.  
  685. </TABLE>
  686. </BLOCKQUOTE>
  687. </xsl:template>
  688.  
  689. <xsl:template match="TABLEHEAD">
  690. <TR>
  691.     <xsl:for-each select="TABLEROW/TABLEENTRY">
  692.     <TD CLASS="text">
  693.     <xsl:if test="@WIDTH != null"><xsl:attribute name="WIDTH"><xsl:value-of select="@WIDTH" /></xsl:attribute></xsl:if>
  694.     <xsl:if test="@COLSPAN != null"><xsl:attribute name="COLSPAN"><xsl:value-of select="@COLSPAN" /></xsl:attribute></xsl:if>
  695. <xsl:if test="@ROWSPAN != null"><xsl:attribute name="ROWSPAN"><xsl:value-of select="@ROWSPAN" /></xsl:attribute></xsl:if>
  696.         <NOBR><B><xsl:apply-templates /></B></NOBR>
  697.     </TD>
  698.     </xsl:for-each>
  699. </TR>
  700. </xsl:template>
  701.  
  702. <xsl:template match="TABLEBODY">
  703. <xsl:for-each select="TABLEROW">
  704. <TR>
  705.     <xsl:for-each select="TABLEENTRY">
  706.     <TD CLASS="text" VALIGN="top">
  707.     <xsl:if test="@ALIGN != null"><xsl:attribute name="ALIGN"><xsl:value-of select="@ALIGN" /></xsl:attribute></xsl:if>
  708.     <xsl:if test="@VALIGN != null"><xsl:attribute name="VALIGN"><xsl:value-of select="@VALIGN" /></xsl:attribute></xsl:if>
  709.     <xsl:if test="@WIDTH != null"><xsl:attribute name="WIDTH"><xsl:value-of select="@WIDTH" /></xsl:attribute></xsl:if>
  710.     <xsl:if test="@COLSPAN != null"><xsl:attribute name="COLSPAN"><xsl:value-of select="@COLSPAN" /></xsl:attribute></xsl:if>
  711. <xsl:if test="@ROWSPAN != null"><xsl:attribute name="ROWSPAN"><xsl:value-of select="@ROWSPAN" /></xsl:attribute></xsl:if>
  712.     <xsl:apply-templates />
  713.     </TD>
  714.     </xsl:for-each>
  715. </TR>
  716. </xsl:for-each>
  717. </xsl:template>
  718. <!-- table: end -->
  719.  
  720. <!-- table[border='0']: begin -->
  721. <xsl:template match="TABLE[@MODE='nobord']">
  722.  
  723. <TABLE BORDER="0" CELLPADDING="4" CELLSPACING="0" WIDTH="80%">
  724. <xsl:apply-templates select="HEAD" />
  725. <xsl:apply-templates select="BODY" />
  726. </TABLE>
  727.  
  728. </xsl:template>
  729.  
  730. <xsl:template match="HEAD">
  731. <xsl:for-each select="ROW">
  732. <TR>
  733.     <xsl:for-each select="CELL">
  734.     <TD CLASS="text" VALIGN="top">
  735.     <xsl:if test="@ALIGN != null"><xsl:attribute name="ALIGN"><xsl:value-of select="@ALIGN" /></xsl:attribute></xsl:if>
  736.     <xsl:if test="@VALIGN != null"><xsl:attribute name="VALIGN"><xsl:value-of select="@VALIGN" /></xsl:attribute></xsl:if>
  737.     <xsl:if test="@WIDTH != null"><xsl:attribute name="WIDTH"><xsl:value-of select="@WIDTH" /></xsl:attribute></xsl:if>
  738.     <xsl:if test="@COLSPAN != null"><xsl:attribute name="COLSPAN"><xsl:value-of select="@COLSPAN" /></xsl:attribute></xsl:if>
  739. <xsl:if test="@ROWSPAN != null"><xsl:attribute name="ROWSPAN"><xsl:value-of select="@ROWSPAN" /></xsl:attribute></xsl:if>
  740.     <NOBR><UL CLASS="text" TYPE="square"><LI CLASS="text"><xsl:apply-templates /></LI></UL></NOBR>
  741.     </TD>
  742.     </xsl:for-each>
  743. </TR>
  744. </xsl:for-each>
  745. </xsl:template>
  746.  
  747. <xsl:template match="BODY">
  748. <xsl:for-each select="ROW">
  749. <TR>
  750.     <xsl:for-each select="CELL">
  751.     <TD CLASS="text" VALIGN="top">
  752.     <xsl:if test="@ALIGN != null"><xsl:attribute name="ALIGN"><xsl:value-of select="@ALIGN" /></xsl:attribute></xsl:if>
  753.     <xsl:if test="@VALIGN != null"><xsl:attribute name="VALIGN"><xsl:value-of select="@VALIGN" /></xsl:attribute></xsl:if>
  754.     <xsl:if test="@WIDTH != null"><xsl:attribute name="WIDTH"><xsl:value-of select="@WIDTH" /></xsl:attribute></xsl:if>
  755.     <xsl:if test="@COLSPAN != null"><xsl:attribute name="COLSPAN"><xsl:value-of select="@COLSPAN" /></xsl:attribute></xsl:if>
  756. <xsl:if test="@ROWSPAN != null"><xsl:attribute name="ROWSPAN"><xsl:value-of select="@ROWSPAN" /></xsl:attribute></xsl:if>
  757.     <NOBR><UL CLASS="text" TYPE="square"><LI CLASS="text"><xsl:apply-templates /></LI></UL></NOBR>
  758.     </TD>
  759.     </xsl:for-each>
  760. </TR>
  761. </xsl:for-each>
  762. </xsl:template>
  763. <!-- table[border='0']:: end -->
  764.  
  765. <!-- tableb: begin -->
  766. <xsl:template match="TABLEB">
  767. <P CLASS="text"><B>TABLE <xsl:value-of select="@NUM" /></B>    <xsl:apply-templates select="TABLETITLE" /></P>
  768. <BLOCKQUOTE CLASS="text">
  769. <TABLE BORDER="0" CELLPADDING="4" CELLSPACING="0" WIDTH="90%">
  770.  
  771. <TR><TD COLSPAN="{@TABLEENTRYNUM}" WIDTH="100%">
  772. <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" WIDTH="100%"><TR><TD WIDTH="100%" HEIGHT="2" BGCOLOR="#000000"><IMG SRC="<?303 media/content/graphics/styles/pixel.gif?>" WIDTH="1" HEIGHT="2" BORDER="0" /></TD></TR></TABLE>
  773. </TD></TR>
  774.  
  775. <xsl:apply-templates select="TABLEBODY" />
  776.  
  777. <TR><TD COLSPAN="{@TABLEENTRYNUM}" WIDTH="100%">
  778. <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" WIDTH="100%"><TR><TD WIDTH="100%" HEIGHT="2" BGCOLOR="#000000"><IMG SRC="<?303 media/content/graphics/styles/pixel.gif?>" WIDTH="1" HEIGHT="2" BORDER="0" /></TD></TR></TABLE>
  779. </TD></TR>
  780.  
  781. </TABLE>
  782. </BLOCKQUOTE>
  783. </xsl:template>
  784. <!-- tableb: end -->
  785.  
  786. <!-- sidebarblock: begin -->
  787. <xsl:template match="SIDEBARBLOCK">
  788. <BLOCKQUOTE CLASS="text">
  789. <TABLE CELLPADDING="0" CELLSPACING="0" BORDER="0"><TR><TD>
  790.     <TABLE CELLPADDING="1" CELLSPACING="0" BORDER="0" BGCOLOR="#000000"><TR><TD>
  791.         <TABLE CELLPADDING="0" CELLSPACING="0" BORDER="0" BGCOLOR="#FFFFFF">
  792.             <TR><TD BGCOLOR="#BDBDBD">
  793.                 <TABLE CELLPADDING="4" CELLSPACING="0" BORDER="0">
  794.                     <TR><TD CLASS="text"><B><xsl:apply-templates select="SIDEBARTITLE" /></B></TD></TR>
  795.                 </TABLE>
  796.             </TD></TR>
  797.             <TR><TD>
  798.                 <TABLE CELLPADDING="4" CELLSPACING="0" BORDER="0">
  799.                     <TR><TD><xsl:apply-templates select="SIDEBAR | CODESNIPPET | SIDEBARCODESNIPPET | SIDEBARLIST | LIST | SIDEBARRUNINBLOCK | SLUG" /></TD></TR>
  800.                 </TABLE>
  801.             </TD></TR>
  802.         </TABLE>
  803.     </TD></TR></TABLE>
  804. </TD></TR></TABLE>
  805. </BLOCKQUOTE>
  806. </xsl:template>
  807.  
  808. <xsl:template match="SIDEBARLIST">
  809. <BLOCKQUOTE CLASS="text"><xsl:apply-templates /></BLOCKQUOTE>
  810. </xsl:template>
  811. <!-- sidebarblock: end -->
  812.  
  813.  
  814. <!-- audio: begin -->
  815. <!-- <xsl:template match="AUDIO">
  816.     <TD VALIGN="top"><A HREF="javascript:playSound('sound{REAL/@NAME}');" onmouseout="javascript:imageObjectChange('sound{REAL/@NAME}Icon','soundImage','Out'); top.status=''; return true;" onmouseover="javascript:imageObjectChange('sound{REAL/@NAME}Icon','soundImage','Over'); top.status='Play/Pause narration'; return true;" onmousedown="javascript:imageObjectChange('sound{REAL/@NAME}Icon','soundImage','Down');" onmouseup="javascript:imageObjectChange('sound{REAL/@NAME}Icon','soundImage','Over');"><IMG NAME="sound{REAL/@NAME}Icon" SRC="<?303 media/content/graphics/styles/soundout.gif?>" WIDTH="22" HEIGHT="22" BORDER="0" ALT="Play/Pause narration" /></A><SPAN STYLE="visibility:hidden;"><OBJECT ID="sound{REAL/@NAME}" CLASSID="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA" WIDTH="0" HEIGHT="0"><PARAM NAME="SRC" VALUE="<?303 media?>/content/{REAL/@SRC}" /><PARAM NAME="AUTOSTART" VALUE="{REAL/@AUTOSTART}" /><EMBED TYPE="audio/x-pn-realaudio-plugin" SRC="<?303 media?>/content/{REAL/@SRC}" HEIGHT="0" WIDTH="0" NAME="sound{REAL/@NAME}" AUTOSTART="{REAL/@AUTOSTART}" SWLIVECONNECT="true" /></OBJECT></SPAN></TD>
  817. </xsl:template> -->
  818. <!-- audio: end -->
  819.  
  820.  
  821. <!-- exerciseblock: begin -->
  822. <xsl:template match="EXERCISEBLOCK[@MODE='text']">
  823. <P><TABLE CELLPADDING="4" CELLSPACING="0" BORDER="0" BGCOLOR="#000000" WIDTH="100%"><TR>
  824. <xsl:choose>
  825. <xsl:when test="@TIP='lab'">
  826. <TD CLASS="whitetext"> LAB <xsl:value-of select="@NUM" /></TD>
  827. </xsl:when>
  828. <xsl:otherwise>
  829. <TD CLASS="whitetext"> EXERCISE <xsl:value-of select="@NUM" /></TD>
  830. </xsl:otherwise>
  831. </xsl:choose>
  832. <!-- <TD CLASS="whitetext"> EXERCISE <xsl:value-of select="@NUM" /></TD> -->
  833. </TR></TABLE></P>
  834. <BLOCKQUOTE CLASS="text">
  835. <P><TABLE CELLPADDING="0" CELLSPACING="0" BORDER="0">
  836. <TR>
  837. <!-- <xsl:apply-templates select="AUDIO" />
  838.     <TD VALIGN="top"> </TD> -->
  839.     <TD VALIGN="top"><H3 CLASS="exeTitle"><xsl:apply-templates select="EXERCISETITLE" /></H3></TD>
  840. </TR>
  841. </TABLE></P>
  842. <xsl:apply-templates select="EXERCISE | EXERCISETITLESUB | EXERCISELIST | EXERCISELISTPARA | PARA" />
  843. </BLOCKQUOTE>
  844. <P><TABLE CELLPADDING="0" CELLSPACING="0" BORDER="0" BGCOLOR="#000000" WIDTH="100%"><TR>
  845. <TD><IMG SRC="<?303 media/content/graphics/styles/pixel.gif?>" WIDTH="1" HEIGHT="1" BORDER="0" /></TD>
  846. </TR></TABLE></P>
  847. </xsl:template>
  848.  
  849. <xsl:template match="EXERCISETITLESUB">
  850. <H3 CLASS="exeSubTitle"><xsl:apply-templates /></H3>
  851. </xsl:template>
  852.  
  853. <xsl:template match="EXERCISELIST[@MARK='number']">
  854. <OL CLASS="text" TYPE="1">
  855. <xsl:if test="@START != null"><xsl:attribute name="START"><xsl:value-of select="@START" /></xsl:attribute></xsl:if>
  856. <xsl:for-each select="EXERCISELISTNUMBERED">
  857.     <LI CLASS="text"><P><xsl:apply-templates /></P></LI>
  858. </xsl:for-each>
  859. </OL>
  860. </xsl:template>
  861.  
  862. <xsl:template match="EXERCISELISTPARA">
  863. <UL CLASS="none">
  864.     <LI CLASS="text"><xsl:apply-templates /></LI>
  865. </UL>
  866. </xsl:template>
  867. <!-- exerciseblock: begin -->
  868.  
  869.  
  870. <!-- exerciseblock with flash: begin -->
  871. <xsl:template match="EXERCISEBLOCK">
  872. <xsl:variable name="num"><xsl:value-of select="@NUM"/></xsl:variable>
  873. <P><TABLE CELLPADDING="4" CELLSPACING="0" BORDER="0" BGCOLOR="#000000" WIDTH="100%"><TR>
  874. <TD CLASS="whitetext"> EXERCISE <xsl:value-of select="@NUM" /></TD>
  875. </TR></TABLE></P>
  876. <P><TABLE CELLPADDING="0" CELLSPACING="0" BORDER="0">
  877. <TR>
  878. <!-- <xsl:apply-templates select="AUDIO" />
  879.     <TD VALIGN="top"> </TD> -->
  880.     <TD VALIGN="top"><H3 CLASS="exeTitle"><xsl:apply-templates select="EXERCISETITLE" /></H3></TD>
  881. </TR>
  882. </TABLE></P>
  883. <xsl:apply-templates select="EXERCISE | EXERCISETITLESUB | EXERCISELIST | EXERCISELISTPARA | PARA | TABLE | LIST" />
  884. <xsl:if test="$num!=null"><P><xsl:apply-templates select="/CHAPTER/EXECOL/EXE[@NUM=$num] | /APPENDIX/EXECOL/EXE[@NUM=$num]" /></P></xsl:if>
  885. </xsl:template>
  886.  
  887. <xsl:template match="EXE">
  888. <xsl:apply-templates select="FLASH" />
  889. <xsl:apply-templates select="WARNING" />
  890. </xsl:template>
  891. <!-- exerciseblock with flash: begin -->
  892.  
  893. <!-- casestudy: begin -->
  894. <xsl:template match="SECTION[@CASESTUDY] | SECTION[@CASESTUDY]/SECTION/SECTION">
  895. <TABLE BORDER="0" CELLPADDING="4" CELLSPACING="0" WIDTH="100%" BGCOLOR="#EFEFEF">
  896. <TR>
  897.     <TD WIDTH="40" BGCOLOR="#AFAFAF" VALIGN="top"><IMG SRC="<?303 media/content/graphics/0/casestady.gif?>" WIDTH="24" HEIGHT="200" BORDER="0" /></TD>
  898.     <TD WIDTH="100%" VALIGN="top">
  899.         <xsl:apply-templates select="TITLE" />
  900.         <xsl:apply-templates select="SECTION | PARA | LIST | RUNINBLOCK | PARACONTINUED | SLUG | NOTE | CODESNIPPET | TABULARDATA | TESTDATA | TABLE | TABLEB | WARNING | TIP | SIDEBARBLOCK | MSEXAMOBJECTIVE" />
  901.     </TD>
  902. </TR>
  903. </TABLE>
  904. </xsl:template>
  905.  
  906. <xsl:template match="SECTION[@CASESTUDY]/SECTION">
  907. <TABLE BORDER="0" CELLPADDING="4" CELLSPACING="0" WIDTH="100%" BGCOLOR="#EFEFEF">
  908. <TR>
  909.     <TD WIDTH="40" BGCOLOR="#AFAFAF" VALIGN="top"><IMG SRC="<?303 media/content/graphics/0/casestady.gif?>" WIDTH="24" HEIGHT="200" BORDER="0" /></TD>
  910.     <TD WIDTH="100%" VALIGN="top">
  911. <xsl:if test="@POS != null">
  912.     <xsl:apply-templates select="../TITLE" />
  913.     <xsl:apply-templates select="../PARA | ../LIST | ../RUNINBLOCK | ../PARACONTINUED | ../SLUG | ../NOTE | ../CODESNIPPET | ../TABULARDATA | ../TESTDATA | ../TABLE | ../TABLEB | ../WARNING | ../TIP | ../SIDEBARBLOCK | ../MSEXAMOBJECTIVE" />
  914. </xsl:if>
  915.         <xsl:apply-templates select="TITLE" />
  916.         <xsl:apply-templates select="SECTION | PARA | LIST | RUNINBLOCK | PARACONTINUED | SLUG | NOTE | CODESNIPPET | TABULARDATA | TESTDATA | TABLE | TABLEB | WARNING | TIP | SIDEBARBLOCK | MSEXAMOBJECTIVE" />
  917.     </TD>
  918. </TR>
  919. </TABLE>
  920. </xsl:template>
  921. <!-- casestudy: end -->
  922.  
  923.  
  924. <!-- slug: begin -->
  925. <xsl:template match="SLUG">
  926. <xsl:variable name="num"><xsl:value-of select="@NUM"/></xsl:variable>
  927. <xsl:variable name="nonum"><xsl:value-of select="@NONUM"/></xsl:variable>
  928. <xsl:if test="$num!=null"><xsl:apply-templates select="/CHAPTER/FIGCOL/FIG[@NUM=$num] | /APPENDIX/FIGCOL/FIG[@NUM=$num]" /></xsl:if>
  929. <xsl:if test="$nonum!=null"><xsl:apply-templates select="/CHAPTER/FIGCOL/FIG[@NONUM=$nonum] | /APPENDIX/FIGCOL/FIG[@NONUM=$nonum]" /></xsl:if>
  930. </xsl:template>
  931.  
  932. <xsl:template match="LISTITEM/SLUG | EXERCISELISTNUMBERED/SLUG">
  933. <xsl:variable name="num"><xsl:value-of select="@NUM"/></xsl:variable>
  934. <xsl:variable name="nonum"><xsl:value-of select="@NONUM"/></xsl:variable>
  935. <xsl:if test="$num!=null"><xsl:apply-templates select="/CHAPTER/FIGCOL/FIG[@NUM=$num] | /APPENDIX/FIGCOL/FIG[@NUM=$num]" mode="listitem" /></xsl:if>
  936. <xsl:if test="$nonum!=null"><xsl:apply-templates select="/CHAPTER/FIGCOL/FIG[@NONUM=$nonum] | /APPENDIX/FIGCOL/FIG[@NONUM=$nonum]" mode="listitem" /></xsl:if>
  937. </xsl:template>
  938.  
  939. <xsl:template match="FIG">
  940. <BLOCKQUOTE CLASS="text">
  941. <B>Figure <xsl:value-of select="@NUM" /></B>    <xsl:apply-templates select="P" />
  942. <xsl:apply-templates select="ILL" />
  943. </BLOCKQUOTE>
  944. </xsl:template>
  945.  
  946. <xsl:template match="FIG[@NONUM]">
  947. <center><xsl:apply-templates select="ILL" /></center>
  948. </xsl:template>
  949.  
  950. <!-- <xsl:template match="FIG[@NONUM]/ILL">
  951. <center><xsl:apply-templates /></center>
  952. </xsl:template> -->
  953.  
  954. <xsl:template match="FIG" mode="listitem">
  955. <P CLASS="text">
  956. <B>Figure <xsl:value-of select="@NUM" /></B>    <xsl:apply-templates select="P" />
  957. <xsl:apply-templates select="ILL" />
  958. </P>
  959. </xsl:template>
  960.  
  961. <xsl:template match="FIG[@NONUM]" mode="listitem">
  962. <P CLASS="text">
  963. <xsl:apply-templates select="ILL" />
  964. </P>
  965. </xsl:template>
  966.  
  967. <xsl:template match="FIG/P">
  968. <xsl:apply-templates />
  969. </xsl:template>
  970.  
  971. <xsl:template match="ILL">
  972. <TABLE CELLPADDING="1" CELLSPACING="0" BORDER="0" BGCOLOR="#000000"><TR><TD><TABLE CELLPADDING="0" CELLSPACING="0" BORDER="0" BGCOLOR="#FFFFFF"><TR><!-- illustration -->
  973.     <TD><xsl:apply-templates /></TD>
  974. </TR></TABLE></TD></TR></TABLE>
  975. </xsl:template>
  976.  
  977.  
  978.  
  979. <xsl:template match="ILL[IMAGE]">
  980. <BR/><xsl:apply-templates /><BR/>
  981. </xsl:template>
  982. <!-- slug: end -->
  983.  
  984. <!-- animation: begin -->
  985. <xsl:template match="ANIMATION">
  986. <xsl:variable name="id"><xsl:value-of select="@ID"/></xsl:variable>
  987. <xsl:if test="$id!=null"><xsl:apply-templates select="/CHAPTER/ANIMACOL/ANIMA[@ID=$id]" /></xsl:if>
  988. </xsl:template>
  989.  
  990. <xsl:template match="ANIMA">
  991. <TABLE CELLPADDING="0" CELLSPACING="0" BORDER="0" WIDTH="100%">
  992. <TR>
  993.     <TD ALIGN="left" VALIGN="top"><H3 CLASS="sec2Title"><xsl:apply-templates select="TITLE" /></H3></TD>
  994.     <TD> </TD>
  995.     <TD ALIGN="right" VALIGN="top"><A HREF="javascript:loadMovie('<?103?>&course=<?1008?>&file=media/content/{ILL/FLASH/@SRC}',{ILL/FLASH/@WIDTH},{ILL/FLASH/@HEIGHT});" onmouseout="javascript:imageObjectChange('zoomIcon','zoomImage','Out'); top.status=''; return true;" onmouseover="javascript:imageObjectChange('zoomIcon','zoomImage','Over'); top.status='Enlarge'; return true;" onmousedown="javascript:imageObjectChange('zoomIcon','zoomImage','Down');" onmouseup="javascript:imageObjectChange('zoomIcon','zoomImage','Over');"><IMG NAME="zoomIcon" SRC="<?303 media/content/graphics/styles/zoomout.gif?>" WIDTH="18" HEIGHT="18" BORDER="0" ALT="Enlarge" /></A></TD>
  996. </TR>
  997. </TABLE>
  998. <xsl:apply-templates select="ILL/FLASH" />
  999. </xsl:template>
  1000. <!-- animation: end -->
  1001.  
  1002.  
  1003. <!-- flash: begin -->
  1004. <xsl:template match="FLASH | flash">
  1005. <OBJECT CLASSID="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" ID="FLASH" CODEBASE="http://active.macromedia.com/flash2/cabs/swflash.cab#version=4,0,0,0" WIDTH="{@WIDTH}" HEIGHT="{@HEIGHT}" BORDER="0">
  1006.     <PARAM NAME="MOVIE" VALUE="<?303 media?>/content/{@SRC}" />
  1007.     <PARAM NAME="LOOP" VALUE="{@LOOP}" />
  1008.     <PARAM NAME="MENU" VALUE="{@MENU}" />
  1009.     <PARAM NAME="QUALITY" VALUE="{@QUALITY}" />
  1010.     <PARAM NAME="BGCOLOR" VALUE="{@BGCOLOR}" />
  1011. <EMBED NAME="FLASH" WIDTH="{@WIDTH}" HEIGHT="{@HEIGHT}" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" SRC="<?303 media?>/content/{@SRC}" BORDER="0" LOOP="{@LOOP}" MENU="{@MENU}" QUALITY="{@QUALITY}" BGCOLOR="{@BGCOLOR}" SWLIVECONNECT="true" />
  1012. </OBJECT>
  1013. </xsl:template>
  1014. <!-- flash: end -->
  1015.  
  1016.  
  1017. <!-- note: begin -->
  1018. <xsl:template match="NOTE">
  1019. <P><TABLE CELLPADDING="0" CELLSPACING="0" WIDTH="100%" BORDER="0" BGCOLOR="#CFCFCF">
  1020. <TR><TD WIDTH="100%" CLASS="text" VALIGN="top">
  1021.  
  1022.     <TABLE CELLPADDING="0" CELLSPACING="0" WIDTH="100%" HEIGHT="2" BORDER="0" BGCOLOR="#0000FF"><TR WIDTH="100%" HEIGHT="2" BGCOLOR="#0000FF"><TD WIDTH="100%" HEIGHT="2" BGCOLOR="#0000FF"><IMG SRC="<?303 media/content/graphics/styles/pixel.gif?>" WIDTH="1" HEIGHT="2" BORDER="0" /></TD></TR></TABLE>
  1023.  
  1024.     <TABLE CELLPADDING="0" CELLSPACING="0" BORDER="0"><TR>
  1025.         <TD VALIGN="top"><IMG SRC="<?303 media/content/graphics/styles/note.gif?>" WIDTH="49" HEIGHT="38" BORDER="0" /></TD>
  1026.         <TD>
  1027.             <TABLE CELLPADDING="13" CELLSPACING="0" BORDER="0"><TR><TD CLASS="text">
  1028.                 <xsl:apply-templates />
  1029.             </TD></TR></TABLE>
  1030.         </TD>
  1031.     </TR></TABLE>
  1032.  
  1033. </TD></TR></TABLE></P>
  1034. </xsl:template>
  1035. <!-- note: end -->
  1036.  
  1037.  
  1038. <!-- tip: begin -->
  1039. <xsl:template match="TIP">
  1040. <P><TABLE CELLPADDING="0" CELLSPACING="0" WIDTH="100%" BORDER="0" BGCOLOR="#CFCFCF">
  1041. <TR><TD WIDTH="100%" CLASS="text" VALIGN="top">
  1042.  
  1043.     <TABLE CELLPADDING="0" CELLSPACING="0" WIDTH="100%" HEIGHT="2" BORDER="0" BGCOLOR="#000000"><TR WIDTH="100%" HEIGHT="2" BGCOLOR="#000000"><TD WIDTH="100%" HEIGHT="2" BGCOLOR="#000000"><IMG SRC="<?303 media/content/graphics/styles/pixel.gif?>" WIDTH="1" HEIGHT="2" BORDER="0" /></TD></TR></TABLE>
  1044.  
  1045.     <TABLE CELLPADDING="0" CELLSPACING="0" BORDER="0"><TR>
  1046.         <TD VALIGN="top"><IMG SRC="<?303 media/content/graphics/styles/tip.gif?>" WIDTH="49" HEIGHT="38" BORDER="0" /></TD>
  1047.         <TD>
  1048.             <TABLE CELLPADDING="13" CELLSPACING="0" BORDER="0"><TR><TD CLASS="text">
  1049.                 <xsl:apply-templates />
  1050.             </TD></TR></TABLE>
  1051.         </TD>
  1052.     </TR></TABLE>
  1053.  
  1054. </TD></TR></TABLE></P>
  1055. </xsl:template>
  1056. <!-- tip: end -->
  1057.  
  1058.  
  1059. <!-- warning: begin -->
  1060. <xsl:template match="WARNING">
  1061. <P><TABLE CELLPADDING="0" CELLSPACING="0" WIDTH="100%" BORDER="0" BGCOLOR="#CFCFCF">
  1062. <TR><TD WIDTH="100%" CLASS="text" VALIGN="top">
  1063.  
  1064.     <TABLE CELLPADDING="0" CELLSPACING="0" WIDTH="100%" HEIGHT="2" BORDER="0" BGCOLOR="#BF0000"><TR WIDTH="100%" HEIGHT="2" BGCOLOR="#BF0000"><TD WIDTH="100%" HEIGHT="2" BGCOLOR="#BF0000"><IMG SRC="<?303 media/content/graphics/styles/pixel.gif?>" WIDTH="1" HEIGHT="2" BORDER="0" /></TD></TR></TABLE>
  1065.  
  1066.     <TABLE CELLPADDING="0" CELLSPACING="0" BORDER="0"><TR>
  1067.         <TD VALIGN="top"><IMG SRC="<?303 media/content/graphics/styles/warning.gif?>" WIDTH="58" HEIGHT="38" BORDER="0" /></TD>
  1068.         <TD>
  1069.             <TABLE CELLPADDING="13" CELLSPACING="0" BORDER="0"><TR><TD CLASS="text">
  1070.                 <xsl:apply-templates />
  1071.             </TD></TR></TABLE>
  1072.         </TD>
  1073.     </TR></TABLE>
  1074.  
  1075. </TD></TR></TABLE></P>
  1076. </xsl:template>
  1077. <!-- warning: end -->
  1078.  
  1079. <!-- codesnippet: begin -->
  1080. <xsl:template match="CODESNIPPET">
  1081. <BLOCKQUOTE><TABLE CELLPADDING="6" CELLSPACING="0" BORDER="0" WIDTH="580" BGCOLOR="#333333"><TR>
  1082. <TD>
  1083. <PRE>
  1084.     <xsl:apply-templates />
  1085. </PRE>
  1086. </TD>
  1087. </TR></TABLE></BLOCKQUOTE>
  1088. </xsl:template>
  1089.  
  1090. <xsl:template match="SIDEBARCODESNIPPET">
  1091. <BLOCKQUOTE>
  1092. <PRE CLASS="pre_black">
  1093.     <xsl:apply-templates />
  1094. </PRE>
  1095. </BLOCKQUOTE>
  1096. </xsl:template>
  1097.  
  1098. <xsl:template match="LISTITEM/CODESNIPPET">
  1099. <P><TABLE CELLPADDING="6" CELLSPACING="0" BORDER="0" WIDTH="580" BGCOLOR="#333333"><TR>
  1100. <TD>
  1101. <PRE>
  1102.     <xsl:apply-templates />
  1103. </PRE>
  1104. </TD>
  1105. </TR></TABLE></P>
  1106. </xsl:template>
  1107.  
  1108. <xsl:template match="CODELINE">
  1109. <xsl:apply-templates />
  1110. </xsl:template>
  1111. <!-- codesnippet: end -->
  1112.  
  1113.  
  1114. <!-- ANSWERBLOCK/ANSWER: begin -->
  1115. <xsl:template match="ANSWERBLOCK/ANSWER">
  1116. <P CLASS="text">
  1117.     <xsl:apply-templates />
  1118.     <xsl:apply-templates select="../../EXPLANATION" />
  1119. </P>
  1120. </xsl:template>
  1121. <!-- ANSWERBLOCK/ANSWER: end -->
  1122.  
  1123.  
  1124. <!-- paragraph: begin -->
  1125. <xsl:template match="P | PARA |PARACONTINUED | QUESTIONBLOCK/QUESTION | SIDEBAR | EXERCISE">
  1126. <xsl:variable name="br"><xsl:value-of select="@BR" /></xsl:variable>
  1127. <P CLASS="text">
  1128.     <xsl:if test="@ALIGN != null"><xsl:attribute name="ALIGN"><xsl:value-of select="@ALIGN" /></xsl:attribute></xsl:if>
  1129.     <xsl:if test="@align != null"><xsl:attribute name="ALIGN"><xsl:value-of select="@align" /></xsl:attribute></xsl:if>
  1130.  
  1131.     <xsl:if test="@REF != null">
  1132.     <A HREF="javascript:gotoPage('{@REF}');"><xsl:apply-templates /></A>
  1133.     </xsl:if>
  1134.  
  1135.     <xsl:if test="@REF = null">
  1136.     <xsl:apply-templates />
  1137.     </xsl:if>
  1138.     
  1139.     <xsl:if test="$br!=null"><BR CLEAR="{$br}" /></xsl:if>
  1140. </P>
  1141. </xsl:template>
  1142. <!-- paragraph: end -->
  1143.  
  1144.  
  1145. <!-- times italic font -->
  1146. <xsl:template match="TI | ti">
  1147. <SPAN CLASS="timesItalic"><xsl:apply-templates /></SPAN>
  1148. </xsl:template>
  1149.  
  1150. <xsl:template match="HLIGHT | hlight">
  1151. <SPAN STYLE="color:{@COLOR};"><xsl:apply-templates /></SPAN>
  1152. </xsl:template>
  1153.  
  1154. <xsl:template match="SYMBOL | symbol">
  1155. <SPAN CLASS="symbol"><xsl:apply-templates /></SPAN>
  1156. </xsl:template>
  1157.  
  1158. <xsl:template match="CHAPTER/PARA/DROPCAP | APPENDIX/PARA/DROPCAP | INTRODUCTION/PARA/DROPCAP">
  1159. <SPAN STYLE="font-size:300%; font-weight:600;"><xsl:apply-templates /></SPAN>
  1160. </xsl:template>
  1161.  
  1162. <xsl:template match="CHAPTER/SECTION/PARA/DROPCAP | APPENDIX/SECTION/PARA/DROPCAP | INTRODUCTION/SECTION/PARA/DROPCAP | INTRODUCTION/ACKNOWLEDGMENTS/PARA/DROPCAP">
  1163. <SPAN STYLE="font-size:200%; font-weight:600;"><xsl:apply-templates /></SPAN>
  1164. </xsl:template>
  1165.  
  1166. <xsl:template match="BIG | big">
  1167. <SPAN CLASS="big"><xsl:apply-templates /></SPAN>
  1168. </xsl:template>
  1169.  
  1170. <xsl:template match="SMALL | small">
  1171. <SPAN CLASS="small"><xsl:apply-templates /></SPAN>
  1172. </xsl:template>
  1173.  
  1174. <xsl:template match="COMMENT">
  1175. <BLOCKQUOTE>
  1176. <SPAN STYLE="COLOR:#000000; FONT-FAMILY:ARIAL,SANS-SERIF; FONT-WEIGHT:400; FONT-SIZE:10PX;"><xsl:apply-templates /></SPAN>
  1177. </BLOCKQUOTE>
  1178. </xsl:template>
  1179.  
  1180. <xsl:template match="LEFT | left">
  1181. <LEFT><xsl:apply-templates /></LEFT>
  1182. </xsl:template>
  1183.  
  1184. <xsl:template match="CENTER | center">
  1185. <CENTER><xsl:apply-templates /></CENTER>
  1186. </xsl:template>
  1187.  
  1188. <xsl:template match="RIGHT | right">
  1189. <RIGHT><xsl:apply-templates /></RIGHT>
  1190. </xsl:template>
  1191.  
  1192. <xsl:template match="INLINECODE | INLINEURL">
  1193. <xsl:if test="@HREF != null">
  1194. <A HREF="{@HREF}">
  1195.     <xsl:if test="@SHOW != null">
  1196.         <xsl:if test="@SHOW = 'new'">
  1197.             <xsl:attribute name="TARGET">_blank</xsl:attribute>
  1198.         </xsl:if>
  1199.     </xsl:if>
  1200.     <SPAN CLASS="courier"><xsl:apply-templates /></SPAN>
  1201. </A>
  1202. </xsl:if>
  1203. <xsl:if test="@HREF = null">
  1204.     <SPAN CLASS="courier"><xsl:apply-templates />
  1205. </SPAN></xsl:if>
  1206. </xsl:template>
  1207.  
  1208. <xsl:template match="USERINPUT">
  1209. <xsl:if test="@HREF != null">
  1210. <A HREF="{@HREF}">
  1211.     <xsl:if test="@SHOW != null">
  1212.         <xsl:if test="@SHOW = 'new'">
  1213.             <xsl:attribute name="TARGET">_blank</xsl:attribute>
  1214.         </xsl:if>
  1215.     </xsl:if>
  1216.     <SPAN CLASS="courier"><xsl:apply-templates /></SPAN>
  1217. </A>
  1218. </xsl:if>
  1219. <xsl:if test="@HREF = null">
  1220.     <SPAN CLASS="courier"><B><xsl:apply-templates /></B></SPAN></xsl:if>
  1221. </xsl:template>
  1222.  
  1223.  
  1224. <xsl:template match="INLINECODEVARIABLE">
  1225. <SPAN CLASS="courier"><I><xsl:apply-templates /></I></SPAN>
  1226. </xsl:template>
  1227.  
  1228. <xsl:template match="INLINECODEUSERINPUTVARIABLE">
  1229. <SPAN CLASS="courier"><I><B><xsl:apply-templates /></B></I></SPAN>
  1230. </xsl:template>
  1231.  
  1232. <xsl:template match="SUP | sup | SUPERSCRIPT">
  1233. <SUP><xsl:apply-templates /></SUP>
  1234. </xsl:template>
  1235.  
  1236. <xsl:template match="INLINECODEUSERINPUT">
  1237. <SPAN CLASS="courier"><B><xsl:apply-templates /></B></SPAN>
  1238. </xsl:template>
  1239.  
  1240. <xsl:template match="CODELINE/INLINECODEUSERINPUT">
  1241. <B><xsl:apply-templates /></B>
  1242. </xsl:template>
  1243.  
  1244. <xsl:template match="SUB | sub">
  1245. <SUB><xsl:apply-templates /></SUB>
  1246. </xsl:template>
  1247.  
  1248. <xsl:template match="B | b | EMPHASIS[@FORMAT='bold']">
  1249. <B><xsl:apply-templates /></B>
  1250. </xsl:template>
  1251.  
  1252. <xsl:template match="I | i | KEYTERM | EMPHASIS | EMPHASIS[@FORMAT='italic'] | VARIABLE">
  1253. <I>
  1254. <xsl:if test="@REF != null">
  1255.     <A HREF="javascript:gotoPage('{@REF}');"><xsl:apply-templates /></A>
  1256. </xsl:if>
  1257. <xsl:if test="@REF = null">
  1258.     <xsl:apply-templates />
  1259. </xsl:if>
  1260. </I>
  1261. </xsl:template>
  1262.  
  1263. <xsl:template match="EMPHASIS[@FORMAT='bolditalic'] | USERINPUTVARIABLE">
  1264. <B><I><xsl:apply-templates /></I></B>
  1265. </xsl:template>
  1266.  
  1267. <xsl:template match="U | u">
  1268. <U><xsl:apply-templates /></U>
  1269. </xsl:template>
  1270.  
  1271. <xsl:template match="PRE | pre">
  1272. <PRE><xsl:apply-templates /></PRE>
  1273. </xsl:template>
  1274.  
  1275. <xsl:template match="BR | br">
  1276. <BR>
  1277. <xsl:if test="@CLEAR != null"><xsl:attribute name="CLEAR"><xsl:value-of select="@CLEAR" /></xsl:attribute></xsl:if>
  1278. <xsl:if test="@clear != null"><xsl:attribute name="CLEAR"><xsl:value-of select="@clear" /></xsl:attribute></xsl:if>
  1279. </BR>
  1280. </xsl:template>
  1281.  
  1282. <xsl:template match="NOBR | nobr">
  1283. <NOBR>
  1284.     <xsl:if test="@REF != null">
  1285.         
  1286.         <xsl:choose>
  1287.             <xsl:when test="@REF='G'">
  1288.                 <A HREF="<?11?>?sid=<?1003?>&msg=3&file=media/search/glossary_f.htm" target="_parent"><xsl:apply-templates /></A>
  1289.             </xsl:when>
  1290.             <xsl:otherwise>
  1291.                 <A HREF="javascript:gotoPage('{@REF}');"><xsl:apply-templates /></A>
  1292.             </xsl:otherwise>
  1293.         </xsl:choose>
  1294.     </xsl:if>
  1295.     <xsl:if test="@REF = null"><xsl:apply-templates /></xsl:if>
  1296. </NOBR>
  1297. </xsl:template>
  1298.  
  1299. <xsl:template match="BORDER">
  1300.     <div CLASS="bordB" STYLE="width:{@WIDTH};"></div>
  1301. </xsl:template>
  1302.  
  1303. <xsl:template match="BORDERB"><!-- border bold -->
  1304.     <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" WIDTH="{@WIDTH}"><TR><TD WIDTH="100%" HEIGHT="2" BGCOLOR="#000000"><IMG SRC="<?303 media/content/graphics/styles/pixel.gif?>" WIDTH="1" HEIGHT="2" BORDER="0" /></TD></TR></TABLE>
  1305. </xsl:template>
  1306.  
  1307. <xsl:template match="BORDERT"><!-- border think -->
  1308.     <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" WIDTH="{@WIDTH}"><TR><TD WIDTH="100%" HEIGHT="1" BGCOLOR="#000000"><IMG SRC="<?303 media/content/graphics/styles/pixel.gif?>" WIDTH="1" HEIGHT="1" BORDER="0" /></TD></TR></TABLE>
  1309. </xsl:template>
  1310.  
  1311.  
  1312. </xsl:stylesheet>