]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/style/objtheorycontent.xsl
Modified Files:
[helm.git] / helm / style / objtheorycontent.xsl
diff --git a/helm/style/objtheorycontent.xsl b/helm/style/objtheorycontent.xsl
new file mode 100644 (file)
index 0000000..6b860a0
--- /dev/null
@@ -0,0 +1,165 @@
+<?xml version="1.0"?>
+
+<!-- Copyright (C) 2000, HELM Team                                     -->
+<!--                                                                   -->
+<!-- This file is part of HELM, an Hypertextual, Electronic            -->
+<!-- Library of Mathematics, developed at the Computer Science         -->
+<!-- Department, University of Bologna, Italy.                         -->
+<!--                                                                   -->
+<!-- HELM is free software; you can redistribute it and/or             -->
+<!-- modify it under the terms of the GNU General Public License       -->
+<!-- as published by the Free Software Foundation; either version 2    -->
+<!-- of the License, or (at your option) any later version.            -->
+<!--                                                                   -->
+<!-- HELM is distributed in the hope that it will be useful,           -->
+<!-- but WITHOUT ANY WARRANTY; without even the implied warranty of    -->
+<!-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the     -->
+<!-- GNU General Public License for more details.                      -->
+<!--                                                                   -->
+<!-- You should have received a copy of the GNU General Public License -->
+<!-- along with HELM; if not, write to the Free Software               -->
+<!-- Foundation, Inc., 59 Temple Place - Suite 330, Boston,            -->
+<!-- MA  02111-1307, USA.                                              -->
+<!--                                                                   -->
+<!-- For details, see the HELM World-Wide-Web page,                    -->
+<!-- http://cs.unibo.it/helm/.                                         -->
+
+<!--******************************************************************--> 
+<!-- XSLT version 0.1 of CIC objects to MathML content of types only: -->
+<!-- First draft: March 9 2001, Irene Schena                          -->
+<!--******************************************************************-->
+
+<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+                              xmlns:m="http://www.w3.org/1998/Math/MathML"
+                              xmlns:helm="http://www.cs.unibo.it/helm">
+
+<xsl:param name="type" select="0"/>
+<xsl:param name="getterURL" select="'http://localhost:8081/'"/>
+<xsl:variable name="absPath"><xsl:value-of select="$getterURL"/>getciconly?uri=</xsl:variable>
+
+<xsl:import href="objcontent.xsl"/>
+<xsl:include href="basic.xsl"/>
+<xsl:include href="set.xsl"/>
+<xsl:include href="reals.xsl"/>
+
+<!-- CIC DEFINITION -->
+
+<xsl:template match="Definition">
+    <xsl:choose>
+    <xsl:when test="$type=0">
+     <Definition name="{@name}" helm:xref="{@id}">  
+      <xsl:if test="string(@params) != &quot;&quot;">
+       <Params>
+        <xsl:value-of select="@params"/>
+       </Params>
+      </xsl:if>
+      <body>
+       <xsl:apply-templates select="body/*[1]"/>
+      </body>
+     <type>
+       <xsl:apply-templates select="type/*[1]"/>
+     </type>
+    </Definition>
+   </xsl:when>
+   <xsl:otherwise>
+    <type>
+     <xsl:apply-templates select="type/*[1]"/>
+    </type>
+   </xsl:otherwise>
+   </xsl:choose>
+</xsl:template>
+
+<xsl:template match="Axiom|CurrentProof|InductiveDefinition|Variable">
+    <xsl:apply-templates select="." mode="noannot"/>
+</xsl:template>
+
+<xsl:template match="LAMBDA|LETIN|PROD|CAST|REL|SORT|APPLY|VAR|META|CONST|MUTIND|MUTCONSTRUCT|MUTCASE|FIX|COFIX">
+    <m:math>
+     <xsl:apply-templates select="." mode="noannot"/>
+    </m:math>
+</xsl:template>
+
+<xsl:template match="LAMBDA|LETIN|PROD|CAST|REL|SORT|APPLY|VAR|META|CONST|MUTIND|MUTCONSTRUCT|MUTCASE|FIX|COFIX" mode="noannot">
+    <xsl:apply-templates select="." mode="pure"/>
+</xsl:template>
+
+</xsl:stylesheet>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+