Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="utf-8"?>
- <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
- <xsl:output method="html" indent="yes" version="4.01"
- doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"
- doctype-public="//W3C//DTD XHTML 1.0 Transitional//EN"/>
- <xsl:template match="/">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
- <link rel="stylesheet" type="text/css" href="Worksheet.css"/>
- <title>
- <xsl:value-of select="//Labels/ReportTitleWorksheets"/>
- </title>
- </head>
- <body>
- <xsl:for-each select="MeetingWorkBook/Meeting">
- <!--We only add the page breaks when we are in "Print Preview" mode-->
- <xsl:if test="InsertPageBreak=1">
- <!--This seems to be the only way to insert a page break-->
- <br style="page-break-before: always;"/>
- </xsl:if>
- <!--This the the date, opening song, chairman and prayer-->
- <xsl:call-template name="Display_DateInfo">
- <xsl:with-param name = "Class">M</xsl:with-param>
- </xsl:call-template>
- <!--Treasures from God's Word-->
- <xsl:call-template name="Display_TFGW">
- <xsl:with-param name = "Class">M</xsl:with-param>
- </xsl:call-template>
- <!--Apply Yourself To The Field Ministry-->
- <xsl:call-template name="Display_AYTFM">
- <xsl:with-param name = "Class">M</xsl:with-param>
- </xsl:call-template>
- <!--Living As Christians-->
- <xsl:call-template name="Display_LAC" />
- <!--Auxiliary counsellor worksheets-->
- <!--The number of classes is set to 1 when it is the first week of the month-->
- <!--Class 1-->
- <xsl:if test="NumberClasses>=2">
- <br style="page-break-before: always;"/>
- <!--This the the date, opening song, chairman and prayer-->
- <xsl:call-template name="Display_DateInfo">
- <xsl:with-param name = "Class">1</xsl:with-param>
- </xsl:call-template>
- <!--Treasures from God's Word-->
- <xsl:call-template name="Display_TFGW">
- <xsl:with-param name = "Class">1</xsl:with-param>
- </xsl:call-template>
- <!--Apply Yourself To The Field Ministry-->
- <xsl:call-template name="Display_AYTFM">
- <xsl:with-param name = "Class">1</xsl:with-param>
- </xsl:call-template>
- </xsl:if>
- <!--Class 2-->
- <xsl:if test="NumberClasses=3">
- <br style="page-break-before: always;"/>
- <!--This the the date, opening song, chairman and prayer-->
- <xsl:call-template name="Display_DateInfo">
- <xsl:with-param name = "Class">2</xsl:with-param>
- </xsl:call-template>
- <!--Treasures from God's Word-->
- <xsl:call-template name="Display_TFGW">
- <xsl:with-param name = "Class">2</xsl:with-param>
- </xsl:call-template>
- <!--Apply Yourself To The Field Ministry-->
- <xsl:call-template name="Display_AYTFM">
- <xsl:with-param name = "Class">2</xsl:with-param>
- </xsl:call-template>
- </xsl:if>
- </xsl:for-each>
- </body>
- </html>
- </xsl:template>
- <!--This the the date, opening song, chairman and prayer-->
- <xsl:template name = "Display_DateInfo" >
- <xsl:param name = "Class" />
- <div class="containerDate">
- <table cellpadding="2" cellspacing="0" class="tableOuter">
- <tr class="cellDate">
- <td class="textDate">
- <strong>
- <xsl:value-of select="Date"/><br/>
- <xsl:value-of select="WeeklyBibleReading"/>
- </strong>
- </td>
- <td class="textChairmanTitle">
- <strong>
- <xsl:choose>
- <xsl:when test="$Class='M'">
- <xsl:value-of select="//Labels/ReportTitleChairman"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="//Labels/ReportTitleAuxCounsellor"/>
- </xsl:otherwise>
- </xsl:choose>
- </strong>
- </td>
- <td class="textChairman">
- <strong>
- <xsl:choose>
- <xsl:when test="$Class='M'">
- <xsl:value-of select="Chairman"/> 
- </xsl:when>
- <xsl:when test="$Class='1'">
- <xsl:value-of select="//Labels/AuxClass1"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="//Labels/AuxClass2"/>
- </xsl:otherwise>
- </xsl:choose>
- </strong>
- </td>
- </tr>
- </table>
- <xsl:if test="$Class='M'">
- <div class="gap"></div>
- <table cellpadding="2" cellspacing="0" class="tableOuter">
- <tr>
- <td class="borderDotTimeDuration" style="border-top-style:solid">
- [<xsl:value-of select="SongOpen/@EndTime24"/>]
- </td>
- <td class="borderDotTime" style="border-top-style:solid">
- <xsl:value-of select="//Labels/SongDuration"/>
- </td>
- <td class="borderDotTheme" style="border-top-style:solid">
- <span class="floatTextLeft">
- <xsl:value-of select="//Labels/Song"/> 
- <xsl:value-of select="SongOpen"/> 
- <span class="textSongTitle">
- <xsl:value-of select="SongOpen/@Title"/>
- </span>
- </span>
- <span class="floatTextRight">
- <xsl:value-of select="//Labels/Prayer"/>
- </span>
- </td>
- <td class="borderDotName" style="border-top-style:solid">
- <xsl:value-of select="Prayer1"/> 
- </td>
- </tr>
- <tr>
- <td class="borderDotTimeDuration">
- [<xsl:value-of select="OpeningComments/Time/@EndTime24"/>]
- </td>
- <td class="borderDotTime">
- <xsl:value-of select="OpeningComments/Time"/>
- </td>
- <td class="borderDotTheme" colspan="2">
- <xsl:value-of select="OpeningComments/Theme"/>
- </td>
- </tr>
- <tr>
- <td class="cellComments" colspan="4">
- <xsl:if test="normalize-space(ReviewQuestion) != ''">
- <span class="textReviewQuestionLabel">
- <xsl:value-of select="//Labels/ReviewQuestion"/> 
- </span>
- <span class="textReviewQuestion">
- <xsl:value-of select="ReviewQuestion"/>
- </span>
- <br />
- </xsl:if>
- <br />
- <br />
- </td>
- </tr>
- </table>
- </xsl:if>
- </div>
- </xsl:template>
- <!--Treasures from God's Word-->
- <xsl:template name = "Display_TFGW" >
- <xsl:param name = "Class" />
- <div class="containerTFGW">
- <table cellpadding="2" cellspacing="0" class="tableOuter">
- <tr>
- <td class="textTFGW" colspan="4">
- <xsl:value-of select="//Labels/TreasuresFromGodsWord"/>
- </td>
- </tr>
- <xsl:if test="$Class='M'">
- <!--Bible discussion-->
- <tr>
- <td class="borderDotTimeDuration">
- [<xsl:value-of select="Treasures1/Time/@EndTime24"/>]
- </td>
- <td class="borderDotTime">
- <xsl:value-of select="Treasures1/Time"/>
- </td>
- <td class="borderDotTheme">
- <xsl:value-of select="Treasures1/Theme" disable-output-escaping="yes"/> 
- <span class="textMethod">
- [<xsl:value-of select="Treasures1/Method" disable-output-escaping="yes"/>]
- </span>
- </td>
- <td class="borderDotName">
- <xsl:value-of select="Treasures1/Name"/> 
- </td>
- </tr>
- <!--Digging for spiritual gems-->
- <tr>
- <td class="borderDotTimeDuration">
- [<xsl:value-of select="Treasures2/Time/@EndTime24"/>]
- </td>
- <td class="borderDotTime">
- <xsl:value-of select="Treasures2/Time"/>
- </td>
- <td class="borderDotTheme">
- <xsl:value-of select="Treasures2/Theme" disable-output-escaping="yes"/> 
- <span class="textMethod">
- [<xsl:value-of select="Treasures2/Method" disable-output-escaping="yes"/>]
- </span>
- </td>
- <td class="borderDotName" valign="top">
- <xsl:value-of select="Treasures2/Name"/> 
- </td>
- </tr>
- </xsl:if>
- <!--Bible reading-->
- <tr>
- <td class="borderDotTimeDuration">
- [<xsl:value-of select="BibleReadingTime/@EndTime24"/>]
- </td>
- <td class="borderDotTime">
- <xsl:value-of select="BibleReadingTime"/>
- </td>
- <td class="borderDotTheme">
- <xsl:value-of select="//Labels/BibleReading"/> 
- <span class="textMaterial">
- [<xsl:value-of select="StudentSourceMaterial/BibleReadingMaterial"/>]
- </span><br />
- <xsl:value-of select="//Labels/CounselPoint"/> 
- <xsl:choose>
- <xsl:when test="$Class='M'">
- <xsl:value-of select="BibleReadingM/@StudyPoint"/> 
- <xsl:value-of select="BibleReadingM/@StudyPointDescription"/>
- <xsl:apply-templates select="BibleReadingM/@StudyPoint"/>
- </xsl:when>
- <xsl:when test="$Class='1'">
- <xsl:value-of select="BibleReading1/@StudyPoint"/> 
- <xsl:value-of select="BibleReading1/@StudyPointDescription"/>
- <xsl:apply-templates select="BibleReading1/@StudyPoint"/>
- </xsl:when>
- <xsl:when test="$Class='2'">
- <xsl:value-of select="BibleReading2/@StudyPoint"/> 
- <xsl:value-of select="BibleReading2/@StudyPointDescription"/>
- <xsl:apply-templates select="BibleReading2/@StudyPoint"/>
- </xsl:when>
- </xsl:choose>
- <br />
- </td>
- <td class="borderDotName" valign="top">
- <xsl:choose>
- <xsl:when test="$Class='M'">
- <xsl:value-of select="BibleReadingM"/> 
- </xsl:when>
- <xsl:when test="$Class='1'">
- <xsl:value-of select="BibleReading1"/> 
- </xsl:when>
- <xsl:when test="$Class='2'">
- <xsl:value-of select="BibleReading2"/> 
- </xsl:when>
- </xsl:choose>
- </td>
- </tr>
- <tr>
- <td class="cellComments" colspan="4">
- <br />
- <br />
- <br />
- Next counsel point:
- </td>
- </tr>
- </table>
- </div>
- </xsl:template>
- <!--Display the study number, description and page number.-->
- <xsl:template match="@StudyPoint">
- <xsl:choose>
- <xsl:when test="current()!=''">
- <xsl:variable name="StudyPageNumbers" select="document('StudyPointPageNumbers.xml')"/>
- <xsl:text> (Page: </xsl:text>
- <xsl:value-of select="$StudyPageNumbers/Lessons/Study[@Number=current()]/@Page"/>
- <xsl:text>)</xsl:text>
- </xsl:when>
- <xsl:otherwise>
- <xsl:text>No study point.</xsl:text>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:template>
- <!--Apply Yourself To The Field Ministry-->
- <xsl:template name = "Display_AYTFM" >
- <xsl:param name = "Class" />
- <div class="containerAYFM">
- <table cellpadding="2" cellspacing="0" class="tableOuter">
- <tr>
- <td class="textAYFM" colspan="4">
- <xsl:value-of select="//Labels/ApplyYourselfToTheFieldMinistry"/>
- </td>
- </tr>
- <xsl:choose>
- <!--Presentations-->
- <xsl:when test="FirstWeekOfMonth=1">
- <tr>
- <td class="borderDotTimeDuration">
- [<xsl:value-of select="Presentations/Time/@EndTime24"/>]
- </td>
- <td class="borderDotTime">
- <xsl:value-of select="Presentations/Time"/>
- </td>
- <td class="borderDotTheme">
- <xsl:value-of select="Presentations/Theme" disable-output-escaping="yes"/>
- <br />
- <span class="textMethod">
- [<xsl:value-of select="Presentations/Method" disable-output-escaping="yes"/>]
- </span>
- </td>
- <td class="borderDotName">
- <xsl:value-of select="Presentations/Name"/> 
- </td>
- </tr>
- </xsl:when>
- <!--Student talks-->
- <xsl:otherwise>
- <tr>
- <td class="borderDotTimeDuration">
- [<xsl:value-of select="StudentTalk1Time/@EndTime24"/>]
- </td>
- <td class="borderDotTime">
- <xsl:value-of select="StudentTalk1Time"/>
- </td>
- <td class="borderDotTheme">
- <xsl:value-of select="StudentSourceMaterial/StudentTalk1Type"/><br />
- [<xsl:value-of select="StudentSourceMaterial/StudentTalk1Material" disable-output-escaping="yes"/>]<br />
- <xsl:value-of select="//Labels/CounselPoint"/> 
- <xsl:choose>
- <xsl:when test="$Class='M'">
- <xsl:value-of select="StudentTalk1M/@StudyPoint"/> 
- <xsl:value-of select="StudentTalk1M/@StudyPointDescription"/>
- <xsl:apply-templates select="StudentTalk1M/@StudyPoint"/>
- </xsl:when>
- <xsl:when test="$Class='1'">
- <xsl:value-of select="StudentTalk11/@StudyPoint"/> 
- <xsl:value-of select="StudentTalk11/@StudyPointDescription"/>
- <xsl:apply-templates select="StudentTalk11/@StudyPoint"/>
- </xsl:when>
- <xsl:when test="$Class='2'">
- <xsl:value-of select="StudentTalk12/@StudyPoint"/> 
- <xsl:value-of select="StudentTalk12/@StudyPointDescription"/>
- <xsl:apply-templates select="StudentTalk12/@StudyPoint"/>
- </xsl:when>
- </xsl:choose>
- <br />
- </td>
- <td class="borderDotName">
- <xsl:choose>
- <xsl:when test="$Class='M'">
- <xsl:value-of select="StudentTalk1M"/> 
- </xsl:when>
- <xsl:when test="$Class='1'">
- <xsl:value-of select="StudentTalk11"/> 
- </xsl:when>
- <xsl:when test="$Class='2'">
- <xsl:value-of select="StudentTalk12"/> 
- </xsl:when>
- </xsl:choose>
- <br />
- <br />
- <xsl:choose>
- <xsl:when test="$Class='M'">
- <xsl:value-of select="StudentTalk1MA"/> 
- </xsl:when>
- <xsl:when test="$Class='1'">
- <xsl:value-of select="StudentTalk11A"/> 
- </xsl:when>
- <xsl:when test="$Class='2'">
- <xsl:value-of select="StudentTalk12A"/> 
- </xsl:when>
- </xsl:choose>
- </td>
- </tr>
- <tr>
- <td class="cellComments" colspan="4">
- <br />
- <br />
- <br />
- Next counsel point:
- </td>
- </tr>
- <tr>
- <td class="borderDotTimeDuration">
- [<xsl:value-of select="StudentTalk2Time/@EndTime24"/>]
- </td>
- <td class="borderDotTime">
- <xsl:value-of select="StudentTalk2Time"/>
- </td>
- <td class="borderDotTheme">
- <xsl:value-of select="StudentSourceMaterial/StudentTalk2Type"/><br />
- [<xsl:value-of select="StudentSourceMaterial/StudentTalk2Material" disable-output-escaping="yes"/>]<br />
- <xsl:value-of select="//Labels/CounselPoint"/> 
- <xsl:choose>
- <xsl:when test="$Class='M'">
- <xsl:value-of select="StudentTalk2M/@StudyPoint"/> 
- <xsl:value-of select="StudentTalk2M/@StudyPointDescription"/>
- <xsl:apply-templates select="StudentTalk2M/@StudyPoint"/>
- </xsl:when>
- <xsl:when test="$Class='1'">
- <xsl:value-of select="StudentTalk21/@StudyPoint"/> 
- <xsl:value-of select="StudentTalk21/@StudyPointDescription"/>
- <xsl:apply-templates select="StudentTalk21/@StudyPoint"/>
- </xsl:when>
- <xsl:when test="$Class='2'">
- <xsl:value-of select="StudentTalk22/@StudyPoint"/> 
- <xsl:value-of select="StudentTalk22/@StudyPointDescription"/>
- <xsl:apply-templates select="StudentTalk22/@StudyPoint"/>
- </xsl:when>
- </xsl:choose>
- <br />
- </td>
- <td class="borderDotName">
- <xsl:choose>
- <xsl:when test="$Class='M'">
- <xsl:value-of select="StudentTalk2M"/> 
- </xsl:when>
- <xsl:when test="$Class='1'">
- <xsl:value-of select="StudentTalk21"/> 
- </xsl:when>
- <xsl:when test="$Class='2'">
- <xsl:value-of select="StudentTalk22"/> 
- </xsl:when>
- </xsl:choose>
- <br />
- <br />
- <xsl:choose>
- <xsl:when test="$Class='M'">
- <xsl:value-of select="StudentTalk2MA"/> 
- </xsl:when>
- <xsl:when test="$Class='1'">
- <xsl:value-of select="StudentTalk21A"/> 
- </xsl:when>
- <xsl:when test="$Class='2'">
- <xsl:value-of select="StudentTalk22A"/> 
- </xsl:when>
- </xsl:choose>
- </td>
- </tr>
- <tr>
- <td class="cellComments" colspan="4">
- <br />
- <br />
- <br />
- Next counsel point:
- </td>
- </tr>
- <tr>
- <td class="borderDotTimeDuration">
- [<xsl:value-of select="StudentTalk3Time/@EndTime24"/>]
- </td>
- <td class="borderDotTime">
- <xsl:value-of select="StudentTalk3Time"/>
- </td>
- <td class="borderDotTheme">
- <xsl:value-of select="StudentSourceMaterial/StudentTalk3Type"/><br />
- [<xsl:value-of select="StudentSourceMaterial/StudentTalk3Material" disable-output-escaping="yes"/>]<br />
- <xsl:value-of select="//Labels/CounselPoint"/> 
- <xsl:choose>
- <xsl:when test="$Class='M'">
- <xsl:value-of select="StudentTalk3M/@StudyPoint"/> 
- <xsl:value-of select="StudentTalk3M/@StudyPointDescription"/>
- <xsl:apply-templates select="StudentTalk3M/@StudyPoint"/>
- </xsl:when>
- <xsl:when test="$Class='1'">
- <xsl:value-of select="StudentTalk31/@StudyPoint"/> 
- <xsl:value-of select="StudentTalk31/@StudyPointDescription"/>
- <xsl:apply-templates select="StudentTalk31/@StudyPoint"/>
- </xsl:when>
- <xsl:when test="$Class='2'">
- <xsl:value-of select="StudentTalk32/@StudyPoint"/> 
- <xsl:value-of select="StudentTalk32/@StudyPointDescription"/>
- <xsl:apply-templates select="StudentTalk32/@StudyPoint"/>
- </xsl:when>
- </xsl:choose>
- <br />
- </td>
- <td class="borderDotName">
- <xsl:choose>
- <xsl:when test="$Class='M'">
- <xsl:value-of select="StudentTalk3M"/> 
- </xsl:when>
- <xsl:when test="$Class='1'">
- <xsl:value-of select="StudentTalk31"/> 
- </xsl:when>
- <xsl:when test="$Class='2'">
- <xsl:value-of select="StudentTalk32"/> 
- </xsl:when>
- </xsl:choose>
- <xsl:if test="StudentSourceMaterial/StudentTalk3Type/@IsTalk=0">
- <br />
- <br />
- <xsl:choose>
- <xsl:when test="$Class='M'">
- <xsl:value-of select="StudentTalk3MA"/> 
- </xsl:when>
- <xsl:when test="$Class='1'">
- <xsl:value-of select="StudentTalk31A"/> 
- </xsl:when>
- <xsl:when test="$Class='2'">
- <xsl:value-of select="StudentTalk32A"/> 
- </xsl:when>
- </xsl:choose>
- </xsl:if>
- </td>
- </tr>
- <tr>
- <td class="cellComments" colspan="4">
- <br />
- <br />
- <br />
- Next counsel point:
- </td>
- </tr>
- </xsl:otherwise>
- </xsl:choose>
- </table>
- </div>
- </xsl:template>
- <!--Living as Christians-->
- <xsl:template name = "Display_LAC" >
- <div class="containerLAC">
- <table cellpadding="2" cellspacing="0" class="tableOuter">
- <tr>
- <td class="textLAC" colspan="4">
- <xsl:value-of select="//Labels/LivingAsChristians"/>
- </td>
- </tr>
- <tr>
- <td class="borderDotTimeDuration">
- [<xsl:value-of select="SongMiddle/@EndTime24"/>]
- </td>
- <td class="borderDotTime">
- <xsl:value-of select="//Labels/SongDuration"/>
- </td>
- <td class="borderDotTheme" colspan="2">
- <xsl:value-of select="//Labels/Song"/> 
- <xsl:value-of select="SongMiddle"/> 
- <span class="textSongTitle">
- <xsl:value-of select="SongMiddle/@Title"/>
- </span>
- </td>
- </tr>
- <tr>
- <td class="borderDotTimeDuration">
- [<xsl:value-of select="LivingAsChristians/Item1/Time/@EndTime24"/>]
- </td>
- <td class="borderDotTime">
- <xsl:value-of select="LivingAsChristians/Item1/Time"/>
- </td>
- <td class="borderDotTheme">
- <xsl:value-of select="LivingAsChristians/Item1/Theme" disable-output-escaping="yes"/> 
- <span class="textMethod">
- [<xsl:value-of select="LivingAsChristians/Item1/Method" disable-output-escaping="yes"/>]
- </span>
- <xsl:call-template name="Display_DemoInfo">
- <xsl:with-param name="Item" select="LivingAsChristians/Item1"/>
- </xsl:call-template>
- </td>
- <td class="borderDotName">
- <xsl:value-of select="LivingAsChristians/Item1/Name"/> 
- </td>
- </tr>
- <xsl:if test="LivingAsChristians/@ItemCount=2">
- <tr>
- <td class="borderDotTimeDuration">
- [<xsl:value-of select="LivingAsChristians/Item2/Time/@EndTime24"/>]
- </td>
- <td class="borderDotTime">
- <xsl:value-of select="LivingAsChristians/Item2/Time"/>
- </td>
- <td class="borderDotTheme">
- <xsl:value-of select="LivingAsChristians/Item2/Theme" disable-output-escaping="yes"/> 
- <span class="textMethod">
- [<xsl:value-of select="LivingAsChristians/Item2/Method" disable-output-escaping="yes"/>]
- </span>
- <xsl:call-template name="Display_DemoInfo">
- <xsl:with-param name="Item" select="LivingAsChristians/Item2"/>
- </xsl:call-template>
- </td>
- <td class="borderDotName">
- <xsl:value-of select="LivingAsChristians/Item2/Name"/> 
- </td>
- </tr>
- </xsl:if>
- <xsl:choose>
- <!--We include the congregation bible study information and the review-->
- <xsl:when test="CircuitVisit=0">
- <tr>
- <td class="borderDotTimeDuration">
- [<xsl:value-of select="LivingAsChristians/CongregationBibleStudy/Time/@EndTime24"/>]
- </td>
- <td class="borderDotTime">
- <xsl:value-of select="LivingAsChristians/CongregationBibleStudy/Time"/>
- </td>
- <td class="borderDotTheme">
- <xsl:value-of select="//Labels/CongregationBibleStudy"/> 
- <span class="textCongregationBibleStudyMaterial">
- [<xsl:value-of select="LivingAsChristians/CongregationBibleStudy/SourceMaterial" disable-output-escaping="yes"/>]
- </span><br />
- <span class="floatTextRight">
- <xsl:value-of select="//Labels/CBSReader"/>:
- </span>
- </td>
- <td class="borderDotName">
- <xsl:value-of select="LivingAsChristians/CongregationBibleStudy/Conductor"/> 
- <br />
- <xsl:value-of select="LivingAsChristians/CongregationBibleStudy/Reader"/>
- </td>
- </tr>
- <tr>
- <td class="borderDotTimeDuration">
- [<xsl:value-of select="ClosingComments/Time/@EndTime24"/>]
- </td>
- <td class="borderDotTime">
- <xsl:value-of select="ClosingComments/Time"/>
- </td>
- <td class="borderDotTheme" colspan="2">
- <xsl:value-of select="ClosingComments/Theme"/>
- </td>
- </tr>
- <tr>
- <td class="cellComments" colspan="4">
- <xsl:variable name="AssignHistory" select="document('AssignHistory.xml')"/>
- <xsl:variable name="week" select="Date/@NextWeek"/>
- <xsl:variable name="NextReviewQuestion" select="$AssignHistory/AssignmentHistory/*[name()=$week]/ReviewQuestion"/>
- <xsl:if test="normalize-space($NextReviewQuestion) != ''">
- <span class="textReviewQuestionLabel">
- <xsl:value-of select="//Labels/NextReviewQuestion"/> 
- </span>
- <span class="textReviewQuestion">
- <xsl:value-of select="$NextReviewQuestion"/>
- </span>
- <br />
- </xsl:if>
- <br />
- <br />
- <br />
- <span style="font-size: 8pt;">
- <xsl:apply-templates select="$AssignHistory/AssignmentHistory/*[name()=$week]/StudentItems">
- <xsl:with-param name="MainHall" select="//Labels/MainHall"/>
- <xsl:with-param name="AuxClass1" select="//Labels/AuxClass1"/>
- <xsl:with-param name="AuxClass2" select="//Labels/AuxClass2"/>
- </xsl:apply-templates>
- </span>
- </td>
- </tr>
- </xsl:when>
- <!--We include the review and the circuit overseer talk-->
- <xsl:otherwise>
- <tr>
- <td class="borderDotTimeDuration">
- [<xsl:value-of select="ClosingComments/Time/@EndTime24"/>]
- </td>
- <td class="borderDotTime">
- <xsl:value-of select="ClosingComments/Time"/>
- </td>
- <td class="borderDotTheme" colspan="2">
- <xsl:value-of select="ClosingComments/Theme"/>
- </td>
- </tr>
- <tr>
- <td class="cellComments" colspan="4">
- <xsl:variable name="AssignHistory" select="document('AssignHistory.xml')"/>
- <xsl:variable name="week" select="Date/@NextWeek"/>
- <xsl:variable name="NextReviewQuestion" select="$AssignHistory/AssignmentHistory/*[name()=$week]/ReviewQuestion"/>
- <xsl:if test="normalize-space($NextReviewQuestion) != ''">
- <span class="textReviewQuestionLabel">
- <xsl:value-of select="//Labels/NextReviewQuestion"/> 
- </span>
- <span class="textReviewQuestion">
- <xsl:value-of select="$NextReviewQuestion"/>
- </span>
- <br />
- </xsl:if>
- <br />
- <br />
- <br />
- <span style="font-size: 8pt;">
- <xsl:apply-templates select="$AssignHistory/AssignmentHistory/*[name()=$week]/StudentItems">
- <xsl:with-param name="MainHall" select="//Labels/MainHall"/>
- <xsl:with-param name="AuxClass1" select="//Labels/AuxClass1"/>
- <xsl:with-param name="AuxClass2" select="//Labels/AuxClass2"/>
- </xsl:apply-templates>
- </span>
- </td>
- </tr>
- <tr>
- <td class="borderDotTimeDuration">
- [<xsl:value-of select="LivingAsChristians/ItemCircuitOverseer/Time/@EndTime24"/>]
- </td>
- <td class="borderDotTime">
- <xsl:value-of select="LivingAsChristians/ItemCircuitOverseer/Time"/>
- </td>
- <td class="borderDotTheme">
- <xsl:value-of select="LivingAsChristians/ItemCircuitOverseer/Theme" disable-output-escaping="yes"/> 
- <span class="textMethod">
- [<xsl:value-of select="LivingAsChristians/ItemCircuitOverseer/Method" disable-output-escaping="yes"/>]
- </span>
- </td>
- <td class="borderDotName">
- <xsl:value-of select="LivingAsChristians/ItemCircuitOverseer/Name"/> 
- </td>
- </tr>
- </xsl:otherwise>
- </xsl:choose>
- <tr>
- <td class="borderDotTimeDuration">
- [<xsl:value-of select="SongEnd/@EndTime24"/>]
- </td>
- <td class="borderDotTime">
- <xsl:value-of select="//Labels/SongDuration"/>
- </td>
- <td class="borderDotTheme">
- <span class="floatTextLeft">
- <xsl:value-of select="//Labels/Song"/> 
- <xsl:value-of select="SongEnd"/> 
- <span class="textSongTitle">
- <xsl:value-of select="SongEnd/@Title"/>
- </span>
- </span>
- <span class="floatTextRight">
- <xsl:value-of select="//Labels/Prayer"/>
- </span>
- </td>
- <td class="borderDotName">
- <xsl:value-of select="Prayer2"/> 
- </td>
- </tr>
- </table>
- </div>
- </xsl:template>
- <xsl:template match="StudentItems">
- <xsl:param name="MainHall"/>
- <xsl:param name="AuxClass1"/>
- <xsl:param name="AuxClass2"/>
- <table cellpadding="2">
- <thead>
- <tr>
- <th/>
- <xsl:for-each select="Item[contains('|1|8|15|', concat('|', position(), '|'))]">
- <th>
- <xsl:choose>
- <xsl:when test="position() = 1"><u><xsl:value-of select="$MainHall"/></u></xsl:when>
- <xsl:when test="position() = 2"><u><xsl:value-of select="$AuxClass1"/></u></xsl:when>
- <xsl:when test="position() = 3"><u><xsl:value-of select="$AuxClass2"/></u></xsl:when>
- </xsl:choose>
- </th>
- </xsl:for-each>
- </tr>
- </thead>
- <tbody>
- <tr>
- <th>
- <xsl:value-of select="Item[1]/Description"/>
- </th>
- <xsl:for-each select="Item[contains('|1|8|15|', concat('|', position(), '|'))]">
- <td>
- <xsl:value-of select="Name"/>
- </td>
- </xsl:for-each>
- </tr>
- <tr>
- <th>
- <xsl:value-of select="Item[2]/Description"/>
- </th>
- <xsl:for-each select="Item[contains('|2|9|16|', concat('|', position(), '|'))]">
- <td>
- <xsl:value-of select="Name"/>
-  / 
- <xsl:value-of select="following-sibling::Item[1]/Name"/>
- </td>
- </xsl:for-each>
- </tr>
- <tr>
- <th>
- <xsl:value-of select="Item[4]/Description"/>
- </th>
- <xsl:for-each select="Item[contains('|4|11|18|', concat('|', position(), '|'))]">
- <td>
- <xsl:value-of select="Name"/>
-  / 
- <xsl:value-of select="following-sibling::Item[1]/Name"/>
- </td>
- </xsl:for-each>
- </tr>
- <tr>
- <th>
- <xsl:value-of select="Item[6]/Description"/>
- </th>
- <xsl:for-each select="Item[contains('|6|13|20|', concat('|', position(), '|'))]">
- <td>
- <xsl:value-of select="Name"/>
-  / 
- <xsl:value-of select="following-sibling::Item[1]/Name"/>
- </td>
- </xsl:for-each>
- </tr>
- </tbody>
- </table>
- </xsl:template>
- <xsl:template name="Display_DemoInfo">
- <xsl:param name="Item" />
- <xsl:if test="$Item/DemoInfo/@ItemCount >= 1">
- <xsl:for-each select="$Item/DemoInfo/Demo">
- <xsl:choose>
- <xsl:when test="@InsertNewLine=1">
- <span class="textDemoNewlinePrefix">
- <br />
- </span>
- <span class="textDemoBracket">[</span>
- <span class="textDemoDescription">
- <xsl:value-of select="@Type"/>: 
- </span>
- </xsl:when>
- <xsl:otherwise>
- <span class="textDemoComma">, </span>
- </xsl:otherwise>
- </xsl:choose>
- <xsl:if test="normalize-space(Prefix) != ''">
- <span class="textDemoPrefix">
- <xsl:value-of select="Prefix"/> 
- </span>
- </xsl:if>
- <xsl:if test ="@ParticipantCount >= 1">
- <span class="textDemoBrother">
- <xsl:value-of select="Participant1/Name"/>
- </span>
- </xsl:if>
- <xsl:if test ="@ParticipantCount >= 2">
- <xsl:choose>
- <xsl:when test="Participant2/Task = Participant1/Task"> / </xsl:when>
- <xsl:otherwise> - </xsl:otherwise>
- </xsl:choose>
- <span class="textDemoBrother">
- <xsl:value-of select="Participant2/Name"/>
- </span>
- </xsl:if>
- <xsl:if test ="@ParticipantCount >= 3">
- <xsl:choose>
- <xsl:when test="Participant3/Task = Participant2/Task"> / </xsl:when>
- <xsl:otherwise> - </xsl:otherwise>
- </xsl:choose>
- <span class="textDemoBrother">
- <xsl:value-of select="Participant3/Name"/>
- </span>
- </xsl:if>
- <xsl:if test ="@ParticipantCount >= 4">
- <xsl:choose>
- <xsl:when test="Participant4/Task = Participant3/Task"> / </xsl:when>
- <xsl:otherwise> - </xsl:otherwise>
- </xsl:choose>
- <span class="textDemoBrother">
- <xsl:value-of select="Participant4/Name"/>
- </span>
- </xsl:if>
- <span class="textDemoBracket">]</span>
- </xsl:for-each>
- </xsl:if>
- </xsl:template>
- </xsl:stylesheet>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement