]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/on-line/xslt/makeGraphLinks.xsl
This commit was manufactured by cvs2svn to create branch 'init'.
[helm.git] / helm / on-line / xslt / makeGraphLinks.xsl
diff --git a/helm/on-line/xslt/makeGraphLinks.xsl b/helm/on-line/xslt/makeGraphLinks.xsl
deleted file mode 100644 (file)
index 49122be..0000000
+++ /dev/null
@@ -1,107 +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:subst="http://www.cs.unibo.it/helm/subst">
-
-<xsl:import href="utils.xsl"/>
-
-<!--CSC: code cut & pasted also in metadataLib.xsl -->
-<xsl:param name="uri_set_size" select="''"/>
-<!--CSC: end of cut & paste also in metadataLib.xsl -->
-
-<xsl:output method="html" encoding="iso-8859-1"/>
-
-<xsl:template match="/|*">
-  <xsl:copy>
-   <xsl:copy-of select="@*"/>
-   <xsl:apply-templates/>
-  </xsl:copy>
-</xsl:template>
-
-<xsl:template match="head">
-  <xsl:copy>
-   <xsl:copy-of select="@*"/>
-   <subst:script language="JavaScript" src="/javascript/defaults.js"/>
-   <subst:script language="JavaScript" src="/javascript/utils.js"/>
-   <subst:script language="JavaScript" src="/javascript/control.js"/>
-   <subst:script language="JavaScript" src="/javascript/graphLinks.js"/>
-   <subst:script language="JavaScript" src="/javascript/helmjsmenu.js"/>
-   <script>
-    var lastX, lastY;
-    var selectedURI;
-   </script>
-   <xsl:apply-templates/>
-  </xsl:copy>
-</xsl:template>
-
-<xsl:template match="body">
-  <!--CSC: end of cut & paste also in metadataLib.xsl -->
-  <form name="uri_set_size">
-   Number of nodes to show when following an hyperlink:
-   <input type="text" onClick="return false" value="{$uri_set_size}" size="2"/> (30 suggested)
-  </form>
-  <!--CSC: end of cut & paste also in metadataLib.xsl -->
-  <xsl:copy>
-   <xsl:copy-of select="@*"/>
-   <xsl:attribute name="onClick">hideMenu();</xsl:attribute>
-   <xsl:apply-templates/>
-   <div style="position: absolute" id="HJMmenu">
-    <!-- The two nested tables are for NS 4.0 where every -->
-    <!-- layer has a default transparent background color -->
-    <table bgColor="green" id="pippo">
-     <tr><td>
-      <table bgColor="cyan" border="2">
-       <tr><td><a href="" onClick="this.href=mkDepURL(selectedURI);">Objects this one depends on.</a></td></tr>
-       <tr><td><a href="" onClick="this.href=mkCICURL(selectedURI);" target="cic">Render this object.</a></td></tr>
-       <tr><td><a href="" onClick="this.href=mkMetaTheoryURL(selectedURI);" target="theory">Objects depending directly on this one.</a></td></tr>
-       <tr><td><a href="" onClick="this.href=mkMetaURL(selectedURI);">Objects depending on this one.</a></td></tr>
-      </table>
-     </td></tr>
-    </table>
-   </div>
-   <script>initializeMenu()</script>
-  </xsl:copy>
-</xsl:template>
-
-<xsl:template match = "area">
- <xsl:variable name="quoteduri">
-  <xsl:call-template name="jsquote">
-   <xsl:with-param name="s" select="@href"/>
-  </xsl:call-template>
- </xsl:variable>
- <xsl:copy>
-  <xsl:copy-of select="@*"/> 
-  <xsl:if test="starts-with(@href,&quot;cic:&quot;)">
-   <xsl:attribute name="onMouseOver">lastX = getX(event); lastY = getY(event);selectedURI='<xsl:value-of select="$quoteduri"/>';</xsl:attribute>
-   <xsl:attribute name="href">javascript:moveMenu(lastX,lastY); showMenu();</xsl:attribute>
-  </xsl:if>
-  <xsl:apply-templates/>
- </xsl:copy>
-</xsl:template>
-
-</xsl:stylesheet>