comparison summa/english/thml.html.xsl @ 55:093a560860d9

work together
author ht
date Tue, 29 Dec 2009 21:13:07 +0000
parents 3ce619c8ea60
children
comparison
equal deleted inserted replaced
54:77921d86a058 55:093a560860d9
1 <?xml version='1.0'?> 1 <?xml version='1.0'?>
2 <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xi="http://www.w3.org/2001/XInclude" xmlns:lang="http://www.ccel.org/info/languageCodes.xml" xmlns:letter="http://www.ccel.org/alphabetLetters" xmlns:str="http://exslt.org/strings"> 2 <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xi="http://www.w3.org/2001/XInclude" xmlns:lang="http://www.ccel.org/info/languageCodes.xml" xmlns:letter="http://www.ccel.org/alphabetLetters" xmlns:str="http://exslt.org/strings" exclude-result-prefixes="xi lang letter str">
3 <xsl:output method="html" indent="yes" encoding="UTF-8"/> 3 <xsl:output method="xhtml" indent="yes" encoding="UTF-8"/>
4 4
5 <!-- 5 <!--
6 thml.html.xsl: convert a ThML document to HTML 6 thml.html.xsl: convert a ThML document to HTML
7 Special processing for Text.Dictionary, Text.Daily 7 Special processing for Text.Dictionary, Text.Daily
8 First version by Jimmy Osborn 2002-summer; additional work by 8 First version by Jimmy Osborn 2002-summer; additional work by
373 </script> 373 </script>
374 </xsl:if> 374 </xsl:if>
375 </head> 375 </head>
376 376
377 <body> 377 <body>
378 <xsl:attribute name="onLoad">init.call(); highlightSearch();</xsl:attribute> 378 <xsl:attribute name="onload">init.call(); highlightSearch();</xsl:attribute>
379 <xsl:if test="$isDaily=1 and $sect='today'"> 379 <xsl:if test="$isDaily=1 and $sect='today'">
380 <script> 380 <script>
381 goToday(); 381 goToday();
382 </script> 382 </script>
383 </xsl:if> 383 </xsl:if>
470 <!-- divn template: if $sect=all, process all divs, else only --> 470 <!-- divn template: if $sect=all, process all divs, else only -->
471 <!-- requested one(s). Handle navbar and notes, then apply-templates. --> 471 <!-- requested one(s). Handle navbar and notes, then apply-templates. -->
472 <!-- ================================================================ --> 472 <!-- ================================================================ -->
473 <xsl:template match="div1|div2|div3|div4|div5|div[@type='sect']" mode="includeParsing"> 473 <xsl:template match="div1|div2|div3|div4|div5|div[@type='sect']" mode="includeParsing">
474 <xsl:if test="($sect='all' or @id=$theDivID or @id=$osisSect)"> 474 <xsl:if test="($sect='all' or @id=$theDivID or @id=$osisSect)">
475 <div id="{@id}" class="{local-name()}">
475 <xsl:call-template name="navbar"> 476 <xsl:call-template name="navbar">
476 <xsl:with-param name="progress" select="@progress"/> 477 <xsl:with-param name="progress" select="@progress"/>
477 </xsl:call-template> 478 </xsl:call-template>
478 <!--<a name="navtop" id="navtop"/>--> 479 <!--<a name="navtop" id="navtop"/>-->
479 <xsl:apply-templates mode="includeParsing"/> 480 <xsl:apply-templates mode="includeParsing"/>
485 </xsl:if> 486 </xsl:if>
486 <!--<a name="navbottom" id="navbottom"/>--> 487 <!--<a name="navbottom" id="navbottom"/>-->
487 <xsl:call-template name="navbar"> 488 <xsl:call-template name="navbar">
488 <xsl:with-param name="progress" select="@progress"/> 489 <xsl:with-param name="progress" select="@progress"/>
489 </xsl:call-template> 490 </xsl:call-template>
491 </div>
490 </xsl:if> 492 </xsl:if>
491 </xsl:template> 493 </xsl:template>
492 494
493 495
494 <!-- ============================================================ --> 496 <!-- ============================================================ -->
504 <hr width="30%"/> 506 <hr width="30%"/>
505 <div style="text-align:center; margin-left:0.5in; margin-right:0.5in"> 507 <div style="text-align:center; margin-left:0.5in; margin-right:0.5in">
506 <table align="center"><tr><td> 508 <table align="center"><tr><td>
507 <h1 class="title" id="toc">Table of Contents</h1> 509 <h1 class="title" id="toc">Table of Contents</h1>
508 <xsl:if test="$isDaily=1"> 510 <xsl:if test="$isDaily=1">
509 <p class="TOC1" style="text-align:center"> 511 <div class="TOC1" style="text-align:center">
510 <form onsubmit="return goToday()"> 512 <form onsubmit="return goToday()">
511 <input type="submit" value="Go to today"/> 513 <input type="submit" value="Go to today"/>
512 </form> 514 </form>
513 </p> 515 </div>
514 <p class="TOC1" style="text-align:center"> 516 <div class="TOC1" style="text-align:center">
515 <form onsubmit="return goDay(month,day)"> 517 <form onsubmit="return goDay(month,day)">
516 <select name="month"> 518 <select name="month">
517 <option value="01">January</option> 519 <option value="01">January</option>
518 <option value="02">February</option> 520 <option value="02">February</option>
519 <option value="03">March</option> 521 <option value="03">March</option>
560 <option value="30">30</option> 562 <option value="30">30</option>
561 <option value="31">31</option> 563 <option value="31">31</option>
562 </select> 564 </select>
563 <input type="submit" value="Go to day..."/> 565 <input type="submit" value="Go to day..."/>
564 </form> 566 </form>
565 </p> 567 </div>
566 </xsl:if> 568 </xsl:if>
567 <p class="TOC1" style="text-align:center"> 569 <p class="TOC1" style="text-align:center">
568 <a class="TOC" href="{$aboutURL}"> 570 <a class="TOC" href="{$aboutURL}">
569 <xsl:if test="$bcb=1"><xsl:attribute name="bcbTarg">true</xsl:attribute></xsl:if> 571 <xsl:if test="$bcb=1"><xsl:attribute name="bcbTarg">true</xsl:attribute></xsl:if>
570 <i>About This Book</i> 572 <i>About This Book</i>
836 <!-- ============================================== --> 838 <!-- ============================================== -->
837 <xsl:template match="ThML.head" name="about" mode="includeParsing"> 839 <xsl:template match="ThML.head" name="about" mode="includeParsing">
838 840
839 <p><a name="about">&#160;</a></p> 841 <p><a name="about">&#160;</a></p>
840 <center> 842 <center>
841 <table border="2" bordercolor="#660000" style="margin-top:12pt; width: 440pt"> 843 <table border="2" style="margin-top:12pt; width: 440pt; border-color: #660000">
842 <tr> 844 <tr>
843 <td bgcolor="#660000" width="100%" colspan="3"><p class="whitehead" style="text-align:center; font-size:14pt">About 845 <td bgcolor="#660000" width="100%" colspan="3"><p class="whitehead" style="text-align:center; font-size:14pt">About
844 <i><xsl:value-of select="$title"/></i> by <xsl:value-of select="$author"/></p> 846 <i><xsl:value-of select="$title"/></i> by <xsl:value-of select="$author"/></p>
845 </td> 847 </td>
846 </tr> 848 </tr>
847 <tr><td colspan="3"> 849 <tr><td colspan="3">
848 <center> 850 <center>
849 <p style="text-align:center; margin-top:12pt"> 851 <div style="text-align:center; margin-top:12pt">
850 <form method="get" action="http://www.ccel.org/search"> 852 <form method="get" action="http://www.ccel.org/search">
851 <span style="font-weight:bold; font-size:14pt"><a class="TOC" href="{$titlepageURL}"><xsl:if test="$bcb=1"><xsl:attribute name="bcbParam">true</xsl:attribute></xsl:if>Title Page</a></span> 853 <span style="font-weight:bold; font-size:14pt"><a class="TOC" href="{$titlepageURL}"><xsl:if test="$bcb=1"><xsl:attribute name="bcbParam">true</xsl:attribute></xsl:if>Title Page</a></span>
852 &#160; &#160; &#160; 854 &#160; &#160; &#160;
853 <span style="font-weight:bold; font-size:14pt"><a class="TOC" href="{$tocURL}"><xsl:if test="$bcb=1"><xsl:attribute name="bcbParam">true</xsl:attribute></xsl:if>Table of Contents</a></span> 855 <span style="font-weight:bold; font-size:14pt"><a class="TOC" href="{$tocURL}"><xsl:if test="$bcb=1"><xsl:attribute name="bcbParam">true</xsl:attribute></xsl:if>Table of Contents</a></span>
854 &#160; &#160; &#160; 856 &#160; &#160; &#160;
860 <input type="hidden" name="a" value="advanced_search"/> 862 <input type="hidden" name="a" value="advanced_search"/>
861 <input type="hidden" name="authorID" value="{$authorID}"/> 863 <input type="hidden" name="authorID" value="{$authorID}"/>
862 <input type="hidden" name="bookID" value="{$bookID}"/> 864 <input type="hidden" name="bookID" value="{$bookID}"/>
863 <span style="font-weight:bold; font-size:16pt">Search:</span>&#160; 865 <span style="font-weight:bold; font-size:16pt">Search:</span>&#160;
864 <input type="text" size="12" name="q" value=""/> 866 <input type="text" size="12" name="q" value=""/>
865 <input type="Submit" value="Go"/> 867 <input type="submit" value="Go"/>
866 </form> 868 </form>
867 </p> 869 </div>
868 </center> 870 </center>
869 </td></tr> 871 </td></tr>
870 <tr><td><table> 872 <tr><td><table>
871 <tr> 873 <tr>
872 <td style="width:110pt; text-align:right;"> 874 <td style="width:110pt; text-align:right;">