]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/software/lambda-delta/xml/ld-html-term.xsl
we are migrating the static htnl pagest to html 4 to xhtml 1.1 + css
[helm.git] / helm / software / lambda-delta / xml / ld-html-term.xsl
index 4edec396fb75950a5193d263366d717acfe7bb9c..4e0c488b5436be3cf13502d4c843bcb3030c4f5d 100644 (file)
      \ /   This software is distributed as is, NO WARRANTY.              
       V_______________________________________________________________ -->
 
-<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+<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">
-   <span style="{$sort}">
+   <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:call-template name="mk_terms"/>
-   <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:call-template name="mk_binder">
-      <xsl:with-param name="sep-seq">
-         <xsl:call-template name="cn"/>
-      </xsl:with-param>
-   </xsl:call-template>
+   <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="mk_binder">
-      <xsl:with-param name="sep-seq">
-         <xsl:call-template name="eq"/>
-      </xsl:with-param>
-   </xsl:call-template>
+   <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="ob"/>
-   <xsl:call-template name="mk_names"/>
-   <xsl:call-template name="cb"/>
-   <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>