3 <!--***********************************************************************-->
4 <!-- XSLT version 0.1 of theory objects to theory sections: -->
5 <!-- First draft: May 08 2000, Claudio Sacerdoti Coen, Irene Schena -->
6 <!--***********************************************************************-->
8 <xsl:stylesheet version="0.1" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
10 <xsl:import href="rootcontent.xsl"/>
12 <!--******************************************************************-->
13 <!-- Variable containing the absolute path of the CIC file -->
14 <!--******************************************************************-->
16 <xsl:variable name="absPath">http://localhost:8081/getciconly?uri=</xsl:variable>
20 <xsl:template match="Theory">
22 <xsl:apply-templates><xsl:with-param name="current_uri" select="string(@uri)"/></xsl:apply-templates>
28 <xsl:template match="SECTION">
29 <xsl:param name="current_uri"/>
31 <xsl:apply-templates><xsl:with-param name="current_uri" select="concat($current_uri,"/",string(@uri))"/></xsl:apply-templates>
35 <!-- THEORY ELEMENTS -->
37 <xsl:template match="DEFINITION">
38 <xsl:param name="current_uri"/>
39 <xsl:apply-templates select="document(concat(string($absPath),string($current_uri),"/",string(@uri)))"/>
42 <xsl:template match="AXIOM">
43 <xsl:param name="current_uri"/>
44 <xsl:apply-templates select="document(concat(string($absPath),string($current_uri),"/",string(@uri)))"/>
47 <xsl:template match="THEOREM">
48 <xsl:param name="current_uri"/>
49 <xsl:apply-templates select="document(concat(string($absPath),string($current_uri),"/",string(@uri)))"/>
52 <xsl:template match="VARIABLE">
53 <xsl:param name="current_uri"/>
54 <xsl:apply-templates select="document(concat(string($absPath),string($current_uri),"/",string(@uri)))"/>