[13638] | 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 |
|
---|
[25472] | 5 | <xsl:param name="gs-major-version"/>
|
---|
[13638] | 6 | <xsl:include href="common.xsl"/>
|
---|
| 7 |
|
---|
| 8 | <xsl:output method="text"/>
|
---|
| 9 |
|
---|
[25940] | 10 | <xsl:variable name="currentfolder">gs<xsl:value-of select="$gs-major-version"/>-current</xsl:variable>
|
---|
[13638] | 11 | <xsl:variable name="es">Spanish</xsl:variable>
|
---|
| 12 | <xsl:variable name="fr">French</xsl:variable>
|
---|
| 13 | <xsl:variable name="ru">Russian</xsl:variable>
|
---|
[25940] | 14 | <xsl:variable name="sampledir">{{SERVER}}{{SCRIPTPATH}}/gsdoc/tutorial/<xsl:value-of select="$currentfolder"/>/sample_files</xsl:variable>
|
---|
| 15 | <xsl:variable name="htmldir">{{SERVER}}{{SCRIPTPATH}}/gsdoc/tutorial/<xsl:value-of select="$currentfolder"/></xsl:variable>
|
---|
[13638] | 16 | <xsl:template match="TutorialList">
|
---|
| 17 | '''<xsl:apply-templates select="Title/Text"/>'''<xsl:text>
|
---|
| 18 | </xsl:text>
|
---|
| 19 | 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>
|
---|
| 20 | </xsl:text>
|
---|
| 21 | Translations of March 2006 version (for Greenstone 2.70):
|
---|
| 22 | [<xsl:value-of select="$htmldir"/>/es/index.html <xsl:value-of select="$es"/>]
|
---|
| 23 | [<xsl:value-of select="$htmldir"/>/fr/index.html <xsl:value-of select="$fr"/>]
|
---|
| 24 | [<xsl:value-of select="$htmldir"/>/ru/index.html <xsl:value-of select="$ru"/>]<xsl:text>
|
---|
| 25 | </xsl:text>
|
---|
| 26 | <xsl:apply-templates select="Tutorial"/>
|
---|
| 27 | </xsl:template>
|
---|
| 28 |
|
---|
[26036] | 29 | <xsl:template match="Tutorial"><xsl:text>
|
---|
| 30 |
|
---|
| 31 | </xsl:text>
|
---|
[29397] | 32 | **[[<xsl:value-of select="$htmldir"/>/en/<xsl:value-of select="@id"/>.htm|<xsl:apply-templates select="Title/Text"/>]]**
|
---|
[26036] | 33 | <xsl:for-each select="Content//Synopsis">
|
---|
| 34 | ''<xsl:apply-templates/>''</xsl:for-each>
|
---|
[13638] | 35 | <xsl:for-each select="Content/Heading/Text">
|
---|
[29397] | 36 | * <xsl:apply-templates/>
|
---|
[13638] | 37 | </xsl:for-each>
|
---|
| 38 | </xsl:template>
|
---|
[26036] | 39 |
|
---|
[13638] | 40 | </xsl:stylesheet>
|
---|