]> matita.cs.unibo.it Git - helm.git/blob - helm/www/lambdadelta/xslt/lddl_entity.xsl
99f699d9b36dd34a682621d705a54e223b122af7
[helm.git] / helm / www / lambdadelta / xslt / lddl_entity.xsl
1 <?xml version="1.0" encoding="UTF-8"?>
2
3 <!--
4     ||M||  This file is part of HELM, an Hypertextual, Electronic        
5     ||A||  Library of Mathematics, developed at the Computer Science     
6     ||T||  Department, University of Bologna, Italy.                     
7     ||I||                                                                
8     ||T||  HELM is free software; you can redistribute it and/or         
9     ||A||  modify it under the terms of the GNU General Public License   
10     \   /  version 2 or (at your option) any later version.              
11      \ /   This software is distributed as is, NO WARRANTY.              
12       V_______________________________________________________________ -->
13
14 <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
15                               xmlns:ld="http://lambdadelta.info"
16                               xmlns="http://www.w3.org/1999/xhtml"
17 >
18
19 <xsl:strip-space elements="ABST ABBR"/>
20
21 <xsl:template name="ENTITY">
22    <xsl:param name="kind"/>
23    <div class="head2">
24       <span class="global">
25          <xsl:value-of select="$kind"/>
26          <xsl:call-template name="cn"/>
27          <xsl:call-template name="sp"/>
28          <span class="gref">   
29             <xsl:call-template name="global"/>
30          </span>
31          <xsl:call-template name="sp"/>
32          <xsl:call-template name="op"/>
33          <span class="gref">
34             <xsl:call-template name="mk_path"/>
35          </span>
36          <xsl:call-template name="cp"/>
37       </span>      
38    </div>
39    <div class="text">
40       <xsl:call-template name="idescr"/>
41       <xsl:call-template name="qt"/>
42       <xsl:value-of select="@meta"/>
43       <xsl:call-template name="qt"/>
44    </div>
45    <div class="text">
46       <xsl:apply-templates/>
47    </div>
48 </xsl:template>
49
50 <xsl:template match="ld:ABST">
51    <xsl:call-template name="ENTITY">
52       <xsl:with-param name="kind">Declaration</xsl:with-param>
53    </xsl:call-template>
54 </xsl:template>
55
56 <xsl:template match="ld:ABBR">
57    <xsl:call-template name="ENTITY">
58       <xsl:with-param name="kind">Definition</xsl:with-param>
59    </xsl:call-template>
60 </xsl:template>
61
62 </xsl:stylesheet>