<!-- HELM Group: Asperti, Padovani, Sacerdoti, Schena -->
<!--***********************************************************************-->
-<xsl:param name="getterURL" select="'http://localhost:8081/'"/>
-<xsl:param name="processorURL" select="'http://localhost:8080/helm/servlet/uwobo/'"/>
-<xsl:param name="keys" select="'C1,HC2'"/>
-
-<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.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:include href="html_reals.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:output method="html"/> -->
-<xsl:output method="html" encoding="iso-8859-1"/>
+<!-- <xsl:output method="html" encoding="iso-8859-1"/> -->
+
+<!-- document needs method="xml" and searches locally for the dtd if -->
+<!-- doctype-system is specified (the dtd must exist locally for parsing). -->
+<!-- For having output html must be media-type="html" and for having the -->
+<!-- correct <br /> you must specify at least the remote dtd by means of -->
+<!-- doctype-public -->
+<xsl:output
+ method="xml"
+ encoding="iso-8859-1"
+ media-type="text/html"
+ doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN" />
<xsl:variable name="framewidth" select="36"/>
<xsl:template mode="inline" match="m:ci">
<xsl:choose>
<xsl:when test="boolean(@definitionURL)">
- <a>
- <xsl:attribute name="href">
- <xsl:call-template name="makeURL">
- <xsl:with-param name="url" select="@definitionURL"/>
- </xsl:call-template>
- </xsl:attribute>
+ <a href="{@definitionURL}">
<xsl:apply-templates/>
</a>
</xsl:when>
<FONT color="red">From </FONT>
<xsl:apply-templates select="*[2]"/>
<FONT color="red"> we get</FONT>
- <m:mtext>(</m:mtext>
+ (
<xsl:apply-templates select="*[3]"/>
- <m:mtext>) </m:mtext>
+ ) 
<xsl:apply-templates mode="inline" select="*[4]"/>
<FONT color="red"> and </FONT>
- <m:mtext>(</m:mtext>
+ (
<xsl:apply-templates select="*[5]"/>
- <m:mtext>) </m:mtext>
+ ) 
<xsl:apply-templates mode="inline" select="*[6]"/>
- <m:mtext>;</m:mtext>
+ ;
<FONT color="red"> hence </FONT>
<xsl:apply-templates mode="inline" select="*[7]"/>
</xsl:when>
</xsl:when>
<!-- Let -->
<xsl:when test="$name='let'">
- <m:mtext>(</m:mtext>
+ (
<xsl:apply-templates select="m:ci"/>
- <m:mtext>) </m:mtext>
+ )
<xsl:apply-templates select="*[3]">
<xsl:with-param name="current_indent" select="$current_indent + 7"/>
</xsl:apply-templates>
<xsl:call-template name="make_indent">
<xsl:with-param name="current_indent" select="$current_indent"/>
</xsl:call-template>
- <m:mtext>(</m:mtext>
+ (
<xsl:apply-templates select="*[3]"/>
- <m:mtext>) </m:mtext>
+ ) 
<xsl:apply-templates select="*[4]">
<xsl:with-param name="current_indent" select="$current_indent + 9"/>
</xsl:apply-templates>
<xsl:call-template name="make_indent">
<xsl:with-param name="current_indent" select="$current_indent"/>
</xsl:call-template>
- <m:mtext>(</m:mtext>
+ (
<xsl:apply-templates select="*[5]"/>
- <m:mtext>) </m:mtext>
+ ) 
<xsl:apply-templates select="*[6]">
<xsl:with-param name="current_indent" select="$current_indent + 9"/>
</xsl:apply-templates>
<xsl:call-template name="make_indent">
<xsl:with-param name="current_indent" select="$current_indent"/>
</xsl:call-template>
- <m:mtext>*</m:mtext>
+ *
<xsl:apply-templates select="*[4]">
<xsl:with-param name="current_indent" select="$current_indent"/>
</xsl:apply-templates>
<xsl:call-template name="make_indent">
<xsl:with-param name="current_indent" select="$current_indent"/>
</xsl:call-template>
- <m:mtext>*</m:mtext>
+ *
<xsl:apply-templates select="*[5]">
<xsl:with-param name="current_indent" select="$current_indent"/>
</xsl:apply-templates>
</xsl:call-template>
<FONT color="red">Let </FONT>
<xsl:apply-templates mode="inline" select="*[3]"/>
- <m:mtext>:</m:mtext>
+ :
<xsl:apply-templates mode="inline" select="*[4]"/>
<FONT color="red"> such that</FONT>
<br/>
<xsl:call-template name="make_indent">
<xsl:with-param name="current_indent" select="$current_indent"/>
</xsl:call-template>
- <m:mtext>(</m:mtext>
+ (
<xsl:apply-templates mode="inline" select="*[5]"/>
- <m:mtext>)</m:mtext>
+ )
<xsl:apply-templates select="*[6]">
<xsl:with-param name="current_indent" select="$current_indent +7"/>
</xsl:apply-templates>
<xsl:template match="m:ci">
<xsl:choose>
<xsl:when test="boolean(@definitionURL)">
- <a>
- <xsl:attribute name="href">
- <xsl:call-template name="makeURL">
- <xsl:with-param name="url" select="@definitionURL"/>
- </xsl:call-template>
- </xsl:attribute>
+ <a href="{@definitionURL}">
<xsl:apply-templates/>
</a>
</xsl:when>