Compact Workbook Schedule – With Student Assistants

Compact Workbook – Script Customization

Recently I was asked the following question:

Recently I was asked the following question:
I would like to put the assistent to the Apply Yourself To The Field Ministry as a second row. Can you please give me directions on how to do this?Shilbert

Our brother was using the Workbook-S-140-Compact_ENG_Weekly script which you can find here on the website. He had already made some adjustments to the script to make some extra room for the additional assignment information.

Changes to the Script

I have highlighted in the snapshot below the changes that you are required to make to the script (line numbers are indicative only!):

1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
<!--This is used to insert the Treasures 1, Student or Special Event-->
  <xsl:template match="Name | Event | Student" mode="FirstRow">
    <xsl:param name="strClass"/>
    <td class="{$strClass}">
      <xsl:if test="self::Event">
        <xsl:attribute name="rowspan">3</xsl:attribute>
      </xsl:if>
      <xsl:value-of select="."/>
      <xsl:if test="self::Student">
        <xsl:apply-templates select="../Assistant"/>
      </xsl:if>
    </td>
  </xsl:template>

  <!--This is used to insert the Treasures 2, Bible Reader or Student-->
  <xsl:template match="Name | Reader | Student" mode="OtherRow">
    <xsl:param name="strClass"/>
    <td class="{$strClass}">
      <xsl:value-of select="."/>
      <xsl:if test="self::Student">
        <xsl:apply-templates select="../Assistant"/>
      </xsl:if>
    </td>
  </xsl:template>

  <!--This is used to insert the Assistant-->
  <xsl:template match="Assistant">
    <br/>
    <xsl:value-of select="."/>
  </xsl:template>

The Results

Here is an example of what you can expect to see once the changes have been made to the script:

Compact Workbook Results
(Click to enlarge)
[Total: 0    Average: 0/5]

One thought on “Compact Workbook Schedule – With Student Assistants

  1. It worked wonderfully. Again, thanks a lot. Also, it was a lot easier than the way I was trying to do it.

Leave a Reply

Your email address will not be published. Required fields are marked *