]> 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 da4232a23f9960dad53b728610fcc93ea099476d..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:variable name="absPath">http://localhost:8081/getciconly?uri=</xsl:variable>
 
 <!-- THEORY -->
 
 
 <!-- THEORY ELEMENTS -->
 
-<xsl:template match="DEFINITION">
+<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: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:stylesheet>
+
+
 
-<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:param name="current_uri"/>
-    <xsl:apply-templates select="document(concat(string($absPath),string($current_uri),&quot;/&quot;,string(@uri)))"/>
-</xsl:template>
 
-</xsl:stylesheet>