Changeset 33786 for documentation


Ignore:
Timestamp:
2019-12-10T11:43:18+13:00 (4 years ago)
Author:
kjdon
Message:

add google analytics, stop the outputting of fr, es, ru links as those translations are really old

File:
1 edited

Legend:

Unmodified
Added
Removed
  • documentation/trunk/tutorials/processing/xml-to-top-index.xsl

    r25472 r33786  
    44
    55  <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 
    69  <xsl:include href="common.xsl"/>
    710
     
    1417    <html>
    1518      <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"/>
    1721      </head>
    1822      <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>
    2024    <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>
    2226    <xsl:apply-templates select="Comment"/>
    2327    <dl>
     
    2933
    3034  <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>
    3236    <dd><xsl:for-each select="Content/Heading">
    3337    <xsl:apply-templates/><br/>
Note: See TracChangeset for help on using the changeset viewer.