]> matita.cs.unibo.it Git - helm.git/blob - helm/software/lambda-delta/xml/ld-html-entity.xsl
676d37722f9fbbd426abf6a26b4ef51b12e73fe9
[helm.git] / helm / software / lambda-delta / xml / ld-html-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="http://www.w3.org/1999/xhtml"
16 >
17
18 <xsl:strip-space elements="ABST ABBR"/>
19
20 <xsl:template name="ENTITY">
21    <xsl:param name="kind"/>
22    <div class="head2">
23       <span class="global">
24          <xsl:value-of select="$kind"/>
25          <xsl:call-template name="cn"/>
26          <xsl:call-template name="sp"/>
27          <span class="gref">   
28             <xsl:call-template name="global"/>
29          </span>
30          <xsl:call-template name="sp"/>
31          <xsl:call-template name="op"/>
32          <span class="gref">
33             <xsl:call-template name="mk_path"/>
34          </span>
35          <xsl:call-template name="cp"/>
36       </span>      
37    </div>
38    <div class="text">
39       <xsl:call-template name="idescr"/>
40       <xsl:call-template name="qt"/>
41       <xsl:value-of select="@meta"/>
42       <xsl:call-template name="qt"/>
43    </div>
44    <div class="text">
45       <xsl:apply-templates/>
46    </div>
47 </xsl:template>
48
49 <xsl:template match="ABST">
50    <xsl:call-template name="ENTITY">
51       <xsl:with-param name="kind">Declaration</xsl:with-param>
52    </xsl:call-template>
53 </xsl:template>
54
55 <xsl:template match="ABBR">
56    <xsl:call-template name="ENTITY">
57       <xsl:with-param name="kind">Definition</xsl:with-param>
58    </xsl:call-template>
59 </xsl:template>
60
61 </xsl:stylesheet>