Changeset 33786
- Timestamp:
- 2019-12-10T11:43:18+13:00 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
documentation/trunk/tutorials/processing/xml-to-top-index.xsl
r25472 r33786 4 4 5 5 <xsl:param name="gs-major-version"/> 6 <!-- set this to 1 if you want the links to other langs generated--> 7 <xsl:variable name="all-langs">0</xsl:variable> 8 6 9 <xsl:include href="common.xsl"/> 7 10 … … 14 17 <html> 15 18 <head> 16 <title><xsl:apply-templates select="Title/Text"/>: <xsl:value-of select="Version/@current"/></title> 19 <title><xsl:apply-templates select="Title/Text"/>: <xsl:value-of select="Version/@current"/></title> 20 <xsl:call-template name="add-google-analytics"/> 17 21 </head> 18 22 <body> 19 <h2><xsl:apply-templates select="Title/Text"/> <xsl:text> </xsl:text><a href="es/index.html"><xsl:value-of select="$es"/></a><xsl:text> </xsl:text><a href="fr/index.html"><xsl:value-of select="$fr"/></a><xsl:text> </xsl:text><a href="ru/index.html"><xsl:value-of select="$ru"/></a></h2>23 <h2><xsl:apply-templates select="Title/Text"/> <xsl:if test="$all-langs = 1"><xsl:text> </xsl:text><a href="es/index.html"><xsl:value-of select="$es"/></a><xsl:text> </xsl:text><a href="fr/index.html"><xsl:value-of select="$fr"/></a><xsl:text> </xsl:text><a href="ru/index.html"><xsl:value-of select="$ru"/></a></xsl:if></h2> 20 24 <h3><xsl:apply-templates select="SupplementaryText/Text[@id='current']"/><xsl:text> </xsl:text><xsl:value-of select="Version/@current"/></h3> 21 <p><a href="en/all_tutorials.html"><xsl:apply-templates select="/TutorialList/SupplementaryText/Text[@id='print']"/></a><xsl: text> </xsl:text><a href="es/all_tutorials.html"><xsl:value-of select="$es"/></a><xsl:text> </xsl:text><a href="fr/all_tutorials.html"><xsl:value-of select="$fr"/></a><xsl:text> </xsl:text><a href="ru/all_tutorials.html"><xsl:value-of select="$ru"/></a></p>25 <p><a href="en/all_tutorials.html"><xsl:apply-templates select="/TutorialList/SupplementaryText/Text[@id='print']"/></a><xsl:if test="$all-langs = 1"><xsl:text> </xsl:text><a href="es/all_tutorials.html"><xsl:value-of select="$es"/></a><xsl:text> </xsl:text><a href="fr/all_tutorials.html"><xsl:value-of select="$fr"/></a><xsl:text> </xsl:text><a href="ru/all_tutorials.html"><xsl:value-of select="$ru"/></a></xsl:if></p> 22 26 <xsl:apply-templates select="Comment"/> 23 27 <dl> … … 29 33 30 34 <xsl:template match="Tutorial"> 31 <dt><a href="en/{@id}.htm"><xsl:apply-templates select="Title/Text"/></a><xsl: text> </xsl:text><a href="es/{@id}.htm"><xsl:value-of select="$es"/></a><xsl:text> </xsl:text><a href="fr/{@id}.htm"><xsl:value-of select="$fr"/></a><xsl:text> </xsl:text><a href="ru/{@id}.htm"><xsl:value-of select="$ru"/></a></dt>35 <dt><a href="en/{@id}.htm"><xsl:apply-templates select="Title/Text"/></a><xsl:if test="$all-langs = 1"><xsl:text> </xsl:text><a href="es/{@id}.htm"><xsl:value-of select="$es"/></a><xsl:text> </xsl:text><a href="fr/{@id}.htm"><xsl:value-of select="$fr"/></a><xsl:text> </xsl:text><a href="ru/{@id}.htm"><xsl:value-of select="$ru"/></a></xsl:if></dt> 32 36 <dd><xsl:for-each select="Content/Heading"> 33 37 <xsl:apply-templates/><br/>
Note:
See TracChangeset
for help on using the changeset viewer.