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

Updated tutorials and associated files.

Location:
documentation/trunk/tutorials/processing
Files:
4 edited

Legend:

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

    r13638 r17494  
    66  <xsl:include href="common.xsl"/>
    77
    8     <!-- set mode to cd/web/wiki depending on where the files will end up -->
    9   <xsl:variable name="mode">cd</xsl:variable>
     8  <!-- set mode to cd/web/wiki depending on where the files will end up -->
     9  <xsl:variable name="mode">wiki</xsl:variable>
    1010
    1111  <xsl:template match="TutorialList">
     
    2424      <xsl:apply-templates select="Tutorial[not(@hidden)]"/>
    2525    </dl>
     26   
     27    <hr/><div style="text-align:center;"><xsl:apply-templates select="/TutorialList/SupplementaryText/Text[@id='copyright']"/></div>
     28   
    2629      </body>
    2730    </html>
  • documentation/trunk/tutorials/processing/xml-to-many-html.xsl

    r13638 r17494  
    77  <xsl:output method="html"/>
    88  <!-- set mode to cd/web/wiki depending on where the files will end up -->
    9   <xsl:variable name="mode">web</xsl:variable>
     9  <xsl:variable name="mode">wiki</xsl:variable>
    1010 
    1111  <xsl:template match="Tutorial">
     
    2525    <h2><xsl:apply-templates select="Title/Text"/></h2>
    2626    <xsl:apply-templates select="Content/*"/>
     27   
     28    <hr/><div style="text-align:center;"><xsl:apply-templates select="/TutorialList/SupplementaryText/Text[@id='copyright']"/></div>
     29   
    2730      </body>
    2831    </html>
  • documentation/trunk/tutorials/processing/xml-to-one-html.xsl

    r13638 r17494  
    66  <xsl:output method="html"/>
    77  <!-- set mode to cd/web depending on where the files will end up -->
    8   <xsl:variable name="mode">web</xsl:variable>
     8  <xsl:variable name="mode">wiki</xsl:variable>
    99
    1010  <xsl:template match="TutorialList">
     
    2222    </dl>
    2323    <xsl:apply-templates select="Tutorial[not(@hidden)]"/>
     24   
     25    <hr/><div style="text-align:center;"><xsl:apply-templates select="SupplementaryText/Text[@id='copyright']"/></div>
    2426      </body>
    2527    </html>
     
    3537
    3638  <xsl:template match="Tutorial">
     39    <div style="page-break-before: always;">
    3740    <a name="{@id}"/>
    3841    <h2><xsl:apply-templates select="Title/Text"/></h2>
     
    4245      </xsl:call-template>
    4346    </div>
    44     <xsl:apply-templates select="Content/*"/>
     47    <xsl:apply-templates select="Content/*"/>   
    4548    <br/>
    4649    <br/>
     50    </div>
    4751  </xsl:template>
    4852
    4953  <xsl:template name="supplementary">
    5054    <xsl:param name="mode">web</xsl:param>
     55    <!--
    5156    <xsl:call-template name="IndexLink">
    5257      <xsl:with-param name="mode">combined</xsl:with-param>
    5358    </xsl:call-template>
     59    -->
    5460    <xsl:apply-templates select="Prerequisite" mode="combined"/>
    5561    <xsl:if test="SampleFiles">
  • 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.