Changeset 17494 for documentation/trunk/tutorials/processing
- Timestamp:
- 2008-10-08T13:59:48+13:00 (16 years ago)
- Location:
- documentation/trunk/tutorials/processing
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
documentation/trunk/tutorials/processing/xml-to-index.xsl
r13638 r17494 6 6 <xsl:include href="common.xsl"/> 7 7 8 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> 10 10 11 11 <xsl:template match="TutorialList"> … … 24 24 <xsl:apply-templates select="Tutorial[not(@hidden)]"/> 25 25 </dl> 26 27 <hr/><div style="text-align:center;"><xsl:apply-templates select="/TutorialList/SupplementaryText/Text[@id='copyright']"/></div> 28 26 29 </body> 27 30 </html> -
documentation/trunk/tutorials/processing/xml-to-many-html.xsl
r13638 r17494 7 7 <xsl:output method="html"/> 8 8 <!-- set mode to cd/web/wiki depending on where the files will end up --> 9 <xsl:variable name="mode">w eb</xsl:variable>9 <xsl:variable name="mode">wiki</xsl:variable> 10 10 11 11 <xsl:template match="Tutorial"> … … 25 25 <h2><xsl:apply-templates select="Title/Text"/></h2> 26 26 <xsl:apply-templates select="Content/*"/> 27 28 <hr/><div style="text-align:center;"><xsl:apply-templates select="/TutorialList/SupplementaryText/Text[@id='copyright']"/></div> 29 27 30 </body> 28 31 </html> -
documentation/trunk/tutorials/processing/xml-to-one-html.xsl
r13638 r17494 6 6 <xsl:output method="html"/> 7 7 <!-- set mode to cd/web depending on where the files will end up --> 8 <xsl:variable name="mode">w eb</xsl:variable>8 <xsl:variable name="mode">wiki</xsl:variable> 9 9 10 10 <xsl:template match="TutorialList"> … … 22 22 </dl> 23 23 <xsl:apply-templates select="Tutorial[not(@hidden)]"/> 24 25 <hr/><div style="text-align:center;"><xsl:apply-templates select="SupplementaryText/Text[@id='copyright']"/></div> 24 26 </body> 25 27 </html> … … 35 37 36 38 <xsl:template match="Tutorial"> 39 <div style="page-break-before: always;"> 37 40 <a name="{@id}"/> 38 41 <h2><xsl:apply-templates select="Title/Text"/></h2> … … 42 45 </xsl:call-template> 43 46 </div> 44 <xsl:apply-templates select="Content/*"/> 47 <xsl:apply-templates select="Content/*"/> 45 48 <br/> 46 49 <br/> 50 </div> 47 51 </xsl:template> 48 52 49 53 <xsl:template name="supplementary"> 50 54 <xsl:param name="mode">web</xsl:param> 55 <!-- 51 56 <xsl:call-template name="IndexLink"> 52 57 <xsl:with-param name="mode">combined</xsl:with-param> 53 58 </xsl:call-template> 59 --> 54 60 <xsl:apply-templates select="Prerequisite" mode="combined"/> 55 61 <xsl:if test="SampleFiles"> -
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.