]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/style/mk_meta_theory.xsl
This commit was manufactured by cvs2svn to create branch 'init'.
[helm.git] / helm / style / mk_meta_theory.xsl
diff --git a/helm/style/mk_meta_theory.xsl b/helm/style/mk_meta_theory.xsl
deleted file mode 100644 (file)
index 3a07962..0000000
+++ /dev/null
@@ -1,177 +0,0 @@
-<?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/.                                         -->
-
-<xsl:stylesheet version="1.0"
-   xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
-   xmlns:ht="http://www.cs.unibo.it/helm/namespaces/helm-theory"
-   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
-   xmlns:h="http:/www.cs.unibo.it/helm/schemas/schema-h.rdf#">
-
-<xsl:variable name="MainConclusion" select="'http://www.cs.unibo.it/helm/schemas/schema-h.rdf#MainConclusion'"/>
-<xsl:variable name="InConclusion" select="'http://www.cs.unibo.it/helm/schemas/schema-h.rdf#InConclusion'"/>
-<xsl:variable name="MainHypothesis" select="'http://www.cs.unibo.it/helm/schemas/schema-h.rdf#MainHypothesis'"/>
-<xsl:variable name="InHypothesis" select="'http://www.cs.unibo.it/helm/schemas/schema-h.rdf#InHypothesis'"/>
-<xsl:variable name="InBody" select="'http://www.cs.unibo.it/helm/schemas/schema-h.rdf#InBody'"/>
-
-<xsl:template match="/">
-               <html> 
-                <head>
-                 <title>Occurrences of <xsl:value-of select="*/*/@rdf:value"/></title>
-                 <style>
-                  a { text-decoration: none }
-                  a.underline {text-decoration: underline }
-                 </style>
-                </head>
-                <!-- CSC: method onLoad to be removed once the window -->
-                <!-- CSC: becomes a frame                              -->
-                <body bgcolor="white" onLoad="window.focus()">
-                <xsl:apply-templates/>
-                </body>
-               </html>
-</xsl:template>
-
-<xsl:template match="h:Object">
- <xsl:variable name="no_main"
-   select="count(*/h:Occurrence[@rdf:about=$MainConclusion])"/>
- <xsl:variable name="no_concl"
-   select="count(*/h:Occurrence[@rdf:about=$InConclusion])"/>
- <xsl:variable name="no_main_hyp"
-   select="count(*/h:Occurrence[@rdf:about=$MainHypothesis])"/>
- <xsl:variable name="no_in_hyp"
-   select="count(*/h:Occurrence[@rdf:about=$InHypothesis])"/>
- <xsl:variable name="no_body"
-   select="count(*/h:Occurrence[@rdf:about=$InBody])"/>
- <h1>Occurrences of <xsl:value-of select="@rdf:about"/></h1>
- <ul>
-       <xsl:if test="$no_main != 0">
-       <li><a class="underline" href ="#main">Head position in conclusion 
-            (<xsl:value-of select="$no_main"/>)</a></li>
-       </xsl:if>
-       <xsl:if test="$no_concl != 0">
-       <li><a class="underline" href ="#concl">In conclusion 
-            (<xsl:value-of select="$no_concl"/>)</a></li>
-       </xsl:if>
-       <xsl:if test="$no_main_hyp != 0">
-       <li><a class="underline" href ="#main_hyp">Head position in some hypothesis
-            (<xsl:value-of select="$no_main_hyp"/>)</a></li>
-       </xsl:if>
-       <xsl:if test="$no_in_hyp != 0">
-       <li><a class="underline" href ="#hyp">In hypotheses
-            (<xsl:value-of select="$no_in_hyp"/>)</a></li>
-       </xsl:if>
-       <xsl:if test="$no_body != 0">
-       <li><a class="underline" href ="#body">In the body
-            (<xsl:value-of select="$no_body"/>)</a></li>
-       </xsl:if>
- </ul>
- <xsl:choose>
-  <xsl:when test="$no_main = 0"/>
-  <xsl:when test="15 > $no_main">
-   <h2><a name="main">Head position inside conclusion:</a></h2>
-   <xsl:for-each select="*/h:Occurrence[@rdf:about=$MainConclusion]">
-    <div style="margin: 0.25cm 0cm 0.25cm 0.75cm">
-     <ht:OBJECT uri="{@rdf:value}" mode="typeonly"/>
-    </div>
-   </xsl:for-each>
-  </xsl:when>
-  <xsl:when test="$no_main >= 15">
-   <h2><a name="main">Head position inside conclusion:</a></h2>
-   <xsl:for-each select="*/h:Occurrence[@rdf:about=$MainConclusion]">
-    <div style="margin: 0cm 0cm 0cm 0.75cm">
-     <ht:OBJECT uri="{@rdf:value}" mode="linkonly"/>
-    </div>
-   </xsl:for-each>
-  </xsl:when>
- </xsl:choose>
- <xsl:choose>
-  <xsl:when test="$no_concl = 0"/>
-  <xsl:when test="15 > $no_concl">
-   <h2><a name="concl">Inside conclusion:</a></h2>
-   <xsl:for-each select="*/h:Occurrence[@rdf:about=$InConclusion]">
-    <div style="margin: 0.25cm 0cm 0.25cm 0.75cm">
-     <ht:OBJECT uri="{@rdf:value}" mode="typeonly"/>
-    </div>
-   </xsl:for-each>
-  </xsl:when>
-  <xsl:when test="$no_concl >= 15">
-   <h2><a name="concl">Inside conclusion:</a></h2>
-   <xsl:for-each select="*/h:Occurrence[@rdf:about=$InConclusion]">
-    <div style="margin: 0cm 0cm 0cm 0.75cm">
-     <ht:OBJECT uri="{@rdf:value}" mode="linkonly"/>
-    </div>
-   </xsl:for-each>
-  </xsl:when>
- </xsl:choose>
- <xsl:choose>
-  <xsl:when test="$no_main_hyp = 0"/>
-  <xsl:when test="15 > $no_main_hyp">
-   <h2><a name="main_hyp">Head position inside an hypothesis:</a></h2>
-   <xsl:for-each select="*/h:Occurrence[@rdf:about=$MainHypothesis]">
-    <div style="margin: 0.25cm 0cm 0.25cm 0.75cm">
-     <ht:OBJECT uri="{@rdf:value}" mode="typeonly"/>
-    </div>
-   </xsl:for-each>
-  </xsl:when>
-  <xsl:when test="$no_main_hyp >= 15">
-   <h2><a name="main_hyp">Head position inside an hypothesis:</a></h2>
-   <xsl:for-each select="*/h:Occurrence[@rdf:about=$MainHypothesis]">
-    <div style="margin: 0cm 0cm 0cm 0.75cm">
-     <ht:OBJECT uri="{@rdf:value}" mode="linkonly"/>
-    </div>
-   </xsl:for-each>
-  </xsl:when> 
- </xsl:choose>
- <xsl:choose>
-  <xsl:when test="$no_in_hyp = 0"/>
-  <xsl:when test="15 > $no_in_hyp">
-   <h2><a name="hyp">Inside an hypothesis:</a></h2>
-   <xsl:for-each select="*/h:Occurrence[@rdf:about=$InHypothesis]">
-    <div style="margin: 0.25cm 0cm 0.25cm 0.75cm">
-     <ht:OBJECT uri="{@rdf:value}" mode="typeonly"/>
-    </div>
-   </xsl:for-each>
-  </xsl:when>
-  <xsl:when test="$no_in_hyp >= 15">
-   <h2><a name="hyp">Inside an hypothesis:</a></h2>
-   <xsl:for-each select="*/h:Occurrence[@rdf:about=$InHypothesis]">
-    <div style="margin: 0cm 0cm 0cm 0.75cm">
-     <ht:OBJECT uri="{@rdf:value}" mode="linkonly"/>
-    </div>
-   </xsl:for-each>
-  </xsl:when>
- </xsl:choose>
- <xsl:if test="$no_body > 0">
-  <h2><a name="body">Inside the body:</a></h2>
-  <xsl:for-each select="*/h:Occurrence[@rdf:about=$InBody]">
-   <div style="margin: 0cm 0cm 0cm 0.75cm">
-    <ht:OBJECT uri="{@rdf:value}" mode="linkonly"/>
-   </div>
-  </xsl:for-each>
- </xsl:if>
-</xsl:template>
-
-</xsl:stylesheet>