]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/software/lambda-delta/xml/ld-html-term.xsl
when sort inclusion is enabled, we can produce conversion constraints in xml
[helm.git] / helm / software / lambda-delta / xml / ld-html-term.xsl
index a83c08088d9108e12c972f71a5f60f7d5cc00617..4edec396fb75950a5193d263366d717acfe7bb9c 100644 (file)
@@ -1,11 +1,24 @@
 <?xml version="1.0" encoding="UTF-8"?>
 
+<!--
+    ||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">
 
 <xsl:strip-space elements="Sort LRef GRef Cast Appl Abst Abbr Void"/>
 
 <xsl:template match="Sort">
-   <b><xsl:call-template name="position"/></b>
+   <span style="{$sort}">
+      <xsl:call-template name="position"/>
+   </span>
 </xsl:template>
 
 <xsl:template match="LRef">
 
 <xsl:template match="Appl">
    <xsl:call-template name="op"/>   
-   <xsl:apply-templates/>
+   <xsl:call-template name="mk_terms"/>
    <xsl:call-template name="cp"/>
    <xsl:call-template name="fs"/>   
 </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"/>   
+   <xsl:call-template name="mk_binder">
+      <xsl:with-param name="sep-seq">
+         <xsl:call-template name="cn"/>
+      </xsl:with-param>
+   </xsl:call-template>
 </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"/>   
+   <xsl:call-template name="mk_binder">
+      <xsl:with-param name="sep-seq">
+         <xsl:call-template name="eq"/>
+      </xsl:with-param>
+   </xsl:call-template>
 </xsl:template>
 
 <xsl:template match="Void">
    <xsl:call-template name="chi"/>
-   <xsl:call-template name="binder"/>
-   <xsl:apply-templates/>
+   <xsl:call-template name="ob"/>
+   <xsl:call-template name="mk_names"/>
+   <xsl:call-template name="cb"/>
    <xsl:call-template name="fs"/>
-
 </xsl:template>
 
 </xsl:stylesheet>