Last change
on this file since 24581 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.5 KB
|
Line | |
---|
1 | <?xml version="1.0" encoding="UTF-8"?>
|
---|
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="text"/>
|
---|
8 |
|
---|
9 | <xsl:variable name="es">Spanish</xsl:variable>
|
---|
10 | <xsl:variable name="fr">French</xsl:variable>
|
---|
11 | <xsl:variable name="ru">Russian</xsl:variable>
|
---|
12 | <xsl:variable name="sampledir">{{SERVER}}{{SCRIPTPATH}}/gsdoc/tutorial/sample_files</xsl:variable>
|
---|
13 | <xsl:variable name="htmldir">{{SERVER}}{{SCRIPTPATH}}/gsdoc/tutorial</xsl:variable>
|
---|
14 | <xsl:template match="TutorialList">
|
---|
15 | '''<xsl:apply-templates select="Title/Text"/>'''<xsl:text>
|
---|
16 | </xsl:text>
|
---|
17 | These work with Greenstone <xsl:value-of select="Version/@current"/>. [<xsl:value-of select="$htmldir"/>/en/all_tutorials.html <xsl:apply-templates select="/TutorialList/SupplementaryText/Text[@id='print']"/>]<xsl:text>
|
---|
18 | </xsl:text>
|
---|
19 | Translations of March 2006 version (for Greenstone 2.70):
|
---|
20 | [<xsl:value-of select="$htmldir"/>/es/index.html <xsl:value-of select="$es"/>]
|
---|
21 | [<xsl:value-of select="$htmldir"/>/fr/index.html <xsl:value-of select="$fr"/>]
|
---|
22 | [<xsl:value-of select="$htmldir"/>/ru/index.html <xsl:value-of select="$ru"/>]<xsl:text>
|
---|
23 |
|
---|
24 | </xsl:text>
|
---|
25 | <xsl:apply-templates select="Tutorial"/>
|
---|
26 | </xsl:template>
|
---|
27 |
|
---|
28 | <xsl:template match="Tutorial">
|
---|
29 | ==[<xsl:value-of select="$htmldir"/>/en/<xsl:value-of select="@id"/>.htm <xsl:apply-templates select="Title/Text"/>]==
|
---|
30 | <xsl:for-each select="Content/Heading/Text">
|
---|
31 | *<xsl:apply-templates/>
|
---|
32 | </xsl:for-each>
|
---|
33 | </xsl:template>
|
---|
34 |
|
---|
35 | </xsl:stylesheet>
|
---|
Note:
See
TracBrowser
for help on using the repository browser.