]> matita.cs.unibo.it Git - helm.git/commitdiff
Bug fixed: now propagates informations about inner-types usage and
authorClaudio Sacerdoti Coen <claudio.sacerdoticoen@unibo.it>
Wed, 7 Mar 2001 11:05:20 +0000 (11:05 +0000)
committerClaudio Sacerdoti Coen <claudio.sacerdoticoen@unibo.it>
Wed, 7 Mar 2001 11:05:20 +0000 (11:05 +0000)
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.

helm/style/content_to_html.xsl
helm/style/html_init.xsl
helm/style/html_reals.xsl
helm/style/html_set.xsl

index fffc458655886f5fe506189c7915f55ce947000d..461dfddadaaab720a9564151317844588150150b 100644 (file)
@@ -38,7 +38,7 @@
 
 <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"/>&#x26;param.keys=<xsl:value-of select="$keys"/>&#x26;param.getterURL=<xsl:value-of select="$getterURL"/>&#x26;param.processorURL=<xsl:value-of select="$processorURL"/>&#x26;xmluri=<xsl:value-of select="$absPath"/></xsl:variable>
+<xsl:variable name="header"><xsl:value-of select="$processorURL"/>/apply?keys=<xsl:value-of select="$keys"/>&#x26;param.naturalLanguage=<xsl:value-of select="$naturalLanguage"/>&#x26;param.keys=<xsl:value-of select="$keys"/>&#x26;param.getterURL=<xsl:value-of select="$getterURL"/>&#x26;param.processorURL=<xsl:value-of select="$processorURL"/>&#x26;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),'&#x26;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>
index f52525ebf3eb80f20a52e190a542c97ecd35dcff..26ddf68d2c83eff3f86a8f1481c6c2a57490cf56 100644 (file)
@@ -77,7 +77,9 @@
   <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"/>
@@ -97,7 +99,9 @@
    <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">&#216;</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">&#36;</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">&#216;</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">&#36;</FONT>
      </a>
index 2b4ca35e5a742f1209f2f58ef128d7e8e99046ab..72d6dab7d60f1e57360141a069690220c219e317 100644 (file)
@@ -45,7 +45,9 @@
      </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>
@@ -65,7 +67,9 @@
      </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>
index 97e3b1e074c89197115aefec36bbd6edad638203..a8511d65d66596a990fe3d580c48742d99fa82bc 100644 (file)
   <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"/>