Ignore:
Timestamp:
2008-10-08T13:59:48+13:00 (16 years ago)
Author:
anna
Message:

Updated tutorials and associated files.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • documentation/trunk/tutorials/processing/xml-to-one-workshop.xsl

    r13638 r17494  
    2626    <xsl:apply-templates select="$manifest/Section" mode="index"/>
    2727    <xsl:apply-templates select="$manifest/Section"/>
     28   
     29    <div style="text-align:center;"><xsl:apply-templates select="/TutorialList/SupplementaryText/Text[@id='copyright']"/></div>
     30   
    2831      </body>
    2932    </html>
    30   </xsl:template>
     33  </xsl:template> 
     34 
    3135 
    3236  <xsl:template match="Section" mode="index">
    3337    <xsl:variable name="secnum" select="@number"/>
     38    <div style="page-break-after: always;">   
    3439    <h2><a href="#{@id}"><xsl:value-of select="Heading"/></a></h2>
    3540    <xsl:for-each select="TutorialRef|SplitTutorialRef">
     
    3944    <xsl:if test="self::TutorialRef">
    4045      <xsl:apply-templates select="$tutorial/Tutorial[@id=$id]" mode="index">
    41         <xsl:with-param name="number"><xsl:value-of select="$secnum"/>.<xsl:value-of select="$pos"/></xsl:with-param>
     46        <xsl:with-param name="number">
     47              <xsl:value-of select="$pos"/>
     48              <!--<xsl:value-of select="$secnum"/>.<xsl:value-of select="$pos"/>-->
     49            </xsl:with-param>
    4250      </xsl:apply-templates>
    4351    </xsl:if>
    4452    <xsl:if test="self::SplitTutorialRef">
    4553      <xsl:apply-templates select="$tutorial/Tutorial[@id=$id]" mode="splitindex">
    46         <xsl:with-param name="number"><xsl:value-of select="$secnum"/>.<xsl:value-of select="$pos"/></xsl:with-param>
     54        <xsl:with-param name="number">
     55              <xsl:value-of select="$pos"/>
     56              <!--<xsl:value-of select="$secnum"/>.<xsl:value-of select="$pos"/>-->
     57            </xsl:with-param>
    4758        <xsl:with-param name="split" select="@split"/>
    4859        <xsl:with-param name="type" select="@type"/>
     
    5364      </dl>
    5465    </xsl:for-each>
     66    </div>
    5567  </xsl:template>
    5668 
     
    6476      <xsl:if test="self::TutorialRef">
    6577    <xsl:apply-templates select="$tutorial/Tutorial[@id=$id]">
    66       <xsl:with-param name="number"><xsl:value-of select="$secnum"/>.<xsl:value-of select="$pos"/></xsl:with-param>
     78          <xsl:with-param name="number">
     79            <!-- for just one section -->
     80            <xsl:value-of select="$pos"/>
     81            <!-- for more than one sections -->
     82       <!--<xsl:value-of select="$secnum"/>.<xsl:value-of select="$pos"/>-->
     83          </xsl:with-param>
    6784    </xsl:apply-templates>
    6885      </xsl:if>
    6986      <xsl:if test="self::SplitTutorialRef">
    7087    <xsl:apply-templates select="$tutorial/Tutorial[@id=$id]" mode="split">
    71       <xsl:with-param name="number"><xsl:value-of select="$secnum"/>.<xsl:value-of select="$pos"/></xsl:with-param>
     88      <xsl:with-param name="number">
     89            <xsl:value-of select="$pos"/>
     90            <!--<xsl:value-of select="$secnum"/>.<xsl:value-of select="$pos"/>-->
     91          </xsl:with-param>
    7292      <xsl:with-param name="split" select="@split"/>
    7393      <xsl:with-param name="type" select="@type"/>
     
    81101  </xsl:template>
    82102 
    83   <xsl:template match="Tutorial">
     103  <xsl:template match="Tutorial">   
    84104    <xsl:param name="number"/>
     105    <div style="page-break-after: always;">
    85106    <h2><xsl:value-of select="$number"/>. <xsl:apply-templates select="Title/Text"/></h2>
    86107    <xsl:apply-templates select="Content/*"/>
     108    </div>
    87109  </xsl:template>
    88110
     
    104126    <xsl:param name="beginnotes"/>
    105127    <xsl:param name="endnotes"/>
     128   
     129    <div style="page-break-after: always;">
    106130    <h2><xsl:value-of select="$number"/>. <xsl:apply-templates select="Title/Text"/><xsl:value-of select="$titleextra"/></h2>
    107131    <xsl:apply-templates select="$beginnotes"/>
     
    121145    </xsl:if>
    122146    <xsl:apply-templates select="$endnotes"/>
     147    </div>
    123148  </xsl:template>
    124149
Note: See TracChangeset for help on using the changeset viewer.