[13638] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
| 2 | <xsl:stylesheet version="1.0"
|
---|
| 3 | xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
|
---|
| 4 |
|
---|
| 5 | <xsl:include href="common.xsl"/>
|
---|
| 6 |
|
---|
| 7 | <xsl:output method="html"/>
|
---|
| 8 | <!-- set mode to cd/web/wiki depending on where the files will end up -->
|
---|
[17494] | 9 | <xsl:variable name="mode">wiki</xsl:variable>
|
---|
[13638] | 10 |
|
---|
| 11 | <xsl:template match="Tutorial">
|
---|
| 12 | <xsl:if test="not(@hidden)">
|
---|
| 13 | <html>
|
---|
| 14 | <head>
|
---|
| 15 | <title><xsl:apply-templates select="Title/Text"/></title>
|
---|
| 16 | </head>
|
---|
| 17 | <body>
|
---|
| 18 | <h1><xsl:apply-templates select="/TutorialList/SupplementaryText/Text[@id='title']"/></h1>
|
---|
| 19 | <div style="text-align:right;">
|
---|
| 20 | <xsl:call-template name="supplementary">
|
---|
| 21 | <xsl:with-param name="mode" select="$mode"/>
|
---|
| 22 | </xsl:call-template>
|
---|
| 23 | </div>
|
---|
| 24 | <a name="{@id}"/>
|
---|
| 25 | <h2><xsl:apply-templates select="Title/Text"/></h2>
|
---|
| 26 | <xsl:apply-templates select="Content/*"/>
|
---|
[17494] | 27 |
|
---|
| 28 | <hr/><div style="text-align:center;"><xsl:apply-templates select="/TutorialList/SupplementaryText/Text[@id='copyright']"/></div>
|
---|
| 29 |
|
---|
[13638] | 30 | </body>
|
---|
| 31 | </html>
|
---|
| 32 | </xsl:if>
|
---|
| 33 | </xsl:template>
|
---|
| 34 |
|
---|
| 35 | <xsl:template name="supplementary">
|
---|
| 36 | <xsl:param name="mode">web</xsl:param>
|
---|
| 37 | <xsl:if test="$mode='wiki'">
|
---|
| 38 | <xsl:call-template name="WikiLink"/>
|
---|
| 39 | </xsl:if>
|
---|
| 40 | <xsl:call-template name="IndexLink">
|
---|
| 41 | <xsl:with-param name="mode">individual</xsl:with-param>
|
---|
| 42 | </xsl:call-template>
|
---|
| 43 | <xsl:apply-templates select="Prerequisite" mode="individual"/>
|
---|
| 44 | <xsl:if test="SampleFiles">
|
---|
| 45 | <xsl:call-template name="SampleFiles">
|
---|
| 46 | <xsl:with-param name="mode"><xsl:value-of select="$mode"/></xsl:with-param>
|
---|
| 47 | </xsl:call-template>
|
---|
| 48 | </xsl:if>
|
---|
| 49 | <xsl:apply-templates select="Version"/>
|
---|
| 50 | </xsl:template>
|
---|
| 51 |
|
---|
| 52 | <!-- <xsl:template match="Title">
|
---|
| 53 | <h2><xsl:apply-templates select="Text"/></h2>
|
---|
| 54 | </xsl:template>-->
|
---|
| 55 |
|
---|
| 56 |
|
---|
| 57 | </xsl:stylesheet>
|
---|