]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/software/lambda-delta/xml/ld-html-term.xsl
New behaviour of fo_unif: in case of ?f args == t args'
[helm.git] / helm / software / lambda-delta / xml / ld-html-term.xsl
index a83c08088d9108e12c972f71a5f60f7d5cc00617..4e0c488b5436be3cf13502d4c843bcb3030c4f5d 100644 (file)
@@ -1,57 +1,96 @@
 <?xml version="1.0" encoding="UTF-8"?>
 
-<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+<!--
+    ||M||  This file is part of HELM, an Hypertextual, Electronic        
+    ||A||  Library of Mathematics, developed at the Computer Science     
+    ||T||  Department, University of Bologna, Italy.                     
+    ||I||                                                                
+    ||T||  HELM is free software; you can redistribute it and/or         
+    ||A||  modify it under the terms of the GNU General Public License   
+    \   /  version 2 or (at your option) any later version.              
+     \ /   This software is distributed as is, NO WARRANTY.              
+      V_______________________________________________________________ -->
+
+<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+                              xmlns="http://www.w3.org/1999/xhtml"
+>
 
 <xsl:strip-space elements="Sort LRef GRef Cast Appl Abst Abbr Void"/>
 
+<xsl:template name="separator">
+   <span class="separator">
+      <xsl:call-template name="fs"/>
+   </span>
+</xsl:template>
+
 <xsl:template match="Sort">
-   <b><xsl:call-template name="position"/></b>
+   <span class="sort">
+      <xsl:call-template name="position"/>
+   </span>
 </xsl:template>
 
 <xsl:template match="LRef">
-   <xsl:call-template name="position"/>
+   <span class="lref">
+      <xsl:call-template name="position"/>
+   </span>
 </xsl:template>
 
 <xsl:template match="GRef">
-   <xsl:call-template name="uri"/>
+   <span class="gref">
+      <xsl:call-template name="uri"/>
+   </span>
 </xsl:template>
 
 <xsl:template match="Cast">
-   <xsl:call-template name="oa"/>
-   <xsl:apply-templates/>
-   <xsl:call-template name="ca"/>   
-   <xsl:call-template name="fs"/>   
+   <span class="cast">
+      <xsl:call-template name="oa"/>
+      <xsl:apply-templates/>
+      <xsl:call-template name="ca"/>
+   </span>
+   <xsl:call-template name="separator"/>
 </xsl:template>
 
 <xsl:template match="Appl">
-   <xsl:call-template name="op"/>   
-   <xsl:apply-templates/>
-   <xsl:call-template name="cp"/>
-   <xsl:call-template name="fs"/>   
+   <span class="appl">
+      <xsl:call-template name="op"/>
+      <xsl:call-template name="mk_terms"/>
+      <xsl:call-template name="cp"/>
+   </span>
+   <xsl:call-template name="separator"/>
 </xsl:template>
 
 <xsl:template match="Abst">
-   <xsl:call-template name="lambda"/>
-   <xsl:value-of select="@name"/>
-   <xsl:call-template name="cn"/>   
-   <xsl:apply-templates/>
-   <xsl:call-template name="fs"/>   
+   <span class="local">
+      <xsl:call-template name="lambda"/>
+      <xsl:call-template name="mk_binder">
+         <xsl:with-param name="sep-seq">
+            <xsl:call-template name="cn"/>
+         </xsl:with-param>
+      </xsl:call-template>
+   </span>
+   <xsl:call-template name="separator"/>
 </xsl:template>
 
 <xsl:template match="Abbr">
-   <xsl:call-template name="delta"/>
-   <xsl:call-template name="binder"/>
-   <xsl:call-template name="eq"/>   
-   <xsl:apply-templates/>
-   <xsl:call-template name="fs"/>   
+   <span class="local">
+      <xsl:call-template name="delta"/>
+      <xsl:call-template name="mk_binder">
+         <xsl:with-param name="sep-seq">
+            <xsl:call-template name="eq"/>
+         </xsl:with-param>
+      </xsl:call-template>
+   </span>
+   <xsl:call-template name="separator"/>
 </xsl:template>
 
 <xsl:template match="Void">
-   <xsl:call-template name="chi"/>
-   <xsl:call-template name="binder"/>
-   <xsl:apply-templates/>
-   <xsl:call-template name="fs"/>
-
+   <span class="local">
+      <xsl:call-template name="chi"/>
+      <xsl:call-template name="ob"/>
+      <xsl:call-template name="mk_names"/>
+      <xsl:call-template name="cb"/>
+   </span>
+   <xsl:call-template name="separator"/>
 </xsl:template>
 
 </xsl:stylesheet>