source: trunk/gsdl-documentation/tutorials/processing/xml-to-many-html.xsl@ 14060

Last change on this file since 14060 was 13638, checked in by kjdon, 17 years ago

xsl transform files copied from gsdl-tutorials repository

  • Property svn:keywords set to Author Date Id Revision
File size: 1.6 KB
Line 
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 -->
9 <xsl:variable name="mode">web</xsl:variable>
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/*"/>
27 </body>
28 </html>
29 </xsl:if>
30 </xsl:template>
31
32 <xsl:template name="supplementary">
33 <xsl:param name="mode">web</xsl:param>
34 <xsl:if test="$mode='wiki'">
35 <xsl:call-template name="WikiLink"/>
36 </xsl:if>
37 <xsl:call-template name="IndexLink">
38 <xsl:with-param name="mode">individual</xsl:with-param>
39 </xsl:call-template>
40 <xsl:apply-templates select="Prerequisite" mode="individual"/>
41 <xsl:if test="SampleFiles">
42 <xsl:call-template name="SampleFiles">
43 <xsl:with-param name="mode"><xsl:value-of select="$mode"/></xsl:with-param>
44 </xsl:call-template>
45 </xsl:if>
46 <xsl:apply-templates select="Version"/>
47 </xsl:template>
48
49 <!-- <xsl:template match="Title">
50 <h2><xsl:apply-templates select="Text"/></h2>
51 </xsl:template>-->
52
53
54</xsl:stylesheet>
Note: See TracBrowser for help on using the repository browser.