]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/style/theory_content.xsl
Modified Files:
[helm.git] / helm / style / theory_content.xsl
index 13751f85518e88c758a3e8005427395d0eb7810c..6ae6ee7c90d4675f6dc3237ef1b87d3aba551f72 100644 (file)
 
 <xsl:stylesheet version="0.1" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
 
-<xsl:import href="rootcontent.xsl"/>
-
-<!--******************************************************************-->
-<!-- Variable containing the absolute path of the CIC file            -->
-<!--******************************************************************-->
-
-<xsl:param name="getterURL" select="'http://localhost:8081/'"/>
-<xsl:param name="processorURL" select="'http://localhost:8080/helm/servlet/uwobo/'"/>
-
-<xsl:variable name="absPath"><xsl:value-of select="$getterURL"/>getciconly?uri=</xsl:variable>
-
-<xsl:variable name="header"><xsl:value-of select="$processorURL"/>/apply?key=C1&#x26;key=HC2&#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>
 
 <!-- THEORY -->
 
 
 <!-- THEORY ELEMENTS -->
 
-<!--
-<xsl:template match="DEFINITION">
-    <xsl:copy-of select="document(concat(string($header),string(@definitionURL)))"/>
-</xsl:template>
--->
-
-<xsl:template match="DEFINITION">
-<xsl:param name="current_uri"/>
-    <xsl:apply-templates select="document(concat(string($absPath),string($current_uri),&quot;/&quot;,string(@uri)))"/>
-</xsl:template>
-
-<xsl:template match="AXIOM">
-<xsl:param name="current_uri"/>
-    <xsl:apply-templates select="document(concat(string($absPath),string($current_uri),&quot;/&quot;,string(@uri)))"/>
-</xsl:template>
-
-<xsl:template match="THEOREM">
-<xsl:param name="current_uri"/>
-    <xsl:apply-templates select="document(concat(string($absPath),string($current_uri),&quot;/&quot;,string(@uri)))"/>
-</xsl:template>
-
-<xsl:template match="VARIABLE">
+<xsl:template match="DEFINITION|AXIOM|THEOREM|VARIABLE">
 <xsl:param name="current_uri"/>
-    <xsl:apply-templates select="document(concat(string($absPath),string($current_uri),&quot;/&quot;,string(@uri)))"/>
+<xsl:variable name="uri" select="concat(string($current_uri),&quot;/&quot;,string(@uri))"/>
+    <ENTITY uri="{$uri}"/>
 </xsl:template>
 
 </xsl:stylesheet>