]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/style/theory_content.xsl
Raw mode now really considers compressed/not compressed
[helm.git] / helm / style / theory_content.xsl
index b01fc6d1326610d54721a4746167e344c8635121..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:variable name="absPath"><xsl:value-of select="$getterURL"/>getciconly?uri=</xsl:variable>
 
 <!-- THEORY -->
 
 
 <!-- THEORY ELEMENTS -->
 
-<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>