diff options
Diffstat (limited to 'help3xsl/online_transform.xsl')
-rw-r--r-- | help3xsl/online_transform.xsl | 59 |
1 files changed, 26 insertions, 33 deletions
diff --git a/help3xsl/online_transform.xsl b/help3xsl/online_transform.xsl index eebaced568..f3ddebee4a 100644 --- a/help3xsl/online_transform.xsl +++ b/help3xsl/online_transform.xsl @@ -238,8 +238,9 @@ <div id="content-2"> <script type="text/javascript"> <![CDATA[ - (function() { - var cx = '010161382024564278136:oejldkqc20o'; + (function() {]]> + <xsl:call-template name="getToken"><xsl:with-param name="lang" select="$lang"/></xsl:call-template> + <![CDATA[ var gcse = document.createElement('script'); gcse.type = 'text/javascript'; gcse.async = true; @@ -611,41 +612,33 @@ </xsl:choose> </xsl:template> - <!-- SECTION --> <xsl:template match="section"> - <a name="{@id}"></a> - - <xsl:choose> - - <xsl:when test="@id='relatedtopics'"> - <div class="relatedtopics"> - <!--<xsl:variable name="href"><xsl:value-of select="concat($urlpre,'text/shared/00/00000004.xhp',$urlpost)"/></xsl:variable>--> - <xsl:variable name="href"><xsl:value-of select="concat($urlpre,'text/shared/00/00000004.xhp')"/></xsl:variable> - <xsl:variable name="anchor"><xsl:value-of select="'related'"/></xsl:variable> - <xsl:variable name="doc" select="document($href)"/> - <p class="related" itemprop="mentions"> - <xsl:apply-templates select="$doc//variable[@id=$anchor]"/> - </p> - <div class="relatedbody" itemprop="mentions"> - <xsl:apply-templates /> - </div> - </div> - </xsl:when> - - <xsl:when test="@id='howtoget'"> - <xsl:call-template name="insert_howtoget" /> - </xsl:when> - - <xsl:otherwise> - <xsl:apply-templates/> - </xsl:otherwise> - - </xsl:choose> - + <a name="{@id}"></a> + <xsl:choose> + <xsl:when test="@id='relatedtopics'"> + <div class="relatedtopics"> + <!--<xsl:variable name="href"><xsl:value-of select="concat($urlpre,'text/shared/00/00000004.xhp',$urlpost)"/></xsl:variable>--> + <xsl:variable name="href"><xsl:value-of select="concat($urlpre,'text/shared/00/00000004.xhp')"/></xsl:variable> + <xsl:variable name="anchor"><xsl:value-of select="'related'"/></xsl:variable> + <xsl:variable name="doc" select="document($href)"/> + <p class="related" itemprop="mentions"> + <xsl:apply-templates select="$doc//variable[@id=$anchor]"/> + </p> + <div class="relatedbody" itemprop="mentions"> + <xsl:apply-templates /> + </div> + </div> + </xsl:when> + <xsl:when test="@id='howtoget'"> + <xsl:call-template name="insert_howtoget" /> + </xsl:when> + <xsl:otherwise> + <xsl:apply-templates/> + </xsl:otherwise> + </xsl:choose> </xsl:template> - <!-- SECTION --> <xsl:template match="section" mode="embedded"> <a name="{@id}"></a> |