]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/www/lambdadelta/xslt/lddl_term.xsl
grundlagen web pages updated
[helm.git] / helm / www / lambdadelta / xslt / lddl_term.xsl
index d2cb461a36e0a0d6c507e5c6ba4ce21ad681a360..d09b113bce7791bf39786ba8a6f115cc387580ac 100644 (file)
       V_______________________________________________________________ -->
 
 <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
-                              xmlns:ld="http://lambdadelta.info"
-                              xmlns="http://www.w3.org/1999/xhtml"
+                              xmlns:ld="http://lambdadelta.info/"
+                              xmlns="http://lambdadelta.info/"
 >
 
-<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="ld:Sort">
-   <span class="sort">
-      <xsl:call-template name="position"/>
-   </span>
+   <style class="sort" title="{@position}">
+      <xsl:value-of select="@name"/>
+   </style>
 </xsl:template>
 
 <xsl:template match="ld:LRef">
-   <span class="lref">
-      <xsl:call-template name="position"/>
-   </span>
+   <style class="lref" title="{@position}">
+      <xsl:value-of select="@name"/>
+   </style>
 </xsl:template>
 
 <xsl:template match="ld:GRef">
-   <span class="gref">
+   <style class="gref" title="{@position}&lt;{@uri}&gt;">
       <xsl:call-template name="uri"/>
-   </span>
+   </style>
 </xsl:template>
 
 <xsl:template match="ld:Cast">
-   <span class="cast">
+   <style class="cast">
       <xsl:call-template name="oa"/>
-      <xsl:apply-templates/>
+      <xsl:apply-templates select="*"/>
       <xsl:call-template name="ca"/>
-   </span>
+   </style>
    <xsl:call-template name="separator"/>
 </xsl:template>
 
 <xsl:template match="ld:Appl">
-   <span class="appl">
+   <style class="appl">
       <xsl:call-template name="op"/>
-      <xsl:call-template name="mk_terms"/>
+      <xsl:apply-templates select="*"/>
+<!--      <xsl:call-template name="mk_terms"/> -->
       <xsl:call-template name="cp"/>
-   </span>
+   </style>
+   <xsl:call-template name="separator"/>
+</xsl:template>
+
+<xsl:template match="ld:Proj">
+   <style class="proj">
+      <xsl:call-template name="oc"/>
+      <xsl:apply-templates select="*"/>
+      <xsl:call-template name="cc"/>
+   </style>
    <xsl:call-template name="separator"/>
 </xsl:template>
 
 <xsl:template match="ld:Abst">
-   <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>
+   <style class="local" title="{@position}">
+      <xsl:call-template name="abst"/>
+      <xsl:call-template name="ob"/>
+      <xsl:call-template name="name"/>
+      <xsl:call-template name="cn"/>
+      <xsl:apply-templates select="*"/>
+      <xsl:call-template name="cb"/>
+   </style>
    <xsl:call-template name="separator"/>
 </xsl:template>
 
 <xsl:template match="ld:Abbr">
-   <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>
+   <style class="local">
+      <xsl:call-template name="abbr"/>
+      <xsl:call-template name="ob"/>
+      <xsl:call-template name="name"/>
+      <xsl:call-template name="eq"/>
+      <xsl:apply-templates select="*"/>
+      <xsl:call-template name="cb"/>
+   </style>
    <xsl:call-template name="separator"/>
 </xsl:template>
 
 <xsl:template match="ld:Void">
-   <span class="local">
-      <xsl:call-template name="chi"/>
+   <style class="local">
+      <xsl:call-template name="void"/>
       <xsl:call-template name="ob"/>
-      <xsl:call-template name="mk_names"/>
+      <xsl:call-template name="name"/>
       <xsl:call-template name="cb"/>
-   </span>
+   </style>
    <xsl:call-template name="separator"/>
 </xsl:template>