- Timestamp:
- 2008-10-08T13:59:48+13:00 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
documentation/trunk/tutorials/processing/xml-to-one-workshop.xsl
r13638 r17494 26 26 <xsl:apply-templates select="$manifest/Section" mode="index"/> 27 27 <xsl:apply-templates select="$manifest/Section"/> 28 29 <div style="text-align:center;"><xsl:apply-templates select="/TutorialList/SupplementaryText/Text[@id='copyright']"/></div> 30 28 31 </body> 29 32 </html> 30 </xsl:template> 33 </xsl:template> 34 31 35 32 36 <xsl:template match="Section" mode="index"> 33 37 <xsl:variable name="secnum" select="@number"/> 38 <div style="page-break-after: always;"> 34 39 <h2><a href="#{@id}"><xsl:value-of select="Heading"/></a></h2> 35 40 <xsl:for-each select="TutorialRef|SplitTutorialRef"> … … 39 44 <xsl:if test="self::TutorialRef"> 40 45 <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> 42 50 </xsl:apply-templates> 43 51 </xsl:if> 44 52 <xsl:if test="self::SplitTutorialRef"> 45 53 <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> 47 58 <xsl:with-param name="split" select="@split"/> 48 59 <xsl:with-param name="type" select="@type"/> … … 53 64 </dl> 54 65 </xsl:for-each> 66 </div> 55 67 </xsl:template> 56 68 … … 64 76 <xsl:if test="self::TutorialRef"> 65 77 <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> 67 84 </xsl:apply-templates> 68 85 </xsl:if> 69 86 <xsl:if test="self::SplitTutorialRef"> 70 87 <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> 72 92 <xsl:with-param name="split" select="@split"/> 73 93 <xsl:with-param name="type" select="@type"/> … … 81 101 </xsl:template> 82 102 83 <xsl:template match="Tutorial"> 103 <xsl:template match="Tutorial"> 84 104 <xsl:param name="number"/> 105 <div style="page-break-after: always;"> 85 106 <h2><xsl:value-of select="$number"/>. <xsl:apply-templates select="Title/Text"/></h2> 86 107 <xsl:apply-templates select="Content/*"/> 108 </div> 87 109 </xsl:template> 88 110 … … 104 126 <xsl:param name="beginnotes"/> 105 127 <xsl:param name="endnotes"/> 128 129 <div style="page-break-after: always;"> 106 130 <h2><xsl:value-of select="$number"/>. <xsl:apply-templates select="Title/Text"/><xsl:value-of select="$titleextra"/></h2> 107 131 <xsl:apply-templates select="$beginnotes"/> … … 121 145 </xsl:if> 122 146 <xsl:apply-templates select="$endnotes"/> 147 </div> 123 148 </xsl:template> 124 149
Note:
See TracChangeset
for help on using the changeset viewer.