natural language when following hyperlinks.
WARNING: to create an hyperlink, it is no more enough to concatenate
$header and the URI. You need to call the new makeURL() named-template.
<xsl:variable name="absPath"><xsl:value-of select="$getterURL"/>getciconly?uri=</xsl:variable>
-<xsl:variable name="header"><xsl:value-of select="$processorURL"/>/apply?keys=<xsl:value-of select="$keys"/>&param.keys=<xsl:value-of select="$keys"/>&param.getterURL=<xsl:value-of select="$getterURL"/>&param.processorURL=<xsl:value-of select="$processorURL"/>&xmluri=<xsl:value-of select="$absPath"/></xsl:variable>
+<xsl:variable name="header"><xsl:value-of select="$processorURL"/>/apply?keys=<xsl:value-of select="$keys"/>&param.naturalLanguage=<xsl:value-of select="$naturalLanguage"/>&param.keys=<xsl:value-of select="$keys"/>&param.getterURL=<xsl:value-of select="$getterURL"/>&param.processorURL=<xsl:value-of select="$processorURL"/>&xmluri=<xsl:value-of select="$absPath"/></xsl:variable>
<xsl:include href="html_init.xsl"/>
<xsl:include href="html_set.xsl"/>
<xsl:variable name="showcast" select="0"/>
+<xsl:template name="makeURL">
+ <xsl:param name="url" select="''"/>
+ <xsl:value-of select="concat(string($header),string($url),'&param.CICURI=',string($url))"/>
+</xsl:template>
<!--***********************************************************************-->
<!-- HTML Head and Body -->
<xsl:when test="boolean(@definitionURL)">
<a>
<xsl:attribute name="href">
- <xsl:value-of select="concat(string($header),string(@definitionURL))"/>
+ <xsl:call-template name="makeURL">
+ <xsl:with-param name="url" select="@definitionURL"/>
+ </xsl:call-template>
</xsl:attribute>
<xsl:apply-templates/>
</a>
<xsl:when test="boolean(@definitionURL)">
<a>
<xsl:attribute name="href">
- <xsl:value-of select="concat(string($header),string(@definitionURL))"/>
+ <xsl:call-template name="makeURL">
+ <xsl:with-param name="url" select="@definitionURL"/>
+ </xsl:call-template>
</xsl:attribute>
<xsl:apply-templates/>
</a>
<xsl:apply-templates mode="inline" select="*[2]"/>
<a>
<xsl:attribute name="href">
- <xsl:value-of select="concat(string($header),string($uri))"/>
+ <xsl:call-template name="makeURL">
+ <xsl:with-param name="url" select="$uri"/>
+ </xsl:call-template>
</xsl:attribute>
<FONT FACE="symbol" mathcolor="blue">
<xsl:value-of select="$symbol"/>
<xsl:when test="count(child::*)=2">
<a>
<xsl:attribute name="href">
- <xsl:value-of select="concat(string($header),string($uri))"/>
+ <xsl:call-template name="makeURL">
+ <xsl:with-param name="url" select="$uri"/>
+ </xsl:call-template>
</xsl:attribute>
<xsl:text>-</xsl:text>
</a>
<xsl:apply-templates mode="inline" select="*[2]"/>
<a>
<xsl:attribute name="href">
- <xsl:value-of select="concat(string($header),string($uri))"/>
+ <xsl:call-template name="makeURL">
+ <xsl:with-param name="url" select="$uri"/>
+ </xsl:call-template>
</xsl:attribute>
<xsl:text>-</xsl:text>
</a>
</xsl:variable>
<a>
<xsl:attribute name="href">
- <xsl:value-of select="concat(string($header),string($uri))"/>
+ <xsl:call-template name="makeURL">
+ <xsl:with-param name="url" select="$uri"/>
+ </xsl:call-template>
</xsl:attribute>
<FONT FACE="symbol" mathcolor="blue">Ø</FONT>
</a>
</xsl:variable>
<a>
<xsl:attribute name="href">
- <xsl:value-of select="concat(string($header),string($uri))"/>
+ <xsl:call-template name="makeURL">
+ <xsl:with-param name="url" select="$uri"/>
+ </xsl:call-template>
</xsl:attribute>
<FONT FACE="symbol" mathcolor="blue">$</FONT>
</a>
</xsl:call-template>
<a>
<xsl:attribute name="href">
- <xsl:value-of select="concat(string($header),string($uri))"/>
+ <xsl:call-template name="makeURL">
+ <xsl:with-param name="url" select="$uri"/>
+ </xsl:call-template>
</xsl:attribute>
<FONT FACE="symbol" mathcolor="blue">
<xsl:value-of select="$symbol"/>
<xsl:when test="count(child::*)=2">
<a>
<xsl:attribute name="href">
- <xsl:value-of select="concat(string($header),string($uri))"/>
+ <xsl:call-template name="makeURL">
+ <xsl:with-param name="url" select="$uri"/>
+ </xsl:call-template>
</xsl:attribute>
<xsl:text>-</xsl:text>
</a>
</xsl:call-template>
<a>
<xsl:attribute name="href">
- <xsl:value-of select="concat(string($header),string($uri))"/>
+ <xsl:call-template name="makeURL">
+ <xsl:with-param name="url" select="$uri"/>
+ </xsl:call-template>
</xsl:attribute>
<xsl:text>-</xsl:text>
</a>
</xsl:variable>
<a>
<xsl:attribute name="href">
- <xsl:value-of select="concat(string($header),string($uri))"/>
+ <xsl:call-template name="makeURL">
+ <xsl:with-param name="url" select="$uri"/>
+ </xsl:call-template>
</xsl:attribute>
<FONT FACE="symbol" mathcolor="blue">Ø</FONT>
</a>
<xsl:when test="$charlength > $framewidth">
<a>
<xsl:attribute name="href">
- <xsl:value-of select="concat(string($header),string($uri))"/>
+ <xsl:call-template name="makeURL">
+ <xsl:with-param name="url" select="$uri"/>
+ </xsl:call-template>
</xsl:attribute>
<FONT FACE="symbol" mathcolor="blue">$</FONT>
</a>
</xsl:variable>
<a>
<xsl:attribute name="href">
- <xsl:value-of select="concat(string($header),string($uri))"/>
+ <xsl:call-template name="makeURL">
+ <xsl:with-param name="url" select="$uri"/>
+ </xsl:call-template>
</xsl:attribute>
<xsl:text>lim</xsl:text>
</a>
</xsl:variable>
<a>
<xsl:attribute name="href">
- <xsl:value-of select="concat(string($header),string($uri))"/>
+ <xsl:call-template name="makeURL">
+ <xsl:with-param name="url" select="$uri"/>
+ </xsl:call-template>
</xsl:attribute>
<SUP>d</SUP>
<xsl:text>/</xsl:text>
</xsl:variable>
<a>
<xsl:attribute name="href">
- <xsl:value-of select="concat(string($header),string($uri))"/>
+ <xsl:call-template name="makeURL">
+ <xsl:with-param name="url" select="$uri"/>
+ </xsl:call-template>
</xsl:attribute>
<xsl:value-of select="$symbol"/>
</a>
<xsl:when test="$charlength > $framewidth">
<a>
<xsl:attribute name="href">
- <xsl:value-of select="concat(string($header),string($uri))"/>
+ <xsl:call-template name="makeURL">
+ <xsl:with-param name="url" select="$uri"/>
+ </xsl:call-template>
</xsl:attribute>
<xsl:text>lim</xsl:text>
</a>
</xsl:variable>
<a>
<xsl:attribute name="href">
- <xsl:value-of select="concat(string($header),string($uri))"/>
+ <xsl:call-template name="makeURL">
+ <xsl:with-param name="url" select="$uri"/>
+ </xsl:call-template>
</xsl:attribute>
<SUP>d</SUP>
<xsl:text>/</xsl:text>
<xsl:when test="$charlength > $framewidth">
<a>
<xsl:attribute name="href">
- <xsl:value-of select="concat(string($header),string($uri))"/>
+ <xsl:call-template name="makeURL">
+ <xsl:with-param name="url" select="$uri"/>
+ </xsl:call-template>
</xsl:attribute>
<xsl:value-of select="$symbol"/>
</a>
<xsl:apply-templates mode="inline" select="*[2]"/>
<a>
<xsl:attribute name="href">
- <xsl:value-of select="concat(string($header),string($uri))"/>
+ <xsl:call-template name="makeURL">
+ <xsl:with-param name="url" select="$uri"/>
+ </xsl:call-template>
</xsl:attribute>
<FONT FACE="symbol" mathcolor="blue">
<xsl:value-of select="$symbol"/>
</xsl:call-template>
<a>
<xsl:attribute name="href">
- <xsl:value-of select="concat(string($header),string($uri))"/>
+ <xsl:call-template name="makeURL">
+ <xsl:with-param name="url" select="$uri"/>
+ </xsl:call-template>
</xsl:attribute>
<FONT FACE="symbol" mathcolor="blue">
<xsl:value-of select="$symbol"/>