]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/style/contentlib.xsl
This commit was manufactured by cvs2svn to create branch
[helm.git] / helm / style / contentlib.xsl
diff --git a/helm/style/contentlib.xsl b/helm/style/contentlib.xsl
deleted file mode 100644 (file)
index 00671bd..0000000
+++ /dev/null
@@ -1,116 +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/.                                         -->
-
-<!--******************************************************************--> 
-<!-- Library for MML Content                                          -->
-<!-- First draft: March 20 2001, Ferruccio Guidi                      -->
-<!--******************************************************************-->
-
-<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:template name="out-mml-op">       <!-- outputs MML nodes for operators -->
-   <xsl:param name="hide" select="0"/> <!-- number of hidden parameters     -->
-   <xsl:param name="arity"/>           <!-- operator arity                  -->
-   <xsl:param name="c-tag"/>           <!-- CIC    tag                      -->
-   <xsl:param name="m-tag"/>           <!-- MathML tag                      -->
-   <xsl:param name="mbody"/>           <!-- other sons of m:apply           -->
-   <xsl:choose>
-      <xsl:when test="count(child::*) = $arity + $hide + 1">
-         <m:apply helm:xref="{@id}">
-            <xsl:element name="{concat('m:',$m-tag)}">
-               <xsl:attribute name="definitionURL">
-                  <xsl:value-of select="$c-tag/@uri"/> 
-               </xsl:attribute>
-               <xsl:attribute name="helm:xref">
-                  <xsl:value-of select="$c-tag/@id"/>
-               </xsl:attribute>
-            </xsl:element>
-            <xsl:copy-of select="$mbody"/>
-         </m:apply>
-      </xsl:when>
-      <xsl:otherwise>
-         <xsl:apply-imports/>
-      </xsl:otherwise>
-   </xsl:choose>
-</xsl:template>
-
-<!-- noannot -->
-
-<xsl:template name="mk-mml-op-noannot">    <!-- makes MML nodes for operators (noannot mode) --> 
-   <xsl:param name="hide" 
-              select="0"/>                          <!-- hidden params      -->
-   <xsl:param name="arity"
-              select="2"/>                          <!-- operator arity      -->
-   <xsl:param name="c-tag"/>                        <!-- CIC    tag          -->
-   <xsl:param name="m-tag"/>                        <!-- MathML tag          -->
-   <xsl:param name="rnset" 
-              select="*[position() > 1 + $hide]"/>  <!-- nodes for recursion -->
-   <xsl:variable name="mbody">
-      <xsl:apply-templates select="$rnset" mode="noannot"/>
-   </xsl:variable>
-   <xsl:call-template name="out-mml-op">
-      <xsl:with-param name="hide"  select="$hide"/>
-      <xsl:with-param name="arity" select="$arity"/>
-      <xsl:with-param name="c-tag" select="$c-tag"/>
-      <xsl:with-param name="m-tag" select="$m-tag"/>
-      <xsl:with-param name="mbody" select="$mbody"/>
-   </xsl:call-template>
-</xsl:template>
-
-<!-- interp -->
-
-<xsl:template name="start-interp"> <!-- interp mode starter -->
-   <xsl:param name="rtree"/>
-   <xsl:param name="atree"/>   
-   <m:apply helm:xref="{@id}">
-      <m:csymbol>interp</m:csymbol>
-      <xsl:apply-templates mode="interp" select="$rtree">
-         <xsl:with-param name="atree" select="$atree"/>
-      </xsl:apply-templates>
-   </m:apply>
-</xsl:template>
-
-<xsl:template name="mk-mml-op-interp"> <!-- make MML node for operators (interp mode) --> 
-   <xsl:param name="arity"/>           <!-- operator arity        -->
-   <xsl:param name="c-tag"/>           <!-- CIC    tag            -->
-   <xsl:param name="m-tag"/>           <!-- MathML tag            -->
-   <xsl:param name="atree"/>           <!-- abstract tree pointer -->
-   <xsl:variable name="mbody">
-      <xsl:apply-templates select="*[position() > 1]" mode="interp">
-         <xsl:with-param name="atree" select="$atree"/>
-      </xsl:apply-templates>
-   </xsl:variable>
-   <xsl:call-template name="out-mml-op">
-      <xsl:with-param name="arity" select="$arity"/>
-      <xsl:with-param name="c-tag" select="$c-tag"/>
-      <xsl:with-param name="m-tag" select="$m-tag"/>
-      <xsl:with-param name="mbody" select="$mbody"/>
-   </xsl:call-template>
-</xsl:template>
-
-</xsl:stylesheet>